Skip to content

Commit 1cfdd19

Browse files
chore: generate libraries at Sat Apr 25 03:03:28 UTC 2026
1 parent 44fe924 commit 1cfdd19

549 files changed

Lines changed: 206939 additions & 12613 deletions

File tree

Some content is hidden

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

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

Lines changed: 523 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
package com.google.cloud.compute.v1;
1818

19+
import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse;
1920
import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse;
21+
import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse;
2022

2123
import com.google.api.core.ApiFunction;
2224
import com.google.api.gax.core.GoogleCredentialsProvider;
@@ -125,6 +127,15 @@ public class BackendBucketsSettings extends ClientSettings<BackendBucketsSetting
125127
return ((BackendBucketsStubSettings) getStubSettings()).addSignedUrlKeyOperationSettings();
126128
}
127129

130+
/** Returns the object with the settings used for calls to aggregatedList. */
131+
public PagedCallSettings<
132+
AggregatedListBackendBucketsRequest,
133+
BackendBucketAggregatedList,
134+
AggregatedListPagedResponse>
135+
aggregatedListSettings() {
136+
return ((BackendBucketsStubSettings) getStubSettings()).aggregatedListSettings();
137+
}
138+
128139
/** Returns the object with the settings used for calls to delete. */
129140
public UnaryCallSettings<DeleteBackendBucketRequest, Operation> deleteSettings() {
130141
return ((BackendBucketsStubSettings) getStubSettings()).deleteSettings();
@@ -175,6 +186,13 @@ public UnaryCallSettings<InsertBackendBucketRequest, Operation> insertSettings()
175186
return ((BackendBucketsStubSettings) getStubSettings()).listSettings();
176187
}
177188

