Class SecurityPostureGrpc.SecurityPostureBlockingStub (0.6.0)

public static final class SecurityPostureGrpc.SecurityPostureBlockingStub extends AbstractBlockingStub<SecurityPostureGrpc.SecurityPostureBlockingStub>

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

Service describing handlers for resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > SecurityPostureGrpc.SecurityPostureBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected SecurityPostureGrpc.SecurityPostureBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
SecurityPostureGrpc.SecurityPostureBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createPosture(CreatePostureRequest request)

public 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
NameDescription
requestCreatePostureRequest
Returns
TypeDescription
Operation

createPostureDeployment(CreatePostureDeploymentRequest request)

public Operation createPostureDeployment(CreatePostureDeploymentRequest request)

Creates a new PostureDeployment in a given project and location.

Parameter
NameDescription
requestCreatePostureDeploymentRequest
Returns
TypeDescription
Operation

deletePosture(DeletePostureRequest request)

public 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
NameDescription
requestDeletePostureRequest
Returns
TypeDescription
Operation

deletePostureDeployment(DeletePostureDeploymentRequest request)

public Operation deletePostureDeployment(DeletePostureDeploymentRequest request)

Deletes a single PostureDeployment.

Parameter
NameDescription
requestDeletePostureDeploymentRequest
Returns
TypeDescription
Operation

extractPosture(ExtractPostureRequest request)

public 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
NameDescription
requestExtractPostureRequest
Returns
TypeDescription
Operation

getPosture(GetPostureRequest request)

public 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
NameDescription
requestGetPostureRequest
Returns
TypeDescription
Posture

getPostureDeployment(GetPostureDeploymentRequest request)

public PostureDeployment getPostureDeployment(GetPostureDeploymentRequest request)

Gets details of a single PostureDeployment.

Parameter
NameDescription
requestGetPostureDeploymentRequest
Returns
TypeDescription
PostureDeployment

getPostureTemplate(GetPostureTemplateRequest request)

public 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
NameDescription
requestGetPostureTemplateRequest
Returns
TypeDescription
PostureTemplate

listPostureDeployments(ListPostureDeploymentsRequest request)

public ListPostureDeploymentsResponse listPostureDeployments(ListPostureDeploymentsRequest request)

PostureDeployments Lists PostureDeployments in a given project and location.

Parameter
NameDescription
requestListPostureDeploymentsRequest
Returns
TypeDescription
ListPostureDeploymentsResponse

listPostureRevisions(ListPostureRevisionsRequest request)

public ListPostureRevisionsResponse listPostureRevisions(ListPostureRevisionsRequest request)

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

Parameter
NameDescription
requestListPostureRevisionsRequest
Returns
TypeDescription
ListPostureRevisionsResponse

listPostureTemplates(ListPostureTemplatesRequest request)

public ListPostureTemplatesResponse listPostureTemplates(ListPostureTemplatesRequest request)

PostureTemplates Lists all the PostureTemplates available to the user.

Parameter
NameDescription
requestListPostureTemplatesRequest
Returns
TypeDescription
ListPostureTemplatesResponse

listPostures(ListPosturesRequest request)

public 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
NameDescription
requestListPosturesRequest
Returns
TypeDescription
ListPosturesResponse

updatePosture(UpdatePostureRequest request)

public 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
NameDescription
requestUpdatePostureRequest
Returns
TypeDescription
Operation

updatePostureDeployment(UpdatePostureDeploymentRequest request)

public Operation updatePostureDeployment(UpdatePostureDeploymentRequest request)

Updates the parameters of a single PostureDeployment.

Parameter
NameDescription
requestUpdatePostureDeploymentRequest
Returns
TypeDescription
Operation