Class HttpJsonInstancesStub (1.43.0)

public class HttpJsonInstancesStub extends InstancesStub

REST stub implementation for the Instances service API.

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

Inheritance

java.lang.Object > InstancesStub > HttpJsonInstancesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(InstancesStubSettings settings)

public static final HttpJsonInstancesStub create(InstancesStubSettings settings)
Parameter
NameDescription
settingsInstancesStubSettings
Returns
TypeDescription
HttpJsonInstancesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext)

protected HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonInstancesStub, 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
settingsInstancesStubSettings
clientContextClientContext

HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonInstancesStub, 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
settingsInstancesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addAccessConfigCallable()

public UnaryCallable<AddAccessConfigInstanceRequest,Operation> addAccessConfigCallable()
Returns
TypeDescription
UnaryCallable<AddAccessConfigInstanceRequest,Operation>
Overrides

addAccessConfigOperationCallable()

public OperationCallable<AddAccessConfigInstanceRequest,Operation,Operation> addAccessConfigOperationCallable()
Returns
TypeDescription
OperationCallable<AddAccessConfigInstanceRequest,Operation,Operation>
Overrides

addResourcePoliciesCallable()

public UnaryCallable<AddResourcePoliciesInstanceRequest,Operation> addResourcePoliciesCallable()
Returns
TypeDescription
UnaryCallable<AddResourcePoliciesInstanceRequest,Operation>
Overrides

addResourcePoliciesOperationCallable()

public OperationCallable<AddResourcePoliciesInstanceRequest,Operation,Operation> addResourcePoliciesOperationCallable()
Returns
TypeDescription
OperationCallable<AddResourcePoliciesInstanceRequest,Operation,Operation>
Overrides

aggregatedListCallable()

public UnaryCallable<AggregatedListInstancesRequest,InstanceAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListInstancesRequest,InstanceAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListInstancesRequest,InstancesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListInstancesRequest,AggregatedListPagedResponse>
Overrides

attachDiskCallable()

public UnaryCallable<AttachDiskInstanceRequest,Operation> attachDiskCallable()
Returns
TypeDescription
UnaryCallable<AttachDiskInstanceRequest,Operation>
Overrides

attachDiskOperationCallable()

public OperationCallable<AttachDiskInstanceRequest,Operation,Operation> attachDiskOperationCallable()
Returns
TypeDescription
OperationCallable<AttachDiskInstanceRequest,Operation,Operation>
Overrides

awaitTermination(long duration, TimeUnit unit)

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

bulkInsertCallable()

public UnaryCallable<BulkInsertInstanceRequest,Operation> bulkInsertCallable()
Returns
TypeDescription
UnaryCallable<BulkInsertInstanceRequest,Operation>
Overrides

bulkInsertOperationCallable()

public OperationCallable<BulkInsertInstanceRequest,Operation,Operation> bulkInsertOperationCallable()
Returns
TypeDescription
OperationCallable<BulkInsertInstanceRequest,Operation,Operation>
Overrides

close()

public final void close()
Overrides

deleteAccessConfigCallable()

public UnaryCallable<DeleteAccessConfigInstanceRequest,Operation> deleteAccessConfigCallable()
Returns
TypeDescription
UnaryCallable<DeleteAccessConfigInstanceRequest,Operation>
Overrides

deleteAccessConfigOperationCallable()

public OperationCallable<DeleteAccessConfigInstanceRequest,Operation,Operation> deleteAccessConfigOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteAccessConfigInstanceRequest,Operation,Operation>
Overrides

deleteCallable()

public UnaryCallable<DeleteInstanceRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteInstanceRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteInstanceRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteInstanceRequest,Operation,Operation>
Overrides

detachDiskCallable()

public UnaryCallable<DetachDiskInstanceRequest,Operation> detachDiskCallable()
Returns
TypeDescription
UnaryCallable<DetachDiskInstanceRequest,Operation>
Overrides

detachDiskOperationCallable()

