Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
feat: update compute API to revision 20220112 (#641)
Browse files Browse the repository at this point in the history
* feat: update compute API to revision 20220112 (#700)

Source-Link: googleapis/googleapis@249e9a1

Source-Link: https://github.com/googleapis/googleapis-gen/commit/1f2c41bbfe097616ceb1e9fb67872a6bb1dc59d4
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWYyYzQxYmJmZTA5NzYxNmNlYjFlOWZiNjc4NzJhNmJiMWRjNTlkNCJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix: fix breaking changes in Compute API (#701)

Source-Link: googleapis/googleapis@272c110

Source-Link: https://github.com/googleapis/googleapis-gen/commit/4c674ff6fdb2ba58efcc4e79cdd8224b6e04da94
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGM2NzRmZjZmZGIyYmE1OGVmY2M0ZTc5Y2RkODIyNGI2ZTA0ZGE5NCJ9

* 🦉 Updates from OwlBot

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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 14, 2022
1 parent b2479fa commit 5345e39
Show file tree
Hide file tree
Showing 591 changed files with 105,962 additions and 19,122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,127 @@ public final UnaryCallable<PatchBackendBucketRequest, Operation> patchCallable()
return stub.patchCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend bucket.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* String project = "project-309310695";
* String backendBucket = "backendBucket713751966";
* SecurityPolicyReference securityPolicyReferenceResource =
* SecurityPolicyReference.newBuilder().build();
* Operation response =
* backendBucketsClient
* .setEdgeSecurityPolicyAsync(project, backendBucket, securityPolicyReferenceResource)
* .get();
* }
* }</pre>
*
* @param project Project ID for this request.
* @param backendBucket Name of the BackendService resource to which the security policy should be
* set. The name should conform to RFC1035.
* @param securityPolicyReferenceResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Operation, Operation> setEdgeSecurityPolicyAsync(
String project,
String backendBucket,
SecurityPolicyReference securityPolicyReferenceResource) {
SetEdgeSecurityPolicyBackendBucketRequest request =
SetEdgeSecurityPolicyBackendBucketRequest.newBuilder()
.setProject(project)
.setBackendBucket(backendBucket)
.setSecurityPolicyReferenceResource(securityPolicyReferenceResource)
.build();
return setEdgeSecurityPolicyAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend bucket.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* SetEdgeSecurityPolicyBackendBucketRequest request =
* SetEdgeSecurityPolicyBackendBucketRequest.newBuilder()
* .setBackendBucket("backendBucket713751966")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setSecurityPolicyReferenceResource(SecurityPolicyReference.newBuilder().build())
* .build();
* Operation response = backendBucketsClient.setEdgeSecurityPolicyAsync(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> setEdgeSecurityPolicyAsync(
SetEdgeSecurityPolicyBackendBucketRequest request) {
return setEdgeSecurityPolicyOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend bucket.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* SetEdgeSecurityPolicyBackendBucketRequest request =
* SetEdgeSecurityPolicyBackendBucketRequest.newBuilder()
* .setBackendBucket("backendBucket713751966")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setSecurityPolicyReferenceResource(SecurityPolicyReference.newBuilder().build())
* .build();
* OperationFuture<Operation, Operation> future =
* backendBucketsClient.setEdgeSecurityPolicyOperationCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final OperationCallable<SetEdgeSecurityPolicyBackendBucketRequest, Operation, Operation>
setEdgeSecurityPolicyOperationCallable() {
return stub.setEdgeSecurityPolicyOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend bucket.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
* SetEdgeSecurityPolicyBackendBucketRequest request =
* SetEdgeSecurityPolicyBackendBucketRequest.newBuilder()
* .setBackendBucket("backendBucket713751966")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setSecurityPolicyReferenceResource(SecurityPolicyReference.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* backendBucketsClient.setEdgeSecurityPolicyCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<SetEdgeSecurityPolicyBackendBucketRequest, Operation>
setEdgeSecurityPolicyCallable() {
return stub.setEdgeSecurityPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the specified BackendBucket resource with the data included in the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@ public UnaryCallSettings<PatchBackendBucketRequest, Operation> patchSettings() {
return ((BackendBucketsStubSettings) getStubSettings()).patchOperationSettings();
}

/** Returns the object with the settings used for calls to setEdgeSecurityPolicy. */
public UnaryCallSettings<SetEdgeSecurityPolicyBackendBucketRequest, Operation>
setEdgeSecurityPolicySettings() {
return ((BackendBucketsStubSettings) getStubSettings()).setEdgeSecurityPolicySettings();
}

/** Returns the object with the settings used for calls to setEdgeSecurityPolicy. */
public OperationCallSettings<SetEdgeSecurityPolicyBackendBucketRequest, Operation, Operation>
setEdgeSecurityPolicyOperationSettings() {
return ((BackendBucketsStubSettings) getStubSettings())
.setEdgeSecurityPolicyOperationSettings();
}

/** Returns the object with the settings used for calls to update. */
public UnaryCallSettings<UpdateBackendBucketRequest, Operation> updateSettings() {
return ((BackendBucketsStubSettings) getStubSettings()).updateSettings();
Expand Down Expand Up @@ -317,6 +330,19 @@ public UnaryCallSettings.Builder<PatchBackendBucketRequest, Operation> patchSett
return getStubSettingsBuilder().patchOperationSettings();
}

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

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

/** Returns the builder for the settings used for calls to update. */
public UnaryCallSettings.Builder<UpdateBackendBucketRequest, Operation> updateSettings() {
return getStubSettingsBuilder().updateSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,127 @@ public final UnaryCallable<PatchBackendServiceRequest, Operation> patchCallable(
return stub.patchCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend service.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* String project = "project-309310695";
* String backendService = "backendService-1884714623";
* SecurityPolicyReference securityPolicyReferenceResource =
* SecurityPolicyReference.newBuilder().build();
* Operation response =
* backendServicesClient
* .setEdgeSecurityPolicyAsync(project, backendService, securityPolicyReferenceResource)
* .get();
* }
* }</pre>
*
* @param project Project ID for this request.
* @param backendService Name of the BackendService resource to which the edge security policy
* should be set. The name should conform to RFC1035.
* @param securityPolicyReferenceResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Operation, Operation> setEdgeSecurityPolicyAsync(
String project,
String backendService,
SecurityPolicyReference securityPolicyReferenceResource) {
SetEdgeSecurityPolicyBackendServiceRequest request =
SetEdgeSecurityPolicyBackendServiceRequest.newBuilder()
.setProject(project)
.setBackendService(backendService)
.setSecurityPolicyReferenceResource(securityPolicyReferenceResource)
.build();
return setEdgeSecurityPolicyAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend service.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* SetEdgeSecurityPolicyBackendServiceRequest request =
* SetEdgeSecurityPolicyBackendServiceRequest.newBuilder()
* .setBackendService("backendService-1884714623")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setSecurityPolicyReferenceResource(SecurityPolicyReference.newBuilder().build())
* .build();
* Operation response = backendServicesClient.setEdgeSecurityPolicyAsync(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> setEdgeSecurityPolicyAsync(
SetEdgeSecurityPolicyBackendServiceRequest request) {
return setEdgeSecurityPolicyOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend service.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* SetEdgeSecurityPolicyBackendServiceRequest request =
* SetEdgeSecurityPolicyBackendServiceRequest.newBuilder()
* .setBackendService("backendService-1884714623")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setSecurityPolicyReferenceResource(SecurityPolicyReference.newBuilder().build())
* .build();
* OperationFuture<Operation, Operation> future =
* backendServicesClient.setEdgeSecurityPolicyOperationCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final OperationCallable<SetEdgeSecurityPolicyBackendServiceRequest, Operation, Operation>
setEdgeSecurityPolicyOperationCallable() {
return stub.setEdgeSecurityPolicyOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the edge security policy for the specified backend service.
*
* <p>Sample code:
*
* <pre>{@code
* try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
* SetEdgeSecurityPolicyBackendServiceRequest request =
* SetEdgeSecurityPolicyBackendServiceRequest.newBuilder()
* .setBackendService("backendService-1884714623")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setSecurityPolicyReferenceResource(SecurityPolicyReference.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* backendServicesClient.setEdgeSecurityPolicyCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<SetEdgeSecurityPolicyBackendServiceRequest, Operation>
setEdgeSecurityPolicyCallable() {
return stub.setEdgeSecurityPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the Google Cloud Armor security policy for the specified backend service. For more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,19 @@ public UnaryCallSettings<PatchBackendServiceRequest, Operation> patchSettings()
return ((BackendServicesStubSettings) getStubSettings()).patchOperationSettings();
}

/** Returns the object with the settings used for calls to setEdgeSecurityPolicy. */
public UnaryCallSettings<SetEdgeSecurityPolicyBackendServiceRequest, Operation>
setEdgeSecurityPolicySettings() {
return ((BackendServicesStubSettings) getStubSettings()).setEdgeSecurityPolicySettings();
}

/** Returns the object with the settings used for calls to setEdgeSecurityPolicy. */
public OperationCallSettings<SetEdgeSecurityPolicyBackendServiceRequest, Operation, Operation>
setEdgeSecurityPolicyOperationSettings() {
return ((BackendServicesStubSettings) getStubSettings())
.setEdgeSecurityPolicyOperationSettings();
}

/** Returns the object with the settings used for calls to setSecurityPolicy. */
public UnaryCallSettings<SetSecurityPolicyBackendServiceRequest, Operation>
setSecurityPolicySettings() {
Expand Down Expand Up @@ -360,6 +373,19 @@ public UnaryCallSettings.Builder<PatchBackendServiceRequest, Operation> patchSet
return getStubSettingsBuilder().patchOperationSettings();
}

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

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

/** Returns the builder for the settings used for calls to setSecurityPolicy. */
public UnaryCallSettings.Builder<SetSecurityPolicyBackendServiceRequest, Operation>
setSecurityPolicySettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListDisksReque

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a snapshot of a specified persistent disk.
* Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider
* using snapshots.insert instead, as that method supports more features, such as creating
* snapshots in a project different from the source disk project.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -446,7 +448,9 @@ public final OperationFuture<Operation, Operation> createSnapshotAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a snapshot of a specified persistent disk.
* Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider
* using snapshots.insert instead, as that method supports more features, such as creating
* snapshots in a project different from the source disk project.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -477,7 +481,9 @@ public final OperationFuture<Operation, Operation> createSnapshotAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a snapshot of a specified persistent disk.
* Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider
* using snapshots.insert instead, as that method supports more features, such as creating
* snapshots in a project different from the source disk project.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -506,7 +512,9 @@ public final OperationFuture<Operation, Operation> createSnapshotAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a snapshot of a specified persistent disk.
* Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider
* using snapshots.insert instead, as that method supports more features, such as creating
* snapshots in a project different from the source disk project.
*
* <p>Sample code:
*
Expand Down
Loading

0 comments on commit 5345e39

Please sign in to comment.