Skip to content

Commit ae50ea9

Browse files
yoshi-automationsofisl
authored andcommitted
feat(notebooks): update the API
#### notebooks:v2 The following keys were added: - schemas.AccessConfig.description - schemas.AccessConfig.id - schemas.AccessConfig.properties.externalIp.description - schemas.AccessConfig.properties.externalIp.type - schemas.AccessConfig.type - schemas.Instance.properties.satisfiesPzi.description - schemas.Instance.properties.satisfiesPzi.readOnly - schemas.Instance.properties.satisfiesPzi.type - schemas.Instance.properties.satisfiesPzs.description - schemas.Instance.properties.satisfiesPzs.readOnly - schemas.Instance.properties.satisfiesPzs.type - schemas.NetworkInterface.properties.accessConfigs.description - schemas.NetworkInterface.properties.accessConfigs.items.$ref - schemas.NetworkInterface.properties.accessConfigs.type
1 parent e608c36 commit ae50ea9

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

discovery/notebooks-v2.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@
876876
}
877877
}
878878
},
879-
"revision": "20240314",
879+
"revision": "20240613",
880880
"rootUrl": "https://notebooks.googleapis.com/",
881881
"schemas": {
882882
"AcceleratorConfig": {
@@ -921,6 +921,17 @@
921921
},
922922
"type": "object"
923923
},
924+
"AccessConfig": {
925+
"description": "An access configuration attached to an instance's network interface.",
926+
"id": "AccessConfig",
927+
"properties": {
928+
"externalIp": {
929+
"description": "An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.",
930+
"type": "string"
931+
}
932+
},
933+
"type": "object"
934+
},
924935
"Binding": {
925936
"description": "Associates `members`, or principals, with a `role`.",
926937
"id": "Binding",
@@ -1423,6 +1434,16 @@
14231434
"readOnly": true,
14241435
"type": "string"
14251436
},
1437+
"satisfiesPzi": {
1438+
"description": "Output only. Reserved for future use for Zone Isolation.",
1439+
"readOnly": true,
1440+
"type": "boolean"
1441+
},
1442+
"satisfiesPzs": {
1443+
"description": "Output only. Reserved for future use for Zone Separation.",
1444+
"readOnly": true,
1445+
"type": "boolean"
1446+
},
14261447
"state": {
14271448
"description": "Output only. The state of this instance.",
14281449
"enum": [
@@ -1575,6 +1596,13 @@
15751596
"description": "The definition of a network interface resource attached to a VM.",
15761597
"id": "NetworkInterface",
15771598
"properties": {
1599+
"accessConfigs": {
1600+
"description": "Optional. An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If no accessConfigs specified, the instance will have an external internet access through an ephemeral external IP address.",
1601+
"items": {
1602+
"$ref": "AccessConfig"
1603+
},
1604+
"type": "array"
1605+
},
15781606
"network": {
15791607
"description": "Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id}/global/networks/{network_id}`",
15801608
"type": "string"

src/apis/notebooks/v2.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ export namespace notebooks_v2 {
137137
*/
138138
type?: string | null;
139139
}
140+
/**
141+
* An access configuration attached to an instance's network interface.
142+
*/
143+
export interface Schema$AccessConfig {
144+
/**
145+
* An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
146+
*/
147+
externalIp?: string | null;
148+
}
140149
/**
141150
* Associates `members`, or principals, with a `role`.
142151
*/
@@ -475,6 +484,14 @@ export namespace notebooks_v2 {
475484
* Output only. The proxy endpoint that is used to access the Jupyter notebook.
476485
*/
477486
proxyUri?: string | null;
487+
/**
488+
* Output only. Reserved for future use for Zone Isolation.
489+
*/
490+
satisfiesPzi?: boolean | null;
491+
/**
492+
* Output only. Reserved for future use for Zone Separation.
493+
*/
494+
satisfiesPzs?: boolean | null;
478495
/**
479496
* Output only. The state of this instance.
480497
*/
@@ -564,6 +581,10 @@ export namespace notebooks_v2 {
564581
* The definition of a network interface resource attached to a VM.
565582
*/
566583
export interface Schema$NetworkInterface {
584+
/**
585+
* Optional. An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If no accessConfigs specified, the instance will have an external internet access through an ephemeral external IP address.
586+
*/
587+
accessConfigs?: Schema$AccessConfig[];
567588
/**
568589
* Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id\}/global/networks/{network_id\}`
569590
*/

0 commit comments

Comments
 (0)