Skip to content

Commit

Permalink
fix: do not default to config variable for optional fields (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Nov 4, 2024
1 parent fe2d120 commit 490f9d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
22 changes: 4 additions & 18 deletions packages/clients/src/api/mongodb/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,13 @@ export class API extends ParentAPI {
urlParams: urlParams(
['name', request.name],
['order_by', request.orderBy],
[
'organization_id',
request.organizationId ??
this.client.settings.defaultOrganizationId,
],
['organization_id', request.organizationId],
['page', request.page],
[
'page_size',
request.pageSize ?? this.client.settings.defaultPageSize,
],
[
'project_id',
request.projectId ?? this.client.settings.defaultProjectId,
],
['project_id', request.projectId],
['tags', request.tags],
),
},
Expand Down Expand Up @@ -417,20 +410,13 @@ export class API extends ParentAPI {
['instance_id', request.instanceId],
['name', request.name],
['order_by', request.orderBy],
[
'organization_id',
request.organizationId ??
this.client.settings.defaultOrganizationId,
],
['organization_id', request.organizationId],
['page', request.page],
[
'page_size',
request.pageSize ?? this.client.settings.defaultPageSize,
],
[
'project_id',
request.projectId ?? this.client.settings.defaultProjectId,
],
['project_id', request.projectId],
),
},
unmarshalListSnapshotsResponse,
Expand Down
11 changes: 2 additions & 9 deletions packages/clients/src/api/webhosting/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,20 +458,13 @@ export class HostingAPI extends ParentAPI {
['control_panels', request.controlPanels],
['domain', request.domain],
['order_by', request.orderBy],
[
'organization_id',
request.organizationId ??
this.client.settings.defaultOrganizationId,
],
['organization_id', request.organizationId],
['page', request.page],
[
'page_size',
request.pageSize ?? this.client.settings.defaultPageSize,
],
[
'project_id',
request.projectId ?? this.client.settings.defaultProjectId,
],
['project_id', request.projectId],
['statuses', request.statuses],
['tags', request.tags],
),
Expand Down

0 comments on commit 490f9d6

Please sign in to comment.