InstancesResource class

Constructors

InstancesResource(ApiRequester client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addServerCa(String project, String instance, {String? $fields}) Future<Operation>
Add a new trusted Certificate Authority (CA) version for the specified instance.
clone(InstancesCloneRequest request, String project, String instance, {String? $fields}) Future<Operation>
Creates a Cloud SQL instance as a clone of the source instance.
delete(String project, String instance, {String? $fields}) Future<Operation>
Deletes a Cloud SQL instance.
demoteMaster(InstancesDemoteMasterRequest request, String project, String instance, {String? $fields}) Future<Operation>
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
export(InstancesExportRequest request, String project, String instance, {String? $fields}) Future<Operation>
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
failover(InstancesFailoverRequest request, String project, String instance, {String? $fields}) Future<Operation>
Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance.
get(String project, String instance, {String? $fields}) Future<DatabaseInstance>
Retrieves a resource containing information about a Cloud SQL instance.
import(InstancesImportRequest request, String project, String instance, {String? $fields}) Future<Operation>
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
insert(DatabaseInstance request, String project, {String? $fields}) Future<Operation>
Creates a new Cloud SQL instance.
list(String project, {String? filter, int? maxResults, String? pageToken, String? $fields}) Future<InstancesListResponse>
Lists instances under a given project.
listServerCas(String project, String instance, {String? $fields}) Future<InstancesListServerCasResponse>
Lists all of the trusted Certificate Authorities (CAs) for the specified instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(DatabaseInstance request, String project, String instance, {String? $fields}) Future<Operation>
Updates settings of a Cloud SQL instance.
promoteReplica(String project, String instance, {String? $fields}) Future<Operation>
Promotes the read replica instance to be a stand-alone Cloud SQL instance.
resetSslConfig(String project, String instance, {String? $fields}) Future<Operation>
Deletes all client certificates and generates a new server SSL certificate for the instance.
restart(String project, String instance, {String? $fields}) Future<Operation>
Restarts a Cloud SQL instance.
restoreBackup(InstancesRestoreBackupRequest request, String project, String instance, {String? $fields}) Future<Operation>
Restores a backup of a Cloud SQL instance.
rotateServerCa(InstancesRotateServerCaRequest request, String project, String instance, {String? $fields}) Future<Operation>
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.
startReplica(String project, String instance, {String? $fields}) Future<Operation>
Starts the replication in the read replica instance.
stopReplica(String project, String instance, {String? $fields}) Future<Operation>
Stops the replication in the read replica instance.
toString() String
A string representation of this object.
inherited
truncateLog(InstancesTruncateLogRequest request, String project, String instance, {String? $fields}) Future<Operation>
Truncate MySQL general and slow query log tables MySQL only.
update(DatabaseInstance request, String project, String instance, {String? $fields}) Future<Operation>
Updates settings of a Cloud SQL instance.

Operators

operator ==(Object other) bool
The equality operator.
inherited