Skip to content

Commit b619281

Browse files
committed
fix: avoid default values for nested properties
1 parent f6e127c commit b619281

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,7 @@ const marshalRuleSpecs = (
500500
permission_set_names: request.permissionSetNames,
501501
...resolveOneOf<unknown[] | string>([
502502
{ param: 'project_ids', value: request.projectIds },
503-
{
504-
default: defaults.defaultOrganizationId,
505-
param: 'organization_id',
506-
value: request.organizationId,
507-
},
503+
{ param: 'organization_id', value: request.organizationId },
508504
]),
509505
})
510506

packages/clients/src/api/instance/v1/marshalling.gen.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,16 +1555,8 @@ const marshalVolumeTemplate = (
15551555
size: request.size,
15561556
volume_type: request.volumeType,
15571557
...resolveOneOf([
1558-
{
1559-
default: defaults.defaultProjectId,
1560-
param: 'project',
1561-
value: request.project,
1562-
},
1563-
{
1564-
default: defaults.defaultOrganizationId,
1565-
param: 'organization',
1566-
value: request.organization,
1567-
},
1558+
{ param: 'project', value: request.project },
1559+
{ param: 'organization', value: request.organization },
15681560
]),
15691561
})
15701562

@@ -1705,8 +1697,8 @@ const marshalVolumeServerTemplate = (
17051697
boot: request.boot,
17061698
id: request.id,
17071699
name: request.name,
1708-
organization: request.organization ?? defaults.defaultOrganizationId,
1709-
project: request.project ?? defaults.defaultProjectId,
1700+
organization: request.organization,
1701+
project: request.project,
17101702
size: request.size,
17111703
volume_type: request.volumeType,
17121704
})
@@ -2011,7 +2003,7 @@ const marshalSetSecurityGroupRulesRequestRule = (
20112003
ip_range: request.ipRange,
20122004
position: request.position,
20132005
protocol: request.protocol,
2014-
zone: request.zone ?? defaults.defaultZone,
2006+
zone: request.zone,
20152007
})
20162008

20172009
export const marshalSetSecurityGroupRulesRequest = (

0 commit comments

Comments
 (0)