public OperationCallable<DetachDiskInstanceRequest,Operation,Operation> detachDiskOperationCallable()
Returns
TypeDescription
OperationCallable<DetachDiskInstanceRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetInstanceRequest,Instance> getCallable()
Returns
TypeDescription
UnaryCallable<GetInstanceRequest,Instance>
Overrides

getEffectiveFirewallsCallable()

public UnaryCallable<GetEffectiveFirewallsInstanceRequest,InstancesGetEffectiveFirewallsResponse> getEffectiveFirewallsCallable()
Returns
TypeDescription
UnaryCallable<GetEffectiveFirewallsInstanceRequest,InstancesGetEffectiveFirewallsResponse>
Overrides

getGuestAttributesCallable()

public UnaryCallable<GetGuestAttributesInstanceRequest,GuestAttributes> getGuestAttributesCallable()
Returns
TypeDescription
UnaryCallable<GetGuestAttributesInstanceRequest,GuestAttributes>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyInstanceRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyInstanceRequest,Policy>
Overrides

getScreenshotCallable()

public UnaryCallable<GetScreenshotInstanceRequest,Screenshot> getScreenshotCallable()
Returns
TypeDescription
UnaryCallable<GetScreenshotInstanceRequest,Screenshot>
Overrides

getSerialPortOutputCallable()

public UnaryCallable<GetSerialPortOutputInstanceRequest,SerialPortOutput> getSerialPortOutputCallable()
Returns
TypeDescription
UnaryCallable<GetSerialPortOutputInstanceRequest,SerialPortOutput>
Overrides

getShieldedInstanceIdentityCallable()

public UnaryCallable<GetShieldedInstanceIdentityInstanceRequest,ShieldedInstanceIdentity> getShieldedInstanceIdentityCallable()
Returns
TypeDescription
UnaryCallable<GetShieldedInstanceIdentityInstanceRequest,ShieldedInstanceIdentity>
Overrides

insertCallable()

public UnaryCallable<InsertInstanceRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertInstanceRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertInstanceRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertInstanceRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListInstancesRequest,InstanceList> listCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesRequest,InstanceList>
Overrides

listPagedCallable()

public UnaryCallable<ListInstancesRequest,InstancesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesRequest,ListPagedResponse>
Overrides

listReferrersCallable()

public UnaryCallable<ListReferrersInstancesRequest,InstanceListReferrers> listReferrersCallable()
Returns
TypeDescription
UnaryCallable<ListReferrersInstancesRequest,InstanceListReferrers>
Overrides

listReferrersPagedCallable()

public UnaryCallable<ListReferrersInstancesRequest,InstancesClient.ListReferrersPagedResponse> listReferrersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReferrersInstancesRequest,ListReferrersPagedResponse>
Overrides

removeResourcePoliciesCallable()

public UnaryCallable<RemoveResourcePoliciesInstanceRequest,Operation> removeResourcePoliciesCallable()
Returns
TypeDescription
UnaryCallable<RemoveResourcePoliciesInstanceRequest,Operation>
Overrides

removeResourcePoliciesOperationCallable()

public OperationCallable<RemoveResourcePoliciesInstanceRequest,Operation,Operation> removeResourcePoliciesOperationCallable()
Returns
TypeDescription
OperationCallable<RemoveResourcePoliciesInstanceRequest,Operation,Operation>
Overrides

resetCallable()

public UnaryCallable<ResetInstanceRequest,Operation> resetCallable()
Returns
TypeDescription
UnaryCallable<ResetInstanceRequest,Operation>
Overrides

resetOperationCallable()

public OperationCallable<ResetInstanceRequest,Operation,Operation> resetOperationCallable()
Returns
TypeDescription
OperationCallable<ResetInstanceRequest,Operation,Operation>
Overrides

resumeCallable()

public UnaryCallable<ResumeInstanceRequest,Operation> resumeCallable()
Returns
TypeDescription
UnaryCallable<ResumeInstanceRequest,Operation>
Overrides

