Class InstancesConnection (2.19.0)

This interface defines virtual methods for each of the user-facing overload sets in InstancesClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type InstancesClient.

To create a concrete instance, see MakeInstancesConnection().

For mocking, see compute_instances_v1_mocks::MockInstancesConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual AddAccessConfig(google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual AddResourcePolicies(google::cloud::cpp::compute::instances::v1::AddResourcePoliciesRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::AddResourcePoliciesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual AggregatedListInstances(google::cloud::cpp::compute::instances::v1::AggregatedListInstancesRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::AggregatedListInstancesRequest
Returns
TypeDescription
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::InstancesScopedList > >

virtual AttachDisk(google::cloud::cpp::compute::instances::v1::AttachDiskRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::AttachDiskRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual BulkInsert(google::cloud::cpp::compute::instances::v1::BulkInsertRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::BulkInsertRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DeleteInstance(google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DeleteAccessConfig(google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DetachDisk(google::cloud::cpp::compute::instances::v1::DetachDiskRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::DetachDiskRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetInstance(google::cloud::cpp::compute::instances::v1::GetInstanceRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetInstanceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Instance >

virtual GetEffectiveFirewalls(google::cloud::cpp::compute::instances::v1::GetEffectiveFirewallsRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetEffectiveFirewallsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::InstancesGetEffectiveFirewallsResponse >

virtual GetGuestAttributes(google::cloud::cpp::compute::instances::v1::GetGuestAttributesRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetGuestAttributesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::GuestAttributes >

virtual GetIamPolicy(google::cloud::cpp::compute::instances::v1::GetIamPolicyRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual GetScreenshot(google::cloud::cpp::compute::instances::v1::GetScreenshotRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetScreenshotRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Screenshot >

virtual GetSerialPortOutput(google::cloud::cpp::compute::instances::v1::GetSerialPortOutputRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetSerialPortOutputRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::SerialPortOutput >

virtual GetShieldedInstanceIdentity(google::cloud::cpp::compute::instances::v1::GetShieldedInstanceIdentityRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::GetShieldedInstanceIdentityRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::ShieldedInstanceIdentity >

virtual InsertInstance(google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual ListInstances(google::cloud::cpp::compute::instances::v1::ListInstancesRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::ListInstancesRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::Instance >

virtual ListReferrers(google::cloud::cpp::compute::instances::v1::ListReferrersRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::ListReferrersRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::Reference >

virtual RemoveResourcePolicies(google::cloud::cpp::compute::instances::v1::RemoveResourcePoliciesRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::RemoveResourcePoliciesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual Reset(google::cloud::cpp::compute::instances::v1::ResetRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::ResetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual Resume(google::cloud::cpp::compute::instances::v1::ResumeRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::ResumeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SendDiagnosticInterrupt(google::cloud::cpp::compute::instances::v1::SendDiagnosticInterruptRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SendDiagnosticInterruptRequest const &
Returns
TypeDescription
Status

virtual SetDeletionProtection(google::cloud::cpp::compute::instances::v1::SetDeletionProtectionRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetDeletionProtectionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetDiskAutoDelete(google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetIamPolicy(google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual SetLabels(google::cloud::cpp::compute::instances::v1::SetLabelsRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetLabelsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetMachineResources(google::cloud::cpp::compute::instances::v1::SetMachineResourcesRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetMachineResourcesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetMachineType(google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetMetadata(google::cloud::cpp::compute::instances::v1::SetMetadataRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetMetadataRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetMinCpuPlatform(google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetName(google::cloud::cpp::compute::instances::v1::SetNameRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetNameRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetScheduling(google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetSecurityPolicy(google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetServiceAccount(google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetShieldedInstanceIntegrityPolicy(google::cloud::cpp::compute::instances::v1::SetShieldedInstanceIntegrityPolicyRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetShieldedInstanceIntegrityPolicyRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetTags(google::cloud::cpp::compute::instances::v1::SetTagsRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SetTagsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SimulateMaintenanceEvent(google::cloud::cpp::compute::instances::v1::SimulateMaintenanceEventRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SimulateMaintenanceEventRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual Start(google::cloud::cpp::compute::instances::v1::StartRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::StartRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual StartWithEncryptionKey(google::cloud::cpp::compute::instances::v1::StartWithEncryptionKeyRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::StartWithEncryptionKeyRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual Stop(google::cloud::cpp::compute::instances::v1::StopRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::StopRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual Suspend(google::cloud::cpp::compute::instances::v1::SuspendRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::SuspendRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual TestIamPermissions(google::cloud::cpp::compute::instances::v1::TestIamPermissionsRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >

virtual UpdateInstance(google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateAccessConfig(google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateDisplayDevice(google::cloud::cpp::compute::instances::v1::UpdateDisplayDeviceRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::UpdateDisplayDeviceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateNetworkInterface(google::cloud::cpp::compute::instances::v1::UpdateNetworkInterfaceRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::UpdateNetworkInterfaceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateShieldedInstanceConfig(google::cloud::cpp::compute::instances::v1::UpdateShieldedInstanceConfigRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::instances::v1::UpdateShieldedInstanceConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >