Skip to content

Commit cf52714

Browse files
feat: [compute] Update Compute Engine API to revision 20240130 (#881) (#10349)
* feat: Update Compute Engine API to revision 20240130 (#881) Source-Link: googleapis/googleapis@6953fd7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ba472f79245e420049c60f0c324e44578f272a3 Copy-Tag: eyJwIjoiamF2YS1jb21wdXRlLy5Pd2xCb3QueWFtbCIsImgiOiI1YmE0NzJmNzkyNDVlNDIwMDQ5YzYwZjBjMzI0ZTQ0NTc4ZjI3MmEzIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e4ba42c commit cf52714

File tree

239 files changed

+40992
-18607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+40992
-18607
lines changed

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ public final UnaryCallable<PatchBackendBucketRequest, Operation> patchCallable()
13941394
* }</pre>
13951395
*
13961396
* @param project Project ID for this request.
1397-
* @param backendBucket Name of the BackendService resource to which the security policy should be
1397+
* @param backendBucket Name of the BackendBucket resource to which the security policy should be
13981398
* set. The name should conform to RFC1035.
13991399
* @param securityPolicyReferenceResource The body resource for this request
14001400
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
* </tr>
281281
* <tr>
282282
* <td><p> ListManagedInstances</td>
283-
* <td><p> Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.</td>
283+
* <td><p> Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.</td>
284284
* <td>
285285
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
286286
* <ul>
@@ -2339,9 +2339,8 @@ public final ListErrorsPagedResponse listErrors(ListErrorsInstanceGroupManagersR
23392339
* currentAction, which indicates the action that the managed instance group is performing on the
23402340
* instance. For example, if the group is still creating an instance, the currentAction is
23412341
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
2342-
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
2343-
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2344-
* `PAGINATED`.
2342+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only if
2343+
* the group's `listManagedInstancesResults` field is set to `PAGINATED`.
23452344
*
23462345
* <p>Sample code:
23472346
*
@@ -2387,9 +2386,8 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
23872386
* currentAction, which indicates the action that the managed instance group is performing on the
23882387
* instance. For example, if the group is still creating an instance, the currentAction is
23892388
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
2390-
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
2391-
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2392-
* `PAGINATED`.
2389+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only if
2390+
* the group's `listManagedInstancesResults` field is set to `PAGINATED`.
23932391
*
23942392
* <p>Sample code:
23952393
*
@@ -2433,9 +2431,8 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
24332431
* currentAction, which indicates the action that the managed instance group is performing on the
24342432
* instance. For example, if the group is still creating an instance, the currentAction is
24352433
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
2436-
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
2437-
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2438-
* `PAGINATED`.
2434+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only if
2435+
* the group's `listManagedInstancesResults` field is set to `PAGINATED`.
24392436
*
24402437
* <p>Sample code:
24412438
*
@@ -2479,9 +2476,8 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
24792476
* currentAction, which indicates the action that the managed instance group is performing on the
24802477
* instance. For example, if the group is still creating an instance, the currentAction is
24812478
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
2482-
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
2483-
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2484-
* `PAGINATED`.
2479+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only if
2480+
* the group's `listManagedInstancesResults` field is set to `PAGINATED`.
24852481
*
24862482
* <p>Sample code:
24872483
*

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesClient.java

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,25 @@
403403
* </td>
404404
* </tr>
405405
* <tr>
406+
* <td><p> PerformMaintenance</td>
407+
* <td><p> Perform a manual maintenance on the instance.</td>
408+
* <td>
409+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
410+
* <ul>
411+
* <li><p> performMaintenanceAsync(PerformMaintenanceInstanceRequest request)
412+
* </ul>
413+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
414+
* <ul>
415+
* <li><p> performMaintenanceAsync(String project, String zone, String instance)
416+
* </ul>
417+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
418+
* <ul>
419+
* <li><p> performMaintenanceOperationCallable()
420+
* <li><p> performMaintenanceCallable()
421+
* </ul>
422+
* </td>
423+
* </tr>
424+
* <tr>
406425
* <td><p> RemoveResourcePolicies</td>
407426
* <td><p> Removes resource policies from an instance.</td>
408427
* <td>
@@ -3355,6 +3374,140 @@ public final ListReferrersPagedResponse listReferrers(ListReferrersInstancesRequ
33553374
return stub.listReferrersCallable();
33563375
}
33573376

3377+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3378+
/**
3379+
* Perform a manual maintenance on the instance.
3380+
*
3381+
* <p>Sample code:
3382+
*
3383+
* <pre>{@code
3384+
* // This snippet has been automatically generated and should be regarded as a code template only.
3385+
* // It will require modifications to work:
3386+
* // - It may require correct/in-range values for request initialization.
3387+
* // - It may require specifying regional endpoints when creating the service client as shown in
3388+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3389+
* try (InstancesClient instancesClient = InstancesClient.create()) {
3390+
* String project = "project-309310695";
3391+
* String zone = "zone3744684";
3392+
* String instance = "instance555127957";
3393+
* Operation response = instancesClient.performMaintenanceAsync(project, zone, instance).get();
3394+
* }
3395+
* }</pre>
3396+
*
3397+
* @param project Project ID for this request.
3398+
* @param zone The name of the zone for this request.
3399+
* @param instance Name of the instance scoping this request.
3400+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3401+
*/
3402+
public final OperationFuture<Operation, Operation> performMaintenanceAsync(
3403+
String project, String zone, String instance) {
3404+
PerformMaintenanceInstanceRequest request =
3405+
PerformMaintenanceInstanceRequest.newBuilder()
3406+
.setProject(project)
3407+
.setZone(zone)
3408+
.setInstance(instance)
3409+
.build();
3410+
return performMaintenanceAsync(request);
3411+
}
3412+
3413+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3414+
/**
3415+
* Perform a manual maintenance on the instance.
3416+
*
3417+
* <p>Sample code:
3418+
*
3419+
* <pre>{@code
3420+
* // This snippet has been automatically generated and should be regarded as a code template only.
3421+
* // It will require modifications to work:
3422+
* // - It may require correct/in-range values for request initialization.
3423+
* // - It may require specifying regional endpoints when creating the service client as shown in
3424+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3425+
* try (InstancesClient instancesClient = InstancesClient.create()) {
3426+
* PerformMaintenanceInstanceRequest request =
3427+
* PerformMaintenanceInstanceRequest.newBuilder()
3428+
* .setInstance("instance555127957")
3429+
* .setProject("project-309310695")
3430+
* .setRequestId("requestId693933066")
3431+
* .setZone("zone3744684")
3432+
* .build();
3433+
* Operation response = instancesClient.performMaintenanceAsync(request).get();
3434+
* }
3435+
* }</pre>
3436+
*
3437+
* @param request The request object containing all of the parameters for the API call.
3438+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3439+
*/
3440+
@BetaApi(
3441+
"The surface for long-running operations is not stable yet and may change in the future.")
3442+
public final OperationFuture<Operation, Operation> performMaintenanceAsync(
3443+
PerformMaintenanceInstanceRequest request) {
3444+
return performMaintenanceOperationCallable().futureCall(request);
3445+
}
3446+
3447+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3448+
/**
3449+
* Perform a manual maintenance on the instance.
3450+
*
3451+
* <p>Sample code:
3452+
*
3453+
* <pre>{@code
3454+
* // This snippet has been automatically generated and should be regarded as a code template only.
3455+
* // It will require modifications to work:
3456+
* // - It may require correct/in-range values for request initialization.
3457+
* // - It may require specifying regional endpoints when creating the service client as shown in
3458+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3459+
* try (InstancesClient instancesClient = InstancesClient.create()) {
3460+
* PerformMaintenanceInstanceRequest request =
3461+
* PerformMaintenanceInstanceRequest.newBuilder()
3462+
* .setInstance("instance555127957")
3463+
* .setProject("project-309310695")
3464+
* .setRequestId("requestId693933066")
3465+
* .setZone("zone3744684")
3466+
* .build();
3467+
* OperationFuture<Operation, Operation> future =
3468+
* instancesClient.performMaintenanceOperationCallable().futureCall(request);
3469+
* // Do something.
3470+
* Operation response = future.get();
3471+
* }
3472+
* }</pre>
3473+
*/
3474+
public final OperationCallable<PerformMaintenanceInstanceRequest, Operation, Operation>
3475+
performMaintenanceOperationCallable() {
3476+
return stub.performMaintenanceOperationCallable();
3477+
}
3478+
3479+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3480+
/**
3481+
* Perform a manual maintenance on the instance.
3482+
*
3483+
* <p>Sample code:
3484+
*
3485+
* <pre>{@code
3486+
* // This snippet has been automatically generated and should be regarded as a code template only.
3487+
* // It will require modifications to work:
3488+
* // - It may require correct/in-range values for request initialization.
3489+
* // - It may require specifying regional endpoints when creating the service client as shown in
3490+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3491+
* try (InstancesClient instancesClient = InstancesClient.create()) {
3492+
* PerformMaintenanceInstanceRequest request =
3493+
* PerformMaintenanceInstanceRequest.newBuilder()
3494+
* .setInstance("instance555127957")
3495+
* .setProject("project-309310695")
3496+
* .setRequestId("requestId693933066")
3497+
* .setZone("zone3744684")
3498+
* .build();
3499+
* ApiFuture<Operation> future =
3500+
* instancesClient.performMaintenanceCallable().futureCall(request);
3501+
* // Do something.
3502+
* Operation response = future.get();
3503+
* }
3504+
* }</pre>
3505+
*/
3506+
public final UnaryCallable<PerformMaintenanceInstanceRequest, Operation>
3507+
performMaintenanceCallable() {
3508+
return stub.performMaintenanceCallable();
3509+
}
3510+
33583511
// AUTO-GENERATED DOCUMENTATION AND METHOD.
33593512
/**
33603513
* Removes resource policies from an instance.
@@ -5970,6 +6123,7 @@ public final OperationFuture<Operation, Operation> simulateMaintenanceEventAsync
59706123
* .setInstance("instance555127957")
59716124
* .setProject("project-309310695")
59726125
* .setRequestId("requestId693933066")
6126+
* .setWithExtendedNotifications(true)
59736127
* .setZone("zone3744684")
59746128
* .build();
59756129
* Operation response = instancesClient.simulateMaintenanceEventAsync(request).get();
@@ -6005,6 +6159,7 @@ public final OperationFuture<Operation, Operation> simulateMaintenanceEventAsync
60056159
* .setInstance("instance555127957")
60066160
* .setProject("project-309310695")
60076161
* .setRequestId("requestId693933066")
6162+
* .setWithExtendedNotifications(true)
60086163
* .setZone("zone3744684")
60096164
* .build();
60106165
* OperationFuture<Operation, Operation> future =
@@ -6038,6 +6193,7 @@ public final OperationFuture<Operation, Operation> simulateMaintenanceEventAsync
60386193
* .setInstance("instance555127957")
60396194
* .setProject("project-309310695")
60406195
* .setRequestId("requestId693933066")
6196+
* .setWithExtendedNotifications(true)
60416197
* .setZone("zone3744684")
60426198
* .build();
60436199
* ApiFuture<Operation> future =

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSettings.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,18 @@ public PagedCallSettings<ListInstancesRequest, InstanceList, ListPagedResponse>
225225
return ((InstancesStubSettings) getStubSettings()).listReferrersSettings();
226226
}
227227

228+
/** Returns the object with the settings used for calls to performMaintenance. */
229+
public UnaryCallSettings<PerformMaintenanceInstanceRequest, Operation>
230+
performMaintenanceSettings() {
231+
return ((InstancesStubSettings) getStubSettings()).performMaintenanceSettings();
232+
}
233+
234+
/** Returns the object with the settings used for calls to performMaintenance. */
235+
public OperationCallSettings<PerformMaintenanceInstanceRequest, Operation, Operation>
236+
performMaintenanceOperationSettings() {
237+
return ((InstancesStubSettings) getStubSettings()).performMaintenanceOperationSettings();
238+
}
239+
228240
/** Returns the object with the settings used for calls to removeResourcePolicies. */
229241
public UnaryCallSettings<RemoveResourcePoliciesInstanceRequest, Operation>
230242
removeResourcePoliciesSettings() {
@@ -795,6 +807,18 @@ public UnaryCallSettings.Builder<InsertInstanceRequest, Operation> insertSetting
795807
return getStubSettingsBuilder().listReferrersSettings();
796808
}
797809

810+
/** Returns the builder for the settings used for calls to performMaintenance. */
811+
public UnaryCallSettings.Builder<PerformMaintenanceInstanceRequest, Operation>
812+
performMaintenanceSettings() {
813+
return getStubSettingsBuilder().performMaintenanceSettings();
814+
}
815+
816+
/** Returns the builder for the settings used for calls to performMaintenance. */
817+
public OperationCallSettings.Builder<PerformMaintenanceInstanceRequest, Operation, Operation>
818+
performMaintenanceOperationSettings() {
819+
return getStubSettingsBuilder().performMaintenanceOperationSettings();
820+
}
821+
798822
/** Returns the builder for the settings used for calls to removeResourcePolicies. */
799823
public UnaryCallSettings.Builder<RemoveResourcePoliciesInstanceRequest, Operation>
800824
removeResourcePoliciesSettings() {

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
* </tr>
261261
* <tr>
262262
* <td><p> ListManagedInstances</td>
263-
* <td><p> Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.</td>
263+
* <td><p> Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.</td>
264264
* <td>
265265
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
266266
* <ul>
@@ -2165,8 +2165,7 @@ public final ListErrorsPagedResponse listErrors(
21652165
* Lists the instances in the managed instance group and instances that are scheduled to be
21662166
* created. The list includes any current actions that the group has scheduled for its instances.
21672167
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
2168-
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2169-
* `PAGINATED`.
2168+
* if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
21702169
*
21712170
* <p>Sample code:
21722171
*
@@ -2211,8 +2210,7 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
22112210
* Lists the instances in the managed instance group and instances that are scheduled to be
22122211
* created. The list includes any current actions that the group has scheduled for its instances.
22132212
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
2214-
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2215-
* `PAGINATED`.
2213+
* if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
22162214
*
22172215
* <p>Sample code:
22182216
*
@@ -2255,8 +2253,7 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
22552253
* Lists the instances in the managed instance group and instances that are scheduled to be
22562254
* created. The list includes any current actions that the group has scheduled for its instances.
22572255
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
2258-
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2259-
* `PAGINATED`.
2256+
* if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
22602257
*
22612258
* <p>Sample code:
22622259
*
@@ -2299,8 +2296,7 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
22992296
* Lists the instances in the managed instance group and instances that are scheduled to be
23002297
* created. The list includes any current actions that the group has scheduled for its instances.
23012298
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
2302-
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
2303-
* `PAGINATED`.
2299+
* if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
23042300
*
23052301
* <p>Sample code:
23062302
*

0 commit comments

Comments
 (0)