Enum Operation.SqlOperationType (0.1.0)

public enum Operation.SqlOperationType extends Enum<Operation.SqlOperationType> implements ProtocolMessageEnum

The type of Cloud SQL operation.

Protobuf enum google.cloud.sql.v1beta4.Operation.SqlOperationType

Implements

ProtocolMessageEnum

Static Fields

Name Description
ACQUIRE_SSRS_LEASE

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

ACQUIRE_SSRS_LEASE = 42;

ACQUIRE_SSRS_LEASE_VALUE

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

ACQUIRE_SSRS_LEASE = 42;

ADVANCED_BACKUP

Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.

ADVANCED_BACKUP = 49 [deprecated = true];

ADVANCED_BACKUP_VALUE

Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.

ADVANCED_BACKUP = 49 [deprecated = true];

AGENT_SEND_MESSAGE

Sends a message to a Cloud SQL agent.

AGENT_SEND_MESSAGE = 59;

AGENT_SEND_MESSAGE_VALUE

Sends a message to a Cloud SQL agent.

AGENT_SEND_MESSAGE = 59;

AUTO_RESTART

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

AUTO_RESTART = 37;

AUTO_RESTART_VALUE

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

AUTO_RESTART = 37;

BACKUP

BACKUP = 7 [deprecated = true];

BACKUP_VALUE

BACKUP = 7 [deprecated = true];

BACKUP_VOLUME

Performs instance backup.

BACKUP_VOLUME = 9;

BACKUP_VOLUME_VALUE

Performs instance backup.

BACKUP_VOLUME = 9;

CLONE

Clones a Cloud SQL instance.

CLONE = 14;

CLONE_VALUE

Clones a Cloud SQL instance.

CLONE = 14;

CLUSTER_MAINTENANCE

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.

CLUSTER_MAINTENANCE = 45 [deprecated = true];

CLUSTER_MAINTENANCE_VALUE

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.

CLUSTER_MAINTENANCE = 45 [deprecated = true];

CREATE

Creates a new Cloud SQL instance.

CREATE = 3;

CREATE_CLONE

Creates clone instance.

CREATE_CLONE = 33 [deprecated = true];

CREATE_CLONE_VALUE

Creates clone instance.

CREATE_CLONE = 33 [deprecated = true];

CREATE_DATABASE

Creates a database in the Cloud SQL instance.

CREATE_DATABASE = 22;

CREATE_DATABASE_VALUE

Creates a database in the Cloud SQL instance.

CREATE_DATABASE = 22;

CREATE_READ_POOL

Creates a Cloud SQL read pool instance.

CREATE_READ_POOL = 53;

CREATE_READ_POOL_VALUE

Creates a Cloud SQL read pool instance.

CREATE_READ_POOL = 53;

CREATE_REPLICA

Creates a Cloud SQL replica instance.

CREATE_REPLICA = 18;

CREATE_REPLICA_VALUE

Creates a Cloud SQL replica instance.

CREATE_REPLICA = 18;

CREATE_USER

Creates a new user in a Cloud SQL instance.

CREATE_USER = 19;

CREATE_USER_VALUE

Creates a new user in a Cloud SQL instance.

CREATE_USER = 19;

CREATE_VALUE

Creates a new Cloud SQL instance.

CREATE = 3;

DEFER_MAINTENANCE

DEFER_MAINTENANCE = 32 [deprecated = true];

DEFER_MAINTENANCE_VALUE

DEFER_MAINTENANCE = 32 [deprecated = true];

DELETE

Deletes a Cloud SQL instance.

DELETE = 5;

DELETE_BACKUP

Deletes the backup taken by a backup run.

DELETE_BACKUP = 26;

DELETE_BACKUP_VALUE

Deletes the backup taken by a backup run.

DELETE_BACKUP = 26;

DELETE_DATABASE

Deletes a database in the Cloud SQL instance.

DELETE_DATABASE = 23;

DELETE_DATABASE_VALUE

Deletes a database in the Cloud SQL instance.

DELETE_DATABASE = 23;

DELETE_USER

Deletes a user from a Cloud SQL instance.

DELETE_USER = 20;

DELETE_USER_VALUE

Deletes a user from a Cloud SQL instance.

DELETE_USER = 20;

DELETE_VALUE

Deletes a Cloud SQL instance.

DELETE = 5;

DELETE_VOLUME

Deletes an instance backup.

DELETE_VOLUME = 10;

