Interface SecurityPostureGrpc.AsyncService (0.7.0)

public static interface SecurityPostureGrpc.AsyncService

Service describing handlers for resources.

Methods

createPosture(CreatePostureRequest request, StreamObserver<Operation> responseObserver)

public default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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 default 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>