Class SecurityPostureGrpc.SecurityPostureFutureStub (0.8.0)

public static final class SecurityPostureGrpc.SecurityPostureFutureStub extends AbstractFutureStub<SecurityPostureGrpc.SecurityPostureFutureStub>

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

Service describing handlers for resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > SecurityPostureGrpc.SecurityPostureFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createPosture(CreatePostureRequest request)

public ListenableFuture<Operation> createPosture(CreatePostureRequest request)

Creates a new Posture resource. If a Posture with the specified name already exists in the specified organization and location, the long running operation returns a ALREADY_EXISTS error.

Parameter
Name Description
request CreatePostureRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createPostureDeployment(CreatePostureDeploymentRequest request)

public ListenableFuture<Operation> createPostureDeployment(CreatePostureDeploymentRequest request)

Creates a new PostureDeployment in a given project and location.

Parameter
Name Description
request CreatePostureDeploymentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deletePosture(DeletePostureRequest request)

public ListenableFuture<Operation> deletePosture(DeletePostureRequest request)

Deletes all the revisions of a resource. A posture can only be deleted when none of the revisions are deployed to any workload.

Parameter
Name Description
request DeletePostureRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deletePostureDeployment(DeletePostureDeploymentRequest request)

public ListenableFuture<Operation> deletePostureDeployment(DeletePostureDeploymentRequest request)

Deletes a single PostureDeployment.

Parameter
Name Description
request DeletePostureDeploymentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

extractPosture(ExtractPostureRequest request)

public ListenableFuture<Operation> extractPosture(ExtractPostureRequest request)

Extracts existing policies on a workload as a posture. If a Posture on the given workload already exists, the long running operation returns a ALREADY_EXISTS error.

Parameter
Name Description
request ExtractPostureRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getPosture(GetPostureRequest request)

public ListenableFuture<Posture> getPosture(GetPostureRequest request)

Gets a posture in a given organization and location. User must provide revision_id to retrieve a specific revision of the resource. NOT_FOUND error is returned if the revision_id or the Posture name does not exist. In case revision_id is not provided then the latest Posture revision by UpdateTime is returned.

Parameter
Name Description
request GetPostureRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Posture>

getPostureDeployment(GetPostureDeploymentRequest request)

public ListenableFuture<PostureDeployment> getPostureDeployment(GetPostureDeploymentRequest request)

Gets details of a single PostureDeployment.

Parameter
Name Description
request GetPostureDeploymentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PostureDeployment>

getPostureTemplate(GetPostureTemplateRequest request)

public ListenableFuture<PostureTemplate> getPostureTemplate(GetPostureTemplateRequest request)

Gets a PostureTemplate. User must provide revision_id to retrieve a specific revision of the resource. NOT_FOUND error is returned if the revision_id or the PostureTemplate name does not exist. In case revision_id is not provided then the PostureTemplate with latest revision_id is returned.

Parameter
Name Description
request GetPostureTemplateRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PostureTemplate>

listPostureDeployments(ListPostureDeploymentsRequest request)

public ListenableFuture<ListPostureDeploymentsResponse> listPostureDeployments(ListPostureDeploymentsRequest request)

PostureDeployments Lists PostureDeployments in a given project and location.

Parameter
Name Description
request ListPostureDeploymentsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPostureDeploymentsResponse>

listPostureRevisions(ListPostureRevisionsRequest request)

public ListenableFuture<ListPostureRevisionsResponse> listPostureRevisions(ListPostureRevisionsRequest request)

Lists revisions of a Posture in a given organization and location.

Parameter
Name Description
request ListPostureRevisionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPostureRevisionsResponse>

listPostureTemplates(ListPostureTemplatesRequest request)

public ListenableFuture<ListPostureTemplatesResponse> listPostureTemplates(ListPostureTemplatesRequest request)

PostureTemplates Lists all the PostureTemplates available to the user.

Parameter
Name Description
request ListPostureTemplatesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPostureTemplatesResponse>

listPostures(ListPosturesRequest request)

public ListenableFuture<ListPosturesResponse> listPostures(ListPosturesRequest request)

(-- This option restricts the visibility of the API to only projects that will (-- be labeled as PREVIEW or GOOGLE_INTERNAL by the service. (-- option (google.api.api_visibility).restriction = "PREVIEW,GOOGLE_INTERNAL"; Postures Lists Postures in a given organization and location. In case a posture has multiple revisions, the latest revision as per UpdateTime will be returned.

Parameter
Name Description
request ListPosturesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPosturesResponse>

updatePosture(UpdatePostureRequest request)

public ListenableFuture<Operation> updatePosture(UpdatePostureRequest request)

Updates an existing Posture. A new revision of the posture will be created if the revision to be updated is currently deployed on a workload. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the Posture does not exist. Returns a google.rpc.Status with google.rpc.Code.ABORTED if the etag supplied in the request does not match the persisted etag of the Posture. Updatable fields are state, description and policy_sets. State update operation cannot be clubbed with update of description and policy_sets. An ACTIVE posture can be updated to both DRAFT or DEPRECATED states. Postures in DRAFT or DEPRECATED states can only be updated to ACTIVE state.

Parameter
Name Description
request UpdatePostureRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updatePostureDeployment(UpdatePostureDeploymentRequest request)

public ListenableFuture<Operation> updatePostureDeployment(UpdatePostureDeploymentRequest request)

Updates the parameters of a single PostureDeployment.

Parameter
Name Description
request UpdatePostureDeploymentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>