Class: Google::Cloud::Sql::V1::Operation

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb

Overview

An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.

Defined Under Namespace

Modules: SqlOperationStatus, SqlOperationType

Instance Attribute Summary collapse

Instance Attribute Details

#acquire_ssrs_lease_context::Google::Cloud::Sql::V1::AcquireSsrsLeaseContext

Returns The context for acquire SSRS lease operation, if applicable.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#api_warning::Google::Cloud::Sql::V1::ApiWarning

Returns An Admin API warning message.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#backup_context::Google::Cloud::Sql::V1::BackupContext

Returns The context for backup operation, if applicable.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#end_time::Google::Protobuf::Timestamp

Returns The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#error::Google::Cloud::Sql::V1::OperationErrors

Returns If errors occurred during processing of this operation, this field will be populated.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#export_context::Google::Cloud::Sql::V1::ExportContext

Returns The context for export operation, if applicable.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#import_context::Google::Cloud::Sql::V1::ImportContext

Returns The context for import operation, if applicable.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#insert_time::Google::Protobuf::Timestamp

Returns The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#kind::String

Returns This is always sql#operation.

Returns:

  • (::String)

    This is always sql#operation.



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#name::String

Returns An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.

Returns:

  • (::String)

    An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#operation_type::Google::Cloud::Sql::V1::Operation::SqlOperationType

Returns The type of the operation. Valid values are:

  • CREATE
  • DELETE
  • UPDATE
  • RESTART
  • IMPORT
  • EXPORT
  • BACKUP_VOLUME
  • RESTORE_VOLUME
  • CREATE_USER
  • DELETE_USER
  • CREATE_DATABASE
  • DELETE_DATABASE.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#pre_check_major_version_upgrade_context::Google::Cloud::Sql::V1::PreCheckMajorVersionUpgradeContext

Returns This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).

Returns:

  • (::Google::Cloud::Sql::V1::PreCheckMajorVersionUpgradeContext)

    This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

Returns The URI of this resource.

Returns:

  • (::String)

    The URI of this resource.



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#start_time::Google::Protobuf::Timestamp

Returns The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#status::Google::Cloud::Sql::V1::Operation::SqlOperationStatus

Returns The status of an operation.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#sub_operation_type::Google::Cloud::Sql::V1::SqlSubOperationType

Returns Optional. The sub operation based on the operation type.

Returns:



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#target_id::String

Returns Name of the resource on which this operation runs.

Returns:

  • (::String)

    Name of the resource on which this operation runs.



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

Returns:

  • (::String)


1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#target_project::String

Returns The project ID of the target instance related to this operation.

Returns:

  • (::String)

    The project ID of the target instance related to this operation.



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end

#user::String

Returns The email address of the user who initiated this operation.

Returns:

  • (::String)

    The email address of the user who initiated this operation.



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb', line 1304

class Operation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of Cloud SQL operation.
  module SqlOperationType
    # Unknown operation type.
    SQL_OPERATION_TYPE_UNSPECIFIED = 0

    # Imports data into a Cloud SQL instance.
    IMPORT = 1

    # Exports data from a Cloud SQL instance to a Cloud Storage
    # bucket.
    EXPORT = 2

    # Creates a new Cloud SQL instance.
    CREATE = 3

    # Updates the settings of a Cloud SQL instance.
    UPDATE = 4

    # Deletes a Cloud SQL instance.
    DELETE = 5

    # Restarts the Cloud SQL instance.
    RESTART = 6

    BACKUP = 7

    SNAPSHOT = 8

    # Performs instance backup.
    BACKUP_VOLUME = 9

    # Deletes an instance backup.
    DELETE_VOLUME = 10

    # Restores an instance backup.
    RESTORE_VOLUME = 11

    # Injects a privileged user in mysql for MOB instances.
    INJECT_USER = 12

    # Clones a Cloud SQL instance.
    CLONE = 14

    # Stops replication on a Cloud SQL read replica instance.
    STOP_REPLICA = 15

    # Starts replication on a Cloud SQL read replica instance.
    START_REPLICA = 16

    # Promotes a Cloud SQL replica instance.
    PROMOTE_REPLICA = 17

    # Creates a Cloud SQL replica instance.
    CREATE_REPLICA = 18

    # Creates a new user in a Cloud SQL instance.
    CREATE_USER = 19

    # Deletes a user from a Cloud SQL instance.
    DELETE_USER = 20

    # 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

    # Creates a database in the Cloud SQL instance.
    CREATE_DATABASE = 22

    # Deletes a database in the Cloud SQL instance.
    DELETE_DATABASE = 23

    # Updates a database in the Cloud SQL instance.
    UPDATE_DATABASE = 24

    # Performs failover of an HA-enabled Cloud SQL
    # failover replica.
    FAILOVER = 25

    # Deletes the backup taken by a backup run.
    DELETE_BACKUP = 26

    RECREATE_REPLICA = 27

    # Truncates a general or slow log table in MySQL.
    TRUNCATE_LOG = 28

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

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

    # This field is deprecated, and will be removed in future version of API.
    ENABLE_PRIVATE_IP = 31

    DEFER_MAINTENANCE = 32

    # Creates clone instance.
    CREATE_CLONE = 33

    # Reschedule maintenance to another time.
    RESCHEDULE_MAINTENANCE = 34

    # Starts external sync of a Cloud SQL EM replica to an external primary
    # instance.
    START_EXTERNAL_SYNC = 35

    # Recovers logs from an instance's old data disk.
    LOG_CLEANUP = 36

    # Performs auto-restart of an HA-enabled Cloud SQL database for auto
    # recovery.
    AUTO_RESTART = 37

    # Re-encrypts CMEK instances with latest key version.
    REENCRYPT = 38

    # Switches the roles of the primary and replica pair. The target instance
    # should be the replica.
    SWITCHOVER = 39

    # Update a backup.
    UPDATE_BACKUP = 40

    # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
    ACQUIRE_SSRS_LEASE = 42

    # Release a lease for the setup of SQL Server Reporting Services (SSRS).
    RELEASE_SSRS_LEASE = 43

    # 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

    # 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

    # 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

    # 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

    # Updates the major version of a Cloud SQL instance.
    MAJOR_VERSION_UPGRADE = 48

    # Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.
    ADVANCED_BACKUP = 49

    # Changes the BackupTier of a Cloud SQL instance.
    MANAGE_BACKUP = 50

    # Creates a backup for an Enhanced BackupTier Cloud SQL instance.
    ENHANCED_BACKUP = 51

    # Repairs entire read pool or specified read pool nodes in the read pool.
    REPAIR_READ_POOL = 52

    # Creates a Cloud SQL read pool instance.
    CREATE_READ_POOL = 53

    # Pre-checks the major version upgrade operation.
    PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
  end

  # The status of an operation.
  module SqlOperationStatus
    # The state of the operation is unknown.
    SQL_OPERATION_STATUS_UNSPECIFIED = 0

    # The operation has been queued, but has not started yet.
    PENDING = 1

    # The operation is running.
    RUNNING = 2

    # The operation completed.
    DONE = 3
  end
end