generated/google/apis/sqladmin_v1beta4/service.rb in google-api-client-0.12.0 vs generated/google/apis/sqladmin_v1beta4/service.rb in google-api-client-0.13.0
- old
+ new
@@ -201,22 +201,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::BackupRunsListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::BackupRunsListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListBackupRunsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_backup_runs(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}/backupRuns', options)
- command.response_representation = Google::Apis::SqladminV1beta4::BackupRunsListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::BackupRunsListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse
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?
@@ -366,22 +366,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::DatabasesListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListDatabasesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::DatabasesListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListDatabasesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_databases(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases', options)
- command.response_representation = Google::Apis::SqladminV1beta4::DatabasesListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::DatabasesListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse
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?
@@ -493,22 +493,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::FlagsListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListFlagsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::FlagsListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListFlagsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_flags(database_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'flags', options)
- command.response_representation = Google::Apis::SqladminV1beta4::FlagsListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::FlagsListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse
command.query['databaseVersion'] = database_version unless database_version.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)
@@ -519,11 +519,11 @@
# @param [String] project
# Project ID of the source as well as the clone Cloud SQL instance.
# @param [String] instance
# The ID of the Cloud SQL instance to be cloned (source). This does not include
# the project ID.
- # @param [Google::Apis::SqladminV1beta4::InstancesCloneRequest] instances_clone_request_object
+ # @param [Google::Apis::SqladminV1beta4::CloneInstancesRequest] clone_instances_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
@@ -541,14 +541,14 @@
# @return [Google::Apis::SqladminV1beta4::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/clone', options)
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesCloneRequest::Representation
- command.request_object = instances_clone_request_object
+ command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation
+ command.request_object = clone_instances_request_object
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
command.response_class = Google::Apis::SqladminV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
@@ -599,11 +599,11 @@
# MySQL dump file.
# @param [String] project
# Project ID of the project that contains the instance to be exported.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
- # @param [Google::Apis::SqladminV1beta4::InstancesExportRequest] instances_export_request_object
+ # @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
@@ -621,14 +621,14 @@
# @return [Google::Apis::SqladminV1beta4::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options)
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesExportRequest::Representation
- command.request_object = instances_export_request_object
+ command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation
+ command.request_object = export_instances_request_object
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
command.response_class = Google::Apis::SqladminV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
@@ -720,11 +720,11 @@
# Storage.
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
- # @param [Google::Apis::SqladminV1beta4::InstancesImportRequest] instances_import_request_object
+ # @param [Google::Apis::SqladminV1beta4::ImportInstancesRequest] import_instances_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
@@ -742,14 +742,14 @@
# @return [Google::Apis::SqladminV1beta4::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options)
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesImportRequest::Representation
- command.request_object = instances_import_request_object
+ command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation
+ command.request_object = import_instances_request_object
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
command.response_class = Google::Apis::SqladminV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
@@ -820,22 +820,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::InstancesListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListInstancesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_instances(project, filter: nil, 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', options)
- command.response_representation = Google::Apis::SqladminV1beta4::InstancesListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::InstancesListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse
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?
@@ -1007,11 +1007,11 @@
# Restores a backup of a Cloud SQL instance.
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
- # @param [Google::Apis::SqladminV1beta4::InstancesRestoreBackupRequest] instances_restore_backup_request_object
+ # @param [Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest] restore_instances_backup_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
@@ -1029,14 +1029,14 @@
# @return [Google::Apis::SqladminV1beta4::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options)
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesRestoreBackupRequest::Representation
- command.request_object = instances_restore_backup_request_object
+ command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation
+ command.request_object = restore_instances_backup_request_object
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
command.response_class = Google::Apis::SqladminV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
@@ -1265,22 +1265,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::OperationsListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::OperationsListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
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}/operations', options)
- command.response_representation = Google::Apis::SqladminV1beta4::OperationsListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::OperationsListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse
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?
@@ -1423,11 +1423,11 @@
# @param [String] project
# Project ID of the project to which the newly created Cloud SQL instances
# should belong.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
- # @param [Google::Apis::SqladminV1beta4::SslCertsInsertRequest] ssl_certs_insert_request_object
+ # @param [Google::Apis::SqladminV1beta4::InsertSslCertsRequest] insert_ssl_certs_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
@@ -1437,24 +1437,24 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::SslCertsInsertResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::SslCertsInsertResponse]
+ # @return [Google::Apis::SqladminV1beta4::InsertSslCertsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options)
- command.request_representation = Google::Apis::SqladminV1beta4::SslCertsInsertRequest::Representation
- command.request_object = ssl_certs_insert_request_object
- command.response_representation = Google::Apis::SqladminV1beta4::SslCertsInsertResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::SslCertsInsertResponse
+ command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation
+ command.request_object = insert_ssl_certs_request_object
+ command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::InsertSslCertsResponse
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?
@@ -1477,22 +1477,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::SslCertsListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListSslCertsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::SslCertsListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListSslCertsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
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', options)
- command.response_representation = Google::Apis::SqladminV1beta4::SslCertsListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::SslCertsListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse
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?
@@ -1514,22 +1514,22 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::TiersListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListTiersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::TiersListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListTiersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{project}/tiers', options)
- command.response_representation = Google::Apis::SqladminV1beta4::TiersListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::TiersListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse
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)
@@ -1636,21 +1636,21 @@
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::SqladminV1beta4::UsersListResponse] parsed result object
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListUsersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::SqladminV1beta4::UsersListResponse]
+ # @return [Google::Apis::SqladminV1beta4::ListUsersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_users(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/users', options)
- command.response_representation = Google::Apis::SqladminV1beta4::UsersListResponse::Representation
- command.response_class = Google::Apis::SqladminV1beta4::UsersListResponse
+ command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse
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?