Skip to content

Commit

Permalink
feat: [compute] Update Compute Engine API to revision 20231110 (#868) (
Browse files Browse the repository at this point in the history
…#10120)

* feat: Update Compute Engine API to revision 20231110 (#868)

Source-Link: googleapis/googleapis@05186cd

Source-Link: https://github.com/googleapis/googleapis-gen/commit/dc566d3f71567bd40ea3f896b3e0cdaa73e9499d
Copy-Tag: eyJwIjoiamF2YS1jb21wdXRlLy5Pd2xCb3QueWFtbCIsImgiOiJkYzU2NmQzZjcxNTY3YmQ0MGVhM2Y4OTZiM2UwY2RhYTczZTk0OTlkIn0=

* 🦉 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>
Co-authored-by: Tomo Suzuki <suztomo@google.com>
  • Loading branch information
3 people authored Jan 2, 2024
1 parent 8675fa6 commit e25f733
Show file tree
Hide file tree
Showing 976 changed files with 141,539 additions and 18,622 deletions.
2 changes: 1 addition & 1 deletion java-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.40.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.42.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* for (Map.Entry<String, AcceleratorTypesScopedList> element :
* acceleratorTypesClient.aggregatedList(request).iterateAll()) {
Expand Down Expand Up @@ -255,6 +256,7 @@ public final AggregatedListPagedResponse aggregatedList(
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* ApiFuture<Map.Entry<String, AcceleratorTypesScopedList>> future =
* acceleratorTypesClient.aggregatedListPagedCallable().futureCall(request);
Expand Down Expand Up @@ -292,6 +294,7 @@ public final AggregatedListPagedResponse aggregatedList(
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* while (true) {
* AcceleratorTypeAggregatedList response =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* for (Map.Entry<String, AddressesScopedList> element :
* addressesClient.aggregatedList(request).iterateAll()) {
Expand Down Expand Up @@ -250,6 +251,7 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* ApiFuture<Map.Entry<String, AddressesScopedList>> future =
* addressesClient.aggregatedListPagedCallable().futureCall(request);
Expand Down Expand Up @@ -287,6 +289,7 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* while (true) {
* AddressAggregatedList response = addressesClient.aggregatedListCallable().call(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* for (Map.Entry<String, AutoscalersScopedList> element :
* autoscalersClient.aggregatedList(request).iterateAll()) {
Expand Down Expand Up @@ -252,6 +253,7 @@ public final AggregatedListPagedResponse aggregatedList(
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* ApiFuture<Map.Entry<String, AutoscalersScopedList>> future =
* autoscalersClient.aggregatedListPagedCallable().futureCall(request);
Expand Down Expand Up @@ -289,6 +291,7 @@ public final AggregatedListPagedResponse aggregatedList(
* .setPageToken("pageToken873572522")
* .setProject("project-309310695")
* .setReturnPartialSuccess(true)
* .setServiceProjectNumber(-1293855239)
* .build();
* while (true) {
* AutoscalerAggregatedList response =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,100 @@ public final UnaryCallable<GetBackendBucketRequest, BackendBucket> getCallable()
return stub.getCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* String project = "project-309310695";
* String resource = "resource-341064690";
* Policy response = backendBucketsClient.getIamPolicy(project, resource);
* }
* }</pre>
*
* @param project Project ID for this request.
* @param resource Name or id of the resource for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(String project, String resource) {
GetIamPolicyBackendBucketRequest request =
GetIamPolicyBackendBucketRequest.newBuilder()
.setProject(project)
.setResource(resource)
.build();
return getIamPolicy(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* GetIamPolicyBackendBucketRequest request =
* GetIamPolicyBackendBucketRequest.newBuilder()
* .setOptionsRequestedPolicyVersion(-574521795)
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* Policy response = backendBucketsClient.getIamPolicy(request);
* }
* }</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 Policy getIamPolicy(GetIamPolicyBackendBucketRequest request) {
return getIamPolicyCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* GetIamPolicyBackendBucketRequest request =
* GetIamPolicyBackendBucketRequest.newBuilder()
* .setOptionsRequestedPolicyVersion(-574521795)
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* ApiFuture<Policy> future = backendBucketsClient.getIamPolicyCallable().futureCall(request);
* // Do something.
* Policy response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<GetIamPolicyBackendBucketRequest, Policy> getIamPolicyCallable() {
return stub.getIamPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a BackendBucket resource in the specified project using the data included in the
Expand Down Expand Up @@ -1197,6 +1291,204 @@ public final OperationFuture<Operation, Operation> setEdgeSecurityPolicyAsync(
return stub.setEdgeSecurityPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* String project = "project-309310695";
* String resource = "resource-341064690";
* GlobalSetPolicyRequest globalSetPolicyRequestResource =
* GlobalSetPolicyRequest.newBuilder().build();
* Policy response =
* backendBucketsClient.setIamPolicy(project, resource, globalSetPolicyRequestResource);
* }
* }</pre>
*
* @param project Project ID for this request.
* @param resource Name or id of the resource for this request.
* @param globalSetPolicyRequestResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy setIamPolicy(
String project, String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource) {
SetIamPolicyBackendBucketRequest request =
SetIamPolicyBackendBucketRequest.newBuilder()
.setProject(project)
.setResource(resource)
.setGlobalSetPolicyRequestResource(globalSetPolicyRequestResource)
.build();
return setIamPolicy(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* SetIamPolicyBackendBucketRequest request =
* SetIamPolicyBackendBucketRequest.newBuilder()
* .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* Policy response = backendBucketsClient.setIamPolicy(request);
* }
* }</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 Policy setIamPolicy(SetIamPolicyBackendBucketRequest request) {
return setIamPolicyCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* SetIamPolicyBackendBucketRequest request =
* SetIamPolicyBackendBucketRequest.newBuilder()
* .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* ApiFuture<Policy> future = backendBucketsClient.setIamPolicyCallable().futureCall(request);
* // Do something.
* Policy response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<SetIamPolicyBackendBucketRequest, Policy> setIamPolicyCallable() {
return stub.setIamPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns permissions that a caller has on the specified resource.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* String project = "project-309310695";
* String resource = "resource-341064690";
* TestPermissionsRequest testPermissionsRequestResource =
* TestPermissionsRequest.newBuilder().build();
* TestPermissionsResponse response =
* backendBucketsClient.testIamPermissions(
* project, resource, testPermissionsRequestResource);
* }
* }</pre>
*
* @param project Project ID for this request.
* @param resource Name or id of the resource for this request.
* @param testPermissionsRequestResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TestPermissionsResponse testIamPermissions(
String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
TestIamPermissionsBackendBucketRequest request =
TestIamPermissionsBackendBucketRequest.newBuilder()
.setProject(project)
.setResource(resource)
.setTestPermissionsRequestResource(testPermissionsRequestResource)
.build();
return testIamPermissions(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns permissions that a caller has on the specified resource.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* TestIamPermissionsBackendBucketRequest request =
* TestIamPermissionsBackendBucketRequest.newBuilder()
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
* .build();
* TestPermissionsResponse response = backendBucketsClient.testIamPermissions(request);
* }
* }</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 TestPermissionsResponse testIamPermissions(
TestIamPermissionsBackendBucketRequest request) {
return testIamPermissionsCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns permissions that a caller has on the specified resource.
*
* <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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* TestIamPermissionsBackendBucketRequest request =
* TestIamPermissionsBackendBucketRequest.newBuilder()
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
* .build();
* ApiFuture<TestPermissionsResponse> future =
* backendBucketsClient.testIamPermissionsCallable().futureCall(request);
* // Do something.
* TestPermissionsResponse response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<TestIamPermissionsBackendBucketRequest, TestPermissionsResponse>
testIamPermissionsCallable() {
return stub.testIamPermissionsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the specified BackendBucket resource with the data included in the request.
Expand Down
Loading

0 comments on commit e25f733

Please sign in to comment.