Class SecurityPostureGrpc.SecurityPostureStub (0.9.0)

public static final class SecurityPostureGrpc.SecurityPostureStub extends AbstractAsyncStub<SecurityPostureGrpc.SecurityPostureStub>

A stub to allow clients to do asynchronous rpc calls to service SecurityPosture.

Service describing handlers for resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SecurityPostureGrpc.SecurityPostureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createPosture(CreatePostureRequest request, StreamObserver<Operation> responseObserver)

public void createPosture(CreatePostureRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request CreatePostureRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createPostureDeployment(CreatePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

public void createPostureDeployment(CreatePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

Creates a new PostureDeployment in a given project and location.

Parameters
Name Description
request CreatePostureDeploymentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deletePosture(DeletePostureRequest request, StreamObserver<Operation> responseObserver)

public void deletePosture(DeletePostureRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
Name Description
request DeletePostureRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deletePostureDeployment(DeletePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

public void deletePostureDeployment(DeletePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

Deletes a single PostureDeployment.

Parameters
Name Description
request DeletePostureDeploymentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

extractPosture(ExtractPostureRequest request, StreamObserver<Operation> responseObserver)

public void extractPosture(ExtractPostureRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request ExtractPostureRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getPosture(GetPostureRequest request, StreamObserver<Posture> responseObserver)

public void getPosture(GetPostureRequest request, StreamObserver<Posture> responseObserver)

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.

Parameters
Name Description
request GetPostureRequest
responseObserver io.grpc.stub.StreamObserver<Posture>

getPostureDeployment(GetPostureDeploymentRequest request, StreamObserver<PostureDeployment> responseObserver)

public void getPostureDeployment(GetPostureDeploymentRequest request, StreamObserver<PostureDeployment> responseObserver)

Gets details of a single PostureDeployment.

Parameters
Name Description
request GetPostureDeploymentRequest
responseObserver io.grpc.stub.StreamObserver<PostureDeployment>

getPostureTemplate(GetPostureTemplateRequest request, StreamObserver<PostureTemplate> responseObserver)

public void getPostureTemplate(GetPostureTemplateRequest request, StreamObserver<PostureTemplate> responseObserver)

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.

Parameters
Name Description
request GetPostureTemplateRequest
responseObserver io.grpc.stub.StreamObserver<PostureTemplate>

listPostureDeployments(ListPostureDeploymentsRequest request, StreamObserver<ListPostureDeploymentsResponse> responseObserver)

public void listPostureDeployments(ListPostureDeploymentsRequest request, StreamObserver<ListPostureDeploymentsResponse> responseObserver)

PostureDeployments Lists PostureDeployments in a given project and location.

Parameters
Name Description
request ListPostureDeploymentsRequest
responseObserver io.grpc.stub.StreamObserver<ListPostureDeploymentsResponse>

listPostureRevisions(ListPostureRevisionsRequest request, StreamObserver<ListPostureRevisionsResponse> responseObserver)

public void listPostureRevisions(ListPostureRevisionsRequest request, StreamObserver<ListPostureRevisionsResponse> responseObserver)

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

Parameters
Name Description
request ListPostureRevisionsRequest
responseObserver io.grpc.stub.StreamObserver<ListPostureRevisionsResponse>

listPostureTemplates(ListPostureTemplatesRequest request, StreamObserver<ListPostureTemplatesResponse> responseObserver)

public void listPostureTemplates(ListPostureTemplatesRequest request, StreamObserver<ListPostureTemplatesResponse> responseObserver)

PostureTemplates Lists all the PostureTemplates available to the user.

Parameters
Name Description
request ListPostureTemplatesRequest
responseObserver io.grpc.stub.StreamObserver<ListPostureTemplatesResponse>

listPostures(ListPosturesRequest request, StreamObserver<ListPosturesResponse> responseObserver)

public void listPostures(ListPosturesRequest request, StreamObserver<ListPosturesResponse> responseObserver)

(-- 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.

Parameters
Name Description
request ListPosturesRequest
responseObserver io.grpc.stub.StreamObserver<ListPosturesResponse>

updatePosture(UpdatePostureRequest request, StreamObserver<Operation> responseObserver)

public void updatePosture(UpdatePostureRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request UpdatePostureRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updatePostureDeployment(UpdatePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

public void updatePostureDeployment(UpdatePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

Updates the parameters of a single PostureDeployment.

Parameters
Name Description
request UpdatePostureDeploymentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>