resumeOperationCallable()

public OperationCallable<ResumeInstanceRequest,Operation,Operation> resumeOperationCallable()
Returns
TypeDescription
OperationCallable<ResumeInstanceRequest,Operation,Operation>
Overrides

sendDiagnosticInterruptCallable()

public UnaryCallable<SendDiagnosticInterruptInstanceRequest,SendDiagnosticInterruptInstanceResponse> sendDiagnosticInterruptCallable()
Returns
TypeDescription
UnaryCallable<SendDiagnosticInterruptInstanceRequest,SendDiagnosticInterruptInstanceResponse>
Overrides

setDeletionProtectionCallable()

public UnaryCallable<SetDeletionProtectionInstanceRequest,Operation> setDeletionProtectionCallable()
Returns
TypeDescription
UnaryCallable<SetDeletionProtectionInstanceRequest,Operation>
Overrides

setDeletionProtectionOperationCallable()

public OperationCallable<SetDeletionProtectionInstanceRequest,Operation,Operation> setDeletionProtectionOperationCallable()
Returns
TypeDescription
OperationCallable<SetDeletionProtectionInstanceRequest,Operation,Operation>
Overrides

setDiskAutoDeleteCallable()

public UnaryCallable<SetDiskAutoDeleteInstanceRequest,Operation> setDiskAutoDeleteCallable()
Returns
TypeDescription
UnaryCallable<SetDiskAutoDeleteInstanceRequest,Operation>
Overrides

setDiskAutoDeleteOperationCallable()

public OperationCallable<SetDiskAutoDeleteInstanceRequest,Operation,Operation> setDiskAutoDeleteOperationCallable()
Returns
TypeDescription
OperationCallable<SetDiskAutoDeleteInstanceRequest,Operation,Operation>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyInstanceRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyInstanceRequest,Policy>
Overrides

setLabelsCallable()

public UnaryCallable<SetLabelsInstanceRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsInstanceRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsInstanceRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsInstanceRequest,Operation,Operation>
Overrides

setMachineResourcesCallable()

public UnaryCallable<SetMachineResourcesInstanceRequest,Operation> setMachineResourcesCallable()
Returns
TypeDescription
UnaryCallable<SetMachineResourcesInstanceRequest,Operation>
Overrides

setMachineResourcesOperationCallable()

public OperationCallable<SetMachineResourcesInstanceRequest,Operation,Operation> setMachineResourcesOperationCallable()
Returns
TypeDescription
OperationCallable<SetMachineResourcesInstanceRequest,Operation,Operation>
Overrides

setMachineTypeCallable()

public UnaryCallable<SetMachineTypeInstanceRequest,Operation> setMachineTypeCallable()
Returns
TypeDescription
UnaryCallable<SetMachineTypeInstanceRequest,Operation>
Overrides

setMachineTypeOperationCallable()

public OperationCallable<SetMachineTypeInstanceRequest,Operation,Operation> setMachineTypeOperationCallable()
Returns
TypeDescription
OperationCallable<SetMachineTypeInstanceRequest,Operation,Operation>
Overrides

setMetadataCallable()

public UnaryCallable<SetMetadataInstanceRequest,Operation> setMetadataCallable()
Returns
TypeDescription
UnaryCallable<SetMetadataInstanceRequest,Operation>
Overrides

setMetadataOperationCallable()

public OperationCallable<SetMetadataInstanceRequest,Operation,Operation> setMetadataOperationCallable()
Returns
TypeDescription
OperationCallable<SetMetadataInstanceRequest,Operation,Operation>
Overrides

setMinCpuPlatformCallable()

public UnaryCallable<SetMinCpuPlatformInstanceRequest,Operation> setMinCpuPlatformCallable()
Returns
TypeDescription
UnaryCallable<SetMinCpuPlatformInstanceRequest,Operation>
Overrides

setMinCpuPlatformOperationCallable()