DELETE_VOLUME_VALUE

Deletes an instance backup.

DELETE_VOLUME = 10;

DEMOTE_MASTER

Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.

DEMOTE_MASTER = 29;

DEMOTE_MASTER_VALUE

Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.

DEMOTE_MASTER = 29;

ENABLE_PRIVATE_IP

This field is deprecated, and will be removed in future version of API.

ENABLE_PRIVATE_IP = 31 [deprecated = true];

ENABLE_PRIVATE_IP_VALUE

This field is deprecated, and will be removed in future version of API.

ENABLE_PRIVATE_IP = 31 [deprecated = true];

ENHANCED_BACKUP

Creates a backup for an Enhanced BackupTier Cloud SQL instance.

ENHANCED_BACKUP = 51;

ENHANCED_BACKUP_VALUE

Creates a backup for an Enhanced BackupTier Cloud SQL instance.

ENHANCED_BACKUP = 51;

EXPORT

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

EXPORT = 2;

EXPORT_VALUE

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

EXPORT = 2;

FAILOVER

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

FAILOVER = 25;

FAILOVER_VALUE

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

FAILOVER = 25;

IMPORT

Imports data into a Cloud SQL instance.

IMPORT = 1;

IMPORT_VALUE

Imports data into a Cloud SQL instance.

IMPORT = 1;

INJECT_USER

Injects a privileged user in mysql for MOB instances.

INJECT_USER = 12;

INJECT_USER_VALUE

Injects a privileged user in mysql for MOB instances.

INJECT_USER = 12;

LOG_CLEANUP

Recovers logs from an instance's old data disk.

LOG_CLEANUP = 36;

LOG_CLEANUP_VALUE

Recovers logs from an instance's old data disk.

LOG_CLEANUP = 36;

MAINTENANCE

Indicates that the instance is currently in maintenance. Maintenance typically causes the instance to be unavailable for 1-3 minutes.

MAINTENANCE = 30;

MAINTENANCE_VALUE

Indicates that the instance is currently in maintenance. Maintenance typically causes the instance to be unavailable for 1-3 minutes.

MAINTENANCE = 30;

MAJOR_VERSION_UPGRADE

Updates the major version of a Cloud SQL instance.

MAJOR_VERSION_UPGRADE = 48;

MAJOR_VERSION_UPGRADE_VALUE

Updates the major version of a Cloud SQL instance.

MAJOR_VERSION_UPGRADE = 48;

MANAGE_BACKUP

Changes the BackupTier of a Cloud SQL instance.

MANAGE_BACKUP = 50;

MANAGE_BACKUP_VALUE

Changes the BackupTier of a Cloud SQL instance.

MANAGE_BACKUP = 50;

PRE_CHECK_MAJOR_VERSION_UPGRADE

Pre-checks for major version upgrade.

PRE_CHECK_MAJOR_VERSION_UPGRADE = 54;

PRE_CHECK_MAJOR_VERSION_UPGRADE_VALUE

Pre-checks for major version upgrade.

PRE_CHECK_MAJOR_VERSION_UPGRADE = 54;

PROMOTE_REPLICA

Promotes a Cloud SQL replica instance.

PROMOTE_REPLICA = 17;

PROMOTE_REPLICA_VALUE

Promotes a Cloud SQL replica instance.

PROMOTE_REPLICA = 17;

RECONFIGURE_OLD_PRIMARY

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.

RECONFIGURE_OLD_PRIMARY = 44;

RECONFIGURE_OLD_PRIMARY_VALUE

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.

RECONFIGURE_OLD_PRIMARY = 44;

RECREATE_REPLICA

RECREATE_REPLICA = 27;

RECREATE_REPLICA_VALUE

RECREATE_REPLICA = 27;

REENCRYPT

Re-encrypts CMEK instances with latest key version.

REENCRYPT = 38;

REENCRYPT_VALUE

Re-encrypts CMEK instances with latest key version.

REENCRYPT = 38;

RELEASE_SSRS_LEASE

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

RELEASE_SSRS_LEASE = 43;

RELEASE_SSRS_LEASE_VALUE

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

RELEASE_SSRS_LEASE = 43;

REPAIR_READ_POOL

Repairs entire read pool or specified read pool nodes in the read pool.

REPAIR_READ_POOL = 52;

REPAIR_READ_POOL_VALUE

Repairs entire read pool or specified read pool nodes in the read pool.

REPAIR_READ_POOL = 52;

