Class SecurityPostureGrpc.SecurityPostureBlockingStub (0.10.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
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request CreatePostureRequest
Returns
Type Description
Operation

createPostureDeployment(CreatePostureDeploymentRequest request)

public Operation createPostureDeployment(CreatePostureDeploymentRequest request)

Creates a new PostureDeployment in a given project and location.

Parameter
Name Description
request CreatePostureDeploymentRequest
Returns
Type Description
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
Name Description
request DeletePostureRequest
Returns
Type Description
Operation

deletePostureDeployment(DeletePostureDeploymentRequest request)

public Operation deletePostureDeployment(DeletePostureDeploymentRequest request)

Deletes a single PostureDeployment.

Parameter
Name Description
request DeletePostureDeploymentRequest
Returns
Type Description
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
Name Description
request ExtractPostureRequest
Returns
Type Description
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
Name Description
request GetPostureRequest
Returns
Type Description
Posture

getPostureDeployment(GetPostureDeploymentRequest request)

public PostureDeployment getPostureDeployment(GetPostureDeploymentRequest request)

Gets details of a single PostureDeployment.

Parameter
Name Description
request GetPostureDeploymentRequest
Returns
Type Description
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
Name Description
request GetPostureTemplateRequest
Returns
Type Description
PostureTemplate

listPostureDeployments(ListPostureDeploymentsRequest request)

public ListPostureDeploymentsResponse listPostureDeployments(ListPostureDeploymentsRequest request)

PostureDeployments Lists PostureDeployments in a given project and location.

Parameter
Name Description
request ListPostureDeploymentsRequest
Returns
Type Description
ListPostureDeploymentsResponse

listPostureRevisions(ListPostureRevisionsRequest request)

public ListPostureRevisionsResponse listPostureRevisions(ListPostureRevisionsRequest request)

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

Parameter
Name Description
request ListPostureRevisionsRequest
Returns
Type Description
ListPostureRevisionsResponse

listPostureTemplates(ListPostureTemplatesRequest request)

public ListPostureTemplatesResponse listPostureTemplates(ListPostureTemplatesRequest request)

PostureTemplates Lists all the PostureTemplates available to the user.

Parameter
Name Description
request ListPostureTemplatesRequest
Returns
Type Description
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
Name Description
request ListPosturesRequest
Returns
Type Description
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
Name Description
request UpdatePostureRequest
Returns
Type Description
Operation

updatePostureDeployment(UpdatePostureDeploymentRequest request)

public Operation updatePostureDeployment(UpdatePostureDeploymentRequest request)

Updates the parameters of a single PostureDeployment.

Parameter
Name Description
request UpdatePostureDeploymentRequest
Returns
Type Description
Operation