| Modifier and Type | Class and Description |
|---|---|
class |
SQLAdmin.Instances.AddServerCa |
class |
SQLAdmin.Instances.Clone |
class |
SQLAdmin.Instances.Delete |
class |
SQLAdmin.Instances.DemoteMaster |
class |
SQLAdmin.Instances.Export |
class |
SQLAdmin.Instances.Failover |
class |
SQLAdmin.Instances.Get |
class |
SQLAdmin.Instances.Insert |
class |
SQLAdmin.Instances.List |
class |
SQLAdmin.Instances.ListServerCas |
class |
SQLAdmin.Instances.Patch |
class |
SQLAdmin.Instances.PromoteReplica |
class |
SQLAdmin.Instances.ResetSslConfig |
class |
SQLAdmin.Instances.Restart |
class |
SQLAdmin.Instances.RestoreBackup |
class |
SQLAdmin.Instances.RotateServerCa |
class |
SQLAdmin.Instances.SQLAdminImport |
class |
SQLAdmin.Instances.StartReplica |
class |
SQLAdmin.Instances.StopReplica |
class |
SQLAdmin.Instances.TruncateLog |
class |
SQLAdmin.Instances.Update |
| Constructor and Description |
|---|
Instances() |
| Modifier and Type | Method and Description |
|---|---|
SQLAdmin.Instances.AddServerCa |
addServerCa(String project,
String instance)
Add a new trusted Certificate Authority (CA) version for the specified instance.
|
SQLAdmin.Instances.Clone |
clone(String project,
String instance,
InstancesCloneRequest content)
Creates a Cloud SQL instance as a clone of the source instance.
|
SQLAdmin.Instances.Delete |
delete(String project,
String instance)
Deletes a Cloud SQL instance.
|
SQLAdmin.Instances.DemoteMaster |
demoteMaster(String project,
String instance,
InstancesDemoteMasterRequest content)
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
|
SQLAdmin.Instances.Export |
export(String project,
String instance,
InstancesExportRequest content)
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
SQLAdmin.Instances.Failover |
failover(String project,
String instance,
InstancesFailoverRequest content)
Failover the instance to its failover replica instance.
|
SQLAdmin.Instances.Get |
get(String project,
String instance)
Retrieves a resource containing information about a Cloud SQL instance.
|
SQLAdmin.Instances.Insert |
insert(String project,
DatabaseInstance content)
Creates a new Cloud SQL instance.
|
SQLAdmin.Instances.List |
list(String project)
Lists instances under a given project in the alphabetical order of the instance name.
|
SQLAdmin.Instances.ListServerCas |
listServerCas(String project,
String instance)
Lists all of the trusted Certificate Authorities (CAs) for the specified instance.
|
SQLAdmin.Instances.Patch |
patch(String project,
String instance,
DatabaseInstance content)
Updates settings of a Cloud SQL instance.
|
SQLAdmin.Instances.PromoteReplica |
promoteReplica(String project,
String instance)
Promotes the read replica instance to be a stand-alone Cloud SQL instance.
|
SQLAdmin.Instances.ResetSslConfig |
resetSslConfig(String project,
String instance)
Deletes all client certificates and generates a new server SSL certificate for the instance.
|
SQLAdmin.Instances.Restart |
restart(String project,
String instance)
Restarts a Cloud SQL instance.
|
SQLAdmin.Instances.RestoreBackup |
restoreBackup(String project,
String instance,
InstancesRestoreBackupRequest content)
Restores a backup of a Cloud SQL instance.
|
SQLAdmin.Instances.RotateServerCa |
rotateServerCa(String project,
String instance,
InstancesRotateServerCaRequest content)
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously
added with the addServerCA method.
|
SQLAdmin.Instances.SQLAdminImport |
sqlImport(String project,
String instance,
InstancesImportRequest content)
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
|
SQLAdmin.Instances.StartReplica |
startReplica(String project,
String instance)
Starts the replication in the read replica instance.
|
SQLAdmin.Instances.StopReplica |
stopReplica(String project,
String instance)
Stops the replication in the read replica instance.
|
SQLAdmin.Instances.TruncateLog |
truncateLog(String project,
String instance,
InstancesTruncateLogRequest content)
Truncate MySQL general and slow query log tables
Create a request for the method "instances.truncateLog".
|
SQLAdmin.Instances.Update |
update(String project,
String instance,
DatabaseInstance content)
Updates settings of a Cloud SQL instance.
|
public SQLAdmin.Instances.AddServerCa addServerCa(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Clone clone(String project, String instance, InstancesCloneRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the source as well as the clone Cloud SQL instance.instance - The ID of the Cloud SQL instance to be cloned (source). This does not
include the project ID.content - the InstancesCloneRequestIOExceptionpublic SQLAdmin.Instances.Delete delete(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance to be deleted.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.DemoteMaster demoteMaster(String project, String instance, InstancesDemoteMasterRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the instance.instance - Cloud SQL instance name.content - the InstancesDemoteMasterRequestIOExceptionpublic SQLAdmin.Instances.Export export(String project, String instance, InstancesExportRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance to be exported.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesExportRequestIOExceptionpublic SQLAdmin.Instances.Failover failover(String project, String instance, InstancesFailoverRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesFailoverRequestIOExceptionpublic SQLAdmin.Instances.Get get(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Database instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.SQLAdminImport sqlImport(String project, String instance, InstancesImportRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesImportRequestIOExceptionpublic SQLAdmin.Instances.Insert insert(String project, DatabaseInstance content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project to which the newly created Cloud SQL instances
should belong.content - the DatabaseInstanceIOExceptionpublic SQLAdmin.Instances.List list(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project for which to list Cloud SQL instances.IOExceptionpublic SQLAdmin.Instances.ListServerCas listServerCas(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Patch patch(String project, String instance, DatabaseInstance content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the DatabaseInstanceIOExceptionpublic SQLAdmin.Instances.PromoteReplica promoteReplica(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.ResetSslConfig resetSslConfig(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.Restart restart(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance to be restarted.instance - Cloud SQL instance ID. This does not include the project ID.IOExceptionpublic SQLAdmin.Instances.RestoreBackup restoreBackup(String project, String instance, InstancesRestoreBackupRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesRestoreBackupRequestIOExceptionpublic SQLAdmin.Instances.RotateServerCa rotateServerCa(String project, String instance, InstancesRotateServerCaRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesRotateServerCaRequestIOExceptionpublic SQLAdmin.Instances.StartReplica startReplica(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.StopReplica stopReplica(String project, String instance) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - ID of the project that contains the read replica.instance - Cloud SQL read replica instance name.IOExceptionpublic SQLAdmin.Instances.TruncateLog truncateLog(String project, String instance, InstancesTruncateLogRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the Cloud SQL project.instance - Cloud SQL instance ID. This does not include the project ID.content - the InstancesTruncateLogRequestIOExceptionpublic SQLAdmin.Instances.Update update(String project, String instance, DatabaseInstance content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID of the project that contains the instance.instance - Cloud SQL instance ID. This does not include the project ID.content - the DatabaseInstanceIOExceptionCopyright © 2011–2019 Google. All rights reserved.