Class ConfigGrpc.ConfigFutureStub (0.7.0)

public static final class ConfigGrpc.ConfigFutureStub extends AbstractFutureStub<ConfigGrpc.ConfigFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service Config.

Config Service manages compliance frameworks, cloud controls, and their configurations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ConfigGrpc.ConfigFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected ConfigGrpc.ConfigFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ConfigGrpc.ConfigFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createCloudControl(CreateCloudControlRequest request)

public ListenableFuture<CloudControl> createCloudControl(CreateCloudControlRequest request)

Creates a custom cloud control in a given parent resource. You can't create built-in cloud controls because those are managed by Google.

Parameter
Name Description
request CreateCloudControlRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<CloudControl>

createFramework(CreateFrameworkRequest request)

public ListenableFuture<Framework> createFramework(CreateFrameworkRequest request)

Creates a custom framework in a given parent resource. You can't create built-in frameworks because those are managed by Google.

Parameter
Name Description
request CreateFrameworkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Framework>

deleteCloudControl(DeleteCloudControlRequest request)

public ListenableFuture<Empty> deleteCloudControl(DeleteCloudControlRequest request)

Deletes a custom cloud control, including all its major and minor revisions. Consider the following:

  • You can't delete built-in cloud controls. You can only delete cloud controls with type CUSTOM.
  • You can't delete cloud controls if any of the versions are referenced by a framework.
  • You can't restore a deleted cloud control. This action is permanent.
Parameter
Name Description
request DeleteCloudControlRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteFramework(DeleteFrameworkRequest request)

public ListenableFuture<Empty> deleteFramework(DeleteFrameworkRequest request)

Deletes a custom framework, including all its major and minor revisions. Consider the following:

  • You can't delete built-in frameworks. You can only delete frameworks with type CUSTOM.
  • You can't delete frameworks that are deployed to a resource.
  • You can't restore a deleted framework. This action is permanent.
Parameter
Name Description
request DeleteFrameworkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getCloudControl(GetCloudControlRequest request)

public ListenableFuture<CloudControl> getCloudControl(GetCloudControlRequest request)

Gets details about a cloud control. This method retrieves the latest major version of a cloud control that you identify by name. By default, the latest major version of the cloud control is returned. To retrieve a specific major version, include major_revision_id in the request.

Parameter
Name Description
request GetCloudControlRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<CloudControl>

getFramework(GetFrameworkRequest request)

public ListenableFuture<Framework> getFramework(GetFrameworkRequest request)

Gets details about a framework. This method retrieves the latest major version of the framework. To retrieve a specific major version, include major_revision_id in the request.

Parameter
Name Description
request GetFrameworkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Framework>

listCloudControls(ListCloudControlsRequest request)

public ListenableFuture<ListCloudControlsResponse> listCloudControls(ListCloudControlsRequest request)

Lists the cloud controls (both built-in and custom) that are available in a given parent resource. The latest major version of each cloud control is returned. This method supports pagination.

Parameter
Name Description
request ListCloudControlsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListCloudControlsResponse>

listFrameworks(ListFrameworksRequest request)

public ListenableFuture<ListFrameworksResponse> listFrameworks(ListFrameworksRequest request)

Lists the frameworks (both built-in and custom) that are available within the parent resource. The latest major version of each framework is returned. This method supports pagination.

Parameter
Name Description
request ListFrameworksRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListFrameworksResponse>

updateCloudControl(UpdateCloudControlRequest request)

public ListenableFuture<CloudControl> updateCloudControl(UpdateCloudControlRequest request)

Updates a custom cloud control. This method allows for partial updates of a cloud control. Use the update_mask to specify which fields to update. Consider the following:

  • If you provide an update_mask, only the fields that are specified in the mask are updated.
  • If you don't provide an update_mask, all the fields that are present in the request's cloud_control body are used to overwrite the existing resource. You can only update cloud controls with the CUSTOM type. A successful update creates a new version of the cloud control.
Parameter
Name Description
request UpdateCloudControlRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<CloudControl>

updateFramework(UpdateFrameworkRequest request)

public ListenableFuture<Framework> updateFramework(UpdateFrameworkRequest request)

Updates a custom framework. This method allows for partial updates of a framework. Use the update_mask to specify which fields to update. Consider the following:

  • If you provide an update_mask, only the fields that are specified in the mask are updated.
  • If you don't provide an update_mask, all the fields that are present in the request's framework body are used to overwrite the existing resource. You can only update frameworks with the CUSTOM type. A successful update creates a new version of the framework.
Parameter
Name Description
request UpdateFrameworkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Framework>