public class SQLAdmin.Instances
extends java.lang.Object
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(java.lang.String project,
java.lang.String instance)
Add a new trusted Certificate Authority (CA) version for the specified instance.
|
SQLAdmin.Instances.Clone |
clone(java.lang.String project,
java.lang.String instance,
InstancesCloneRequest content)
Creates a Cloud SQL instance as a clone of the source instance.
|
SQLAdmin.Instances.Delete |
delete(java.lang.String project,
java.lang.String instance)
Deletes a Cloud SQL instance.
|
SQLAdmin.Instances.DemoteMaster |
demoteMaster(java.lang.String project,
java.lang.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(java.lang.String project,
java.lang.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(java.lang.String project,
java.lang.String instance,
InstancesFailoverRequest content)
Failover the instance to its failover replica instance.
|
SQLAdmin.Instances.Get |
get(java.lang.String project,
java.lang.String instance)
Retrieves a resource containing information about a Cloud SQL instance.
|
SQLAdmin.Instances.Insert |
insert(java.lang.String project,
DatabaseInstance content)
Creates a new Cloud SQL instance.
|
SQLAdmin.Instances.List |
list(java.lang.String project)
Lists instances under a given project in the alphabetical order of the instance name.
|
SQLAdmin.Instances.ListServerCas |
listServerCas(java.lang.String project,
java.lang.String instance)
Lists all of the trusted Certificate Authorities (CAs) for the specified instance.
|
SQLAdmin.Instances.Patch |
patch(java.lang.String project,
java.lang.String instance,
DatabaseInstance content)
Updates settings of a Cloud SQL instance.
|
SQLAdmin.Instances.PromoteReplica |
promoteReplica(java.lang.String project,
java.lang.String instance)
Promotes the read replica instance to be a stand-alone Cloud SQL instance.
|
SQLAdmin.Instances.ResetSslConfig |
resetSslConfig(java.lang.String project,
java.lang.String instance)
Deletes all client certificates and generates a new server SSL certificate for the instance.
|
SQLAdmin.Instances.Restart |
restart(java.lang.String project,
java.lang.String instance)
Restarts a Cloud SQL instance.
|
SQLAdmin.Instances.RestoreBackup |
restoreBackup(java.lang.String project,
java.lang.String instance,
InstancesRestoreBackupRequest content)
Restores a backup of a Cloud SQL instance.
|
SQLAdmin.Instances.RotateServerCa |
rotateServerCa(java.lang.String project,
java.lang.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 |
sqladminImport(java.lang.String project,
java.lang.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(java.lang.String project,
java.lang.String instance)
Starts the replication in the read replica instance.
|
SQLAdmin.Instances.StopReplica |
stopReplica(java.lang.String project,
java.lang.String instance)
Stops the replication in the read replica instance.
|
SQLAdmin.Instances.TruncateLog |
truncateLog(java.lang.String project,
java.lang.String instance,
InstancesTruncateLogRequest content)
Truncate MySQL general and slow query log tables
Create a request for the method "instances.truncateLog".
|
SQLAdmin.Instances.Update |
update(java.lang.String project,
java.lang.String instance,
DatabaseInstance content)
Updates settings of a Cloud SQL instance.
|
public SQLAdmin.Instances.AddServerCa addServerCa(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.Clone clone(java.lang.String project, java.lang.String instance, InstancesCloneRequest content) throws java.io.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 InstancesCloneRequest
java.io.IOException
public SQLAdmin.Instances.Delete delete(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.DemoteMaster demoteMaster(java.lang.String project, java.lang.String instance, InstancesDemoteMasterRequest content) throws java.io.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 InstancesDemoteMasterRequest
java.io.IOException
public SQLAdmin.Instances.Export export(java.lang.String project, java.lang.String instance, InstancesExportRequest content) throws java.io.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 InstancesExportRequest
java.io.IOException
public SQLAdmin.Instances.Failover failover(java.lang.String project, java.lang.String instance, InstancesFailoverRequest content) throws java.io.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 InstancesFailoverRequest
java.io.IOException
public SQLAdmin.Instances.Get get(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.SQLAdminImport sqladminImport(java.lang.String project, java.lang.String instance, InstancesImportRequest content) throws java.io.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 InstancesImportRequest
java.io.IOException
public SQLAdmin.Instances.Insert insert(java.lang.String project, DatabaseInstance content) throws java.io.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 DatabaseInstance
java.io.IOException
public SQLAdmin.Instances.List list(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID of the project for which to list Cloud SQL instances.java.io.IOException
public SQLAdmin.Instances.ListServerCas listServerCas(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.Patch patch(java.lang.String project, java.lang.String instance, DatabaseInstance content) throws java.io.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 DatabaseInstance
java.io.IOException
public SQLAdmin.Instances.PromoteReplica promoteReplica(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.ResetSslConfig resetSslConfig(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.Restart restart(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.RestoreBackup restoreBackup(java.lang.String project, java.lang.String instance, InstancesRestoreBackupRequest content) throws java.io.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 InstancesRestoreBackupRequest
java.io.IOException
public SQLAdmin.Instances.RotateServerCa rotateServerCa(java.lang.String project, java.lang.String instance, InstancesRotateServerCaRequest content) throws java.io.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 InstancesRotateServerCaRequest
java.io.IOException
public SQLAdmin.Instances.StartReplica startReplica(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.StopReplica stopReplica(java.lang.String project, java.lang.String instance) throws java.io.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.java.io.IOException
public SQLAdmin.Instances.TruncateLog truncateLog(java.lang.String project, java.lang.String instance, InstancesTruncateLogRequest content) throws java.io.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 InstancesTruncateLogRequest
java.io.IOException
public SQLAdmin.Instances.Update update(java.lang.String project, java.lang.String instance, DatabaseInstance content) throws java.io.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 DatabaseInstance
java.io.IOException