Skip to content

Commit 8201b8b

Browse files
committed
feat: update generated APIs
1 parent 8768d24 commit 8201b8b

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed

packages_generated/container/src/v1beta1/api.gen.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
validatePathParam,
99
waitForResource,
1010
} from '@scaleway/sdk-client'
11-
import type { Region as ScwRegion, WaitForOptions } from '@scaleway/sdk-client'
11+
import type { WaitForOptions } from '@scaleway/sdk-client'
12+
import type { ApiLocality } from '../types/locality'
13+
import { toApiLocality } from '../types/locality'
1214
import {
1315
CONTAINER_TRANSIENT_STATUSES as CONTAINER_TRANSIENT_STATUSES_CONTAINER,
1416
CRON_TRANSIENT_STATUSES as CRON_TRANSIENT_STATUSES_CONTAINER,
@@ -95,12 +97,13 @@ const jsonContentHeaders = {
9597
This API allows you to manage your Serverless Containers.
9698
*/
9799
export class API extends ParentAPI {
98-
/** Lists the available regions of the API. */
99-
public static readonly LOCALITIES: ScwRegion[] = [
100-
'fr-par',
101-
'nl-ams',
102-
'pl-waw',
103-
]
100+
/**
101+
* Locality of this API.
102+
* type ∈ {'zone','region','global','unspecified'}
103+
*/
104+
public static readonly LOCALITY: ApiLocality = toApiLocality({
105+
regions: ['fr-par', 'nl-ams', 'pl-waw'],
106+
})
104107

105108
protected pageOfListNamespaces = (
106109
request: Readonly<ListNamespacesRequest> = {},

packages_generated/container/src/v1beta1/validation-rules.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ export const CreateTriggerRequestMnqSqsClientConfig = {
5050
},
5151
}
5252

53+
export const UpdateContainerRequest = {
54+
privateNetworkId: {
55+
ignoreEmpty: true,
56+
},
57+
}
58+
5359
export const UpdateTriggerRequest = {
5460
description: {
5561
maxLength: 255,

packages_generated/function/src/v1beta1/api.gen.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
validatePathParam,
99
waitForResource,
1010
} from '@scaleway/sdk-client'
11-
import type { Region as ScwRegion, WaitForOptions } from '@scaleway/sdk-client'
11+
import type { WaitForOptions } from '@scaleway/sdk-client'
12+
import type { ApiLocality } from '../types/locality'
13+
import { toApiLocality } from '../types/locality'
1214
import {
1315
CRON_TRANSIENT_STATUSES as CRON_TRANSIENT_STATUSES_FUNCTION,
1416
DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_FUNCTION,
@@ -104,12 +106,13 @@ const jsonContentHeaders = {
104106
This API allows you to manage your Serverless Functions.
105107
*/
106108
export class API extends ParentAPI {
107-
/** Lists the available regions of the API. */
108-
public static readonly LOCALITIES: ScwRegion[] = [
109-
'fr-par',
110-
'nl-ams',
111-
'pl-waw',
112-
]
109+
/**
110+
* Locality of this API.
111+
* type ∈ {'zone','region','global','unspecified'}
112+
*/
113+
public static readonly LOCALITY: ApiLocality = toApiLocality({
114+
regions: ['fr-par', 'nl-ams', 'pl-waw'],
115+
})
113116

114117
protected pageOfListNamespaces = (
115118
request: Readonly<ListNamespacesRequest> = {},

packages_generated/function/src/v1beta1/validation-rules.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export const CreateTriggerRequestMnqSqsClientConfig = {
3434
},
3535
}
3636

37+
export const UpdateFunctionRequest = {
38+
privateNetworkId: {
39+
ignoreEmpty: true,
40+
},
41+
}
42+
3743
export const UpdateTriggerRequest = {
3844
description: {
3945
maxLength: 255,

0 commit comments

Comments
 (0)