Class SecurityPostureGrpc.SecurityPostureFutureStub (0.41.0)
public static final class SecurityPostureGrpc.SecurityPostureFutureStub extends AbstractFutureStub<SecurityPostureGrpc.SecurityPostureFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service SecurityPosture.
Service describing handlers for resources.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractFutureStub >
SecurityPostureGrpc.SecurityPostureFutureStub
Inherited Members
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<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(java.time.Duration)
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.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected SecurityPostureGrpc.SecurityPostureFutureStub 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 ListenableFuture<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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
createPostureDeployment(CreatePostureDeploymentRequest request)
public ListenableFuture<Operation> createPostureDeployment(CreatePostureDeploymentRequest request)
Creates a new PostureDeployment in a given project and location.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
deletePosture(DeletePostureRequest request)
public ListenableFuture<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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
deletePostureDeployment(DeletePostureDeploymentRequest request)
public ListenableFuture<Operation> deletePostureDeployment(DeletePostureDeploymentRequest request)
Deletes a single PostureDeployment.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
public ListenableFuture<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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
getPosture(GetPostureRequest request)
public ListenableFuture<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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Posture> |
|
getPostureDeployment(GetPostureDeploymentRequest request)
public ListenableFuture<PostureDeployment> getPostureDeployment(GetPostureDeploymentRequest request)
Gets details of a single PostureDeployment.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<PostureDeployment> |
|
getPostureTemplate(GetPostureTemplateRequest request)
public ListenableFuture<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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<PostureTemplate> |
|
listPostureDeployments(ListPostureDeploymentsRequest request)
public ListenableFuture<ListPostureDeploymentsResponse> listPostureDeployments(ListPostureDeploymentsRequest request)
PostureDeployments
Lists PostureDeployments in a given project and location.
listPostureRevisions(ListPostureRevisionsRequest request)
public ListenableFuture<ListPostureRevisionsResponse> listPostureRevisions(ListPostureRevisionsRequest request)
Lists revisions of a Posture in a given organization and location.
listPostureTemplates(ListPostureTemplatesRequest request)
public ListenableFuture<ListPostureTemplatesResponse> listPostureTemplates(ListPostureTemplatesRequest request)
PostureTemplates
Lists all the PostureTemplates available to the user.
listPostures(ListPosturesRequest request)
public ListenableFuture<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 ListenableFuture<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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
updatePostureDeployment(UpdatePostureDeploymentRequest request)
public ListenableFuture<Operation> updatePostureDeployment(UpdatePostureDeploymentRequest request)
Updates the parameters of a single PostureDeployment.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]