generated/google/apis/sql_v1beta4/service.rb in google-api-client-0.33.1 vs generated/google/apis/sql_v1beta4/service.rb in google-api-client-0.33.2
- old
+ new
@@ -90,10 +90,15 @@
# Project ID of the project that contains the instance.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Fixnum] id
# The ID of this Backup Run.
+ # @param [String] resource_name
+ # Name of the resource backupRun.
+ # Format:
+ # projects/`project`/locations/`location`/instances/`instance`/backupRuns/`
+ # backupRun`
# @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.
@@ -107,17 +112,18 @@
# @return [Google::Apis::SqlV1beta4::BackupRun]
#
# @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 get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block)
+ def get_backup_run(project, instance, id, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
command.response_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
command.response_class = Google::Apis::SqlV1beta4::BackupRun
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.params['id'] = id unless id.nil?
+ command.query['resourceName'] = resource_name unless resource_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
@@ -126,10 +132,13 @@
# @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::SqlV1beta4::BackupRun] backup_run_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL should create this backupRun.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -143,18 +152,19 @@
# @return [Google::Apis::SqlV1beta4::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 insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def insert_backup_run(project, instance, backup_run_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
command.request_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
command.request_object = backup_run_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -167,10 +177,13 @@
# @param [Fixnum] max_results
# Maximum number of backup runs per response.
# @param [String] page_token
# A previously-returned page token representing part of the larger set of
# results to view.
+ # @param [String] parent
+ # The parent, which owns this collection of backupRuns.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -184,18 +197,19 @@
# @return [Google::Apis::SqlV1beta4::BackupRunsListResponse]
#
# @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, options: nil, &block)
+ def list_backup_runs(project, instance, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
command.response_representation = Google::Apis::SqlV1beta4::BackupRunsListResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::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['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
@@ -241,10 +255,15 @@
# Project ID of the project that contains the instance.
# @param [String] instance
# Database instance ID. This does not include the project ID.
# @param [String] database
# Name of the database in the instance.
+ # @param [String] resource_name
+ # Name of the resource database.
+ # Format:
+ # projects/`project`/locations/`location`/instances/`instance`/databases/`
+ # database`
# @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.
@@ -258,17 +277,18 @@
# @return [Google::Apis::SqlV1beta4::Database]
#
# @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 get_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block)
+ def get_database(project, instance, database, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
command.response_representation = Google::Apis::SqlV1beta4::Database::Representation
command.response_class = Google::Apis::SqlV1beta4::Database
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.params['database'] = database unless database.nil?
+ command.query['resourceName'] = resource_name unless resource_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
@@ -277,10 +297,13 @@
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
# Database instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::Database] database_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL should add this database.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -294,28 +317,32 @@
# @return [Google::Apis::SqlV1beta4::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 insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def insert_database(project, instance, database_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
command.request_object = database_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Lists databases in the specified 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 [String] parent
+ # The parent, which owns this collection of databases.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -329,16 +356,17 @@
# @return [Google::Apis::SqlV1beta4::DatabasesListResponse]
#
# @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, options: nil, &block)
+ def list_databases(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
command.response_representation = Google::Apis::SqlV1beta4::DatabasesListResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::DatabasesListResponse
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -460,10 +488,13 @@
# waiting to be rotated in.
# @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 [String] parent
+ # The parent resource where Cloud SQL should add this server CA.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -477,16 +508,17 @@
# @return [Google::Apis::SqlV1beta4::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 add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def add_instance_server_ca(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -495,10 +527,13 @@
# 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::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL should clone this instance.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -512,18 +547,19 @@
# @return [Google::Apis::SqlV1beta4::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, options: nil, &block)
+ def clone_instance(project, instance, instances_clone_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesCloneRequest::Representation
command.request_object = instances_clone_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -565,10 +601,13 @@
# @param [String] project
# ID of the project that contains the instance.
# @param [String] instance
# Cloud SQL instance name.
# @param [Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL demotes this master database instance.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -582,18 +621,19 @@
# @return [Google::Apis::SqlV1beta4::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 demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def demote_instance_master(project, instance, instances_demote_master_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest::Representation
command.request_object = instances_demote_master_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -602,10 +642,13 @@
# @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::SqlV1beta4::InstancesExportRequest] instances_export_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL exports this database instance.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -619,18 +662,19 @@
# @return [Google::Apis::SqlV1beta4::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, options: nil, &block)
+ def export_instance(project, instance, instances_export_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesExportRequest::Representation
command.request_object = instances_export_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -638,10 +682,14 @@
# @param [String] project
# ID of the project that contains the read replica.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::InstancesFailoverRequest] instances_failover_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL sends this database instance during a
+ # failover. Format:
+ # projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -655,28 +703,32 @@
# @return [Google::Apis::SqlV1beta4::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 failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def failover_instance(project, instance, instances_failover_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesFailoverRequest::Representation
command.request_object = instances_failover_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Retrieves a resource containing information about a Cloud SQL instance.
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
# Database instance ID. This does not include the project ID.
+ # @param [String] resource_name
+ # Name of the resource database instance.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -690,16 +742,17 @@
# @return [Google::Apis::SqlV1beta4::DatabaseInstance]
#
# @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 get_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def get_instance(project, instance, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
command.response_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
command.response_class = Google::Apis::SqlV1beta4::DatabaseInstance
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['resourceName'] = resource_name unless resource_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
@@ -708,10 +761,13 @@
# @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::SqlV1beta4::InstancesImportRequest] instances_import_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL imports this database instance.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -725,28 +781,32 @@
# @return [Google::Apis::SqlV1beta4::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, options: nil, &block)
+ def import_instance(project, instance, instances_import_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesImportRequest::Representation
command.request_object = instances_import_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Creates a new Cloud SQL instance.
# @param [String] project
# Project ID of the project to which the newly created Cloud SQL instances
# should belong.
# @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL creates this database instance.
+ # Format: projects/`project`/locations/`location`
# @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.
@@ -760,17 +820,18 @@
# @return [Google::Apis::SqlV1beta4::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 insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def insert_instance(project, database_instance_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options)
command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
command.request_object = database_instance_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
+ command.query['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
@@ -823,10 +884,13 @@
# has previously rotated out.
# @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 [String] parent
+ # The parent, which owns this collection of server CAs.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -840,16 +904,17 @@
# @return [Google::Apis::SqlV1beta4::InstancesListServerCasResponse]
#
# @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_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def list_instance_server_cas(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options)
command.response_representation = Google::Apis::SqlV1beta4::InstancesListServerCasResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::InstancesListServerCasResponse
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -893,10 +958,13 @@
# Promotes the read replica instance to be a stand-alone Cloud SQL instance.
# @param [String] project
# ID of the project that contains the read replica.
# @param [String] instance
# Cloud SQL read replica instance name.
+ # @param [String] parent
+ # The parent resource where Cloud SQL promotes this replica database
+ # instance. Format: projects/`project`/locations/`location`
# @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.
@@ -910,16 +978,17 @@
# @return [Google::Apis::SqlV1beta4::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 promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def promote_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -927,10 +996,13 @@
# for the 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 [String] parent
+ # The parent resource where Cloud SQL resets this SSL config.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -944,26 +1016,30 @@
# @return [Google::Apis::SqlV1beta4::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 reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def reset_instance_ssl_config(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Restarts a Cloud SQL instance.
# @param [String] project
# Project ID of the project that contains the instance to be restarted.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
+ # @param [String] parent
+ # The parent resource where Cloud SQL restarts this database instance.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -977,16 +1053,17 @@
# @return [Google::Apis::SqlV1beta4::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 restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def restart_instance(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -994,10 +1071,14 @@
# @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::SqlV1beta4::InstancesRestoreBackupRequest] instances_restore_backup_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL restores this database instance from
+ # backup. Format:
+ # projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1011,18 +1092,19 @@
# @return [Google::Apis::SqlV1beta4::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, options: nil, &block)
+ def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest::Representation
command.request_object = instances_restore_backup_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -1031,10 +1113,13 @@
# @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::SqlV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL rotates these server CAs.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1048,28 +1133,33 @@
# @return [Google::Apis::SqlV1beta4::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 rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest::Representation
command.request_object = instances_rotate_server_ca_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Starts the replication in the read replica instance.
# @param [String] project
# ID of the project that contains the read replica.
# @param [String] instance
# Cloud SQL read replica instance name.
+ # @param [String] parent
+ # The parent resource where Cloud SQL starts this database instance
+ # replication. Format:
+ # projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1083,26 +1173,31 @@
# @return [Google::Apis::SqlV1beta4::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 start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def start_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Stops the replication in the read replica instance.
# @param [String] project
# ID of the project that contains the read replica.
# @param [String] instance
# Cloud SQL read replica instance name.
+ # @param [String] parent
+ # The parent resource where Cloud SQL stops this database instance
+ # replication. Format:
+ # projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1116,16 +1211,17 @@
# @return [Google::Apis::SqlV1beta4::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 stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
+ def stop_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -1133,10 +1229,13 @@
# @param [String] project
# Project ID of the Cloud SQL project.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL truncates this log.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1150,18 +1249,19 @@
# @return [Google::Apis::SqlV1beta4::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 truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/truncateLog', options)
command.request_representation = Google::Apis::SqlV1beta4::InstancesTruncateLogRequest::Representation
command.request_object = instances_truncate_log_request_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -1248,10 +1348,15 @@
# @param [Fixnum] max_results
# Maximum number of operations per response.
# @param [String] page_token
# A previously-returned page token representing part of the larger set of
# results to view.
+ # @param [String] parent
+ # Indirect parent. The direct parent should combine with the instance name,
+ # which owns this collection of operations.
+ # Format:
+ # projects/`project`/locations/`location`
# @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.
@@ -1265,18 +1370,19 @@
# @return [Google::Apis::SqlV1beta4::OperationsListResponse]
#
# @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: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ def list_operations(project, instance: nil, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options)
command.response_representation = Google::Apis::SqlV1beta4::OperationsListResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::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['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
@@ -1287,10 +1393,13 @@
# @param [String] project
# Project ID of the Cloud SQL project.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL creates this ephemeral certificate.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1304,18 +1413,19 @@
# @return [Google::Apis::SqlV1beta4::SslCert]
#
# @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 create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options)
command.request_representation = Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest::Representation
command.request_object = ssl_certs_create_ephemeral_request_object
command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
command.response_class = Google::Apis::SqlV1beta4::SslCert
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -1363,10 +1473,14 @@
# Project ID of the project that contains the instance.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [String] sha1_fingerprint
# Sha1 FingerPrint.
+ # @param [String] resource_name
+ # Name of the resource ssl certificate.
+ # Format:
+ # projects/`project`/locations/`location`/instances/`instance`/sslCerts/`sslCert`
# @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.
@@ -1380,17 +1494,18 @@
# @return [Google::Apis::SqlV1beta4::SslCert]
#
# @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 get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block)
+ def get_ssl_cert(project, instance, sha1_fingerprint, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
command.response_class = Google::Apis::SqlV1beta4::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['resourceName'] = resource_name unless resource_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
@@ -1400,10 +1515,13 @@
# @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::SqlV1beta4::SslCertsInsertRequest] ssl_certs_insert_request_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL creates this SSL certificate.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1417,28 +1535,32 @@
# @return [Google::Apis::SqlV1beta4::SslCertsInsertResponse]
#
# @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, options: nil, &block)
+ def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
command.request_representation = Google::Apis::SqlV1beta4::SslCertsInsertRequest::Representation
command.request_object = ssl_certs_insert_request_object
command.response_representation = Google::Apis::SqlV1beta4::SslCertsInsertResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::SslCertsInsertResponse
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Lists all of the current SSL certificates for the 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 [String] parent
+ # The parent, which owns this collection of SSL certificates.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1452,16 +1574,17 @@
# @return [Google::Apis::SqlV1beta4::SslCertsListResponse]
#
# @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, options: nil, &block)
+ def list_ssl_certs(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
command.response_representation = Google::Apis::SqlV1beta4::SslCertsListResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::SslCertsListResponse
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
@@ -1540,10 +1663,13 @@
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
# Database instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::User] user_object
+ # @param [String] parent
+ # The parent resource where Cloud SQL creates this user.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1557,28 +1683,32 @@
# @return [Google::Apis::SqlV1beta4::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 insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def insert_user(project, instance, user_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
command.request_representation = Google::Apis::SqlV1beta4::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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
# Lists users in the specified Cloud SQL instance.
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
# Database instance ID. This does not include the project ID.
+ # @param [String] parent
+ # The parent, which owns this collection of users.
+ # Format: projects/`project`/locations/`location`/instances/`instance`
# @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.
@@ -1592,15 +1722,16 @@
# @return [Google::Apis::SqlV1beta4::UsersListResponse]
#
# @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, options: nil, &block)
+ def list_users(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
command.response_representation = Google::Apis::SqlV1beta4::UsersListResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::UsersListResponse
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
+ command.query['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