RESCHEDULE_MAINTENANCE

Reschedule maintenance to another time.

RESCHEDULE_MAINTENANCE = 34;

RESCHEDULE_MAINTENANCE_VALUE

Reschedule maintenance to another time.

RESCHEDULE_MAINTENANCE = 34;

RESTART

Restarts the Cloud SQL instance.

RESTART = 6;

RESTART_VALUE

Restarts the Cloud SQL instance.

RESTART = 6;

RESTORE_VOLUME

Restores an instance backup.

RESTORE_VOLUME = 11;

RESTORE_VOLUME_VALUE

Restores an instance backup.

RESTORE_VOLUME = 11;

SELF_SERVICE_MAINTENANCE

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.

SELF_SERVICE_MAINTENANCE = 46 [deprecated = true];

SELF_SERVICE_MAINTENANCE_VALUE

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.

SELF_SERVICE_MAINTENANCE = 46 [deprecated = true];

SETUP_MIGRATION

This operation type represents individual steps in a multi-step setup migration workflow: including configuration, replication, switchover/back, and data reseeding, as defined by operation's intent.

SETUP_MIGRATION = 58;

SETUP_MIGRATION_VALUE

This operation type represents individual steps in a multi-step setup migration workflow: including configuration, replication, switchover/back, and data reseeding, as defined by operation's intent.

SETUP_MIGRATION = 58;

SNAPSHOT

SNAPSHOT = 8 [deprecated = true];

SNAPSHOT_VALUE

SNAPSHOT = 8 [deprecated = true];

SQL_OPERATION_TYPE_UNSPECIFIED

Unknown operation type.

SQL_OPERATION_TYPE_UNSPECIFIED = 0;

SQL_OPERATION_TYPE_UNSPECIFIED_VALUE

Unknown operation type.

SQL_OPERATION_TYPE_UNSPECIFIED = 0;

START_EXTERNAL_SYNC

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

START_EXTERNAL_SYNC = 35;

START_EXTERNAL_SYNC_VALUE

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

START_EXTERNAL_SYNC = 35;

START_REPLICA

Starts replication on a Cloud SQL read replica instance.

START_REPLICA = 16;

START_REPLICA_VALUE

Starts replication on a Cloud SQL read replica instance.

START_REPLICA = 16;

STOP_REPLICA

Stops replication on a Cloud SQL read replica instance.

STOP_REPLICA = 15;

STOP_REPLICA_VALUE

Stops replication on a Cloud SQL read replica instance.

STOP_REPLICA = 15;

SWITCHOVER

Switches the roles of the primary and replica pair. The target instance should be the replica.

SWITCHOVER = 39;

SWITCHOVER_TO_REPLICA

Switches a primary instance to a replica. This operation runs as part of a switchover operation to the original primary instance.

SWITCHOVER_TO_REPLICA = 47;

SWITCHOVER_TO_REPLICA_VALUE

Switches a primary instance to a replica. This operation runs as part of a switchover operation to the original primary instance.

SWITCHOVER_TO_REPLICA = 47;

SWITCHOVER_VALUE

Switches the roles of the primary and replica pair. The target instance should be the replica.

SWITCHOVER = 39;

TRUNCATE_LOG

Truncates a general or slow log table in MySQL.

TRUNCATE_LOG = 28;

TRUNCATE_LOG_VALUE

Truncates a general or slow log table in MySQL.

TRUNCATE_LOG = 28;

UNRECOGNIZED
UPDATE

Updates the settings of a Cloud SQL instance.

UPDATE = 4;

UPDATE_BACKUP

Update a backup.

UPDATE_BACKUP = 40;

UPDATE_BACKUP_VALUE

Update a backup.

UPDATE_BACKUP = 40;

UPDATE_DATABASE

Updates a database in the Cloud SQL instance.

UPDATE_DATABASE = 24;

UPDATE_DATABASE_VALUE

Updates a database in the Cloud SQL instance.

UPDATE_DATABASE = 24;

UPDATE_USER

Updates an existing user in a Cloud SQL instance. If a user with the specified username doesn't exist, a new user is created.

UPDATE_USER = 21;

UPDATE_USER_VALUE

Updates an existing user in a Cloud SQL instance. If a user with the specified username doesn't exist, a new user is created.

UPDATE_USER = 21;

UPDATE_VALUE

Updates the settings of a Cloud SQL instance.

UPDATE = 4;

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()