Class: Google::Apis::SqladminV1::SQLAdminService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::SqladminV1::SQLAdminService
- Defined in:
- lib/google/apis/sqladmin_v1/service.rb
Overview
Cloud SQL Admin API
Cloud SQL Admin API
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://sqladmin.$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
-
#acquire_instance_ssrs_lease(project, instance, instances_acquire_ssrs_lease_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesAcquireSsrsLeaseResponse
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
-
#add_instance_entra_id_certificate(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Adds a new Entra ID certificate for the specified instance.
-
#add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Adds a new trusted Certificate Authority (CA) version for the specified instance.
-
#add_instance_server_certificate(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA.
-
#cancel_operation(project, operation, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Empty
Cancels an instance operation that has been performed on an instance.
-
#clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a Cloud SQL instance as a clone of the source instance.
-
#create_backup_backup(parent, backup_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a backup for a Cloud SQL instance.
-
#create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCert
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance.
-
#delete_backup_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes the backup.
-
#delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes the backup taken by a backup run.
-
#delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes a database from a Cloud SQL instance.
-
#delete_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes a Cloud SQL instance.
-
#delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes the SSL certificate.
-
#delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes a user from a Cloud SQL instance.
-
#demote_instance(project, instance, instances_demote_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
-
#demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
-
#execute_instance_sql(project, instance, execute_sql_payload_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesExecuteSqlResponse
Execute SQL statements.
-
#export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
-
#failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance.
-
#generate_connect_ephemeral_cert(project, instance, generate_ephemeral_cert_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::GenerateEphemeralCertResponse
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance.
-
#get_backup_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Backup
Retrieves a resource containing information about a backup.
-
#get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::BackupRun
Retrieves a resource containing information about a backup run.
-
#get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::ConnectSettings
Retrieves connect settings about a Cloud SQL instance.
-
#get_database(project, instance, database, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Database
Retrieves a resource containing information about a database inside a Cloud SQL instance.
-
#get_instance(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::DatabaseInstance
Retrieves a resource containing information about a Cloud SQL instance.
-
#get_operation(project, operation, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Retrieves an instance operation that has been performed on an instance.
-
#get_project_instance_disk_shrink_config(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesGetDiskShrinkConfigResponse
Get Disk Shrink Config for a given instance.
-
#get_project_instance_latest_recovery_time(project, instance, source_instance_deletion_time: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse
Get Latest Recovery Time for a given instance.
-
#get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCert
Retrieves a particular SSL certificate.
-
#get_user(project, instance, name, host: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::User
Retrieves a resource containing information about a user.
-
#import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
-
#initialize ⇒ SQLAdminService
constructor
A new instance of SQLAdminService.
-
#insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a new backup run on demand.
-
#insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Inserts a resource containing information about a database inside a Cloud SQL instance.
-
#insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a new Cloud SQL instance.
-
#insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCertsInsertResponse
Creates an SSL certificate and returns it along with the private key and server certificate authority.
-
#insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a new user in a Cloud SQL instance.
-
#list_backup_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::ListBackupsResponse
Lists all backups associated with the project.
-
#list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::BackupRunsListResponse
Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
-
#list_databases(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::DatabasesListResponse
Lists databases in the specified Cloud SQL instance.
-
#list_flags(database_version: nil, flag_scope: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::FlagsListResponse
Lists all available database flags for Cloud SQL instances.
-
#list_instance_entra_id_certificates(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListEntraIdCertificatesResponse
Lists all versions of EntraID certificates for the specified instance.
-
#list_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListServerCasResponse
Lists all of the trusted Certificate Authorities (CAs) for the specified instance.
-
#list_instance_server_certificates(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListServerCertificatesResponse
Lists all versions of server certificates and certificate authorities (CAs) for the specified instance.
-
#list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListResponse
Lists instances under a given project.
-
#list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::OperationsListResponse
Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.
-
#list_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCertsListResponse
Lists all of the current SSL certificates for the instance.
-
#list_tiers(project, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::TiersListResponse
Lists all available machine types (tiers) for Cloud SQL, for example,
db- custom-1-3840. -
#list_users(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::UsersListResponse
Lists users in the specified Cloud SQL instance.
-
#patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Partially updates a resource containing information about a database inside a Cloud SQL instance.
-
#patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Partially updates settings of a Cloud SQL instance by merging the request with the current configuration.
-
#perform_project_instance_disk_shrink(project, instance, perform_disk_shrink_context_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Perform Disk Shrink on primary instance.
-
#point_instance_in_time_restore(parent, point_in_time_restore_context_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
-
#pre_instance_check_major_version_upgrade(project, instance, instances_pre_check_major_version_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Execute MVU Pre-checks.
-
#promote_instance_replica(project, instance, failover: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Promotes the read replica instance to be an independent Cloud SQL primary instance.
-
#reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Reencrypt CMEK instance with latest key version.
-
#release_instance_ssrs_lease(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesReleaseSsrsLeaseResponse
Release a lease for the setup of SQL Server Reporting Services (SSRS).
-
#reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Reschedules the maintenance on the given instance.
-
#reset_instance_ssl_config(project, instance, mode: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes all client certificates and generates a new server SSL certificate for the instance.
-
#reset_project_instance_replica_size(project, instance, sql_instances_reset_replica_size_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Reset Replica Size to primary instance disk size.
-
#resolve_connect(dns_name, location, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::ConnectSettings
Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
-
#restart_instance(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Restarts a Cloud SQL instance.
-
#restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Restores a backup of a Cloud SQL instance.
-
#rotate_instance_entra_id_certificate(project, instance, instances_rotate_entra_id_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Rotates the server certificate version to one previously added with the addEntraIdCertificate method.
-
#rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.
-
#rotate_instance_server_certificate(project, instance, instances_rotate_server_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Rotates the server certificate version to one previously added with the addServerCertificate method.
-
#start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Starts the replication in the read replica instance.
-
#start_project_instance_external_sync(project, instance, sql_instances_start_external_sync_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Start External primary instance migration.
-
#stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Stops the replication in the read replica instance.
-
#switchover_instance(project, instance, db_timeout: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Switches over from the primary instance to the DR replica instance.
-
#truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Truncate MySQL general and slow query log tables MySQL only.
-
#update_backup_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates the retention period and description of the backup.
-
#update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates a resource containing information about a database inside a Cloud SQL instance.
-
#update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates settings of a Cloud SQL instance.
-
#update_user(project, instance, user_object = nil, database_roles: nil, host: nil, name: nil, revoke_existing_roles: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates an existing user in a Cloud SQL instance.
-
#verify_project_instance_external_sync_settings(project, instance, sql_instances_verify_external_sync_settings_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse
Verify External primary instance external sync settings.
Constructor Details
#initialize ⇒ SQLAdminService
Returns a new instance of SQLAdminService.
47 48 49 50 51 52 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-sqladmin_v1', client_version: Google::Apis::SqladminV1::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.
40 41 42 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 40 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.
45 46 47 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#acquire_instance_ssrs_lease(project, instance, instances_acquire_ssrs_lease_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesAcquireSsrsLeaseResponse
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
931 932 933 934 935 936 937 938 939 940 941 942 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 931 def acquire_instance_ssrs_lease(project, instance, instances_acquire_ssrs_lease_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/acquireSsrsLease', ) command.request_representation = Google::Apis::SqladminV1::InstancesAcquireSsrsLeaseRequest::Representation command.request_object = instances_acquire_ssrs_lease_request_object command.response_representation = Google::Apis::SqladminV1::SqlInstancesAcquireSsrsLeaseResponse::Representation command.response_class = Google::Apis::SqladminV1::SqlInstancesAcquireSsrsLeaseResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_instance_entra_id_certificate(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.
968 969 970 971 972 973 974 975 976 977 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 968 def add_instance_entra_id_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/addEntraIdCertificate', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1006 def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/addServerCa', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_instance_server_certificate(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1044 def add_instance_server_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/addServerCertificate', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(project, operation, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Empty
Cancels an instance operation that has been performed on an instance.
2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2081 def cancel_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/operations/{operation}/cancel', ) command.response_representation = Google::Apis::SqladminV1::Empty::Representation command.response_class = Google::Apis::SqladminV1::Empty command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1080 def clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/clone', ) command.request_representation = Google::Apis::SqladminV1::InstancesCloneRequest::Representation command.request_object = instances_clone_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_backup_backup(parent, backup_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 77 def create_backup_backup(parent, backup_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backups', ) command.request_representation = Google::Apis::SqladminV1::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::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 |
#create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCert
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2441 def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/createEphemeral', ) command.request_representation = Google::Apis::SqladminV1::SslCertsCreateEphemeralRequest::Representation command.request_object = ssl_certs_create_ephemeral_request_object command.response_representation = Google::Apis::SqladminV1::SslCert::Representation command.response_class = Google::Apis::SqladminV1::SslCert command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_backup_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes the backup.
110 111 112 113 114 115 116 117 118 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 110 def delete_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::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 |
#delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes the backup taken by a backup run.
264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 264 def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}/backupRuns/{id}', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['id'] = id unless 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 |
#delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes a database from a Cloud SQL instance.
522 523 524 525 526 527 528 529 530 531 532 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 522 def delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}/databases/{database}', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.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_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes a Cloud SQL instance.
1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1124 def delete_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['enableFinalBackup'] = enable_final_backup unless enable_final_backup.nil? command.query['finalBackupDescription'] = final_backup_description unless final_backup_description.nil? command.query['finalBackupExpiryTime'] = final_backup_expiry_time unless final_backup_expiry_time.nil? command.query['finalBackupTtlDays'] = final_backup_ttl_days unless final_backup_ttl_days.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_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.
2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2479 def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.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_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes a user from a Cloud SQL instance.
2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2657 def delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}/users', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['host'] = host unless host.nil? command.query['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 |
#demote_instance(project, instance, instances_demote_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1163 def demote_instance(project, instance, instances_demote_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/demote', ) command.request_representation = Google::Apis::SqladminV1::InstancesDemoteRequest::Representation command.request_object = instances_demote_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1200 def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/demoteMaster', ) command.request_representation = Google::Apis::SqladminV1::InstancesDemoteMasterRequest::Representation command.request_object = instances_demote_master_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#execute_instance_sql(project, instance, execute_sql_payload_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesExecuteSqlResponse
Execute SQL statements.
1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1236 def execute_instance_sql(project, instance, execute_sql_payload_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/executeSql', ) command.request_representation = Google::Apis::SqladminV1::ExecuteSqlPayload::Representation command.request_object = execute_sql_payload_object command.response_representation = Google::Apis::SqladminV1::SqlInstancesExecuteSqlResponse::Representation command.response_class = Google::Apis::SqladminV1::SqlInstancesExecuteSqlResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1273 def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/export', ) command.request_representation = Google::Apis::SqladminV1::InstancesExportRequest::Representation command.request_object = instances_export_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the Overview of high availability page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.
1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1314 def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/failover', ) command.request_representation = Google::Apis::SqladminV1::InstancesFailoverRequest::Representation command.request_object = instances_failover_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#generate_connect_ephemeral_cert(project, instance, generate_ephemeral_cert_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::GenerateEphemeralCertResponse
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 415 def generate_connect_ephemeral_cert(project, instance, generate_ephemeral_cert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}:generateEphemeralCert', ) command.request_representation = Google::Apis::SqladminV1::GenerateEphemeralCertRequest::Representation command.request_object = generate_ephemeral_cert_request_object command.response_representation = Google::Apis::SqladminV1::GenerateEphemeralCertResponse::Representation command.response_class = Google::Apis::SqladminV1::GenerateEphemeralCertResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_backup_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Backup
Retrieves a resource containing information about a backup.
141 142 143 144 145 146 147 148 149 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 141 def get_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SqladminV1::Backup::Representation command.response_class = Google::Apis::SqladminV1::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_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::BackupRun
Retrieves a resource containing information about a backup run.
300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 300 def get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/backupRuns/{id}', ) command.response_representation = Google::Apis::SqladminV1::BackupRun::Representation command.response_class = Google::Apis::SqladminV1::BackupRun command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['id'] = id unless 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_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::ConnectSettings
Retrieves connect settings about a Cloud SQL instance.
452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 452 def get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/connectSettings', ) command.response_representation = Google::Apis::SqladminV1::ConnectSettings::Representation command.response_class = Google::Apis::SqladminV1::ConnectSettings command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['readTime'] = read_time unless read_time.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_database(project, instance, database, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Database
Retrieves a resource containing information about a database inside a Cloud SQL instance.
559 560 561 562 563 564 565 566 567 568 569 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 559 def get_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/databases/{database}', ) command.response_representation = Google::Apis::SqladminV1::Database::Representation command.response_class = Google::Apis::SqladminV1::Database command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.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_instance(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::DatabaseInstance
Retrieves a resource containing information about a Cloud SQL instance.
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1349 def get_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}', ) command.response_representation = Google::Apis::SqladminV1::DatabaseInstance::Representation command.response_class = Google::Apis::SqladminV1::DatabaseInstance command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_operation(project, operation, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Retrieves an instance operation that has been performed on an instance.
2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2114 def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/operations/{operation}', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.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_instance_disk_shrink_config(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesGetDiskShrinkConfigResponse
Get Disk Shrink Config for a given instance.
2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2188 def get_project_instance_disk_shrink_config(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/getDiskShrinkConfig', ) command.response_representation = Google::Apis::SqladminV1::SqlInstancesGetDiskShrinkConfigResponse::Representation command.response_class = Google::Apis::SqladminV1::SqlInstancesGetDiskShrinkConfigResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance_latest_recovery_time(project, instance, source_instance_deletion_time: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse
Get Latest Recovery Time for a given instance.
2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2224 def get_project_instance_latest_recovery_time(project, instance, source_instance_deletion_time: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/getLatestRecoveryTime', ) command.response_representation = Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse::Representation command.response_class = Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['sourceInstanceDeletionTime'] = source_instance_deletion_time unless source_instance_deletion_time.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_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCert
Retrieves a particular SSL certificate. Does not include the private key ( required for usage). The private key must be saved from the response to initial creation.
2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2517 def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', ) command.response_representation = Google::Apis::SqladminV1::SslCert::Representation command.response_class = Google::Apis::SqladminV1::SslCert command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.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_user(project, instance, name, host: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::User
Retrieves a resource containing information about a user.
2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2696 def get_user(project, instance, name, host: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/users/{name}', ) command.response_representation = Google::Apis::SqladminV1::User::Representation command.response_class = Google::Apis::SqladminV1::User command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['name'] = name unless name.nil? command.query['host'] = host unless host.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_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1384 def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/import', ) command.request_representation = Google::Apis::SqladminV1::InstancesImportRequest::Representation command.request_object = instances_import_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a new backup run on demand.
335 336 337 338 339 340 341 342 343 344 345 346 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 335 def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/backupRuns', ) command.request_representation = Google::Apis::SqladminV1::BackupRun::Representation command.request_object = backup_run_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Inserts a resource containing information about a database inside a Cloud SQL instance. Note: You can't modify the default character set and collation.
595 596 597 598 599 600 601 602 603 604 605 606 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 595 def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/databases', ) command.request_representation = Google::Apis::SqladminV1::Database::Representation command.request_object = database_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a new Cloud SQL instance.
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1419 def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances', ) command.request_representation = Google::Apis::SqladminV1::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCertsInsertResponse
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2554 def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/sslCerts', ) command.request_representation = Google::Apis::SqladminV1::SslCertsInsertRequest::Representation command.request_object = ssl_certs_insert_request_object command.response_representation = Google::Apis::SqladminV1::SslCertsInsertResponse::Representation command.response_class = Google::Apis::SqladminV1::SslCertsInsertResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Creates a new user in a Cloud SQL instance.
2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2732 def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/users', ) command.request_representation = Google::Apis::SqladminV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_backup_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::ListBackupsResponse
Lists all backups associated with the project.
186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 186 def list_backup_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backups', ) command.response_representation = Google::Apis::SqladminV1::ListBackupsResponse::Representation command.response_class = Google::Apis::SqladminV1::ListBackupsResponse command.params['parent'] = parent unless parent.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_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::BackupRunsListResponse
Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
377 378 379 380 381 382 383 384 385 386 387 388 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 377 def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/backupRuns', ) command.response_representation = Google::Apis::SqladminV1::BackupRunsListResponse::Representation command.response_class = Google::Apis::SqladminV1::BackupRunsListResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['maxResults'] = max_results unless max_results.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_databases(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::DatabasesListResponse
Lists databases in the specified Cloud SQL instance.
630 631 632 633 634 635 636 637 638 639 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 630 def list_databases(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/databases', ) command.response_representation = Google::Apis::SqladminV1::DatabasesListResponse::Representation command.response_class = Google::Apis::SqladminV1::DatabasesListResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_flags(database_version: nil, flag_scope: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::FlagsListResponse
Lists all available database flags for Cloud SQL instances.
745 746 747 748 749 750 751 752 753 754 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 745 def list_flags(database_version: nil, flag_scope: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/flags', ) command.response_representation = Google::Apis::SqladminV1::FlagsListResponse::Representation command.response_class = Google::Apis::SqladminV1::FlagsListResponse command.query['databaseVersion'] = database_version unless database_version.nil? command.query['flagScope'] = flag_scope unless flag_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_instance_entra_id_certificates(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListEntraIdCertificatesResponse
Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.
781 782 783 784 785 786 787 788 789 790 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 781 def list_instance_entra_id_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/listEntraIdCertificates', ) command.response_representation = Google::Apis::SqladminV1::InstancesListEntraIdCertificatesResponse::Representation command.response_class = Google::Apis::SqladminV1::InstancesListEntraIdCertificatesResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListServerCasResponse
Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1505 def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/listServerCas', ) command.response_representation = Google::Apis::SqladminV1::InstancesListServerCasResponse::Representation command.response_class = Google::Apis::SqladminV1::InstancesListServerCasResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance_server_certificates(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListServerCertificatesResponse
Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.
819 820 821 822 823 824 825 826 827 828 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 819 def list_instance_server_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/listServerCertificates', ) command.response_representation = Google::Apis::SqladminV1::InstancesListServerCertificatesResponse::Representation command.response_class = Google::Apis::SqladminV1::InstancesListServerCertificatesResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::InstancesListResponse
Lists instances under a given project.
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1466 def list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances', ) command.response_representation = Google::Apis::SqladminV1::InstancesListResponse::Representation command.response_class = Google::Apis::SqladminV1::InstancesListResponse command.params['project'] = project unless project.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.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_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::OperationsListResponse
Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.
2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2153 def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/operations', ) command.response_representation = Google::Apis::SqladminV1::OperationsListResponse::Representation command.response_class = Google::Apis::SqladminV1::OperationsListResponse command.params['project'] = project unless project.nil? command.query['instance'] = instance unless instance.nil? command.query['maxResults'] = max_results unless max_results.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_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SslCertsListResponse
Lists all of the current SSL certificates for the instance.
2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2589 def list_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/sslCerts', ) command.response_representation = Google::Apis::SqladminV1::SslCertsListResponse::Representation command.response_class = Google::Apis::SqladminV1::SslCertsListResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_tiers(project, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::TiersListResponse
Lists all available machine types (tiers) for Cloud SQL, for example, db-
custom-1-3840. For more information, see https://cloud.google.com/sql/pricing.
2621 2622 2623 2624 2625 2626 2627 2628 2629 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2621 def list_tiers(project, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/tiers', ) command.response_representation = Google::Apis::SqladminV1::TiersListResponse::Representation command.response_class = Google::Apis::SqladminV1::TiersListResponse command.params['project'] = project unless project.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_users(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::UsersListResponse
Lists users in the specified Cloud SQL instance.
2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2767 def list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/users', ) command.response_representation = Google::Apis::SqladminV1::UsersListResponse::Representation command.response_class = Google::Apis::SqladminV1::UsersListResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
667 668 669 670 671 672 673 674 675 676 677 678 679 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 667 def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/projects/{project}/instances/{instance}/databases/{database}', ) command.request_representation = Google::Apis::SqladminV1::Database::Representation command.request_object = database_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.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_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1540 def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/projects/{project}/instances/{instance}', ) command.request_representation = Google::Apis::SqladminV1::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#perform_project_instance_disk_shrink(project, instance, perform_disk_shrink_context_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Perform Disk Shrink on primary instance.
2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2259 def perform_project_instance_disk_shrink(project, instance, perform_disk_shrink_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/performDiskShrink', ) command.request_representation = Google::Apis::SqladminV1::PerformDiskShrinkContext::Representation command.request_object = perform_disk_shrink_context_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#point_instance_in_time_restore(parent, point_in_time_restore_context_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1576 def point_instance_in_time_restore(parent, point_in_time_restore_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:pointInTimeRestore', ) command.request_representation = Google::Apis::SqladminV1::PointInTimeRestoreContext::Representation command.request_object = point_in_time_restore_context_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::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 |
#pre_instance_check_major_version_upgrade(project, instance, instances_pre_check_major_version_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Execute MVU Pre-checks
1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1611 def pre_instance_check_major_version_upgrade(project, instance, instances_pre_check_major_version_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade', ) command.request_representation = Google::Apis::SqladminV1::InstancesPreCheckMajorVersionUpgradeRequest::Representation command.request_object = instances_pre_check_major_version_upgrade_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance_replica(project, instance, failover: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1653 def promote_instance_replica(project, instance, failover: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/promoteReplica', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['failover'] = failover unless failover.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Reencrypt CMEK instance with latest key version.
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1688 def reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/reencrypt', ) command.request_representation = Google::Apis::SqladminV1::InstancesReencryptRequest::Representation command.request_object = instances_reencrypt_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#release_instance_ssrs_lease(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesReleaseSsrsLeaseResponse
Release a lease for the setup of SQL Server Reporting Services (SSRS).
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1725 def release_instance_ssrs_lease(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/releaseSsrsLease', ) command.response_representation = Google::Apis::SqladminV1::SqlInstancesReleaseSsrsLeaseResponse::Representation command.response_class = Google::Apis::SqladminV1::SqlInstancesReleaseSsrsLeaseResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Reschedules the maintenance on the given instance.
2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2295 def reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/rescheduleMaintenance', ) command.request_representation = Google::Apis::SqladminV1::SqlInstancesRescheduleMaintenanceRequestBody::Representation command.request_object = sql_instances_reschedule_maintenance_request_body_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_instance_ssl_config(project, instance, mode: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Deletes all client certificates and generates a new server SSL certificate for the instance.
1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1761 def reset_instance_ssl_config(project, instance, mode: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/resetSslConfig', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['mode'] = mode unless mode.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_project_instance_replica_size(project, instance, sql_instances_reset_replica_size_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Reset Replica Size to primary instance disk size.
2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2331 def reset_project_instance_replica_size(project, instance, sql_instances_reset_replica_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/resetReplicaSize', ) command.request_representation = Google::Apis::SqladminV1::SqlInstancesResetReplicaSizeRequest::Representation command.request_object = sql_instances_reset_replica_size_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#resolve_connect(dns_name, location, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::ConnectSettings
Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
487 488 489 490 491 492 493 494 495 496 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 487 def resolve_connect(dns_name, location, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/dns/{dnsName}/locations/{location}:resolveConnectSettings', ) command.response_representation = Google::Apis::SqladminV1::ConnectSettings::Representation command.response_class = Google::Apis::SqladminV1::ConnectSettings command.params['dnsName'] = dns_name unless dns_name.nil? command.params['location'] = location unless location.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(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Restarts a Cloud SQL instance.
1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1795 def restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/restart', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1830 def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/restoreBackup', ) command.request_representation = Google::Apis::SqladminV1::InstancesRestoreBackupRequest::Representation command.request_object = instances_restore_backup_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rotate_instance_entra_id_certificate(project, instance, instances_rotate_entra_id_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Rotates the server certificate version to one previously added with the addEntraIdCertificate method.
854 855 856 857 858 859 860 861 862 863 864 865 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 854 def rotate_instance_entra_id_certificate(project, instance, instances_rotate_entra_id_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/rotateEntraIdCertificate', ) command.request_representation = Google::Apis::SqladminV1::InstancesRotateEntraIdCertificateRequest::Representation command.request_object = instances_rotate_entra_id_certificate_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.
1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1869 def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/rotateServerCa', ) command.request_representation = Google::Apis::SqladminV1::InstancesRotateServerCaRequest::Representation command.request_object = instances_rotate_server_ca_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rotate_instance_server_certificate(project, instance, instances_rotate_server_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.
892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 892 def rotate_instance_server_certificate(project, instance, instances_rotate_server_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/rotateServerCertificate', ) command.request_representation = Google::Apis::SqladminV1::InstancesRotateServerCertificateRequest::Representation command.request_object = instances_rotate_server_certificate_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Starts the replication in the read replica instance.
1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1904 def start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/startReplica', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_project_instance_external_sync(project, instance, sql_instances_start_external_sync_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Start External primary instance migration.
2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2367 def start_project_instance_external_sync(project, instance, sql_instances_start_external_sync_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/startExternalSync', ) command.request_representation = Google::Apis::SqladminV1::SqlInstancesStartExternalSyncRequest::Representation command.request_object = sql_instances_start_external_sync_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Stops the replication in the read replica instance.
1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1937 def stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/stopReplica', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.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_instance(project, instance, db_timeout: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Switches over from the primary instance to the DR replica instance.
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 1974 def switchover_instance(project, instance, db_timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/switchover', ) command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['dbTimeout'] = db_timeout unless db_timeout.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Truncate MySQL general and slow query log tables MySQL only.
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2009 def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/truncateLog', ) command.request_representation = Google::Apis::SqladminV1::InstancesTruncateLogRequest::Representation command.request_object = instances_truncate_log_request_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_backup_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates the retention period and description of the backup. You can use this API to update final backups only.
225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 225 def update_backup_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SqladminV1::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates a resource containing information about a database inside a Cloud SQL instance.
707 708 709 710 711 712 713 714 715 716 717 718 719 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 707 def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/projects/{project}/instances/{instance}/databases/{database}', ) command.request_representation = Google::Apis::SqladminV1::Database::Representation command.request_object = database_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2046 def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/projects/{project}/instances/{instance}', ) command.request_representation = Google::Apis::SqladminV1::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_user(project, instance, user_object = nil, database_roles: nil, host: nil, name: nil, revoke_existing_roles: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::Operation
Updates an existing user in a Cloud SQL instance.
2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2812 def update_user(project, instance, user_object = nil, database_roles: nil, host: nil, name: nil, revoke_existing_roles: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/projects/{project}/instances/{instance}/users', ) command.request_representation = Google::Apis::SqladminV1::User::Representation command.request_object = user_object command.response_representation = Google::Apis::SqladminV1::Operation::Representation command.response_class = Google::Apis::SqladminV1::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['databaseRoles'] = database_roles unless database_roles.nil? command.query['host'] = host unless host.nil? command.query['name'] = name unless name.nil? command.query['revokeExistingRoles'] = revoke_existing_roles unless revoke_existing_roles.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#verify_project_instance_external_sync_settings(project, instance, sql_instances_verify_external_sync_settings_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse
Verify External primary instance external sync settings.
2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 |
# File 'lib/google/apis/sqladmin_v1/service.rb', line 2403 def verify_project_instance_external_sync_settings(project, instance, sql_instances_verify_external_sync_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings', ) command.request_representation = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsRequest::Representation command.request_object = sql_instances_verify_external_sync_settings_request_object command.response_representation = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse::Representation command.response_class = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |