public class HttpJsonConfigStub extends ConfigStub
REST stub implementation for the Config service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonConfigStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonConfigStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonConfigStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonConfigStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ConfigStubSettings settings)
public static final HttpJsonConfigStub create(ConfigStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | ConfigStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonConfigStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
List<ApiMethodDescriptor> |
Constructors
HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext)
protected HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonConfigStub, 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 | |
---|---|
Name | Description |
settings | ConfigStubSettings |
clientContext | ClientContext |
HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonConfigStub, 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 | |
---|---|
Name | Description |
settings | ConfigStubSettings |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createDeploymentCallable()
public UnaryCallable<CreateDeploymentRequest,Operation> createDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateDeploymentRequest,Operation> |
createDeploymentOperationCallable()
public OperationCallable<CreateDeploymentRequest,Deployment,OperationMetadata> createDeploymentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateDeploymentRequest,Deployment,OperationMetadata> |
deleteDeploymentCallable()
public UnaryCallable<DeleteDeploymentRequest,Operation> deleteDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteDeploymentRequest,Operation> |
deleteDeploymentOperationCallable()
public OperationCallable<DeleteDeploymentRequest,Deployment,OperationMetadata> deleteDeploymentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteDeploymentRequest,Deployment,OperationMetadata> |
deleteStatefileCallable()
public UnaryCallable<DeleteStatefileRequest,Empty> deleteStatefileCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteStatefileRequest,Empty> |
exportDeploymentStatefileCallable()
public UnaryCallable<ExportDeploymentStatefileRequest,Statefile> exportDeploymentStatefileCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportDeploymentStatefileRequest,Statefile> |
exportLockInfoCallable()
public UnaryCallable<ExportLockInfoRequest,LockInfo> exportLockInfoCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportLockInfoRequest,LockInfo> |
exportRevisionStatefileCallable()
public UnaryCallable<ExportRevisionStatefileRequest,Statefile> exportRevisionStatefileCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportRevisionStatefileRequest,Statefile> |
getDeploymentCallable()
public UnaryCallable<GetDeploymentRequest,Deployment> getDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDeploymentRequest,Deployment> |
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns | |
---|---|
Type | Description |
HttpJsonOperationsStub |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getResourceCallable()
public UnaryCallable<GetResourceRequest,Resource> getResourceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetResourceRequest,Resource> |
getRevisionCallable()
public UnaryCallable<GetRevisionRequest,Revision> getRevisionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetRevisionRequest,Revision> |
importStatefileCallable()
public UnaryCallable<ImportStatefileRequest,Statefile> importStatefileCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ImportStatefileRequest,Statefile> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listDeploymentsCallable()
public UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse> listDeploymentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse> |
listDeploymentsPagedCallable()
public UnaryCallable<ListDeploymentsRequest,ConfigClient.ListDeploymentsPagedResponse> listDeploymentsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDeploymentsRequest,ListDeploymentsPagedResponse> |
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,ConfigClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
listResourcesCallable()
public UnaryCallable<ListResourcesRequest,ListResourcesResponse> listResourcesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListResourcesRequest,ListResourcesResponse> |
listResourcesPagedCallable()
public UnaryCallable<ListResourcesRequest,ConfigClient.ListResourcesPagedResponse> listResourcesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListResourcesRequest,ListResourcesPagedResponse> |
listRevisionsCallable()
public UnaryCallable<ListRevisionsRequest,ListRevisionsResponse> listRevisionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListRevisionsRequest,ListRevisionsResponse> |
listRevisionsPagedCallable()
public UnaryCallable<ListRevisionsRequest,ConfigClient.ListRevisionsPagedResponse> listRevisionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListRevisionsRequest,ListRevisionsPagedResponse> |
lockDeploymentCallable()
public UnaryCallable<LockDeploymentRequest,Operation> lockDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<LockDeploymentRequest,Operation> |
lockDeploymentOperationCallable()
public OperationCallable<LockDeploymentRequest,Deployment,OperationMetadata> lockDeploymentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<LockDeploymentRequest,Deployment,OperationMetadata> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
unlockDeploymentCallable()
public UnaryCallable<UnlockDeploymentRequest,Operation> unlockDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UnlockDeploymentRequest,Operation> |
unlockDeploymentOperationCallable()
public OperationCallable<UnlockDeploymentRequest,Deployment,OperationMetadata> unlockDeploymentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UnlockDeploymentRequest,Deployment,OperationMetadata> |
updateDeploymentCallable()
public UnaryCallable<UpdateDeploymentRequest,Operation> updateDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDeploymentRequest,Operation> |
updateDeploymentOperationCallable()
public OperationCallable<UpdateDeploymentRequest,Deployment,OperationMetadata> updateDeploymentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateDeploymentRequest,Deployment,OperationMetadata> |