public OperationCallable<SetMinCpuPlatformInstanceRequest,Operation,Operation> setMinCpuPlatformOperationCallable()
Returns
TypeDescription
OperationCallable<SetMinCpuPlatformInstanceRequest,Operation,Operation>
Overrides

setNameCallable()

public UnaryCallable<SetNameInstanceRequest,Operation> setNameCallable()
Returns
TypeDescription
UnaryCallable<SetNameInstanceRequest,Operation>
Overrides

setNameOperationCallable()

public OperationCallable<SetNameInstanceRequest,Operation,Operation> setNameOperationCallable()
Returns
TypeDescription
OperationCallable<SetNameInstanceRequest,Operation,Operation>
Overrides

setSchedulingCallable()

public UnaryCallable<SetSchedulingInstanceRequest,Operation> setSchedulingCallable()
Returns
TypeDescription
UnaryCallable<SetSchedulingInstanceRequest,Operation>
Overrides

setSchedulingOperationCallable()

public OperationCallable<SetSchedulingInstanceRequest,Operation,Operation> setSchedulingOperationCallable()
Returns
TypeDescription
OperationCallable<SetSchedulingInstanceRequest,Operation,Operation>
Overrides

setSecurityPolicyCallable()

public UnaryCallable<SetSecurityPolicyInstanceRequest,Operation> setSecurityPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetSecurityPolicyInstanceRequest,Operation>
Overrides

setSecurityPolicyOperationCallable()

public OperationCallable<SetSecurityPolicyInstanceRequest,Operation,Operation> setSecurityPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<SetSecurityPolicyInstanceRequest,Operation,Operation>
Overrides

setServiceAccountCallable()

public UnaryCallable<SetServiceAccountInstanceRequest,Operation> setServiceAccountCallable()
Returns
TypeDescription
UnaryCallable<SetServiceAccountInstanceRequest,Operation>
Overrides

setServiceAccountOperationCallable()

public OperationCallable<SetServiceAccountInstanceRequest,Operation,Operation> setServiceAccountOperationCallable()
Returns
TypeDescription
OperationCallable<SetServiceAccountInstanceRequest,Operation,Operation>
Overrides

setShieldedInstanceIntegrityPolicyCallable()

public UnaryCallable<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation> setShieldedInstanceIntegrityPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation>
Overrides

setShieldedInstanceIntegrityPolicyOperationCallable()

public OperationCallable<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation,Operation> setShieldedInstanceIntegrityPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<SetShieldedInstanceIntegrityPolicyInstanceRequest,Operation,Operation>
Overrides

setTagsCallable()

public UnaryCallable<SetTagsInstanceRequest,Operation> setTagsCallable()
Returns
TypeDescription
UnaryCallable<SetTagsInstanceRequest,Operation>
Overrides

setTagsOperationCallable()

public OperationCallable<SetTagsInstanceRequest,Operation,Operation> setTagsOperationCallable()
Returns
TypeDescription
OperationCallable<SetTagsInstanceRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

simulateMaintenanceEventCallable()

public UnaryCallable<SimulateMaintenanceEventInstanceRequest,Operation> simulateMaintenanceEventCallable()
Returns
TypeDescription
UnaryCallable<SimulateMaintenanceEventInstanceRequest,Operation>
Overrides

simulateMaintenanceEventOperationCallable()

public OperationCallable<SimulateMaintenanceEventInstanceRequest,Operation,Operation> simulateMaintenanceEventOperationCallable()
Returns
TypeDescription
OperationCallable<SimulateMaintenanceEventInstanceRequest,Operation,Operation>
Overrides

startCallable()

public UnaryCallable<StartInstanceRequest,Operation> startCallable()
Returns
TypeDescription
UnaryCallable<StartInstanceRequest,Operation>
Overrides

startOperationCallable()

public OperationCallable<StartInstanceRequest,Operation,Operation> startOperationCallable()
Returns
TypeDescription
OperationCallable<StartInstanceRequest,Operation,Operation>
Overrides

