Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/clients/src/api/file/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Use the order_by parameter to modify the sorting behavior.
],
['resource_id', request.resourceId],
['resource_type', request.resourceType],
['zone', request.zone],
),
},
unmarshalListAttachmentsResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const unmarshalAttachment = (data: unknown): Attachment => {
id: data.id,
resourceId: data.resource_id,
resourceType: data.resource_type,
zone: data.zone,
} as Attachment
}

Expand Down
10 changes: 9 additions & 1 deletion packages/clients/src/api/file/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import type { Region as ScwRegion } from '@scaleway/sdk-client'
import type { Region as ScwRegion, Zone as ScwZone } from '@scaleway/sdk-client'

export type AttachmentResourceType = 'unknown_resource_type' | 'instance_server'

Expand Down Expand Up @@ -37,6 +37,10 @@ export interface Attachment {
* The type of the attached resource.
*/
resourceType: AttachmentResourceType
/**
* The zone where the resource is located.
*/
zone?: ScwZone
}

/**
Expand Down Expand Up @@ -163,6 +167,10 @@ export type ListAttachmentsRequest = {
* Filter by resource type.
*/
resourceType?: AttachmentResourceType
/**
* Filter by resource zone.
*/
zone?: ScwZone
/**
* Page number (starting at 1).
*/
Expand Down
Loading