Class: Google::Apis::SqladminV1beta3::SQLAdminService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::SqladminV1beta3::SQLAdminService
- Defined in:
- generated/google/apis/sqladmin_v1beta3/service.rb
Overview
Cloud SQL Administration API
Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
-
#user_ip ⇒ String
IP address of the site where the request originates.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#clone_instance(project, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesCloneResponse
Creates a Cloud SQL instance as a clone of a source instance.
-
#delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesDeleteResponse
Deletes a Cloud SQL instance.
-
#delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCertsDeleteResponse
Deletes an SSL certificate from a Cloud SQL instance.
-
#export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesExportResponse
Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump file.
-
#get_backup_run(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::BackupRun
Retrieves information about a specified backup run for a Cloud SQL instance.
-
#get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::DatabaseInstance
Retrieves information about a Cloud SQL instance.
-
#get_operation(project, instance, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstanceOperation
Retrieves information about a specific operation that was performed on a Cloud SQL instance.
-
#get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCert
Retrieves an SSL certificate as specified by its SHA-1 fingerprint.
-
#import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesImportResponse
Imports data into a Cloud SQL instance from a MySQL dump file stored in a Google Cloud Storage bucket.
-
#initialize ⇒ SQLAdminService
constructor
A new instance of SQLAdminService.
-
#insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesInsertResponse
Creates a new Cloud SQL instance.
-
#insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCertsInsertResponse
Creates an SSL certificate and returns the certificate, the associated private key, and the server certificate authority.
-
#list_backup_runs(project, instance, backup_configuration, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::BackupRunsListResponse
Lists all backup runs associated with a Cloud SQL instance.
-
#list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::FlagsListResponse
Lists all database flags that can be set for Google Cloud SQL instances.
-
#list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesListResponse
Lists instances for a given project, in alphabetical order by instance name.
-
#list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::OperationsListResponse
Lists all operations that have been performed on a Cloud SQL instance.
-
#list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCertsListResponse
Lists all of the current SSL certificates defined for a Cloud SQL instance.
-
#list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::TiersListResponse
Lists service tiers that can be used to create Google Cloud SQL instances.
-
#patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesUpdateResponse
Updates the settings of a Cloud SQL instance.
-
#promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse
Promotes the read replica instance to be a stand-alone Cloud SQL instance.
-
#reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse
Deletes all client certificates and generates a new server SSL certificate for a Cloud SQL instance.
-
#restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesRestartResponse
Restarts a Cloud SQL instance.
-
#restore_instance_backup(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse
Restores a backup of a Cloud SQL instance.
-
#set_instance_root_password(project, instance, instance_set_root_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse
Sets the password for the root user of the specified Cloud SQL instance.
-
#update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesUpdateResponse
Updates the settings of a Cloud SQL instance.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ SQLAdminService
Returns a new instance of SQLAdminService
52 53 54 55 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 52 def initialize super('https://www.googleapis.com/', 'sql/v1beta3/') @batch_path = 'batch/sqladmin/v1beta3' 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.
39 40 41 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 39 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. Overrides userIp if both are provided.
45 46 47 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 45 def quota_user @quota_user end |
#user_ip ⇒ String
Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.
50 51 52 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 50 def user_ip @user_ip end |
Instance Method Details
#clone_instance(project, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesCloneResponse
Creates a Cloud SQL instance as a clone of a source instance.
210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 210 def clone_instance(project, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/clone', ) command.request_representation = Google::Apis::SqladminV1beta3::InstancesCloneRequest::Representation command.request_object = instances_clone_request_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesCloneResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesCloneResponse command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesDeleteResponse
Deletes a Cloud SQL instance.
249 250 251 252 253 254 255 256 257 258 259 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 249 def delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', ) command.response_representation = Google::Apis::SqladminV1beta3::InstancesDeleteResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesDeleteResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCertsDeleteResponse
Deletes an SSL certificate from a Cloud SQL instance.
865 866 867 868 869 870 871 872 873 874 875 876 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 865 def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', ) command.response_representation = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesExportResponse
Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump file.
289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 289 def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', ) command.request_representation = Google::Apis::SqladminV1beta3::InstancesExportRequest::Representation command.request_object = instances_export_request_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesExportResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesExportResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_backup_run(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::BackupRun
Retrieves information about a specified backup run for a Cloud SQL instance.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 90 def get_backup_run(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', ) command.response_representation = Google::Apis::SqladminV1beta3::BackupRun::Representation command.response_class = Google::Apis::SqladminV1beta3::BackupRun command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['backupConfiguration'] = backup_configuration unless backup_configuration.nil? command.query['dueTime'] = due_time unless due_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::DatabaseInstance
Retrieves information about a Cloud SQL instance.
329 330 331 332 333 334 335 336 337 338 339 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 329 def get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}', ) command.response_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation command.response_class = Google::Apis::SqladminV1beta3::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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_operation(project, instance, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstanceOperation
Retrieves information about a specific operation that was performed on a Cloud SQL instance.
779 780 781 782 783 784 785 786 787 788 789 790 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 779 def get_operation(project, instance, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations/{operation}', ) command.response_representation = Google::Apis::SqladminV1beta3::InstanceOperation::Representation command.response_class = Google::Apis::SqladminV1beta3::InstanceOperation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCert
Retrieves an SSL certificate as specified by its SHA-1 fingerprint.
906 907 908 909 910 911 912 913 914 915 916 917 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 906 def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', ) command.response_representation = Google::Apis::SqladminV1beta3::SslCert::Representation command.response_class = Google::Apis::SqladminV1beta3::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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesImportResponse
Imports data into a Cloud SQL instance from a MySQL dump file stored in a Google Cloud Storage bucket.
369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 369 def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', ) command.request_representation = Google::Apis::SqladminV1beta3::InstancesImportRequest::Representation command.request_object = instances_import_request_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesImportResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesImportResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesInsertResponse
Creates a new Cloud SQL instance.
409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 409 def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances', ) command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesInsertResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesInsertResponse command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCertsInsertResponse
Creates an SSL certificate and returns the certificate, the associated private key, and the server certificate authority.
948 949 950 951 952 953 954 955 956 957 958 959 960 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 948 def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', ) command.request_representation = Google::Apis::SqladminV1beta3::SslCertsInsertRequest::Representation command.request_object = ssl_certs_insert_request_object command.response_representation = Google::Apis::SqladminV1beta3::SslCertsInsertResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_backup_runs(project, instance, backup_configuration, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::BackupRunsListResponse
Lists all backup runs associated with a Cloud SQL instance.
138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 138 def list_backup_runs(project, instance, backup_configuration, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', ) command.response_representation = Google::Apis::SqladminV1beta3::BackupRunsListResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::BackupRunsListResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['backupConfiguration'] = backup_configuration unless backup_configuration.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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::FlagsListResponse
Lists all database flags that can be set for Google Cloud SQL instances.
175 176 177 178 179 180 181 182 183 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 175 def list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'flags', ) command.response_representation = Google::Apis::SqladminV1beta3::FlagsListResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::FlagsListResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesListResponse
Lists instances for a given project, in alphabetical order by instance name.
451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 451 def list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances', ) command.response_representation = Google::Apis::SqladminV1beta3::InstancesListResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesListResponse command.params['project'] = project unless project.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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::OperationsListResponse
Lists all operations that have been performed on a Cloud SQL instance.
823 824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 823 def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations', ) command.response_representation = Google::Apis::SqladminV1beta3::OperationsListResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::OperationsListResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::SslCertsListResponse
Lists all of the current SSL certificates defined for a Cloud SQL instance.
988 989 990 991 992 993 994 995 996 997 998 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 988 def list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', ) command.response_representation = Google::Apis::SqladminV1beta3::SslCertsListResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::TiersListResponse
Lists service tiers that can be used to create Google Cloud SQL instances.
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 1024 def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'projects/{project}/tiers', ) command.response_representation = Google::Apis::SqladminV1beta3::TiersListResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::TiersListResponse command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesUpdateResponse
Updates the settings of a Cloud SQL instance. This method supports patch semantics.
492 493 494 495 496 497 498 499 500 501 502 503 504 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 492 def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', ) command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse
Promotes the read replica instance to be a stand-alone Cloud SQL instance.
532 533 534 535 536 537 538 539 540 541 542 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 532 def promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', ) command.response_representation = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse
Deletes all client certificates and generates a new server SSL certificate for a Cloud SQL instance.
571 572 573 574 575 576 577 578 579 580 581 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 571 def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', ) command.response_representation = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesRestartResponse
Restarts a Cloud SQL instance.
609 610 611 612 613 614 615 616 617 618 619 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 609 def restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', ) command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestartResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesRestartResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#restore_instance_backup(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse
Restores a backup of a Cloud SQL instance.
654 655 656 657 658 659 660 661 662 663 664 665 666 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 654 def restore_instance_backup(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', ) command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['backupConfiguration'] = backup_configuration unless backup_configuration.nil? command.query['dueTime'] = due_time unless due_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#set_instance_root_password(project, instance, instance_set_root_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse
Sets the password for the root user of the specified Cloud SQL instance.
695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 695 def set_instance_root_password(project, instance, instance_set_root_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/instances/{instance}/setRootPassword', ) command.request_representation = Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest::Representation command.request_object = instance_set_root_password_request_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SqladminV1beta3::InstancesUpdateResponse
Updates the settings of a Cloud SQL instance.
736 737 738 739 740 741 742 743 744 745 746 747 748 |
# File 'generated/google/apis/sqladmin_v1beta3/service.rb', line 736 def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'projects/{project}/instances/{instance}', ) command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse 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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |