Enum google_api_proto::google::cloud::sql::v1beta4::operation::SqlOperationType
source · #[repr(i32)]pub enum SqlOperationType {
Show 42 variants
Unspecified = 0,
Import = 1,
Export = 2,
Create = 3,
Update = 4,
Delete = 5,
Restart = 6,
Backup = 7,
Snapshot = 8,
BackupVolume = 9,
DeleteVolume = 10,
RestoreVolume = 11,
InjectUser = 12,
Clone = 14,
StopReplica = 15,
StartReplica = 16,
PromoteReplica = 17,
CreateReplica = 18,
CreateUser = 19,
DeleteUser = 20,
UpdateUser = 21,
CreateDatabase = 22,
DeleteDatabase = 23,
UpdateDatabase = 24,
Failover = 25,
DeleteBackup = 26,
RecreateReplica = 27,
TruncateLog = 28,
DemoteMaster = 29,
Maintenance = 30,
EnablePrivateIp = 31,
DeferMaintenance = 32,
CreateClone = 33,
RescheduleMaintenance = 34,
StartExternalSync = 35,
LogCleanup = 36,
AutoRestart = 37,
Reencrypt = 38,
Switchover = 39,
AcquireSsrsLease = 42,
ReleaseSsrsLease = 43,
ReconfigureOldPrimary = 44,
}
Expand description
The type of Cloud SQL operation.
Variants§
Unspecified = 0
Unknown operation type.
Import = 1
Imports data into a Cloud SQL instance.
Export = 2
Exports data from a Cloud SQL instance to a Cloud Storage bucket.
Create = 3
Creates a new Cloud SQL instance.
Update = 4
Updates the settings of a Cloud SQL instance.
Delete = 5
Deletes a Cloud SQL instance.
Restart = 6
Restarts the Cloud SQL instance.
Backup = 7
Snapshot = 8
BackupVolume = 9
Performs instance backup.
DeleteVolume = 10
Deletes an instance backup.
RestoreVolume = 11
Restores an instance backup.
InjectUser = 12
Injects a privileged user in mysql for MOB instances.
Clone = 14
Clones a Cloud SQL instance.
StopReplica = 15
Stops replication on a Cloud SQL read replica instance.
StartReplica = 16
Starts replication on a Cloud SQL read replica instance.
PromoteReplica = 17
Promotes a Cloud SQL replica instance.
CreateReplica = 18
Creates a Cloud SQL replica instance.
CreateUser = 19
Creates a new user in a Cloud SQL instance.
DeleteUser = 20
Deletes a user from a Cloud SQL instance.
UpdateUser = 21
Updates an existing user in a Cloud SQL instance.
CreateDatabase = 22
Creates a database in the Cloud SQL instance.
DeleteDatabase = 23
Deletes a database in the Cloud SQL instance.
UpdateDatabase = 24
Updates a database in the Cloud SQL instance.
Failover = 25
Performs failover of an HA-enabled Cloud SQL failover replica.
DeleteBackup = 26
Deletes the backup taken by a backup run.
RecreateReplica = 27
TruncateLog = 28
Truncates a general or slow log table in MySQL.
DemoteMaster = 29
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
Maintenance = 30
Indicates that the instance is currently in maintenance. Maintenance typically causes the instance to be unavailable for 1-3 minutes.
EnablePrivateIp = 31
This field is deprecated, and will be removed in future version of API.
DeferMaintenance = 32
CreateClone = 33
Creates clone instance.
RescheduleMaintenance = 34
Reschedule maintenance to another time.
StartExternalSync = 35
Starts external sync of a Cloud SQL EM replica to an external primary instance.
LogCleanup = 36
Recovers logs from an instance’s old data disk.
AutoRestart = 37
Performs auto-restart of an HA-enabled Cloud SQL database for auto recovery.
Reencrypt = 38
Re-encrypts CMEK instances with latest key version.
Switchover = 39
Switches over to replica instance from primary.
AcquireSsrsLease = 42
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
ReleaseSsrsLease = 43
Release a lease for the setup of SQL Server Reporting Services (SSRS).
ReconfigureOldPrimary = 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.
Implementations§
source§impl SqlOperationType
impl SqlOperationType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SqlOperationType
impl Clone for SqlOperationType
source§fn clone(&self) -> SqlOperationType
fn clone(&self) -> SqlOperationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SqlOperationType
impl Debug for SqlOperationType
source§impl Default for SqlOperationType
impl Default for SqlOperationType
source§fn default() -> SqlOperationType
fn default() -> SqlOperationType
source§impl From<SqlOperationType> for i32
impl From<SqlOperationType> for i32
source§fn from(value: SqlOperationType) -> i32
fn from(value: SqlOperationType) -> i32
source§impl Hash for SqlOperationType
impl Hash for SqlOperationType
source§impl Ord for SqlOperationType
impl Ord for SqlOperationType
source§fn cmp(&self, other: &SqlOperationType) -> Ordering
fn cmp(&self, other: &SqlOperationType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SqlOperationType
impl PartialEq for SqlOperationType
source§fn eq(&self, other: &SqlOperationType) -> bool
fn eq(&self, other: &SqlOperationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SqlOperationType
impl PartialOrd for SqlOperationType
source§fn partial_cmp(&self, other: &SqlOperationType) -> Option<Ordering>
fn partial_cmp(&self, other: &SqlOperationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SqlOperationType
impl TryFrom<i32> for SqlOperationType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<SqlOperationType, DecodeError>
fn try_from(value: i32) -> Result<SqlOperationType, DecodeError>
impl Copy for SqlOperationType
impl Eq for SqlOperationType
impl StructuralPartialEq for SqlOperationType
Auto Trait Implementations§
impl Freeze for SqlOperationType
impl RefUnwindSafe for SqlOperationType
impl Send for SqlOperationType
impl Sync for SqlOperationType
impl Unpin for SqlOperationType
impl UnwindSafe for SqlOperationType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request