Skip to content

Commit e848cb9

Browse files
fix(audit_trail): add export tags as repeated string (#2516)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent fd740e6 commit e848cb9

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

packages_generated/audit_trail/src/v1alpha1/api.gen.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,7 @@ export class API extends ParentAPI {
218218
'page_size',
219219
request.pageSize ?? this.client.settings.defaultPageSize,
220220
],
221-
[
222-
'tags',
223-
request.tags
224-
? Object.entries(request.tags).map(
225-
([key, value]) => `${key}:${value}`,
226-
)
227-
: undefined,
228-
],
221+
['tags', request.tags],
229222
),
230223
},
231224
unmarshalListExportJobsResponse,

packages_generated/audit_trail/src/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ export const marshalCreateExportJobRequest = (
701701
): Record<string, unknown> => ({
702702
name: request.name,
703703
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
704-
tags: request.tags !== undefined ? request.tags : undefined,
704+
tags: request.tags,
705705
...resolveOneOf([
706706
{
707707
param: 's3',

packages_generated/audit_trail/src/v1alpha1/types.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export interface ExportJob {
520520
/**
521521
* Tags of the export job.
522522
*/
523-
tags: Record<string, string>
523+
tags: string[]
524524
/**
525525
* Status of last export job.
526526
*/
@@ -564,7 +564,7 @@ export type CreateExportJobRequest = {
564564
/**
565565
* Tags of the export.
566566
*/
567-
tags?: Record<string, string>
567+
tags?: string[]
568568
}
569569

570570
export type DeleteExportJobRequest = {
@@ -701,7 +701,7 @@ export type ListExportJobsRequest = {
701701
/**
702702
* (Optional) List of tags to filter on.
703703
*/
704-
tags?: Record<string, string>
704+
tags?: string[]
705705
page?: number
706706
pageSize?: number
707707
orderBy?: ListExportJobsRequestOrderBy

0 commit comments

Comments
 (0)