startWithEncryptionKeyCallable()

public UnaryCallable<StartWithEncryptionKeyInstanceRequest,Operation> startWithEncryptionKeyCallable()
Returns
TypeDescription
UnaryCallable<StartWithEncryptionKeyInstanceRequest,Operation>
Overrides

startWithEncryptionKeyOperationCallable()

public OperationCallable<StartWithEncryptionKeyInstanceRequest,Operation,Operation> startWithEncryptionKeyOperationCallable()
Returns
TypeDescription
OperationCallable<StartWithEncryptionKeyInstanceRequest,Operation,Operation>
Overrides

stopCallable()

public UnaryCallable<StopInstanceRequest,Operation> stopCallable()
Returns
TypeDescription
UnaryCallable<StopInstanceRequest,Operation>
Overrides

stopOperationCallable()

public OperationCallable<StopInstanceRequest,Operation,Operation> stopOperationCallable()
Returns
TypeDescription
OperationCallable<StopInstanceRequest,Operation,Operation>
Overrides

suspendCallable()

public UnaryCallable<SuspendInstanceRequest,Operation> suspendCallable()
Returns
TypeDescription
UnaryCallable<SuspendInstanceRequest,Operation>
Overrides

suspendOperationCallable()

public OperationCallable<SuspendInstanceRequest,Operation,Operation> suspendOperationCallable()
Returns
TypeDescription
OperationCallable<SuspendInstanceRequest,Operation,Operation>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsInstanceRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsInstanceRequest,TestPermissionsResponse>
Overrides

updateAccessConfigCallable()

public UnaryCallable<UpdateAccessConfigInstanceRequest,Operation> updateAccessConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateAccessConfigInstanceRequest,Operation>
Overrides

updateAccessConfigOperationCallable()

public OperationCallable<UpdateAccessConfigInstanceRequest,Operation,Operation> updateAccessConfigOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateAccessConfigInstanceRequest,Operation,Operation>
Overrides

updateCallable()

public UnaryCallable<UpdateInstanceRequest,Operation> updateCallable()
Returns
TypeDescription
UnaryCallable<UpdateInstanceRequest,Operation>
Overrides

updateDisplayDeviceCallable()

public UnaryCallable<UpdateDisplayDeviceInstanceRequest,Operation> updateDisplayDeviceCallable()
Returns
TypeDescription
UnaryCallable<UpdateDisplayDeviceInstanceRequest,Operation>
Overrides

updateDisplayDeviceOperationCallable()

public OperationCallable<UpdateDisplayDeviceInstanceRequest,Operation,Operation> updateDisplayDeviceOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateDisplayDeviceInstanceRequest,Operation,Operation>
Overrides

updateNetworkInterfaceCallable()

public UnaryCallable<UpdateNetworkInterfaceInstanceRequest,Operation> updateNetworkInterfaceCallable()
Returns
TypeDescription
UnaryCallable<UpdateNetworkInterfaceInstanceRequest,Operation>
Overrides

updateNetworkInterfaceOperationCallable()

public OperationCallable<UpdateNetworkInterfaceInstanceRequest,Operation,Operation> updateNetworkInterfaceOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateNetworkInterfaceInstanceRequest,Operation,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateInstanceRequest,Operation,Operation> updateOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateInstanceRequest,Operation,Operation>
Overrides

updateShieldedInstanceConfigCallable()

public UnaryCallable<UpdateShieldedInstanceConfigInstanceRequest,Operation> updateShieldedInstanceConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateShieldedInstanceConfigInstanceRequest,Operation>
Overrides

updateShieldedInstanceConfigOperationCallable()

public OperationCallable<UpdateShieldedInstanceConfigInstanceRequest,Operation,Operation> updateShieldedInstanceConfigOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateShieldedInstanceConfigInstanceRequest,Operation,Operation>
Overrides