Class SqlInstancesServiceConnection (2.21.0)

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

To create a concrete instance, see MakeSqlInstancesServiceConnection().

For mocking, see sql_v1_mocks::MockSqlInstancesServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual AddServerCa(google::cloud::sql::v1::SqlInstancesAddServerCaRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesAddServerCaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Clone(google::cloud::sql::v1::SqlInstancesCloneRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesCloneRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Delete(google::cloud::sql::v1::SqlInstancesDeleteRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesDeleteRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual DemoteMaster(google::cloud::sql::v1::SqlInstancesDemoteMasterRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesDemoteMasterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Demote(google::cloud::sql::v1::SqlInstancesDemoteRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesDemoteRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Export(google::cloud::sql::v1::SqlInstancesExportRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesExportRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Failover(google::cloud::sql::v1::SqlInstancesFailoverRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesFailoverRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Reencrypt(google::cloud::sql::v1::SqlInstancesReencryptRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesReencryptRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Get(google::cloud::sql::v1::SqlInstancesGetRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesGetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::DatabaseInstance >

virtual Import(google::cloud::sql::v1::SqlInstancesImportRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesImportRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Insert(google::cloud::sql::v1::SqlInstancesInsertRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesInsertRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual List(google::cloud::sql::v1::SqlInstancesListRequest)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesListRequest
Returns
TypeDescription
StreamRange< google::cloud::sql::v1::DatabaseInstance >

virtual ListServerCas(google::cloud::sql::v1::SqlInstancesListServerCasRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesListServerCasRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::InstancesListServerCasResponse >

virtual Patch(google::cloud::sql::v1::SqlInstancesPatchRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesPatchRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual PromoteReplica(google::cloud::sql::v1::SqlInstancesPromoteReplicaRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesPromoteReplicaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Switchover(google::cloud::sql::v1::SqlInstancesSwitchoverRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesSwitchoverRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual ResetSslConfig(google::cloud::sql::v1::SqlInstancesResetSslConfigRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesResetSslConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Restart(google::cloud::sql::v1::SqlInstancesRestartRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesRestartRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual RestoreBackup(google::cloud::sql::v1::SqlInstancesRestoreBackupRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesRestoreBackupRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual RotateServerCa(google::cloud::sql::v1::SqlInstancesRotateServerCaRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesRotateServerCaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual StartReplica(google::cloud::sql::v1::SqlInstancesStartReplicaRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesStartReplicaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual StopReplica(google::cloud::sql::v1::SqlInstancesStopReplicaRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesStopReplicaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual TruncateLog(google::cloud::sql::v1::SqlInstancesTruncateLogRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesTruncateLogRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual Update(google::cloud::sql::v1::SqlInstancesUpdateRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesUpdateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual CreateEphemeral(google::cloud::sql::v1::SqlInstancesCreateEphemeralCertRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesCreateEphemeralCertRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::SslCert >

virtual RescheduleMaintenance(google::cloud::sql::v1::SqlInstancesRescheduleMaintenanceRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesRescheduleMaintenanceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual VerifyExternalSyncSettings(google::cloud::sql::v1::SqlInstancesVerifyExternalSyncSettingsRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesVerifyExternalSyncSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::SqlInstancesVerifyExternalSyncSettingsResponse >

virtual StartExternalSync(google::cloud::sql::v1::SqlInstancesStartExternalSyncRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesStartExternalSyncRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual PerformDiskShrink(google::cloud::sql::v1::SqlInstancesPerformDiskShrinkRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesPerformDiskShrinkRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual GetDiskShrinkConfig(google::cloud::sql::v1::SqlInstancesGetDiskShrinkConfigRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesGetDiskShrinkConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::SqlInstancesGetDiskShrinkConfigResponse >

virtual ResetReplicaSize(google::cloud::sql::v1::SqlInstancesResetReplicaSizeRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesResetReplicaSizeRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual GetLatestRecoveryTime(google::cloud::sql::v1::SqlInstancesGetLatestRecoveryTimeRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlInstancesGetLatestRecoveryTimeRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::SqlInstancesGetLatestRecoveryTimeResponse >