189+
/** Returns the object with the settings used for calls to listUsable. */
190+
public PagedCallSettings<
191+
ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse>
192+
listUsableSettings() {
193+
return ((BackendBucketsStubSettings) getStubSettings()).listUsableSettings();
194+
}
195+
178196
/** Returns the object with the settings used for calls to patch. */
179197
public UnaryCallSettings<PatchBackendBucketRequest, Operation> patchSettings() {
180198
return ((BackendBucketsStubSettings) getStubSettings()).patchSettings();
@@ -330,6 +348,15 @@ public Builder applyToAllUnaryMethods(
330348
return getStubSettingsBuilder().addSignedUrlKeyOperationSettings();
331349
}
332350

351+
/** Returns the builder for the settings used for calls to aggregatedList. */
352+
public PagedCallSettings.Builder<
353+
AggregatedListBackendBucketsRequest,
354+
BackendBucketAggregatedList,
355+
AggregatedListPagedResponse>
356+
aggregatedListSettings() {
357+
return getStubSettingsBuilder().aggregatedListSettings();
358+
}
359+
333360
/** Returns the builder for the settings used for calls to delete. */
334361
public UnaryCallSettings.Builder<DeleteBackendBucketRequest, Operation> deleteSettings() {
335362
return getStubSettingsBuilder().deleteSettings();
@@ -383,6 +410,13 @@ public UnaryCallSettings.Builder<InsertBackendBucketRequest, Operation> insertSe
383410
return getStubSettingsBuilder().listSettings();
384411
}
385412

413+
/** Returns the builder for the settings used for calls to listUsable. */
414+
public PagedCallSettings.Builder<
415+
ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse>
416+
listUsableSettings() {
417+
return getStubSettingsBuilder().listUsableSettings();
418+
}
419+
386420
/** Returns the builder for the settings used for calls to patch. */
387421
public UnaryCallSettings.Builder<PatchBackendBucketRequest, Operation> patchSettings() {
388422
return getStubSettingsBuilder().patchSettings();

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

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,25 @@
424424
* </ul>
425425
* </td>
426426
* </tr>
427+
* <tr>
428+
* <td><p> UpdateKmsKey</td>
429+
* <td><p> Rotates the customer-managed encryption key to the latest version for the specified persistent disk.</td>
430+
* <td>
431+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
432+
* <ul>
433+
* <li><p> updateKmsKeyAsync(UpdateKmsKeyDiskRequest request)
434+
* </ul>
435+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
436+
* <ul>
437+
* <li><p> updateKmsKeyAsync(String project, String zone, String disk, DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource)
438+
* </ul>
439+
* <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>
440+
* <ul>
441+
* <li><p> updateKmsKeyOperationCallable()
442+
* <li><p> updateKmsKeyCallable()
443+
* </ul>
444+
* </td>
445+
* </tr>
427446
* </table>
428447
*
429448
* <p>See the individual methods for example code.
@@ -3067,6 +3086,151 @@ public final UnaryCallable<UpdateDiskRequest, Operation> updateCallable() {
30673086
return stub.updateCallable();
30683087
}
30693088

3089+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3090+
/**
3091+
* Rotates the customer-managed encryption key to the latest version for the specified persistent
3092+
* disk.
3093+
*
3094+
* <p>Sample code:
3095+
*
3096+
* <pre>{@code
3097+
* // This snippet has been automatically generated and should be regarded as a code template only.
3098+
* // It will require modifications to work:
3099+
* // - It may require correct/in-range values for request initialization.
3100+
* // - It may require specifying regional endpoints when creating the service client as shown in
3101+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3102+
* try (DisksClient disksClient = DisksClient.create()) {
3103+
* String project = "project-309310695";
3104+
* String zone = "zone3744684";
3105+
* String disk = "disk3083677";
3106+
* DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource =
3107+
* DiskUpdateKmsKeyRequest.newBuilder().build();
3108+
* Operation response =
3109+
* disksClient.updateKmsKeyAsync(project, zone, disk, diskUpdateKmsKeyRequestResource).get();
3110+
* }
3111+
* }</pre>
3112+
*
3113+
* @param project Project ID for this request.
3114+
* @param zone The name of the zone for this request.
3115+
* @param disk Name of the Disk resource, should conform to RFC1035.
3116+
* @param diskUpdateKmsKeyRequestResource The body resource for this request
3117+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3118+
*/
3119+
public final OperationFuture<Operation, Operation> updateKmsKeyAsync(
3120+
String project,
3121+
String zone,
3122+
String disk,
3123+
DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource) {
3124+
UpdateKmsKeyDiskRequest request =
3125+
UpdateKmsKeyDiskRequest.newBuilder()
3126+
.setProject(project)
3127+
.setZone(zone)
3128+
.setDisk(disk)
3129+
.setDiskUpdateKmsKeyRequestResource(diskUpdateKmsKeyRequestResource)
3130+
.build();
3131+
return updateKmsKeyAsync(request);
3132+
}
3133+
3134+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3135+
/**
3136+
* Rotates the customer-managed encryption key to the latest version for the specified persistent
3137+
* disk.
3138+
*
3139+
* <p>Sample code:
3140+
*
3141+
* <pre>{@code
3142+
* // This snippet has been automatically generated and should be regarded as a code template only.
3143+
* // It will require modifications to work:
3144+
* // - It may require correct/in-range values for request initialization.
3145+
* // - It may require specifying regional endpoints when creating the service client as shown in
3146+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3147+
* try (DisksClient disksClient = DisksClient.create()) {
3148+
* UpdateKmsKeyDiskRequest request =
3149+
* UpdateKmsKeyDiskRequest.newBuilder()
3150+
* .setDisk("disk3083677")
3151+
* .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
3152+
* .setProject("project-309310695")
3153+
* .setRequestId("requestId693933066")
3154+
* .setZone("zone3744684")
3155+
* .build();
3156+
* Operation response = disksClient.updateKmsKeyAsync(request).get();
3157+
* }
3158+
* }</pre>
3159+
*
3160+
* @param request The request object containing all of the parameters for the API call.
3161+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3162+
*/
3163+
public final OperationFuture<Operation, Operation> updateKmsKeyAsync(
3164+
UpdateKmsKeyDiskRequest request) {
3165+
return updateKmsKeyOperationCallable().futureCall(request);
3166+
}
3167+
3168+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3169+
/**
3170+
* Rotates the customer-managed encryption key to the latest version for the specified persistent
3171+
* disk.
3172+
*
3173+
* <p>Sample code:
3174+
*
3175+
* <pre>{@code
3176+
* // This snippet has been automatically generated and should be regarded as a code template only.
3177+
* // It will require modifications to work:
3178+
* // - It may require correct/in-range values for request initialization.
3179+
* // - It may require specifying regional endpoints when creating the service client as shown in
3180+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3181+
* try (DisksClient disksClient = DisksClient.create()) {
3182+
* UpdateKmsKeyDiskRequest request =
3183+
* UpdateKmsKeyDiskRequest.newBuilder()
3184+
* .setDisk("disk3083677")
3185+
* .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
3186+
* .setProject("project-309310695")
3187+
* .setRequestId("requestId693933066")
3188+
* .setZone("zone3744684")
3189+
* .build();
3190+
* OperationFuture<Operation, Operation> future =
3191+
* disksClient.updateKmsKeyOperationCallable().futureCall(request);
3192+
* // Do something.
3193+
* Operation response = future.get();
3194+
* }
3195+
* }</pre>
3196+
*/
3197+
public final OperationCallable<UpdateKmsKeyDiskRequest, Operation, Operation>
3198+
updateKmsKeyOperationCallable() {
3199+
return stub.updateKmsKeyOperationCallable();
3200+
}
3201+
3202+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3203+
/**
3204+
* Rotates the customer-managed encryption key to the latest version for the specified persistent
3205+
* disk.
3206+
*
3207+
* <p>Sample code:
3208+
*
3209+
* <pre>{@code
3210+
* // This snippet has been automatically generated and should be regarded as a code template only.
3211+
* // It will require modifications to work:
3212+
* // - It may require correct/in-range values for request initialization.
3213+
* // - It may require specifying regional endpoints when creating the service client as shown in
3214+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3215+
* try (DisksClient disksClient = DisksClient.create()) {
3216+
* UpdateKmsKeyDiskRequest request =
3217+
* UpdateKmsKeyDiskRequest.newBuilder()
3218+
* .setDisk("disk3083677")
3219+
* .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
3220+
* .setProject("project-309310695")
3221+
* .setRequestId("requestId693933066")
3222+
* .setZone("zone3744684")
3223+
* .build();
3224+
* ApiFuture<Operation> future = disksClient.updateKmsKeyCallable().futureCall(request);
3225+
* // Do something.
3226+
* Operation response = future.get();
3227+
* }
3228+
* }</pre>
3229+
*/
3230+
public final UnaryCallable<UpdateKmsKeyDiskRequest, Operation> updateKmsKeyCallable() {
3231+
return stub.updateKmsKeyCallable();
3232+
}
3233+
30703234
@Override
30713235
public final void close() {
30723236
stub.close();

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,17 @@ public OperationCallSettings<UpdateDiskRequest, Operation, Operation> updateOper
289289
return ((DisksStubSettings) getStubSettings()).updateOperationSettings();
290290
}
291291

292+
/** Returns the object with the settings used for calls to updateKmsKey. */
293+
public UnaryCallSettings<UpdateKmsKeyDiskRequest, Operation> updateKmsKeySettings() {
294+
return ((DisksStubSettings) getStubSettings()).updateKmsKeySettings();
295+
}
296+
297+
/** Returns the object with the settings used for calls to updateKmsKey. */
298+
public OperationCallSettings<UpdateKmsKeyDiskRequest, Operation, Operation>
299+
updateKmsKeyOperationSettings() {
300+
return ((DisksStubSettings) getStubSettings()).updateKmsKeyOperationSettings();
301+
}
302+
292303
public static final DisksSettings create(DisksStubSettings stub) throws IOException {
293304
return new DisksSettings.Builder(stub.toBuilder()).build();
294305
}
@@ -567,6 +578,17 @@ public UnaryCallSettings.Builder<UpdateDiskRequest, Operation> updateSettings()
567578
return getStubSettingsBuilder().updateOperationSettings();
568579
}
569580

581+
/** Returns the builder for the settings used for calls to updateKmsKey. */
582+
public UnaryCallSettings.Builder<UpdateKmsKeyDiskRequest, Operation> updateKmsKeySettings() {
583+
return getStubSettingsBuilder().updateKmsKeySettings();
584+
}
585+
586+
/** Returns the builder for the settings used for calls to updateKmsKey. */
587+
public OperationCallSettings.Builder<UpdateKmsKeyDiskRequest, Operation, Operation>
588+
updateKmsKeyOperationSettings() {
589+
return getStubSettingsBuilder().updateKmsKeyOperationSettings();
590+
}
591+
570592
@Override
571593
public DisksSettings build() throws IOException {
572594
return new DisksSettings(this);

0 commit comments

Comments
 (0)