Class HttpJsonInstancesStub (1.63.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonInstancesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonInstancesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonInstancesStub
Exceptions
Type Description
IOException

create(InstancesStubSettings settings)

public static final HttpJsonInstancesStub create(InstancesStubSettings settings)
Parameter
Name Description
settings InstancesStubSettings
Returns
Type Description
HttpJsonInstancesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings InstancesStubSettings
clientContext ClientContext

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
Name Description
settings InstancesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

addAccessConfigCallable()

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

addAccessConfigOperationCallable()

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

addResourcePoliciesCallable()

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

addResourcePoliciesOperationCallable()

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

aggregatedListCallable()

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

aggregatedListPagedCallable()

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

attachDiskCallable()

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

attachDiskOperationCallable()

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

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

bulkInsertCallable()

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

bulkInsertOperationCallable()

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

close()

public final void close()
Overrides

deleteAccessConfigCallable()

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

deleteAccessConfigOperationCallable()

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

deleteCallable()

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

deleteOperationCallable()

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

detachDiskCallable()

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

detachDiskOperationCallable()

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

getCallable()

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

getEffectiveFirewallsCallable()

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

getGuestAttributesCallable()

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

getIamPolicyCallable()

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

getScreenshotCallable()

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

getSerialPortOutputCallable()

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

getShieldedInstanceIdentityCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

listReferrersCallable()

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

listReferrersPagedCallable()

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

performMaintenanceCallable()

public UnaryCallable<PerformMaintenanceInstanceRequest,Operation> performMaintenanceCallable()
Returns
Type Description
UnaryCallable<PerformMaintenanceInstanceRequest,Operation>
Overrides

performMaintenanceOperationCallable()

public OperationCallable<PerformMaintenanceInstanceRequest,Operation,Operation> performMaintenanceOperationCallable()
Returns
Type Description
OperationCallable<PerformMaintenanceInstanceRequest,Operation,Operation>
Overrides

removeResourcePoliciesCallable()

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

removeResourcePoliciesOperationCallable()

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

resetCallable()

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

resetOperationCallable()

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

resumeCallable()

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

resumeOperationCallable()

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

sendDiagnosticInterruptCallable()

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

setDeletionProtectionCallable()

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

setDeletionProtectionOperationCallable()

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

setDiskAutoDeleteCallable()

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

setDiskAutoDeleteOperationCallable()

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

setIamPolicyCallable()

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

setLabelsCallable()

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

setLabelsOperationCallable()

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

setMachineResourcesCallable()

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

setMachineResourcesOperationCallable()

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

setMachineTypeCallable()

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

setMachineTypeOperationCallable()

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

setMetadataCallable()

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

setMetadataOperationCallable()

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

setMinCpuPlatformCallable()

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

setMinCpuPlatformOperationCallable()

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

setNameCallable()

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

setNameOperationCallable()

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

setSchedulingCallable()

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

setSchedulingOperationCallable()

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

setSecurityPolicyCallable()

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

setSecurityPolicyOperationCallable()

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

setServiceAccountCallable()

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

setServiceAccountOperationCallable()

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

setShieldedInstanceIntegrityPolicyCallable()

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

setShieldedInstanceIntegrityPolicyOperationCallable()

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

setTagsCallable()

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

setTagsOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

simulateMaintenanceEventCallable()

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

simulateMaintenanceEventOperationCallable()

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

startCallable()

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

startOperationCallable()

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

startWithEncryptionKeyCallable()

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

startWithEncryptionKeyOperationCallable()

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

stopCallable()

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

stopOperationCallable()

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

suspendCallable()

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

suspendOperationCallable()

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

testIamPermissionsCallable()

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

updateAccessConfigCallable()

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

updateAccessConfigOperationCallable()

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

updateCallable()

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

updateDisplayDeviceCallable()

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

updateDisplayDeviceOperationCallable()

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

updateNetworkInterfaceCallable()

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

updateNetworkInterfaceOperationCallable()

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

updateOperationCallable()

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

updateShieldedInstanceConfigCallable()

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

updateShieldedInstanceConfigOperationCallable()

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