Class: Google::Apis::AlloydbV1alpha::CloudAlloyDBAdminService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AlloydbV1alpha::CloudAlloyDBAdminService
- Defined in:
- lib/google/apis/alloydb_v1alpha/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_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::User
Creates a new User in a given project, location, and cluster.
-
#create_project_location_endpoint(parent, endpoint_object = nil, endpoint_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Creates a new Endpoint in a given project and location.
-
#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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::Empty
Deletes a single User.
-
#delete_project_location_endpoint(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Deletes a single Endpoint.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Forces a Failover for a highly available instance.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::GoogleCloudLocationLocation
Gets information about a location.
-
#get_project_location_backup(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::User
Gets details of a single User.
-
#get_project_location_endpoint(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Endpoint
Gets details of a single Endpoint.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Gets the latest state of a long-running operation.
-
#import_cluster(name, import_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Imports data to the cluster.
-
#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::AlloydbV1alpha::Operation
Injects fault in an instance.
-
#list_project_location_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::ListClustersResponse
Lists Clusters in a given project and location.
-
#list_project_location_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListEndpointsResponse
Lists Endpoints in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_supported_database_flags(parent, page_size: nil, page_token: nil, scope: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListSupportedDatabaseFlagsResponse
Lists SupportedDatabaseFlags for a given project and location.
-
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::User
Updates the parameters of a single User.
-
#patch_project_location_endpoint(name, endpoint_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::AlloydbV1alpha::Operation
Updates the parameters of a single Endpoint.
-
#promote_cluster(name, promote_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Promotes a SECONDARY cluster.
-
#restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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::AlloydbV1alpha::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_v1alpha/service.rb', line 57 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-alloydb_v1alpha', client_version: Google::Apis::AlloydbV1alpha::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_v1alpha/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_v1alpha/service.rb', line 55 def quota_user @quota_user end |
Instance Method Details
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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.
1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1918 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:cancel', ) command.request_representation = Google::Apis::AlloydbV1alpha::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Empty::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Creates a new Backup in a given project and location.
187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 187 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, 'v1alpha/{+parent}/backups', ) command.request_representation = Google::Apis::AlloydbV1alpha::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Creates a new Cluster in a given project and location.
438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 438 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, 'v1alpha/{+parent}/clusters', ) command.request_representation = Google::Apis::AlloydbV1alpha::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Creates a new Instance in a given project and location.
990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 990 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, 'v1alpha/{+parent}/instances', ) command.request_representation = Google::Apis::AlloydbV1alpha::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::User
Creates a new User in a given project, location, and cluster.
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1444 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, 'v1alpha/{+parent}/users', ) command.request_representation = Google::Apis::AlloydbV1alpha::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AlloydbV1alpha::User::Representation command.response_class = Google::Apis::AlloydbV1alpha::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 |
#create_project_location_endpoint(parent, endpoint_object = nil, endpoint_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Creates a new Endpoint in a given project and location.
1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1678 def create_project_location_endpoint(parent, endpoint_object = nil, endpoint_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/endpoints', ) command.request_representation = Google::Apis::AlloydbV1alpha::Endpoint::Representation command.request_object = endpoint_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['endpointId'] = endpoint_id unless endpoint_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(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 493 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, 'v1alpha/{+parent}/clusters:createsecondary', ) command.request_representation = Google::Apis::AlloydbV1alpha::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Creates a new SECONDARY Instance in a given project and location.
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1044 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, 'v1alpha/{+parent}/instances:createsecondary', ) command.request_representation = Google::Apis::AlloydbV1alpha::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Deletes a single Backup.
241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 241 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, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Deletes a single Cluster.
550 551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 550 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, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Deletes a single Instance.
1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1099 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, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Empty
Deletes a single User.
1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1494 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, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Empty::Representation command.response_class = Google::Apis::AlloydbV1alpha::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_endpoint(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Deletes a single Endpoint.
1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1732 def delete_project_location_endpoint(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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.
1953 1954 1955 1956 1957 1958 1959 1960 1961 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1953 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Empty::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Exports data from the cluster. Imperative only.
585 586 587 588 589 590 591 592 593 594 595 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 585 def export_cluster(name, export_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:export', ) command.request_representation = Google::Apis::AlloydbV1alpha::ExportClusterRequest::Representation command.request_object = export_cluster_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1135 def failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:failover', ) command.request_representation = Google::Apis::AlloydbV1alpha::FailoverInstanceRequest::Representation command.request_object = failover_instance_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::GoogleCloudLocationLocation
Gets information about a location.
84 85 86 87 88 89 90 91 92 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 84 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::GoogleCloudLocationLocation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Backup
Gets details of a single Backup.
276 277 278 279 280 281 282 283 284 285 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 276 def get_project_location_backup(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Backup::Representation command.response_class = Google::Apis::AlloydbV1alpha::Backup 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(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Cluster
Gets details of a single Cluster.
621 622 623 624 625 626 627 628 629 630 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 621 def get_project_location_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Cluster::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Instance
Gets details of a single Instance.
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1170 def get_project_location_cluster_instance(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Instance::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::ConnectionInfo
Get instance metadata used for a connection.
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1213 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, 'v1alpha/{+parent}/connectionInfo', ) command.response_representation = Google::Apis::AlloydbV1alpha::ConnectionInfo::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::User
Gets details of a single User.
1527 1528 1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1527 def get_project_location_cluster_user(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::User::Representation command.response_class = Google::Apis::AlloydbV1alpha::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_endpoint(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Endpoint
Gets details of a single Endpoint.
1766 1767 1768 1769 1770 1771 1772 1773 1774 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1766 def get_project_location_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Endpoint::Representation command.response_class = Google::Apis::AlloydbV1alpha::Endpoint 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::AlloydbV1alpha::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.
1984 1985 1986 1987 1988 1989 1990 1991 1992 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1984 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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 |
#import_cluster(name, import_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::Operation
Imports data to the cluster. Imperative only.
653 654 655 656 657 658 659 660 661 662 663 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 653 def import_cluster(name, import_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:import', ) command.request_representation = Google::Apis::AlloydbV1alpha::ImportClusterRequest::Representation command.request_object = import_cluster_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Injects fault in an instance. Imperative only.
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1246 def inject_instance_fault(name, inject_fault_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:injectFault', ) command.request_representation = Google::Apis::AlloydbV1alpha::InjectFaultRequest::Representation command.request_object = inject_fault_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListBackupsResponse
Lists Backups in a given project and location.
318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 318 def list_project_location_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/backups', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListBackupsResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::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['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 |
#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::AlloydbV1alpha::ListInstancesResponse
Lists Instances in a given project and location.
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1291 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, 'v1alpha/{+parent}/instances', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListInstancesResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::ListUsersResponse
Lists Users in a given project and location.
1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1566 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, 'v1alpha/{+parent}/users', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListUsersResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::ListClustersResponse
Lists Clusters in a given project and location.
697 698 699 700 701 702 703 704 705 706 707 708 709 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 697 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, 'v1alpha/{+parent}/clusters', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListClustersResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::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_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListEndpointsResponse
Lists Endpoints in a given project and location.
1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1811 def list_project_location_endpoints(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, 'v1alpha/{+parent}/endpoints', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListEndpointsResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::ListEndpointsResponse 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, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 2029 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}/operations', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListOperationsResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::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['returnPartialSuccess'] = return_partial_success unless return_partial_success.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, scope: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::ListSupportedDatabaseFlagsResponse
Lists SupportedDatabaseFlags for a given project and location.
2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 2075 def list_project_location_supported_database_flags(parent, page_size: nil, page_token: nil, scope: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/supportedDatabaseFlags', ) command.response_representation = Google::Apis::AlloydbV1alpha::ListSupportedDatabaseFlagsResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::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['scope'] = scope unless scope.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, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::GoogleCloudLocationListLocationsResponse
Lists information about the supported locations for this service. This method
lists locations based on the resource scope provided in the [
ListLocationsRequest.name] field: * Global locations: If name is empty,
the method lists the public locations available to all projects. * Project-
specific locations: If name follows the format projects/project`, the
method lists locations visible to that specific project. This includes public,
private, or other project-specific locations enabled for the project. For gRPC
and client library implementations, the resource name is passed as thename`
field. For direct service calls, the resource name is incorporated into the
request path based on the specific service implementation and version.
136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 136 def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}/locations', ) command.response_representation = Google::Apis::AlloydbV1alpha::GoogleCloudLocationListLocationsResponse::Representation command.response_class = Google::Apis::AlloydbV1alpha::GoogleCloudLocationListLocationsResponse command.params['name'] = name unless name.nil? command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.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::AlloydbV1alpha::Operation
Updates the parameters of a single Backup.
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 383 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, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::AlloydbV1alpha::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Updates the parameters of a single Cluster.
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 760 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, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::AlloydbV1alpha::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Updates the parameters of a single Instance.
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1357 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, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::AlloydbV1alpha::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::User
Updates the parameters of a single User.
1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1624 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, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::AlloydbV1alpha::User::Representation command.request_object = user_object command.response_representation = Google::Apis::AlloydbV1alpha::User::Representation command.response_class = Google::Apis::AlloydbV1alpha::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 |
#patch_project_location_endpoint(name, endpoint_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::AlloydbV1alpha::Operation
Updates the parameters of a single Endpoint.
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1874 def patch_project_location_endpoint(name, endpoint_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, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::AlloydbV1alpha::Endpoint::Representation command.request_object = endpoint_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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 |
#promote_cluster(name, promote_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AlloydbV1alpha::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.
800 801 802 803 804 805 806 807 808 809 810 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 800 def promote_cluster(name, promote_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:promote', ) command.request_representation = Google::Apis::AlloydbV1alpha::PromoteClusterRequest::Representation command.request_object = promote_cluster_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Restart an Instance in a cluster. Imperative only.
1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 1395 def restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:restart', ) command.request_representation = Google::Apis::AlloydbV1alpha::RestartInstanceRequest::Representation command.request_object = restart_instance_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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.
836 837 838 839 840 841 842 843 844 845 846 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 836 def restore_cluster(parent, restore_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/clusters:restore', ) command.request_representation = Google::Apis::AlloydbV1alpha::RestoreClusterRequest::Representation command.request_object = restore_cluster_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Restores an AlloyDB cluster from a CloudSQL resource.
870 871 872 873 874 875 876 877 878 879 880 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 870 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, 'v1alpha/{+parent}/clusters:restoreFromCloudSQL', ) command.request_representation = Google::Apis::AlloydbV1alpha::RestoreFromCloudSqlRequest::Representation command.request_object = restore_from_cloud_sql_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::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.
906 907 908 909 910 911 912 913 914 915 916 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 906 def switchover_cluster(name, switchover_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:switchover', ) command.request_representation = Google::Apis::AlloydbV1alpha::SwitchoverClusterRequest::Representation command.request_object = switchover_cluster_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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::AlloydbV1alpha::Operation
Upgrades a single Cluster. Imperative only.
939 940 941 942 943 944 945 946 947 948 949 |
# File 'lib/google/apis/alloydb_v1alpha/service.rb', line 939 def upgrade_cluster(name, upgrade_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}:upgrade', ) command.request_representation = Google::Apis::AlloydbV1alpha::UpgradeClusterRequest::Representation command.request_object = upgrade_cluster_request_object command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation command.response_class = Google::Apis::AlloydbV1alpha::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 |