Class HttpJsonNetworkSecurityStub (0.24.0)

public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub

REST stub implementation for the NetworkSecurity service API.

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

Inheritance

java.lang.Object > NetworkSecurityStub > HttpJsonNetworkSecurityStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(NetworkSecurityStubSettings settings)

public static final HttpJsonNetworkSecurityStub create(NetworkSecurityStubSettings settings)
Parameter
NameDescription
settingsNetworkSecurityStubSettings
Returns
TypeDescription
HttpJsonNetworkSecurityStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonNetworkSecurityStub(NetworkSecurityStubSettings settings, ClientContext clientContext)

protected HttpJsonNetworkSecurityStub(NetworkSecurityStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonNetworkSecurityStub, 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
settingsNetworkSecurityStubSettings
clientContextClientContext

HttpJsonNetworkSecurityStub(NetworkSecurityStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonNetworkSecurityStub(NetworkSecurityStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonNetworkSecurityStub, 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
settingsNetworkSecurityStubSettings
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

createAuthorizationPolicyCallable()

public UnaryCallable<CreateAuthorizationPolicyRequest,Operation> createAuthorizationPolicyCallable()
Returns
TypeDescription
UnaryCallable<CreateAuthorizationPolicyRequest,Operation>
Overrides

createAuthorizationPolicyOperationCallable()

public OperationCallable<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata> createAuthorizationPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<CreateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>
Overrides

createClientTlsPolicyCallable()

public UnaryCallable<CreateClientTlsPolicyRequest,Operation> createClientTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<CreateClientTlsPolicyRequest,Operation>
Overrides

createClientTlsPolicyOperationCallable()

public OperationCallable<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata> createClientTlsPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<CreateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>
Overrides

createServerTlsPolicyCallable()

public UnaryCallable<CreateServerTlsPolicyRequest,Operation> createServerTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<CreateServerTlsPolicyRequest,Operation>
Overrides

createServerTlsPolicyOperationCallable()

public OperationCallable<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata> createServerTlsPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<CreateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>
Overrides

deleteAuthorizationPolicyCallable()

public UnaryCallable<DeleteAuthorizationPolicyRequest,Operation> deleteAuthorizationPolicyCallable()
Returns
TypeDescription
UnaryCallable<DeleteAuthorizationPolicyRequest,Operation>
Overrides

deleteAuthorizationPolicyOperationCallable()

public OperationCallable<DeleteAuthorizationPolicyRequest,Empty,OperationMetadata> deleteAuthorizationPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteAuthorizationPolicyRequest,Empty,OperationMetadata>
Overrides

deleteClientTlsPolicyCallable()

public UnaryCallable<DeleteClientTlsPolicyRequest,Operation> deleteClientTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<DeleteClientTlsPolicyRequest,Operation>
Overrides

deleteClientTlsPolicyOperationCallable()

public OperationCallable<DeleteClientTlsPolicyRequest,Empty,OperationMetadata> deleteClientTlsPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteClientTlsPolicyRequest,Empty,OperationMetadata>
Overrides

deleteServerTlsPolicyCallable()

public UnaryCallable<DeleteServerTlsPolicyRequest,Operation> deleteServerTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<DeleteServerTlsPolicyRequest,Operation>
Overrides

deleteServerTlsPolicyOperationCallable()

public OperationCallable<DeleteServerTlsPolicyRequest,Empty,OperationMetadata> deleteServerTlsPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteServerTlsPolicyRequest,Empty,OperationMetadata>
Overrides

getAuthorizationPolicyCallable()

public UnaryCallable<GetAuthorizationPolicyRequest,AuthorizationPolicy> getAuthorizationPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetAuthorizationPolicyRequest,AuthorizationPolicy>
Overrides

getClientTlsPolicyCallable()

public UnaryCallable<GetClientTlsPolicyRequest,ClientTlsPolicy> getClientTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetClientTlsPolicyRequest,ClientTlsPolicy>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

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

getServerTlsPolicyCallable()

public UnaryCallable<GetServerTlsPolicyRequest,ServerTlsPolicy> getServerTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetServerTlsPolicyRequest,ServerTlsPolicy>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAuthorizationPoliciesCallable()

public UnaryCallable<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse> listAuthorizationPoliciesCallable()
Returns
TypeDescription
UnaryCallable<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesResponse>
Overrides

listAuthorizationPoliciesPagedCallable()

public UnaryCallable<ListAuthorizationPoliciesRequest,NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse> listAuthorizationPoliciesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAuthorizationPoliciesRequest,ListAuthorizationPoliciesPagedResponse>
Overrides

listClientTlsPoliciesCallable()

public UnaryCallable<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse> listClientTlsPoliciesCallable()
Returns
TypeDescription
UnaryCallable<ListClientTlsPoliciesRequest,ListClientTlsPoliciesResponse>
Overrides

listClientTlsPoliciesPagedCallable()

public UnaryCallable<ListClientTlsPoliciesRequest,NetworkSecurityClient.ListClientTlsPoliciesPagedResponse> listClientTlsPoliciesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListClientTlsPoliciesRequest,ListClientTlsPoliciesPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

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

listServerTlsPoliciesCallable()

public UnaryCallable<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse> listServerTlsPoliciesCallable()
Returns
TypeDescription
UnaryCallable<ListServerTlsPoliciesRequest,ListServerTlsPoliciesResponse>
Overrides

listServerTlsPoliciesPagedCallable()

public UnaryCallable<ListServerTlsPoliciesRequest,NetworkSecurityClient.ListServerTlsPoliciesPagedResponse> listServerTlsPoliciesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListServerTlsPoliciesRequest,ListServerTlsPoliciesPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateAuthorizationPolicyCallable()

public UnaryCallable<UpdateAuthorizationPolicyRequest,Operation> updateAuthorizationPolicyCallable()
Returns
TypeDescription
UnaryCallable<UpdateAuthorizationPolicyRequest,Operation>
Overrides

updateAuthorizationPolicyOperationCallable()

public OperationCallable<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata> updateAuthorizationPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateAuthorizationPolicyRequest,AuthorizationPolicy,OperationMetadata>
Overrides

updateClientTlsPolicyCallable()

public UnaryCallable<UpdateClientTlsPolicyRequest,Operation> updateClientTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<UpdateClientTlsPolicyRequest,Operation>
Overrides

updateClientTlsPolicyOperationCallable()

public OperationCallable<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata> updateClientTlsPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateClientTlsPolicyRequest,ClientTlsPolicy,OperationMetadata>
Overrides

updateServerTlsPolicyCallable()

public UnaryCallable<UpdateServerTlsPolicyRequest,Operation> updateServerTlsPolicyCallable()
Returns
TypeDescription
UnaryCallable<UpdateServerTlsPolicyRequest,Operation>
Overrides

updateServerTlsPolicyOperationCallable()

public OperationCallable<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata> updateServerTlsPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateServerTlsPolicyRequest,ServerTlsPolicy,OperationMetadata>
Overrides