Class SecurityPostureGrpc.SecurityPostureStub (0.2.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreatePostureRequest
responseObserverio.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
NameDescription
requestCreatePostureDeploymentRequest
responseObserverio.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
NameDescription
requestDeletePostureRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deletePostureDeployment(DeletePostureDeploymentRequest request, StreamObserver<Operation> responseObserver)

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

Deletes a single PostureDeployment.

Parameters
NameDescription
requestDeletePostureDeploymentRequest
responseObserverio.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
NameDescription
requestExtractPostureRequest
responseObserverio.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
NameDescription
requestGetPostureRequest
responseObserverio.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
NameDescription
requestGetPostureDeploymentRequest
responseObserverio.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
NameDescription
requestGetPostureTemplateRequest
responseObserverio.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
NameDescription
requestListPostureDeploymentsRequest
responseObserverio.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
NameDescription
requestListPostureRevisionsRequest
responseObserverio.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
NameDescription
requestListPostureTemplatesRequest
responseObserverio.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
NameDescription
requestListPosturesRequest
responseObserverio.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
NameDescription
requestUpdatePostureRequest
responseObserverio.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
NameDescription
requestUpdatePostureDeploymentRequest
responseObserverio.grpc.stub.StreamObserver<Operation>