Skip to content

Commit 0a6e366

Browse files
feat(serverless): deprecate activate_vpc_integration and update documentation (#2318)
Co-authored-by: Jonathan R. <jremy@scaleway.com>
1 parent a41ab08 commit 0a6e366

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class API extends ParentAPI {
179179
* @param request - The request {@link CreateNamespaceRequest}
180180
* @returns A Promise of Namespace
181181
*/
182-
createNamespace = (request: Readonly<CreateNamespaceRequest>) =>
182+
createNamespace = (request: Readonly<CreateNamespaceRequest> = {}) =>
183183
this.client.fetch<Namespace>(
184184
{
185185
body: JSON.stringify(

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ export interface Namespace {
498498
*/
499499
updatedAt?: Date
500500
/**
501-
* @deprecated When activated, containers in the namespace can be connected to a Private Network.
502-
Note that activating the VPC integration can only be done when creating a new namespace.
501+
* @deprecated The value of this field doesn't matter anymore, and will be removed in a near future.
503502
*/
504503
vpcIntegrationActivated?: boolean
505504
}
@@ -693,8 +692,6 @@ export type CreateContainerRequest = {
693692
tags?: string[]
694693
/**
695694
* When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
696-
697-
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
698695
*/
699696
privateNetworkId?: string
700697
/**
@@ -775,9 +772,9 @@ export type CreateNamespaceRequest = {
775772
*/
776773
tags?: string[]
777774
/**
778-
* When activated, containers in the namespace can be connected to a Private Network.
775+
* @deprecated Setting this field to true doesn't matter anymore. It will be removed in a near future.
779776
*/
780-
activateVpcIntegration: boolean
777+
activateVpcIntegration?: boolean
781778
}
782779

783780
export type CreateTokenRequest = {
@@ -1319,8 +1316,6 @@ export type UpdateContainerRequest = {
13191316
tags?: string[]
13201317
/**
13211318
* When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
1322-
1323-
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
13241319
*/
13251320
privateNetworkId?: string
13261321
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class API extends ParentAPI {
188188
* @param request - The request {@link CreateNamespaceRequest}
189189
* @returns A Promise of Namespace
190190
*/
191-
createNamespace = (request: Readonly<CreateNamespaceRequest>) =>
191+
createNamespace = (request: Readonly<CreateNamespaceRequest> = {}) =>
192192
this.client.fetch<Namespace>(
193193
{
194194
body: JSON.stringify(

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,7 @@ export interface Namespace {
477477
*/
478478
updatedAt?: Date
479479
/**
480-
* @deprecated When activated, functions in the namespace can be connected to a Private Network.
481-
Note that activating the VPC integration can only be done when creating a new namespace.
480+
* @deprecated The value of this field doesn't matter anymore, and will be removed in a near future.
482481
*/
483482
vpcIntegrationActivated?: boolean
484483
}
@@ -680,8 +679,6 @@ export type CreateFunctionRequest = {
680679
tags?: string[]
681680
/**
682681
* When connected to a Private Network, the function can access other Scaleway resources in this Private Network.
683-
684-
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
685682
*/
686683
privateNetworkId?: string
687684
}
@@ -713,9 +710,9 @@ export type CreateNamespaceRequest = {
713710
*/
714711
tags?: string[]
715712
/**
716-
* When activated, functions in the namespace can be connected to a Private Network.
713+
* @deprecated Setting this field to true doesn't matter anymore. It will be removed in a near future.
717714
*/
718-
activateVpcIntegration: boolean
715+
activateVpcIntegration?: boolean
719716
}
720717

721718
export type CreateTokenRequest = {
@@ -1303,8 +1300,6 @@ export type UpdateFunctionRequest = {
13031300
tags?: string[]
13041301
/**
13051302
* When connected to a Private Network, the function can access other Scaleway resources in this Private Network.
1306-
1307-
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
13081303
*/
13091304
privateNetworkId?: string
13101305
}

0 commit comments

Comments
 (0)