Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlOperationType.
The type of Cloud SQL operation.
Protobuf type google.cloud.sql.v1.Operation.SqlOperationType
Namespace
Google \ Cloud \ Sql \ V1 \ OperationMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
SQL_OPERATION_TYPE_UNSPECIFIED
Value: 0Unknown operation type.
Generated from protobuf enum SQL_OPERATION_TYPE_UNSPECIFIED = 0;
IMPORT
Value: 1Imports data into a Cloud SQL instance.
Generated from protobuf enum IMPORT = 1;
EXPORT
Value: 2Exports data from a Cloud SQL instance to a Cloud Storage bucket.
Generated from protobuf enum EXPORT = 2;
CREATE
Value: 3Creates a new Cloud SQL instance.
Generated from protobuf enum CREATE = 3;
UPDATE
Value: 4Updates the settings of a Cloud SQL instance.
Generated from protobuf enum UPDATE = 4;
DELETE
Value: 5Deletes a Cloud SQL instance.
Generated from protobuf enum DELETE = 5;
RESTART
Value: 6Restarts the Cloud SQL instance.
Generated from protobuf enum RESTART = 6;
BACKUP
Value: 7Generated from protobuf enum BACKUP = 7 [deprecated = true];
SNAPSHOT
Value: 8Generated from protobuf enum SNAPSHOT = 8 [deprecated = true];
BACKUP_VOLUME
Value: 9Performs instance backup.
Generated from protobuf enum BACKUP_VOLUME = 9;
DELETE_VOLUME
Value: 10Deletes an instance backup.
Generated from protobuf enum DELETE_VOLUME = 10;
RESTORE_VOLUME
Value: 11Restores an instance backup.
Generated from protobuf enum RESTORE_VOLUME = 11;
INJECT_USER
Value: 12Injects a privileged user in mysql for MOB instances.
Generated from protobuf enum INJECT_USER = 12;
PBCLONE
Value: 14Clones a Cloud SQL instance.
Generated from protobuf enum CLONE = 14;
STOP_REPLICA
Value: 15Stops replication on a Cloud SQL read replica instance.
Generated from protobuf enum STOP_REPLICA = 15;
START_REPLICA
Value: 16Starts replication on a Cloud SQL read replica instance.
Generated from protobuf enum START_REPLICA = 16;
PROMOTE_REPLICA
Value: 17Promotes a Cloud SQL replica instance.
Generated from protobuf enum PROMOTE_REPLICA = 17;
CREATE_REPLICA
Value: 18Creates a Cloud SQL replica instance.
Generated from protobuf enum CREATE_REPLICA = 18;
CREATE_USER
Value: 19Creates a new user in a Cloud SQL instance.
Generated from protobuf enum CREATE_USER = 19;
DELETE_USER
Value: 20Deletes a user from a Cloud SQL instance.
Generated from protobuf enum DELETE_USER = 20;
UPDATE_USER
Value: 21Updates an existing user in a Cloud SQL instance.
Generated from protobuf enum UPDATE_USER = 21;
CREATE_DATABASE
Value: 22Creates a database in the Cloud SQL instance.
Generated from protobuf enum CREATE_DATABASE = 22;
DELETE_DATABASE
Value: 23Deletes a database in the Cloud SQL instance.
Generated from protobuf enum DELETE_DATABASE = 23;
UPDATE_DATABASE
Value: 24Updates a database in the Cloud SQL instance.
Generated from protobuf enum UPDATE_DATABASE = 24;
FAILOVER
Value: 25Performs failover of an HA-enabled Cloud SQL failover replica.
Generated from protobuf enum FAILOVER = 25;
DELETE_BACKUP
Value: 26Deletes the backup taken by a backup run.
Generated from protobuf enum DELETE_BACKUP = 26;
RECREATE_REPLICA
Value: 27Generated from protobuf enum RECREATE_REPLICA = 27;
TRUNCATE_LOG
Value: 28Truncates a general or slow log table in MySQL.
Generated from protobuf enum TRUNCATE_LOG = 28;
DEMOTE_MASTER
Value: 29Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
Generated from protobuf enum DEMOTE_MASTER = 29;
MAINTENANCE
Value: 30Indicates that the instance is currently in maintenance. Maintenance typically causes the instance to be unavailable for 1-3 minutes.
Generated from protobuf enum MAINTENANCE = 30;
ENABLE_PRIVATE_IP
Value: 31This field is deprecated, and will be removed in future version of API.
Generated from protobuf enum ENABLE_PRIVATE_IP = 31 [deprecated = true];
DEFER_MAINTENANCE
Value: 32Generated from protobuf enum DEFER_MAINTENANCE = 32 [deprecated = true];
CREATE_CLONE
Value: 33Creates clone instance.
Generated from protobuf enum CREATE_CLONE = 33 [deprecated = true];
RESCHEDULE_MAINTENANCE
Value: 34Reschedule maintenance to another time.
Generated from protobuf enum RESCHEDULE_MAINTENANCE = 34;
START_EXTERNAL_SYNC
Value: 35Starts external sync of a Cloud SQL EM replica to an external primary instance.
Generated from protobuf enum START_EXTERNAL_SYNC = 35;
LOG_CLEANUP
Value: 36Recovers logs from an instance's old data disk.
Generated from protobuf enum LOG_CLEANUP = 36;
AUTO_RESTART
Value: 37Performs auto-restart of an HA-enabled Cloud SQL database for auto recovery.
Generated from protobuf enum AUTO_RESTART = 37;
REENCRYPT
Value: 38Re-encrypts CMEK instances with latest key version.
Generated from protobuf enum REENCRYPT = 38;
SWITCHOVER
Value: 39Switches the roles of the primary and replica pair. The target instance should be the replica.
Generated from protobuf enum SWITCHOVER = 39;
ACQUIRE_SSRS_LEASE
Value: 42Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
Generated from protobuf enum ACQUIRE_SSRS_LEASE = 42;
RELEASE_SSRS_LEASE
Value: 43Release a lease for the setup of SQL Server Reporting Services (SSRS).
Generated from protobuf enum RELEASE_SSRS_LEASE = 43;
RECONFIGURE_OLD_PRIMARY
Value: 44Reconfigures old primary after a promote replica operation. Effect of a promote operation to the old primary is executed in this operation, asynchronously from the promote replica operation executed to the replica.
Generated from protobuf enum RECONFIGURE_OLD_PRIMARY = 44;
CLUSTER_MAINTENANCE
Value: 45Indicates that the instance, its read replicas, and its cascading replicas are in maintenance. Maintenance typically gets initiated on groups of replicas first, followed by the primary instance. For each instance, maintenance typically causes the instance to be unavailable for 1-3 minutes.
Generated from protobuf enum CLUSTER_MAINTENANCE = 45;
SELF_SERVICE_MAINTENANCE
Value: 46Indicates that the instance (and any of its replicas) are currently in maintenance. This is initiated as a self-service request by using SSM.
Maintenance typically causes the instance to be unavailable for 1-3 minutes.
Generated from protobuf enum SELF_SERVICE_MAINTENANCE = 46;
SWITCHOVER_TO_REPLICA
Value: 47Switches a primary instance to a replica. This operation runs as part of a switchover operation to the original primary instance.
Generated from protobuf enum SWITCHOVER_TO_REPLICA = 47;
MAJOR_VERSION_UPGRADE
Value: 48Updates the major version of a Cloud SQL instance.
Generated from protobuf enum MAJOR_VERSION_UPGRADE = 48;