Skip to content

Commit b83273d

Browse files
committed
fix: required optional type
1 parent e71a95f commit b83273d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,11 @@ export class API extends ParentAPI {
453453
['group_ids', request.groupIds],
454454
['name', request.name],
455455
['order_by', request.orderBy],
456-
['organization_id', request.organizationId],
456+
[
457+
'organization_id',
458+
request.organizationId ??
459+
this.client.settings.defaultOrganizationId,
460+
],
457461
['page', request.page],
458462
[
459463
'page_size',

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ export const marshalBookIPRequest = (
9898
address: request.address,
9999
is_ipv6: request.isIpv6,
100100
project_id: request.projectId ?? defaults.defaultProjectId,
101-
source:
102-
request.source !== undefined
103-
? marshalSource(request.source, defaults)
104-
: undefined,
101+
source: marshalSource(request.source, defaults),
105102
tags: request.tags,
106103
})
107104

packages/clients/src/api/ipam/v1/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export type BookIPRequest = {
100100
*/
101101
projectId?: string
102102
/** Source in which to book the IP. Not all sources are available for booking. */
103-
source?: Source
103+
source: Source
104104
/** Request an IPv6 instead of an IPv4. */
105105
isIpv6: boolean
106106
/**

0 commit comments

Comments
 (0)