Skip to content

Commit

Permalink
feat: Update Compute Engine API to revision 20220831 (#729) (#726)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Source-Link: googleapis/googleapis@63c3007

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b6582231ae7b7f5cd18f7d142c65421773cca5de
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjY1ODIyMzFhZTdiN2Y1Y2QxOGY3ZDE0MmM2NTQyMTc3M2NjYTVkZSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 20, 2022
1 parent ce4a271 commit 4d30943
Show file tree
Hide file tree
Showing 193 changed files with 74,282 additions and 15,733 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,155 @@ public final UnaryCallable<ListAddressesRequest, AddressList> listCallable() {
return stub.listCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the labels on an Address. To learn more about labels, read the Labeling Resources
* documentation.
*
* <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 (AddressesClient addressesClient = AddressesClient.create()) {
* String project = "project-309310695";
* String region = "region-934795532";
* String resource = "resource-341064690";
* RegionSetLabelsRequest regionSetLabelsRequestResource =
* RegionSetLabelsRequest.newBuilder().build();
* Operation response =
* addressesClient
* .setLabelsAsync(project, region, resource, regionSetLabelsRequestResource)
* .get();
* }
* }</pre>
*
* @param project Project ID for this request.
* @param region The region for this request.
* @param resource Name or id of the resource for this request.
* @param regionSetLabelsRequestResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Operation, Operation> setLabelsAsync(
String project,
String region,
String resource,
RegionSetLabelsRequest regionSetLabelsRequestResource) {
SetLabelsAddressRequest request =
SetLabelsAddressRequest.newBuilder()
.setProject(project)
.setRegion(region)
.setResource(resource)
.setRegionSetLabelsRequestResource(regionSetLabelsRequestResource)
.build();
return setLabelsAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the labels on an Address. To learn more about labels, read the Labeling Resources
* documentation.
*
* <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 (AddressesClient addressesClient = AddressesClient.create()) {
* SetLabelsAddressRequest request =
* SetLabelsAddressRequest.newBuilder()
* .setProject("project-309310695")
* .setRegion("region-934795532")
* .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
* .setRequestId("requestId693933066")
* .setResource("resource-341064690")
* .build();
* Operation response = addressesClient.setLabelsAsync(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
*/
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Operation, Operation> setLabelsAsync(
SetLabelsAddressRequest request) {
return setLabelsOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the labels on an Address. To learn more about labels, read the Labeling Resources
* documentation.
*
* <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 (AddressesClient addressesClient = AddressesClient.create()) {
* SetLabelsAddressRequest request =
* SetLabelsAddressRequest.newBuilder()
* .setProject("project-309310695")
* .setRegion("region-934795532")
* .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
* .setRequestId("requestId693933066")
* .setResource("resource-341064690")
* .build();
* OperationFuture<Operation, Operation> future =
* addressesClient.setLabelsOperationCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final OperationCallable<SetLabelsAddressRequest, Operation, Operation>
setLabelsOperationCallable() {
return stub.setLabelsOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the labels on an Address. To learn more about labels, read the Labeling Resources
* documentation.
*
* <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 (AddressesClient addressesClient = AddressesClient.create()) {
* SetLabelsAddressRequest request =
* SetLabelsAddressRequest.newBuilder()
* .setProject("project-309310695")
* .setRegion("region-934795532")
* .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
* .setRequestId("requestId693933066")
* .setResource("resource-341064690")
* .build();
* ApiFuture<Operation> future = addressesClient.setLabelsCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<SetLabelsAddressRequest, Operation> setLabelsCallable() {
return stub.setLabelsCallable();
}

@Override
public final void close() {
stub.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ public PagedCallSettings<ListAddressesRequest, AddressList, ListPagedResponse> l
return ((AddressesStubSettings) getStubSettings()).listSettings();
}

/** Returns the object with the settings used for calls to setLabels. */
public UnaryCallSettings<SetLabelsAddressRequest, Operation> setLabelsSettings() {
return ((AddressesStubSettings) getStubSettings()).setLabelsSettings();
}

/** Returns the object with the settings used for calls to setLabels. */
public OperationCallSettings<SetLabelsAddressRequest, Operation, Operation>
setLabelsOperationSettings() {
return ((AddressesStubSettings) getStubSettings()).setLabelsOperationSettings();
}

public static final AddressesSettings create(AddressesStubSettings stub) throws IOException {
return new AddressesSettings.Builder(stub.toBuilder()).build();
}
Expand Down Expand Up @@ -248,6 +259,17 @@ public UnaryCallSettings.Builder<InsertAddressRequest, Operation> insertSettings
return getStubSettingsBuilder().listSettings();
}

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

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

@Override
public AddressesSettings build() throws IOException {
return new AddressesSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,100 @@ public final BackendServiceGroupHealth getHealth(GetHealthBackendServiceRequest
return stub.getHealthCallable();
}

// 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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* String project = "project-309310695";
* String resource = "resource-341064690";
* Policy response = backendServicesClient.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) {
GetIamPolicyBackendServiceRequest request =
GetIamPolicyBackendServiceRequest.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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* GetIamPolicyBackendServiceRequest request =
* GetIamPolicyBackendServiceRequest.newBuilder()
* .setOptionsRequestedPolicyVersion(-574521795)
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* Policy response = backendServicesClient.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(GetIamPolicyBackendServiceRequest 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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* GetIamPolicyBackendServiceRequest request =
* GetIamPolicyBackendServiceRequest.newBuilder()
* .setOptionsRequestedPolicyVersion(-574521795)
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* ApiFuture<Policy> future = backendServicesClient.getIamPolicyCallable().futureCall(request);
* // Do something.
* Policy response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<GetIamPolicyBackendServiceRequest, Policy> getIamPolicyCallable() {
return stub.getIamPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a BackendService resource in the specified project using the data included in the
Expand Down Expand Up @@ -1464,6 +1558,103 @@ 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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* String project = "project-309310695";
* String resource = "resource-341064690";
* GlobalSetPolicyRequest globalSetPolicyRequestResource =
* GlobalSetPolicyRequest.newBuilder().build();
* Policy response =
* backendServicesClient.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) {
SetIamPolicyBackendServiceRequest request =
SetIamPolicyBackendServiceRequest.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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* SetIamPolicyBackendServiceRequest request =
* SetIamPolicyBackendServiceRequest.newBuilder()
* .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* Policy response = backendServicesClient.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(SetIamPolicyBackendServiceRequest 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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* SetIamPolicyBackendServiceRequest request =
* SetIamPolicyBackendServiceRequest.newBuilder()
* .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
* .setProject("project-309310695")
* .setResource("resource-341064690")
* .build();
* ApiFuture<Policy> future = backendServicesClient.setIamPolicyCallable().futureCall(request);
* // Do something.
* Policy response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<SetIamPolicyBackendServiceRequest, Policy> setIamPolicyCallable() {
return stub.setIamPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the Google Cloud Armor security policy for the specified backend service. For more
Expand Down
Loading

0 comments on commit 4d30943

Please sign in to comment.