Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
googleapis_commitish: 260e3f5d5dcf9692c77d14b01b47c16ef01837e9
googleapis_commitish: 89c3153888201c9e80bc5ec78d6ffca0debe6b52
libraries_bom_version: 26.80.0
is_monorepo: true
libraries:
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

package com.google.cloud.compute.v1;

import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse;
import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse;
import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse;

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

/** Returns the object with the settings used for calls to aggregatedList. */
public PagedCallSettings<
AggregatedListBackendBucketsRequest,
BackendBucketAggregatedList,
AggregatedListPagedResponse>
aggregatedListSettings() {
return ((BackendBucketsStubSettings) getStubSettings()).aggregatedListSettings();
}

/** Returns the object with the settings used for calls to delete. */
public UnaryCallSettings<DeleteBackendBucketRequest, Operation> deleteSettings() {
return ((BackendBucketsStubSettings) getStubSettings()).deleteSettings();
Expand Down Expand Up @@ -175,6 +186,13 @@ public UnaryCallSettings<InsertBackendBucketRequest, Operation> insertSettings()
return ((BackendBucketsStubSettings) getStubSettings()).listSettings();
}

/** Returns the object with the settings used for calls to listUsable. */
public PagedCallSettings<
ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse>
listUsableSettings() {
return ((BackendBucketsStubSettings) getStubSettings()).listUsableSettings();
}

/** Returns the object with the settings used for calls to patch. */
public UnaryCallSettings<PatchBackendBucketRequest, Operation> patchSettings() {
return ((BackendBucketsStubSettings) getStubSettings()).patchSettings();
Expand Down Expand Up @@ -330,6 +348,15 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().addSignedUrlKeyOperationSettings();
}

/** Returns the builder for the settings used for calls to aggregatedList. */
public PagedCallSettings.Builder<
AggregatedListBackendBucketsRequest,
BackendBucketAggregatedList,
AggregatedListPagedResponse>
aggregatedListSettings() {
return getStubSettingsBuilder().aggregatedListSettings();
}

/** Returns the builder for the settings used for calls to delete. */
public UnaryCallSettings.Builder<DeleteBackendBucketRequest, Operation> deleteSettings() {
return getStubSettingsBuilder().deleteSettings();
Expand Down Expand Up @@ -383,6 +410,13 @@ public UnaryCallSettings.Builder<InsertBackendBucketRequest, Operation> insertSe
return getStubSettingsBuilder().listSettings();
}

/** Returns the builder for the settings used for calls to listUsable. */
public PagedCallSettings.Builder<
ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse>
listUsableSettings() {
return getStubSettingsBuilder().listUsableSettings();
}

