Class: Google::Apis::AlloydbV1beta::CloudAlloyDBAdminService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AlloydbV1beta::CloudAlloyDBAdminService
- Defined in:
- lib/google/apis/alloydb_v1beta/service.rb
Overview
AlloyDB API
AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial- grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://alloydb.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Backup in a given project and location.
-
#create_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Cluster in a given project and location.
-
#create_project_location_cluster_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Instance in a given project and location.
-
#create_project_location_cluster_user(parent, user_object = nil, request_id: nil, user_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::User
Creates a new User in a given project, location, and cluster.
-
#createsecondary_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
-
#createsecondary_project_location_cluster_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new SECONDARY Instance in a given project and location.
-
#delete_project_location_backup(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Deletes a single Backup.
-
#delete_project_location_cluster(name, etag: nil, force: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Deletes a single Cluster.
-
#delete_project_location_cluster_instance(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Deletes a single Instance.
-
#delete_project_location_cluster_user(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Empty
Deletes a single User.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Empty
Deletes a long-running operation.
-
#export_cluster(name, export_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Exports data from the cluster.
-
#failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Forces a Failover for a highly available instance.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::GoogleCloudLocationLocation
Gets information about a location.
-
#get_project_location_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Backup
Gets details of a single Backup.
-
#get_project_location_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Cluster
Gets details of a single Cluster.
-
#get_project_location_cluster_instance(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Instance
Gets details of a single Instance.
-
#get_project_location_cluster_instance_connection_info(parent, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ConnectionInfo
Get instance metadata used for a connection.
-
#get_project_location_cluster_user(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::User
Gets details of a single User.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Gets the latest state of a long-running operation.
-
#initialize ⇒ CloudAlloyDBAdminService
constructor
A new instance of CloudAlloyDBAdminService.
-
#inject_instance_fault(name, inject_fault_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Injects fault in an instance.
-
#list_project_location_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListBackupsResponse
Lists Backups in a given project and location.
-
#list_project_location_cluster_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListInstancesResponse
Lists Instances in a given project and location.
-
#list_project_location_cluster_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListUsersResponse
Lists Users in a given project and location.
-
#list_project_location_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListClustersResponse
Lists Clusters in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_supported_database_flags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListSupportedDatabaseFlagsResponse
Lists SupportedDatabaseFlags for a given project and location.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::GoogleCloudLocationListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_backup(name, backup_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Updates the parameters of a single Backup.
-
#patch_project_location_cluster(name, cluster_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Updates the parameters of a single Cluster.
-
#patch_project_location_cluster_instance(name, instance_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Updates the parameters of a single Instance.
-
#patch_project_location_cluster_user(name, user_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::User
Updates the parameters of a single User.
-
#promote_cluster(name, promote_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Promotes a SECONDARY cluster.
-
#restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Restart an Instance in a cluster.
-
#restore_cluster(parent, restore_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.
-
#restore_cluster_from_cloud_sql(parent, restore_from_cloud_sql_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Restores an AlloyDB cluster from a CloudSQL resource.
-
#switchover_cluster(name, switchover_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
-
#upgrade_cluster(name, upgrade_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Upgrades a single Cluster.
Constructor Details
#initialize ⇒ CloudAlloyDBAdminService
Returns a new instance of CloudAlloyDBAdminService.
57 58 59 60 61 62 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 57 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-alloydb_v1beta', client_version: Google::Apis::AlloydbV1beta::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
50 51 52 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 50 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
55 56 57 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 55 def quota_user @quota_user end |
Instance Method Details
#cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1
, corresponding to Code.CANCELLED
.
1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1615 def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:cancel', ) command.response_representation = Google::Apis::AlloydbV1beta::Empty::Representation command.response_class = Google::Apis::AlloydbV1beta::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Backup in a given project and location.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 174 def create_project_location_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/backups', ) command.request_representation = Google::Apis::AlloydbV1beta::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['backupId'] = backup_id unless backup_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Cluster in a given project and location.
419 420 421 422 423 424 425 426 427 428 429 430 431 432 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 419 def create_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/clusters', ) command.request_representation = Google::Apis::AlloydbV1beta::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['clusterId'] = cluster_id unless cluster_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_cluster_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Instance in a given project and location.
938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 938 def create_project_location_cluster_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/instances', ) command.request_representation = Google::Apis::AlloydbV1beta::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['instanceId'] = instance_id unless instance_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_cluster_user(parent, user_object = nil, request_id: nil, user_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::User
Creates a new User in a given project, location, and cluster.
1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1392 def create_project_location_cluster_user(parent, user_object = nil, request_id: nil, user_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/users', ) command.request_representation = Google::Apis::AlloydbV1beta::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AlloydbV1beta::User::Representation command.response_class = Google::Apis::AlloydbV1beta::User command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['userId'] = user_id unless user_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#createsecondary_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
474 475 476 477 478 479 480 481 482 483 484 485 486 487 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 474 def createsecondary_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/clusters:createsecondary', ) command.request_representation = Google::Apis::AlloydbV1beta::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['clusterId'] = cluster_id unless cluster_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#createsecondary_project_location_cluster_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new SECONDARY Instance in a given project and location.
992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 992 def createsecondary_project_location_cluster_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/instances:createsecondary', ) command.request_representation = Google::Apis::AlloydbV1beta::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['instanceId'] = instance_id unless instance_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_backup(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Deletes a single Backup.
228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 228 def delete_project_location_backup(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_cluster(name, etag: nil, force: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Deletes a single Cluster.
531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 531 def delete_project_location_cluster(name, etag: nil, force: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_cluster_instance(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Deletes a single Instance.
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1047 def delete_project_location_cluster_instance(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_cluster_user(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Empty
Deletes a single User.
1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1442 def delete_project_location_cluster_user(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Empty::Representation command.response_class = Google::Apis::AlloydbV1beta::Empty command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED
.
1648 1649 1650 1651 1652 1653 1654 1655 1656 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1648 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Empty::Representation command.response_class = Google::Apis::AlloydbV1beta::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_cluster(name, export_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Exports data from the cluster. Imperative only.
566 567 568 569 570 571 572 573 574 575 576 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 566 def export_cluster(name, export_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:export', ) command.request_representation = Google::Apis::AlloydbV1beta::ExportClusterRequest::Representation command.request_object = export_cluster_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1083 def failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:failover', ) command.request_representation = Google::Apis::AlloydbV1beta::FailoverInstanceRequest::Representation command.request_object = failover_instance_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::GoogleCloudLocationLocation
Gets information about a location.
84 85 86 87 88 89 90 91 92 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 84 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::GoogleCloudLocationLocation::Representation command.response_class = Google::Apis::AlloydbV1beta::GoogleCloudLocationLocation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Backup
Gets details of a single Backup.
261 262 263 264 265 266 267 268 269 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 261 def get_project_location_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Backup::Representation command.response_class = Google::Apis::AlloydbV1beta::Backup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Cluster
Gets details of a single Cluster.
602 603 604 605 606 607 608 609 610 611 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 602 def get_project_location_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Cluster::Representation command.response_class = Google::Apis::AlloydbV1beta::Cluster command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_cluster_instance(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Instance
Gets details of a single Instance.
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1118 def get_project_location_cluster_instance(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Instance::Representation command.response_class = Google::Apis::AlloydbV1beta::Instance command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_cluster_instance_connection_info(parent, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ConnectionInfo
Get instance metadata used for a connection.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1161 def get_project_location_cluster_instance_connection_info(parent, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/connectionInfo', ) command.response_representation = Google::Apis::AlloydbV1beta::ConnectionInfo::Representation command.response_class = Google::Apis::AlloydbV1beta::ConnectionInfo command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_cluster_user(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::User
Gets details of a single User.
1475 1476 1477 1478 1479 1480 1481 1482 1483 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1475 def get_project_location_cluster_user(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::User::Representation command.response_class = Google::Apis::AlloydbV1beta::User command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1679 1680 1681 1682 1683 1684 1685 1686 1687 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1679 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#inject_instance_fault(name, inject_fault_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Injects fault in an instance. Imperative only.
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1194 def inject_instance_fault(name, inject_fault_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:injectFault', ) command.request_representation = Google::Apis::AlloydbV1beta::InjectFaultRequest::Representation command.request_object = inject_fault_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListBackupsResponse
Lists Backups in a given project and location.
300 301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 300 def list_project_location_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/backups', ) command.response_representation = Google::Apis::AlloydbV1beta::ListBackupsResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListBackupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_cluster_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListInstancesResponse
Lists Instances in a given project and location.
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1239 def list_project_location_cluster_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/instances', ) command.response_representation = Google::Apis::AlloydbV1beta::ListInstancesResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListInstancesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_cluster_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListUsersResponse
Lists Users in a given project and location.
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1514 def list_project_location_cluster_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/users', ) command.response_representation = Google::Apis::AlloydbV1beta::ListUsersResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListUsersResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListClustersResponse
Lists Clusters in a given project and location.
645 646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 645 def list_project_location_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/clusters', ) command.response_representation = Google::Apis::AlloydbV1beta::ListClustersResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListClustersResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1716 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}/operations', ) command.response_representation = Google::Apis::AlloydbV1beta::ListOperationsResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_supported_database_flags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::ListSupportedDatabaseFlagsResponse
Lists SupportedDatabaseFlags for a given project and location.
1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1758 def list_project_location_supported_database_flags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/supportedDatabaseFlags', ) command.response_representation = Google::Apis::AlloydbV1beta::ListSupportedDatabaseFlagsResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListSupportedDatabaseFlagsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::GoogleCloudLocationListLocationsResponse
Lists information about the supported locations for this service.
124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 124 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}/locations', ) command.response_representation = Google::Apis::AlloydbV1beta::GoogleCloudLocationListLocationsResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::GoogleCloudLocationListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_backup(name, backup_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Updates the parameters of a single Backup.
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 364 def patch_project_location_backup(name, backup_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::AlloydbV1beta::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_cluster(name, cluster_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Updates the parameters of a single Cluster.
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 708 def patch_project_location_cluster(name, cluster_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::AlloydbV1beta::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_cluster_instance(name, instance_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Updates the parameters of a single Instance.
1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1305 def patch_project_location_cluster_instance(name, instance_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::AlloydbV1beta::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_cluster_user(name, user_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::User
Updates the parameters of a single User.
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1572 def patch_project_location_cluster_user(name, user_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::AlloydbV1beta::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AlloydbV1beta::User::Representation command.response_class = Google::Apis::AlloydbV1beta::User command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#promote_cluster(name, promote_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
748 749 750 751 752 753 754 755 756 757 758 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 748 def promote_cluster(name, promote_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:promote', ) command.request_representation = Google::Apis::AlloydbV1beta::PromoteClusterRequest::Representation command.request_object = promote_cluster_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Restart an Instance in a cluster. Imperative only.
1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 1343 def restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:restart', ) command.request_representation = Google::Apis::AlloydbV1beta::RestartInstanceRequest::Representation command.request_object = restart_instance_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_cluster(parent, restore_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.
784 785 786 787 788 789 790 791 792 793 794 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 784 def restore_cluster(parent, restore_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/clusters:restore', ) command.request_representation = Google::Apis::AlloydbV1beta::RestoreClusterRequest::Representation command.request_object = restore_cluster_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_cluster_from_cloud_sql(parent, restore_from_cloud_sql_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Restores an AlloyDB cluster from a CloudSQL resource.
818 819 820 821 822 823 824 825 826 827 828 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 818 def restore_cluster_from_cloud_sql(parent, restore_from_cloud_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/clusters:restoreFromCloudSQL', ) command.request_representation = Google::Apis::AlloydbV1beta::RestoreFromCloudSqlRequest::Representation command.request_object = restore_from_cloud_sql_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#switchover_cluster(name, switchover_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.
854 855 856 857 858 859 860 861 862 863 864 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 854 def switchover_cluster(name, switchover_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+name}:switchover', ) command.request_representation = Google::Apis::AlloydbV1beta::SwitchoverClusterRequest::Representation command.request_object = switchover_cluster_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upgrade_cluster(name, upgrade_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1beta::Operation
Upgrades a single Cluster. Imperative only.
887 888 889 890 891 892 893 894 895 896 897 |
# File 'lib/google/apis/alloydb_v1beta/service.rb', line 887 def upgrade_cluster(name, upgrade_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}:upgrade', ) command.request_representation = Google::Apis::AlloydbV1beta::UpgradeClusterRequest::Representation command.request_object = upgrade_cluster_request_object command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation command.response_class = Google::Apis::AlloydbV1beta::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |