Skip to content

Commit 11670e6

Browse files
feat(notebooks): update the api
#### notebooks:v1 The following keys were added: - resources.projects.resources.locations.resources.runtimes.methods.refreshRuntimeTokenInternal (Total Keys: 12) - schemas.RefreshRuntimeTokenInternalRequest (Total Keys: 3) - schemas.RefreshRuntimeTokenInternalResponse (Total Keys: 6)
1 parent dbed650 commit 11670e6

File tree

3 files changed

+90
-4
lines changed

3 files changed

+90
-4
lines changed

docs/dyn/notebooks_v1.projects.locations.operations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h3>Method Details</h3>
113113
Returns:
114114
An object of the form:
115115

116-
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
116+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
117117
}</pre>
118118
</div>
119119

@@ -136,7 +136,7 @@ <h3>Method Details</h3>
136136
Returns:
137137
An object of the form:
138138

139-
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
139+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
140140
}</pre>
141141
</div>
142142

docs/dyn/notebooks_v1.projects.locations.runtimes.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ <h2>Instance Methods</h2>
9595
<p class="toc_element">
9696
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
9797
<p class="firstline">Retrieves the next page of results.</p>
98+
<p class="toc_element">
99+
<code><a href="#refreshRuntimeTokenInternal">refreshRuntimeTokenInternal(name, body=None, x__xgafv=None)</a></code></p>
100+
<p class="firstline">Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.</p>
98101
<p class="toc_element">
99102
<code><a href="#reportEvent">reportEvent(name, body=None, x__xgafv=None)</a></code></p>
100103
<p class="firstline">Report and process a runtime event.</p>
@@ -608,6 +611,33 @@ <h3>Method Details</h3>
608611
</pre>
609612
</div>
610613

614+
<div class="method">
615+
<code class="details" id="refreshRuntimeTokenInternal">refreshRuntimeTokenInternal(name, body=None, x__xgafv=None)</code>
616+
<pre>Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
617+
618+
Args:
619+
name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
620+
body: object, The request body.
621+
The object takes the form of:
622+
623+
{ # Request for getting a new access token.
624+
&quot;vmId&quot;: &quot;A String&quot;, # Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
625+
}
626+
627+
x__xgafv: string, V1 error format.
628+
Allowed values
629+
1 - v1 error format
630+
2 - v2 error format
631+
632+
Returns:
633+
An object of the form:
634+
635+
{ # Response with a new access token.
636+
&quot;accessToken&quot;: &quot;A String&quot;, # The OAuth 2.0 access token.
637+
&quot;expireTime&quot;: &quot;A String&quot;, # Output only. Token expiration time.
638+
}</pre>
639+
</div>
640+
611641
<div class="method">
612642
<code class="details" id="reportEvent">reportEvent(name, body=None, x__xgafv=None)</code>
613643
<pre>Report and process a runtime event.

googleapiclient/discovery_cache/documents/notebooks.v1.json

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,34 @@
13891389
"https://www.googleapis.com/auth/cloud-platform"
13901390
]
13911391
},
1392+
"refreshRuntimeTokenInternal": {
1393+
"description": "Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.",
1394+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/runtimes/{runtimesId}:refreshRuntimeTokenInternal",
1395+
"httpMethod": "POST",
1396+
"id": "notebooks.projects.locations.runtimes.refreshRuntimeTokenInternal",
1397+
"parameterOrder": [
1398+
"name"
1399+
],
1400+
"parameters": {
1401+
"name": {
1402+
"description": "Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`",
1403+
"location": "path",
1404+
"pattern": "^projects/[^/]+/locations/[^/]+/runtimes/[^/]+$",
1405+
"required": true,
1406+
"type": "string"
1407+
}
1408+
},
1409+
"path": "v1/{+name}:refreshRuntimeTokenInternal",
1410+
"request": {
1411+
"$ref": "RefreshRuntimeTokenInternalRequest"
1412+
},
1413+
"response": {
1414+
"$ref": "RefreshRuntimeTokenInternalResponse"
1415+
},
1416+
"scopes": [
1417+
"https://www.googleapis.com/auth/cloud-platform"
1418+
]
1419+
},
13921420
"reportEvent": {
13931421
"description": "Report and process a runtime event.",
13941422
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/runtimes/{runtimesId}:reportEvent",
@@ -1753,7 +1781,7 @@
17531781
}
17541782
}
17551783
},
1756-
"revision": "20220303",
1784+
"revision": "20220319",
17571785
"rootUrl": "https://notebooks.googleapis.com/",
17581786
"schemas": {
17591787
"AcceleratorConfig": {
@@ -1924,7 +1952,7 @@
19241952
"type": "object"
19251953
},
19261954
"Empty": {
1927-
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
1955+
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
19281956
"id": "Empty",
19291957
"properties": {},
19301958
"type": "object"
@@ -2956,6 +2984,34 @@
29562984
},
29572985
"type": "object"
29582986
},
2987+
"RefreshRuntimeTokenInternalRequest": {
2988+
"description": "Request for getting a new access token.",
2989+
"id": "RefreshRuntimeTokenInternalRequest",
2990+
"properties": {
2991+
"vmId": {
2992+
"description": "Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity",
2993+
"type": "string"
2994+
}
2995+
},
2996+
"type": "object"
2997+
},
2998+
"RefreshRuntimeTokenInternalResponse": {
2999+
"description": "Response with a new access token.",
3000+
"id": "RefreshRuntimeTokenInternalResponse",
3001+
"properties": {
3002+
"accessToken": {
3003+
"description": "The OAuth 2.0 access token.",
3004+
"type": "string"
3005+
},
3006+
"expireTime": {
3007+
"description": "Output only. Token expiration time.",
3008+
"format": "google-datetime",
3009+
"readOnly": true,
3010+
"type": "string"
3011+
}
3012+
},
3013+
"type": "object"
3014+
},
29593015
"RegisterInstanceRequest": {
29603016
"description": "Request for registering a notebook instance.",
29613017
"id": "RegisterInstanceRequest",

0 commit comments

Comments
 (0)