/** Returns the builder for the settings used for calls to patch. */
public UnaryCallSettings.Builder<PatchBackendBucketRequest, Operation> patchSettings() {
return getStubSettingsBuilder().patchSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,25 @@
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> UpdateKmsKey</td>
* <td><p> Rotates the customer-managed encryption key to the latest version for the specified persistent disk.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateKmsKeyAsync(UpdateKmsKeyDiskRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> updateKmsKeyAsync(String project, String zone, String disk, DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource)
* </ul>
* <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>
* <ul>
* <li><p> updateKmsKeyOperationCallable()
* <li><p> updateKmsKeyCallable()
* </ul>
* </td>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
Expand Down Expand Up @@ -3067,6 +3086,151 @@ public final UnaryCallable<UpdateDiskRequest, Operation> updateCallable() {
return stub.updateCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Rotates the customer-managed encryption key to the latest version for the specified persistent
* disk.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
* String disk = "disk3083677";
* DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource =
* DiskUpdateKmsKeyRequest.newBuilder().build();
* Operation response =
* disksClient.updateKmsKeyAsync(project, zone, disk, diskUpdateKmsKeyRequestResource).get();
* }
* }</pre>
*
* @param project Project ID for this request.
* @param zone The name of the zone for this request.
* @param disk Name of the Disk resource, should conform to RFC1035.
* @param diskUpdateKmsKeyRequestResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Operation, Operation> updateKmsKeyAsync(
String project,
String zone,
String disk,
DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource) {
UpdateKmsKeyDiskRequest request =
UpdateKmsKeyDiskRequest.newBuilder()
.setProject(project)
.setZone(zone)
.setDisk(disk)
.setDiskUpdateKmsKeyRequestResource(diskUpdateKmsKeyRequestResource)
.build();
return updateKmsKeyAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Rotates the customer-managed encryption key to the latest version for the specified persistent
* disk.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* UpdateKmsKeyDiskRequest request =
* UpdateKmsKeyDiskRequest.newBuilder()
* .setDisk("disk3083677")
* .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setZone("zone3744684")
* .build();
* Operation response = disksClient.updateKmsKeyAsync(request).get();
* }
* }</pre>
*
* @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 OperationFuture<Operation, Operation> updateKmsKeyAsync(
UpdateKmsKeyDiskRequest request) {
return updateKmsKeyOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Rotates the customer-managed encryption key to the latest version for the specified persistent
* disk.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* UpdateKmsKeyDiskRequest request =
* UpdateKmsKeyDiskRequest.newBuilder()
* .setDisk("disk3083677")
* .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setZone("zone3744684")
* .build();
* OperationFuture<Operation, Operation> future =
* disksClient.updateKmsKeyOperationCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final OperationCallable<UpdateKmsKeyDiskRequest, Operation, Operation>
updateKmsKeyOperationCallable() {
return stub.updateKmsKeyOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Rotates the customer-managed encryption key to the latest version for the specified persistent
* disk.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* UpdateKmsKeyDiskRequest request =
* UpdateKmsKeyDiskRequest.newBuilder()
* .setDisk("disk3083677")
* .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setZone("zone3744684")
* .build();
* ApiFuture<Operation> future = disksClient.updateKmsKeyCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<UpdateKmsKeyDiskRequest, Operation> updateKmsKeyCallable() {
return stub.updateKmsKeyCallable();
}

@Override
public final void close() {
stub.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,17 @@ public OperationCallSettings<UpdateDiskRequest, Operation, Operation> updateOper
return ((DisksStubSettings) getStubSettings()).updateOperationSettings();
}

/** Returns the object with the settings used for calls to updateKmsKey. */
public UnaryCallSettings<UpdateKmsKeyDiskRequest, Operation> updateKmsKeySettings() {
return ((DisksStubSettings) getStubSettings()).updateKmsKeySettings();
}

/** Returns the object with the settings used for calls to updateKmsKey. */
public OperationCallSettings<UpdateKmsKeyDiskRequest, Operation, Operation>
updateKmsKeyOperationSettings() {
return ((DisksStubSettings) getStubSettings()).updateKmsKeyOperationSettings();
}

public static final DisksSettings create(DisksStubSettings stub) throws IOException {
return new DisksSettings.Builder(stub.toBuilder()).build();
}
Expand Down Expand Up @@ -567,6 +578,17 @@ public UnaryCallSettings.Builder<UpdateDiskRequest, Operation> updateSettings()
return getStubSettingsBuilder().updateOperationSettings();
}

/** Returns the builder for the settings used for calls to updateKmsKey. */
public UnaryCallSettings.Builder<UpdateKmsKeyDiskRequest, Operation> updateKmsKeySettings() {
return getStubSettingsBuilder().updateKmsKeySettings();
}

/** Returns the builder for the settings used for calls to updateKmsKey. */
public OperationCallSettings.Builder<UpdateKmsKeyDiskRequest, Operation, Operation>
updateKmsKeyOperationSettings() {
return getStubSettingsBuilder().updateKmsKeyOperationSettings();
}

@Override
public DisksSettings build() throws IOException {
return new DisksSettings(this);
Expand Down
Loading
Loading