{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -83,6 +85,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ManagedNotebookServiceSettings managedNotebookServiceSettings =
* ManagedNotebookServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +98,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ManagedNotebookServiceSettings managedNotebookServiceSettings =
* ManagedNotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ManagedNotebookServiceClient managedNotebookServiceClient =
@@ -174,6 +180,8 @@ public final OperationsClient getOperationsClient() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -201,6 +209,8 @@ public final ListRuntimesPagedResponse listRuntimes(LocationName parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -225,6 +235,8 @@ public final ListRuntimesPagedResponse listRuntimes(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* ListRuntimesRequest request =
@@ -253,6 +265,8 @@ public final ListRuntimesPagedResponse listRuntimes(ListRuntimesRequest request)
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* ListRuntimesRequest request =
@@ -282,6 +296,8 @@ public final ListRuntimesPagedResponse listRuntimes(ListRuntimesRequest request)
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* ListRuntimesRequest request =
@@ -317,6 +333,8 @@ public final UnaryCallable listRuntim
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -341,6 +359,8 @@ public final Runtime getRuntime(RuntimeName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -364,6 +384,8 @@ public final Runtime getRuntime(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* GetRuntimeRequest request =
@@ -388,6 +410,8 @@ public final Runtime getRuntime(GetRuntimeRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* GetRuntimeRequest request =
@@ -412,6 +436,8 @@ public final UnaryCallable getRuntimeCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* RuntimeName parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -445,6 +471,8 @@ public final OperationFuture createRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -478,6 +506,8 @@ public final OperationFuture createRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* CreateRuntimeRequest request =
@@ -485,6 +515,7 @@ public final OperationFuture createRuntimeAsync(
* .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
* .setRuntimeId("runtimeId121455379")
* .setRuntime(Runtime.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
* Runtime response = managedNotebookServiceClient.createRuntimeAsync(request).get();
* }
@@ -505,6 +536,8 @@ public final OperationFuture createRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* CreateRuntimeRequest request =
@@ -512,6 +545,7 @@ public final OperationFuture createRuntimeAsync(
* .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
* .setRuntimeId("runtimeId121455379")
* .setRuntime(Runtime.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
* OperationFuture future =
* managedNotebookServiceClient.createRuntimeOperationCallable().futureCall(request);
@@ -532,6 +566,8 @@ public final OperationFuture createRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* CreateRuntimeRequest request =
@@ -539,6 +575,7 @@ public final OperationFuture createRuntimeAsync(
* .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
* .setRuntimeId("runtimeId121455379")
* .setRuntime(Runtime.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
* ApiFuture future =
* managedNotebookServiceClient.createRuntimeCallable().futureCall(request);
@@ -558,6 +595,8 @@ public final UnaryCallable createRuntimeCallabl
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -582,6 +621,8 @@ public final OperationFuture deleteRuntimeAsync(Runtim
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -605,11 +646,14 @@ public final OperationFuture deleteRuntimeAsync(String
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* DeleteRuntimeRequest request =
* DeleteRuntimeRequest.newBuilder()
* .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+ * .setRequestId("requestId693933066")
* .build();
* managedNotebookServiceClient.deleteRuntimeAsync(request).get();
* }
@@ -630,11 +674,14 @@ public final OperationFuture deleteRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* DeleteRuntimeRequest request =
* DeleteRuntimeRequest.newBuilder()
* .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+ * .setRequestId("requestId693933066")
* .build();
* OperationFuture future =
* managedNotebookServiceClient.deleteRuntimeOperationCallable().futureCall(request);
@@ -655,11 +702,14 @@ public final OperationFuture deleteRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* DeleteRuntimeRequest request =
* DeleteRuntimeRequest.newBuilder()
* .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+ * .setRequestId("requestId693933066")
* .build();
* ApiFuture future =
* managedNotebookServiceClient.deleteRuntimeCallable().futureCall(request);
@@ -681,6 +731,8 @@ public final UnaryCallable deleteRuntimeCallabl
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = "name3373707";
@@ -706,9 +758,15 @@ public final OperationFuture startRuntimeAsync(Strin
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * StartRuntimeRequest request = StartRuntimeRequest.newBuilder().setName("name3373707").build();
+ * StartRuntimeRequest request =
+ * StartRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* Runtime response = managedNotebookServiceClient.startRuntimeAsync(request).get();
* }
* }
@@ -730,9 +788,15 @@ public final OperationFuture startRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * StartRuntimeRequest request = StartRuntimeRequest.newBuilder().setName("name3373707").build();
+ * StartRuntimeRequest request =
+ * StartRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* OperationFuture future =
* managedNotebookServiceClient.startRuntimeOperationCallable().futureCall(request);
* // Do something.
@@ -754,9 +818,15 @@ public final OperationFuture startRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * StartRuntimeRequest request = StartRuntimeRequest.newBuilder().setName("name3373707").build();
+ * StartRuntimeRequest request =
+ * StartRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* ApiFuture future =
* managedNotebookServiceClient.startRuntimeCallable().futureCall(request);
* // Do something.
@@ -777,6 +847,8 @@ public final UnaryCallable startRuntimeCallable(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = "name3373707";
@@ -802,9 +874,15 @@ public final OperationFuture stopRuntimeAsync(String
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * StopRuntimeRequest request = StopRuntimeRequest.newBuilder().setName("name3373707").build();
+ * StopRuntimeRequest request =
+ * StopRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* Runtime response = managedNotebookServiceClient.stopRuntimeAsync(request).get();
* }
* }
@@ -826,9 +904,15 @@ public final OperationFuture stopRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * StopRuntimeRequest request = StopRuntimeRequest.newBuilder().setName("name3373707").build();
+ * StopRuntimeRequest request =
+ * StopRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* OperationFuture future =
* managedNotebookServiceClient.stopRuntimeOperationCallable().futureCall(request);
* // Do something.
@@ -850,9 +934,15 @@ public final OperationFuture stopRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * StopRuntimeRequest request = StopRuntimeRequest.newBuilder().setName("name3373707").build();
+ * StopRuntimeRequest request =
+ * StopRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* ApiFuture future =
* managedNotebookServiceClient.stopRuntimeCallable().futureCall(request);
* // Do something.
@@ -871,6 +961,8 @@ public final UnaryCallable stopRuntimeCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = "name3373707";
@@ -894,6 +986,8 @@ public final OperationFuture switchRuntimeAsync(Stri
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* SwitchRuntimeRequest request =
@@ -901,6 +995,7 @@ public final OperationFuture switchRuntimeAsync(Stri
* .setName("name3373707")
* .setMachineType("machineType-218117087")
* .setAcceleratorConfig(RuntimeAcceleratorConfig.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
* Runtime response = managedNotebookServiceClient.switchRuntimeAsync(request).get();
* }
@@ -921,6 +1016,8 @@ public final OperationFuture switchRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* SwitchRuntimeRequest request =
@@ -928,6 +1025,7 @@ public final OperationFuture switchRuntimeAsync(
* .setName("name3373707")
* .setMachineType("machineType-218117087")
* .setAcceleratorConfig(RuntimeAcceleratorConfig.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
* OperationFuture future =
* managedNotebookServiceClient.switchRuntimeOperationCallable().futureCall(request);
@@ -948,6 +1046,8 @@ public final OperationFuture switchRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* SwitchRuntimeRequest request =
@@ -955,6 +1055,7 @@ public final OperationFuture switchRuntimeAsync(
* .setName("name3373707")
* .setMachineType("machineType-218117087")
* .setAcceleratorConfig(RuntimeAcceleratorConfig.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
* ApiFuture future =
* managedNotebookServiceClient.switchRuntimeCallable().futureCall(request);
@@ -974,6 +1075,8 @@ public final UnaryCallable switchRuntimeCallabl
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = "name3373707";
@@ -997,9 +1100,15 @@ public final OperationFuture resetRuntimeAsync(Strin
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * ResetRuntimeRequest request = ResetRuntimeRequest.newBuilder().setName("name3373707").build();
+ * ResetRuntimeRequest request =
+ * ResetRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* Runtime response = managedNotebookServiceClient.resetRuntimeAsync(request).get();
* }
* }
@@ -1019,9 +1128,15 @@ public final OperationFuture resetRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * ResetRuntimeRequest request = ResetRuntimeRequest.newBuilder().setName("name3373707").build();
+ * ResetRuntimeRequest request =
+ * ResetRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* OperationFuture future =
* managedNotebookServiceClient.resetRuntimeOperationCallable().futureCall(request);
* // Do something.
@@ -1041,9 +1156,15 @@ public final OperationFuture resetRuntimeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
- * ResetRuntimeRequest request = ResetRuntimeRequest.newBuilder().setName("name3373707").build();
+ * ResetRuntimeRequest request =
+ * ResetRuntimeRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .build();
* ApiFuture future =
* managedNotebookServiceClient.resetRuntimeCallable().futureCall(request);
* // Do something.
@@ -1062,6 +1183,8 @@ public final UnaryCallable resetRuntimeCallable(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -1089,6 +1212,8 @@ public final OperationFuture reportRuntimeEventAsync
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -1113,6 +1238,8 @@ public final OperationFuture reportRuntimeEventAsync
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* ReportRuntimeEventRequest request =
@@ -1140,6 +1267,8 @@ public final OperationFuture reportRuntimeEventAsync
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* ReportRuntimeEventRequest request =
@@ -1167,6 +1296,8 @@ public final OperationFuture reportRuntimeEventAsync
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ManagedNotebookServiceClient managedNotebookServiceClient =
* ManagedNotebookServiceClient.create()) {
* ReportRuntimeEventRequest request =
@@ -1186,6 +1317,133 @@ public final UnaryCallable reportRuntimeEv
return stub.reportRuntimeEventCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an access token for the consumer service account that the customer attached to the
+ * runtime. Only accessible from the tenant instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ManagedNotebookServiceClient managedNotebookServiceClient =
+ * ManagedNotebookServiceClient.create()) {
+ * RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
+ * String vmId = "vmId3622450";
+ * RefreshRuntimeTokenInternalResponse response =
+ * managedNotebookServiceClient.refreshRuntimeTokenInternal(name, vmId);
+ * }
+ * }
+ *
+ * @param name Required. Format:
+ * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
+ * @param vmId Required. The VM hardware token for authenticating the VM.
+ * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(
+ RuntimeName name, String vmId) {
+ RefreshRuntimeTokenInternalRequest request =
+ RefreshRuntimeTokenInternalRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setVmId(vmId)
+ .build();
+ return refreshRuntimeTokenInternal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an access token for the consumer service account that the customer attached to the
+ * runtime. Only accessible from the tenant instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ManagedNotebookServiceClient managedNotebookServiceClient =
+ * ManagedNotebookServiceClient.create()) {
+ * String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
+ * String vmId = "vmId3622450";
+ * RefreshRuntimeTokenInternalResponse response =
+ * managedNotebookServiceClient.refreshRuntimeTokenInternal(name, vmId);
+ * }
+ * }
+ *
+ * @param name Required. Format:
+ * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
+ * @param vmId Required. The VM hardware token for authenticating the VM.
+ * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(
+ String name, String vmId) {
+ RefreshRuntimeTokenInternalRequest request =
+ RefreshRuntimeTokenInternalRequest.newBuilder().setName(name).setVmId(vmId).build();
+ return refreshRuntimeTokenInternal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an access token for the consumer service account that the customer attached to the
+ * runtime. Only accessible from the tenant instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ManagedNotebookServiceClient managedNotebookServiceClient =
+ * ManagedNotebookServiceClient.create()) {
+ * RefreshRuntimeTokenInternalRequest request =
+ * RefreshRuntimeTokenInternalRequest.newBuilder()
+ * .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+ * .setVmId("vmId3622450")
+ * .build();
+ * RefreshRuntimeTokenInternalResponse response =
+ * managedNotebookServiceClient.refreshRuntimeTokenInternal(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(
+ RefreshRuntimeTokenInternalRequest request) {
+ return refreshRuntimeTokenInternalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an access token for the consumer service account that the customer attached to the
+ * runtime. Only accessible from the tenant instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ManagedNotebookServiceClient managedNotebookServiceClient =
+ * ManagedNotebookServiceClient.create()) {
+ * RefreshRuntimeTokenInternalRequest request =
+ * RefreshRuntimeTokenInternalRequest.newBuilder()
+ * .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+ * .setVmId("vmId3622450")
+ * .build();
+ * ApiFuture future =
+ * managedNotebookServiceClient.refreshRuntimeTokenInternalCallable().futureCall(request);
+ * // Do something.
+ * RefreshRuntimeTokenInternalResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ RefreshRuntimeTokenInternalRequest, RefreshRuntimeTokenInternalResponse>
+ refreshRuntimeTokenInternalCallable() {
+ return stub.refreshRuntimeTokenInternalCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java
index ead95ccc..878b57d6 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -55,6 +55,8 @@
* For example, to set the total timeout of getRuntime to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ManagedNotebookServiceSettings.Builder managedNotebookServiceSettingsBuilder =
* ManagedNotebookServiceSettings.newBuilder();
* managedNotebookServiceSettingsBuilder
@@ -165,6 +167,13 @@ public UnaryCallSettings reportRuntimeEven
.reportRuntimeEventOperationSettings();
}
+ /** Returns the object with the settings used for calls to refreshRuntimeTokenInternal. */
+ public UnaryCallSettings
+ refreshRuntimeTokenInternalSettings() {
+ return ((ManagedNotebookServiceStubSettings) getStubSettings())
+ .refreshRuntimeTokenInternalSettings();
+ }
+
public static final ManagedNotebookServiceSettings create(ManagedNotebookServiceStubSettings stub)
throws IOException {
return new ManagedNotebookServiceSettings.Builder(stub.toBuilder()).build();
@@ -353,6 +362,13 @@ public UnaryCallSettings.Builder resetRuntimeSet
return getStubSettingsBuilder().reportRuntimeEventOperationSettings();
}
+ /** Returns the builder for the settings used for calls to refreshRuntimeTokenInternal. */
+ public UnaryCallSettings.Builder<
+ RefreshRuntimeTokenInternalRequest, RefreshRuntimeTokenInternalResponse>
+ refreshRuntimeTokenInternalSettings() {
+ return getStubSettingsBuilder().refreshRuntimeTokenInternalSettings();
+ }
+
@Override
public ManagedNotebookServiceSettings build() throws IOException {
return new ManagedNotebookServiceSettings(this);
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java
index 247ff84e..748ca5e3 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,6 +46,8 @@
* calls that map to API methods. Sample code to get started:
*
* {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = "name3373707";
* Instance response = notebookServiceClient.getInstance(name);
@@ -82,6 +84,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* NotebookServiceSettings notebookServiceSettings =
* NotebookServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,6 +97,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* NotebookServiceSettings notebookServiceSettings =
* NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* NotebookServiceClient notebookServiceClient =
@@ -172,6 +178,8 @@ public final OperationsClient getOperationsClient() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String parent = "parent-995424086";
* for (Instance element : notebookServiceClient.listInstances(parent).iterateAll()) {
@@ -195,6 +203,8 @@ public final ListInstancesPagedResponse listInstances(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListInstancesRequest request =
* ListInstancesRequest.newBuilder()
@@ -222,6 +232,8 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListInstancesRequest request =
* ListInstancesRequest.newBuilder()
@@ -250,6 +262,8 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListInstancesRequest request =
* ListInstancesRequest.newBuilder()
@@ -284,6 +298,8 @@ public final UnaryCallable listInst
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = "name3373707";
* Instance response = notebookServiceClient.getInstance(name);
@@ -306,6 +322,8 @@ public final Instance getInstance(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
* Instance response = notebookServiceClient.getInstance(request);
@@ -326,6 +344,8 @@ public final Instance getInstance(GetInstanceRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
* ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request);
@@ -345,6 +365,8 @@ public final UnaryCallable getInstanceCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String parent = "parent-995424086";
* Instance instance = Instance.newBuilder().build();
@@ -377,6 +399,8 @@ public final OperationFuture createInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* CreateInstanceRequest request =
* CreateInstanceRequest.newBuilder()
@@ -403,6 +427,8 @@ public final OperationFuture createInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* CreateInstanceRequest request =
* CreateInstanceRequest.newBuilder()
@@ -429,6 +455,8 @@ public final OperationFuture createInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* CreateInstanceRequest request =
* CreateInstanceRequest.newBuilder()
@@ -456,6 +484,8 @@ public final UnaryCallable createInstanceCalla
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* RegisterInstanceRequest request =
* RegisterInstanceRequest.newBuilder()
@@ -483,6 +513,8 @@ public final OperationFuture registerInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* RegisterInstanceRequest request =
* RegisterInstanceRequest.newBuilder()
@@ -510,6 +542,8 @@ public final OperationFuture registerInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* RegisterInstanceRequest request =
* RegisterInstanceRequest.newBuilder()
@@ -534,6 +568,8 @@ public final UnaryCallable registerInstanceC
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceAcceleratorRequest request =
* SetInstanceAcceleratorRequest.newBuilder()
@@ -559,6 +595,8 @@ public final OperationFuture setInstanceAccelerator
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceAcceleratorRequest request =
* SetInstanceAcceleratorRequest.newBuilder()
@@ -584,6 +622,8 @@ public final OperationFuture setInstanceAccelerator
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceAcceleratorRequest request =
* SetInstanceAcceleratorRequest.newBuilder()
@@ -609,6 +649,8 @@ public final OperationFuture setInstanceAccelerator
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceMachineTypeRequest request =
* SetInstanceMachineTypeRequest.newBuilder()
@@ -634,6 +676,8 @@ public final OperationFuture setInstanceMachineType
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceMachineTypeRequest request =
* SetInstanceMachineTypeRequest.newBuilder()
@@ -659,6 +703,8 @@ public final OperationFuture setInstanceMachineType
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceMachineTypeRequest request =
* SetInstanceMachineTypeRequest.newBuilder()
@@ -684,6 +730,8 @@ public final OperationFuture setInstanceMachineType
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateInstanceConfigRequest request =
* UpdateInstanceConfigRequest.newBuilder()
@@ -709,6 +757,8 @@ public final OperationFuture updateInstanceConfigAs
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateInstanceConfigRequest request =
* UpdateInstanceConfigRequest.newBuilder()
@@ -734,6 +784,8 @@ public final OperationFuture updateInstanceConfigAs
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateInstanceConfigRequest request =
* UpdateInstanceConfigRequest.newBuilder()
@@ -759,6 +811,8 @@ public final OperationFuture updateInstanceConfigAs
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateShieldedInstanceConfigRequest request =
* UpdateShieldedInstanceConfigRequest.newBuilder()
@@ -784,6 +838,8 @@ public final OperationFuture updateShieldedInstance
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateShieldedInstanceConfigRequest request =
* UpdateShieldedInstanceConfigRequest.newBuilder()
@@ -809,6 +865,8 @@ public final OperationFuture updateShieldedInstance
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateShieldedInstanceConfigRequest request =
* UpdateShieldedInstanceConfigRequest.newBuilder()
@@ -834,6 +892,8 @@ public final OperationFuture updateShieldedInstance
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceLabelsRequest request =
* SetInstanceLabelsRequest.newBuilder()
@@ -859,6 +919,8 @@ public final OperationFuture setInstanceLabelsAsync
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceLabelsRequest request =
* SetInstanceLabelsRequest.newBuilder()
@@ -884,6 +946,8 @@ public final OperationFuture setInstanceLabelsAsync
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* SetInstanceLabelsRequest request =
* SetInstanceLabelsRequest.newBuilder()
@@ -901,6 +965,62 @@ public final UnaryCallable setInstanceLabel
return stub.setInstanceLabelsCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Add/update metadata items for an instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * UpdateInstanceMetadataItemsRequest request =
+ * UpdateInstanceMetadataItemsRequest.newBuilder()
+ * .setName("name3373707")
+ * .putAllItems(new HashMap())
+ * .build();
+ * UpdateInstanceMetadataItemsResponse response =
+ * notebookServiceClient.updateInstanceMetadataItems(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UpdateInstanceMetadataItemsResponse updateInstanceMetadataItems(
+ UpdateInstanceMetadataItemsRequest request) {
+ return updateInstanceMetadataItemsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Add/update metadata items for an instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ * UpdateInstanceMetadataItemsRequest request =
+ * UpdateInstanceMetadataItemsRequest.newBuilder()
+ * .setName("name3373707")
+ * .putAllItems(new HashMap())
+ * .build();
+ * ApiFuture future =
+ * notebookServiceClient.updateInstanceMetadataItemsCallable().futureCall(request);
+ * // Do something.
+ * UpdateInstanceMetadataItemsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ UpdateInstanceMetadataItemsRequest, UpdateInstanceMetadataItemsResponse>
+ updateInstanceMetadataItemsCallable() {
+ return stub.updateInstanceMetadataItemsCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a single Instance.
@@ -908,6 +1028,8 @@ public final UnaryCallable setInstanceLabel
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = "name3373707";
* notebookServiceClient.deleteInstanceAsync(name).get();
@@ -930,6 +1052,8 @@ public final OperationFuture deleteInstanceAsync(Strin
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* DeleteInstanceRequest request =
* DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -952,6 +1076,8 @@ public final OperationFuture deleteInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* DeleteInstanceRequest request =
* DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -974,6 +1100,8 @@ public final OperationFuture deleteInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* DeleteInstanceRequest request =
* DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -995,6 +1123,8 @@ public final UnaryCallable deleteInstanceCalla
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* StartInstanceRequest request =
* StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1017,6 +1147,8 @@ public final OperationFuture startInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* StartInstanceRequest request =
* StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1039,6 +1171,8 @@ public final OperationFuture startInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* StartInstanceRequest request =
* StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1060,6 +1194,8 @@ public final UnaryCallable startInstanceCallabl
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
* Instance response = notebookServiceClient.stopInstanceAsync(request).get();
@@ -1081,6 +1217,8 @@ public final OperationFuture stopInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
* OperationFuture future =
@@ -1102,6 +1240,8 @@ public final OperationFuture stopInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
* ApiFuture future =
@@ -1122,6 +1262,8 @@ public final UnaryCallable stopInstanceCallable(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ResetInstanceRequest request =
* ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1144,6 +1286,8 @@ public final OperationFuture resetInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ResetInstanceRequest request =
* ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1166,6 +1310,8 @@ public final OperationFuture resetInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ResetInstanceRequest request =
* ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1189,6 +1335,8 @@ public final UnaryCallable resetInstanceCallabl
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ReportInstanceInfoRequest request =
* ReportInstanceInfoRequest.newBuilder()
@@ -1217,6 +1365,8 @@ public final OperationFuture reportInstanceInfoAsyn
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ReportInstanceInfoRequest request =
* ReportInstanceInfoRequest.newBuilder()
@@ -1245,6 +1395,8 @@ public final OperationFuture reportInstanceInfoAsyn
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ReportInstanceInfoRequest request =
* ReportInstanceInfoRequest.newBuilder()
@@ -1270,10 +1422,13 @@ public final UnaryCallable reportInstanceI
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* IsInstanceUpgradeableRequest request =
* IsInstanceUpgradeableRequest.newBuilder()
* .setNotebookInstance("notebookInstance-544239728")
+ * .setType(UpgradeType.forNumber(0))
* .build();
* IsInstanceUpgradeableResponse response = notebookServiceClient.isInstanceUpgradeable(request);
* }
@@ -1294,10 +1449,13 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* IsInstanceUpgradeableRequest request =
* IsInstanceUpgradeableRequest.newBuilder()
* .setNotebookInstance("notebookInstance-544239728")
+ * .setType(UpgradeType.forNumber(0))
* .build();
* ApiFuture future =
* notebookServiceClient.isInstanceUpgradeableCallable().futureCall(request);
@@ -1318,6 +1476,8 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]");
* GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name);
@@ -1343,6 +1503,8 @@ public final GetInstanceHealthResponse getInstanceHealth(InstanceName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
* GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name);
@@ -1365,6 +1527,8 @@ public final GetInstanceHealthResponse getInstanceHealth(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetInstanceHealthRequest request =
* GetInstanceHealthRequest.newBuilder()
@@ -1388,6 +1552,8 @@ public final GetInstanceHealthResponse getInstanceHealth(GetInstanceHealthReques
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetInstanceHealthRequest request =
* GetInstanceHealthRequest.newBuilder()
@@ -1412,9 +1578,14 @@ public final GetInstanceHealthResponse getInstanceHealth(GetInstanceHealthReques
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpgradeInstanceRequest request =
- * UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
+ * UpgradeInstanceRequest.newBuilder()
+ * .setName("name3373707")
+ * .setType(UpgradeType.forNumber(0))
+ * .build();
* Instance response = notebookServiceClient.upgradeInstanceAsync(request).get();
* }
* }
@@ -1434,9 +1605,14 @@ public final OperationFuture upgradeInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpgradeInstanceRequest request =
- * UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
+ * UpgradeInstanceRequest.newBuilder()
+ * .setName("name3373707")
+ * .setType(UpgradeType.forNumber(0))
+ * .build();
* OperationFuture future =
* notebookServiceClient.upgradeInstanceOperationCallable().futureCall(request);
* // Do something.
@@ -1456,9 +1632,14 @@ public final OperationFuture upgradeInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpgradeInstanceRequest request =
- * UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
+ * UpgradeInstanceRequest.newBuilder()
+ * .setName("name3373707")
+ * .setType(UpgradeType.forNumber(0))
+ * .build();
* ApiFuture future =
* notebookServiceClient.upgradeInstanceCallable().futureCall(request);
* // Do something.
@@ -1477,6 +1658,8 @@ public final UnaryCallable upgradeInstanceCal
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* RollbackInstanceRequest request =
* RollbackInstanceRequest.newBuilder()
@@ -1502,6 +1685,8 @@ public final OperationFuture rollbackInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* RollbackInstanceRequest request =
* RollbackInstanceRequest.newBuilder()
@@ -1527,6 +1712,8 @@ public final OperationFuture rollbackInstanceAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* RollbackInstanceRequest request =
* RollbackInstanceRequest.newBuilder()
@@ -1552,11 +1739,14 @@ public final UnaryCallable rollbackInstanceC
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpgradeInstanceInternalRequest request =
* UpgradeInstanceInternalRequest.newBuilder()
* .setName("name3373707")
* .setVmId("vmId3622450")
+ * .setType(UpgradeType.forNumber(0))
* .build();
* Instance response = notebookServiceClient.upgradeInstanceInternalAsync(request).get();
* }
@@ -1578,11 +1768,14 @@ public final OperationFuture upgradeInstanceInterna
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpgradeInstanceInternalRequest request =
* UpgradeInstanceInternalRequest.newBuilder()
* .setName("name3373707")
* .setVmId("vmId3622450")
+ * .setType(UpgradeType.forNumber(0))
* .build();
* OperationFuture future =
* notebookServiceClient.upgradeInstanceInternalOperationCallable().futureCall(request);
@@ -1604,11 +1797,14 @@ public final OperationFuture upgradeInstanceInterna
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpgradeInstanceInternalRequest request =
* UpgradeInstanceInternalRequest.newBuilder()
* .setName("name3373707")
* .setVmId("vmId3622450")
+ * .setType(UpgradeType.forNumber(0))
* .build();
* ApiFuture future =
* notebookServiceClient.upgradeInstanceInternalCallable().futureCall(request);
@@ -1629,6 +1825,8 @@ public final OperationFuture upgradeInstanceInterna
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String parent = "parent-995424086";
* for (Environment element : notebookServiceClient.listEnvironments(parent).iterateAll()) {
@@ -1653,6 +1851,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListEnvironmentsRequest request =
* ListEnvironmentsRequest.newBuilder()
@@ -1680,6 +1880,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListEnvironmentsRequest request =
* ListEnvironmentsRequest.newBuilder()
@@ -1708,6 +1910,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListEnvironmentsRequest request =
* ListEnvironmentsRequest.newBuilder()
@@ -1743,6 +1947,8 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = "name3373707";
* Environment response = notebookServiceClient.getEnvironment(name);
@@ -1765,6 +1971,8 @@ public final Environment getEnvironment(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetEnvironmentRequest request =
* GetEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1786,6 +1994,8 @@ public final Environment getEnvironment(GetEnvironmentRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetEnvironmentRequest request =
* GetEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1807,6 +2017,8 @@ public final UnaryCallable getEnvironmentCal
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String parent = "parent-995424086";
* Environment environment = Environment.newBuilder().build();
@@ -1842,6 +2054,8 @@ public final OperationFuture createEnvironmentAs
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* CreateEnvironmentRequest request =
* CreateEnvironmentRequest.newBuilder()
@@ -1868,6 +2082,8 @@ public final OperationFuture createEnvironmentAs
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* CreateEnvironmentRequest request =
* CreateEnvironmentRequest.newBuilder()
@@ -1894,6 +2110,8 @@ public final OperationFuture createEnvironmentAs
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* CreateEnvironmentRequest request =
* CreateEnvironmentRequest.newBuilder()
@@ -1919,6 +2137,8 @@ public final UnaryCallable createEnvironmen
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = "name3373707";
* notebookServiceClient.deleteEnvironmentAsync(name).get();
@@ -1941,6 +2161,8 @@ public final OperationFuture deleteEnvironmentAsync(St
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* DeleteEnvironmentRequest request =
* DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1963,6 +2185,8 @@ public final OperationFuture deleteEnvironmentAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* DeleteEnvironmentRequest request =
* DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1985,6 +2209,8 @@ public final OperationFuture deleteEnvironmentAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* DeleteEnvironmentRequest request =
* DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -2006,6 +2232,8 @@ public final UnaryCallable deleteEnvironmen
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
* for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) {
@@ -2032,6 +2260,8 @@ public final ListSchedulesPagedResponse listSchedules(ScheduleName parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
* for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) {
@@ -2055,6 +2285,8 @@ public final ListSchedulesPagedResponse listSchedules(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListSchedulesRequest request =
* ListSchedulesRequest.newBuilder()
@@ -2084,6 +2316,8 @@ public final ListSchedulesPagedResponse listSchedules(ListSchedulesRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListSchedulesRequest request =
* ListSchedulesRequest.newBuilder()
@@ -2114,6 +2348,8 @@ public final ListSchedulesPagedResponse listSchedules(ListSchedulesRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ListSchedulesRequest request =
* ListSchedulesRequest.newBuilder()
@@ -2150,6 +2386,8 @@ public final UnaryCallable listSche
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
* Schedule response = notebookServiceClient.getSchedule(name);
@@ -2173,6 +2411,8 @@ public final Schedule getSchedule(ScheduleName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
* Schedule response = notebookServiceClient.getSchedule(name);
@@ -2195,6 +2435,8 @@ public final Schedule getSchedule(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetScheduleRequest request =
* GetScheduleRequest.newBuilder()
@@ -2218,6 +2460,8 @@ public final Schedule getSchedule(GetScheduleRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* GetScheduleRequest request =
* GetScheduleRequest.newBuilder()
@@ -2240,6 +2484,8 @@ public final UnaryCallable getScheduleCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
* notebookServiceClient.deleteScheduleAsync(name).get();
@@ -2263,6 +2509,8 @@ public final OperationFuture deleteScheduleAsync(Sched
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
* notebookServiceClient.deleteScheduleAsync(name).get();
@@ -2285,6 +2533,8 @@ public final OperationFuture