Class SqlInstancesServiceConnection (2.20.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesAddServerCaRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesCloneRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesDeleteRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesDemoteMasterRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesDemoteRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesExportRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesFailoverRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesReencryptRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesGetRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::DatabaseInstance >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesImportRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesInsertRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesListRequest
Returns
Type Description
StreamRange< google::cloud::sql::v1::DatabaseInstance >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesListServerCasRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::InstancesListServerCasResponse >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesPatchRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesPromoteReplicaRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesSwitchoverRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesResetSslConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesRestartRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesRestoreBackupRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesRotateServerCaRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesStartReplicaRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesStopReplicaRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesTruncateLogRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesUpdateRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesCreateEphemeralCertRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::SslCert >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesRescheduleMaintenanceRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesVerifyExternalSyncSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::SqlInstancesVerifyExternalSyncSettingsResponse >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesStartExternalSyncRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesPerformDiskShrinkRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesGetDiskShrinkConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::SqlInstancesGetDiskShrinkConfigResponse >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesResetReplicaSizeRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlInstancesGetLatestRecoveryTimeRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::SqlInstancesGetLatestRecoveryTimeResponse >