Google Cloud Sql Admin V1 Client - Class SqlOperationType (1.1.0)

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 \ Operation

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

SQL_OPERATION_TYPE_UNSPECIFIED

Value: 0

Unknown operation type.

Generated from protobuf enum SQL_OPERATION_TYPE_UNSPECIFIED = 0;

IMPORT

Value: 1

Imports data into a Cloud SQL instance.

Generated from protobuf enum IMPORT = 1;

EXPORT

Value: 2

Exports data from a Cloud SQL instance to a Cloud Storage bucket.

Generated from protobuf enum EXPORT = 2;

CREATE

Value: 3

Creates a new Cloud SQL instance.

Generated from protobuf enum CREATE = 3;

UPDATE

Value: 4

Updates the settings of a Cloud SQL instance.

Generated from protobuf enum UPDATE = 4;

DELETE

Value: 5

Deletes a Cloud SQL instance.

Generated from protobuf enum DELETE = 5;

RESTART

Value: 6

Restarts the Cloud SQL instance.

Generated from protobuf enum RESTART = 6;

BACKUP

Value: 7

Generated from protobuf enum BACKUP = 7 [deprecated = true];

SNAPSHOT

Value: 8

Generated from protobuf enum SNAPSHOT = 8 [deprecated = true];

BACKUP_VOLUME

Value: 9

Performs instance backup.

Generated from protobuf enum BACKUP_VOLUME = 9;

DELETE_VOLUME

Value: 10

Deletes an instance backup.

Generated from protobuf enum DELETE_VOLUME = 10;

RESTORE_VOLUME

Value: 11

Restores an instance backup.

Generated from protobuf enum RESTORE_VOLUME = 11;

INJECT_USER

Value: 12

Injects a privileged user in mysql for MOB instances.

Generated from protobuf enum INJECT_USER = 12;

PBCLONE

Value: 14

Clones a Cloud SQL instance.

Generated from protobuf enum CLONE = 14;

STOP_REPLICA

Value: 15

Stops replication on a Cloud SQL read replica instance.

Generated from protobuf enum STOP_REPLICA = 15;

START_REPLICA

Value: 16

Starts replication on a Cloud SQL read replica instance.

Generated from protobuf enum START_REPLICA = 16;

PROMOTE_REPLICA

Value: 17

Promotes a Cloud SQL replica instance.

Generated from protobuf enum PROMOTE_REPLICA = 17;

CREATE_REPLICA

Value: 18

Creates a Cloud SQL replica instance.

Generated from protobuf enum CREATE_REPLICA = 18;

CREATE_USER

Value: 19

Creates a new user in a Cloud SQL instance.

Generated from protobuf enum CREATE_USER = 19;

DELETE_USER

Value: 20

Deletes a user from a Cloud SQL instance.

Generated from protobuf enum DELETE_USER = 20;

UPDATE_USER

Value: 21

Updates an existing user in a Cloud SQL instance.

Generated from protobuf enum UPDATE_USER = 21;

CREATE_DATABASE

Value: 22

Creates a database in the Cloud SQL instance.

Generated from protobuf enum CREATE_DATABASE = 22;

DELETE_DATABASE

Value: 23

Deletes a database in the Cloud SQL instance.

Generated from protobuf enum DELETE_DATABASE = 23;

UPDATE_DATABASE

Value: 24

Updates a database in the Cloud SQL instance.

Generated from protobuf enum UPDATE_DATABASE = 24;

FAILOVER

Value: 25

Performs failover of an HA-enabled Cloud SQL failover replica.

Generated from protobuf enum FAILOVER = 25;

DELETE_BACKUP

Value: 26

Deletes the backup taken by a backup run.

Generated from protobuf enum DELETE_BACKUP = 26;

RECREATE_REPLICA

Value: 27

Generated from protobuf enum RECREATE_REPLICA = 27;

TRUNCATE_LOG

Value: 28

Truncates a general or slow log table in MySQL.

Generated from protobuf enum TRUNCATE_LOG = 28;

DEMOTE_MASTER

Value: 29

Demotes 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: 30

Indicates 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: 31

This 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: 32

Generated from protobuf enum DEFER_MAINTENANCE = 32 [deprecated = true];

CREATE_CLONE

Value: 33

Creates clone instance.

Generated from protobuf enum CREATE_CLONE = 33 [deprecated = true];

RESCHEDULE_MAINTENANCE

Value: 34

Reschedule maintenance to another time.

Generated from protobuf enum RESCHEDULE_MAINTENANCE = 34;

START_EXTERNAL_SYNC

Value: 35

Starts external sync of a Cloud SQL EM replica to an external primary instance.

Generated from protobuf enum START_EXTERNAL_SYNC = 35;

LOG_CLEANUP

Value: 36

Recovers logs from an instance's old data disk.

Generated from protobuf enum LOG_CLEANUP = 36;

AUTO_RESTART

Value: 37

Performs auto-restart of an HA-enabled Cloud SQL database for auto recovery.

Generated from protobuf enum AUTO_RESTART = 37;

REENCRYPT

Value: 38

Re-encrypts CMEK instances with latest key version.

Generated from protobuf enum REENCRYPT = 38;

SWITCHOVER

Value: 39

Switches 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: 42

Acquire a lease for the setup of SQL Server Reporting Services (SSRS).

Generated from protobuf enum ACQUIRE_SSRS_LEASE = 42;

RELEASE_SSRS_LEASE

Value: 43

Release a lease for the setup of SQL Server Reporting Services (SSRS).

Generated from protobuf enum RELEASE_SSRS_LEASE = 43;

RECONFIGURE_OLD_PRIMARY

Value: 44

Reconfigures 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: 45

Indicates 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: 46

Indicates 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: 47

Switches 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;