Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update compute API to revision 20220112 #641

Merged
merged 4 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
  •  
  •  
  •  
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