Class HttpJsonSecurityPostureStub (0.2.0)

public class HttpJsonSecurityPostureStub extends SecurityPostureStub

REST stub implementation for the SecurityPosture service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SecurityPostureStub > HttpJsonSecurityPostureStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonSecurityPostureStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonSecurityPostureStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSecurityPostureStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSecurityPostureStub
Exceptions
TypeDescription
IOException

create(SecurityPostureStubSettings settings)

public static final HttpJsonSecurityPostureStub create(SecurityPostureStubSettings settings)
Parameter
NameDescription
settingsSecurityPostureStubSettings
Returns
TypeDescription
HttpJsonSecurityPostureStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonSecurityPostureStub(SecurityPostureStubSettings settings, ClientContext clientContext)

protected HttpJsonSecurityPostureStub(SecurityPostureStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSecurityPostureStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsSecurityPostureStubSettings
clientContextClientContext

HttpJsonSecurityPostureStub(SecurityPostureStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSecurityPostureStub(SecurityPostureStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSecurityPostureStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsSecurityPostureStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createPostureCallable()

public UnaryCallable<CreatePostureRequest,Operation> createPostureCallable()
Returns
TypeDescription
UnaryCallable<CreatePostureRequest,Operation>
Overrides

createPostureDeploymentCallable()

public UnaryCallable<CreatePostureDeploymentRequest,Operation> createPostureDeploymentCallable()
Returns
TypeDescription
UnaryCallable<CreatePostureDeploymentRequest,Operation>
Overrides

createPostureDeploymentOperationCallable()

public OperationCallable<CreatePostureDeploymentRequest,PostureDeployment,OperationMetadata> createPostureDeploymentOperationCallable()
Returns
TypeDescription
OperationCallable<CreatePostureDeploymentRequest,PostureDeployment,OperationMetadata>
Overrides

createPostureOperationCallable()

public OperationCallable<CreatePostureRequest,Posture,OperationMetadata> createPostureOperationCallable()
Returns
TypeDescription
OperationCallable<CreatePostureRequest,Posture,OperationMetadata>
Overrides

deletePostureCallable()

public UnaryCallable<DeletePostureRequest,Operation> deletePostureCallable()
Returns
TypeDescription
UnaryCallable<DeletePostureRequest,Operation>
Overrides

deletePostureDeploymentCallable()

public UnaryCallable<DeletePostureDeploymentRequest,Operation> deletePostureDeploymentCallable()
Returns
TypeDescription
UnaryCallable<DeletePostureDeploymentRequest,Operation>
Overrides

deletePostureDeploymentOperationCallable()

public OperationCallable<DeletePostureDeploymentRequest,Empty,OperationMetadata> deletePostureDeploymentOperationCallable()
Returns
TypeDescription
OperationCallable<DeletePostureDeploymentRequest,Empty,OperationMetadata>
Overrides

deletePostureOperationCallable()

public OperationCallable<DeletePostureRequest,Empty,OperationMetadata> deletePostureOperationCallable()
Returns
TypeDescription
OperationCallable<DeletePostureRequest,Empty,OperationMetadata>
Overrides

extractPostureCallable()

public UnaryCallable<ExtractPostureRequest,Operation> extractPostureCallable()
Returns
TypeDescription
UnaryCallable<ExtractPostureRequest,Operation>
Overrides

extractPostureOperationCallable()

public OperationCallable<ExtractPostureRequest,Posture,OperationMetadata> extractPostureOperationCallable()
Returns
TypeDescription
OperationCallable<ExtractPostureRequest,Posture,OperationMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getPostureCallable()

public UnaryCallable<GetPostureRequest,Posture> getPostureCallable()
Returns
TypeDescription
UnaryCallable<GetPostureRequest,Posture>
Overrides

getPostureDeploymentCallable()

public UnaryCallable<GetPostureDeploymentRequest,PostureDeployment> getPostureDeploymentCallable()
Returns
TypeDescription
UnaryCallable<GetPostureDeploymentRequest,PostureDeployment>
Overrides

getPostureTemplateCallable()

public UnaryCallable<GetPostureTemplateRequest,PostureTemplate> getPostureTemplateCallable()
Returns
TypeDescription
UnaryCallable<GetPostureTemplateRequest,PostureTemplate>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,SecurityPostureClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPostureDeploymentsCallable()

public UnaryCallable<ListPostureDeploymentsRequest,ListPostureDeploymentsResponse> listPostureDeploymentsCallable()
Returns
TypeDescription
UnaryCallable<ListPostureDeploymentsRequest,ListPostureDeploymentsResponse>
Overrides

listPostureDeploymentsPagedCallable()

public UnaryCallable<ListPostureDeploymentsRequest,SecurityPostureClient.ListPostureDeploymentsPagedResponse> listPostureDeploymentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPostureDeploymentsRequest,ListPostureDeploymentsPagedResponse>
Overrides

listPostureRevisionsCallable()

public UnaryCallable<ListPostureRevisionsRequest,ListPostureRevisionsResponse> listPostureRevisionsCallable()
Returns
TypeDescription
UnaryCallable<ListPostureRevisionsRequest,ListPostureRevisionsResponse>
Overrides

listPostureRevisionsPagedCallable()

public UnaryCallable<ListPostureRevisionsRequest,SecurityPostureClient.ListPostureRevisionsPagedResponse> listPostureRevisionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPostureRevisionsRequest,ListPostureRevisionsPagedResponse>
Overrides

listPostureTemplatesCallable()

public UnaryCallable<ListPostureTemplatesRequest,ListPostureTemplatesResponse> listPostureTemplatesCallable()
Returns
TypeDescription
UnaryCallable<ListPostureTemplatesRequest,ListPostureTemplatesResponse>
Overrides

listPostureTemplatesPagedCallable()

public UnaryCallable<ListPostureTemplatesRequest,SecurityPostureClient.ListPostureTemplatesPagedResponse> listPostureTemplatesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPostureTemplatesRequest,ListPostureTemplatesPagedResponse>
Overrides

listPosturesCallable()

public UnaryCallable<ListPosturesRequest,ListPosturesResponse> listPosturesCallable()
Returns
TypeDescription
UnaryCallable<ListPosturesRequest,ListPosturesResponse>
Overrides

listPosturesPagedCallable()

public UnaryCallable<ListPosturesRequest,SecurityPostureClient.ListPosturesPagedResponse> listPosturesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPosturesRequest,ListPosturesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePostureCallable()

public UnaryCallable<UpdatePostureRequest,Operation> updatePostureCallable()
Returns
TypeDescription
UnaryCallable<UpdatePostureRequest,Operation>
Overrides

updatePostureDeploymentCallable()

public UnaryCallable<UpdatePostureDeploymentRequest,Operation> updatePostureDeploymentCallable()
Returns
TypeDescription
UnaryCallable<UpdatePostureDeploymentRequest,Operation>
Overrides

updatePostureDeploymentOperationCallable()

public OperationCallable<UpdatePostureDeploymentRequest,PostureDeployment,OperationMetadata> updatePostureDeploymentOperationCallable()
Returns
TypeDescription
OperationCallable<UpdatePostureDeploymentRequest,PostureDeployment,OperationMetadata>
Overrides

updatePostureOperationCallable()

public OperationCallable<UpdatePostureRequest,Posture,OperationMetadata> updatePostureOperationCallable()
Returns
TypeDescription
OperationCallable<UpdatePostureRequest,Posture,OperationMetadata>
Overrides