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
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
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
|
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.
createPostureDeployment(CreatePostureDeploymentRequest request)
public Operation createPostureDeployment(CreatePostureDeploymentRequest request)
Creates a new PostureDeployment in a given project and location.
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.
deletePostureDeployment(DeletePostureDeploymentRequest request)
public Operation deletePostureDeployment(DeletePostureDeploymentRequest request)
Deletes a single PostureDeployment.
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.
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.
getPostureDeployment(GetPostureDeploymentRequest request)
public PostureDeployment getPostureDeployment(GetPostureDeploymentRequest request)
Gets details of a single 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.
listPostureDeployments(ListPostureDeploymentsRequest request)
public ListPostureDeploymentsResponse listPostureDeployments(ListPostureDeploymentsRequest request)
PostureDeployments
Lists PostureDeployments in a given project and location.
listPostureRevisions(ListPostureRevisionsRequest request)
public ListPostureRevisionsResponse listPostureRevisions(ListPostureRevisionsRequest request)
Lists revisions of a Posture in a given organization and location.
listPostureTemplates(ListPostureTemplatesRequest request)
public ListPostureTemplatesResponse listPostureTemplates(ListPostureTemplatesRequest request)
PostureTemplates
Lists all the PostureTemplates available to the user.
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.
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.
updatePostureDeployment(UpdatePostureDeploymentRequest request)
public Operation updatePostureDeployment(UpdatePostureDeploymentRequest request)
Updates the parameters of a single PostureDeployment.