diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index 3766ee0a8..6995a47cb 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 VERSION = 'V1beta1' - REVISION = '20191015' + REVISION = '20191023' # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index d8fc5b5f5..d072cf79e 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -235,7 +235,7 @@ module Google attr_accessor :name # Roles for a member within the Group. - # Currently supported MembershipRoles: `"MEMBER"`. + # Currently supported MembershipRoles: `"MEMBER", "OWNER", "MANAGER"`. # Corresponds to the JSON property `roles` # @return [Array] attr_accessor :roles @@ -264,7 +264,7 @@ module Google include Google::Apis::Core::Hashable # MembershipRole in string format. - # Currently supported MembershipRoles: `"MEMBER"`. + # Currently supported MembershipRoles: `"MEMBER", "OWNER", "MANAGER"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/cloudshell_v1.rb b/generated/google/apis/cloudshell_v1.rb index 224e4f69f..094d7cadf 100644 --- a/generated/google/apis/cloudshell_v1.rb +++ b/generated/google/apis/cloudshell_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1 VERSION = 'V1' - REVISION = '20191016' + REVISION = '20191023' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudshell_v1/classes.rb b/generated/google/apis/cloudshell_v1/classes.rb index 6b29e944e..d0a7069c0 100644 --- a/generated/google/apis/cloudshell_v1/classes.rb +++ b/generated/google/apis/cloudshell_v1/classes.rb @@ -67,6 +67,11 @@ module Google # @return [String] attr_accessor :docker_image + # Output only. List of ports users can connect to on the environment. + # Corresponds to the JSON property `httpsPorts` + # @return [Array] + attr_accessor :https_ports + # Output only. The environment's identifier, which is always "default". # Corresponds to the JSON property `id` # @return [String] @@ -139,6 +144,7 @@ module Google # Update properties of this object def update!(**args) @docker_image = args[:docker_image] if args.key?(:docker_image) + @https_ports = args[:https_ports] if args.key?(:https_ports) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @public_keys = args[:public_keys] if args.key?(:public_keys) diff --git a/generated/google/apis/cloudshell_v1/representations.rb b/generated/google/apis/cloudshell_v1/representations.rb index 6fcf91485..bfcb7c337 100644 --- a/generated/google/apis/cloudshell_v1/representations.rb +++ b/generated/google/apis/cloudshell_v1/representations.rb @@ -92,6 +92,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :docker_image, as: 'dockerImage' + collection :https_ports, as: 'httpsPorts' property :id, as: 'id' property :name, as: 'name' collection :public_keys, as: 'publicKeys', class: Google::Apis::CloudshellV1::PublicKey, decorator: Google::Apis::CloudshellV1::PublicKey::Representation diff --git a/generated/google/apis/cloudshell_v1alpha1.rb b/generated/google/apis/cloudshell_v1alpha1.rb index 236fd879a..2ae935201 100644 --- a/generated/google/apis/cloudshell_v1alpha1.rb +++ b/generated/google/apis/cloudshell_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/shell/docs/ module CloudshellV1alpha1 VERSION = 'V1alpha1' - REVISION = '20191016' + REVISION = '20191023' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudshell_v1alpha1/classes.rb b/generated/google/apis/cloudshell_v1alpha1/classes.rb index 8db93e997..30e53868e 100644 --- a/generated/google/apis/cloudshell_v1alpha1/classes.rb +++ b/generated/google/apis/cloudshell_v1alpha1/classes.rb @@ -105,6 +105,11 @@ module Google # @return [String] attr_accessor :docker_image + # Output only. List of ports users can connect to on the environment. + # Corresponds to the JSON property `httpsPorts` + # @return [Array] + attr_accessor :https_ports + # Output only. The environment's identifier, which is always "default". # Corresponds to the JSON property `id` # @return [String] @@ -177,6 +182,7 @@ module Google # Update properties of this object def update!(**args) @docker_image = args[:docker_image] if args.key?(:docker_image) + @https_ports = args[:https_ports] if args.key?(:https_ports) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @public_keys = args[:public_keys] if args.key?(:public_keys) diff --git a/generated/google/apis/cloudshell_v1alpha1/representations.rb b/generated/google/apis/cloudshell_v1alpha1/representations.rb index fee69eee2..60052e27f 100644 --- a/generated/google/apis/cloudshell_v1alpha1/representations.rb +++ b/generated/google/apis/cloudshell_v1alpha1/representations.rb @@ -109,6 +109,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :docker_image, as: 'dockerImage' + collection :https_ports, as: 'httpsPorts' property :id, as: 'id' property :name, as: 'name' collection :public_keys, as: 'publicKeys', class: Google::Apis::CloudshellV1alpha1::PublicKey, decorator: Google::Apis::CloudshellV1alpha1::PublicKey::Representation diff --git a/generated/google/apis/oslogin_v1.rb b/generated/google/apis/oslogin_v1.rb index 86a472b46..6d11f8c56 100644 --- a/generated/google/apis/oslogin_v1.rb +++ b/generated/google/apis/oslogin_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/ module OsloginV1 VERSION = 'V1' - REVISION = '20190921' + REVISION = '20191018' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/oslogin_v1/classes.rb b/generated/google/apis/oslogin_v1/classes.rb index 303712035..15035035a 100644 --- a/generated/google/apis/oslogin_v1/classes.rb +++ b/generated/google/apis/oslogin_v1/classes.rb @@ -66,7 +66,7 @@ module Google class LoginProfile include Google::Apis::Core::Hashable - # A unique user ID. + # Required. A unique user ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/oslogin_v1/service.rb b/generated/google/apis/oslogin_v1/service.rb index c12ae196f..acb67ffa8 100644 --- a/generated/google/apis/oslogin_v1/service.rb +++ b/generated/google/apis/oslogin_v1/service.rb @@ -51,7 +51,7 @@ module Google # Retrieves the profile information used for logging in to a virtual machine # on Google Compute Engine. # @param [String] name - # The unique ID for the user in format `users/`user``. + # Required. The unique ID for the user in format `users/`user``. # @param [String] project_id # The project ID of the Google Cloud Platform project. # @param [String] system_id @@ -89,7 +89,7 @@ module Google # account information is set when no username and UID exist as part of the # login profile. # @param [String] parent - # The unique ID for the user in format `users/`user``. + # Required. The unique ID for the user in format `users/`user``. # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object # @param [String] project_id # The project ID of the Google Cloud Platform project. @@ -125,7 +125,8 @@ module Google # Deletes a POSIX account. # @param [String] name - # A reference to the POSIX account to update. POSIX accounts are identified + # Required. A reference to the POSIX account to update. POSIX accounts are + # identified # by the project ID they are associated with. A reference to the POSIX # account is in format `users/`user`/projects/`project``. # @param [String] fields @@ -157,7 +158,8 @@ module Google # Deletes an SSH public key. # @param [String] name - # The fingerprint of the public key to update. Public keys are identified by + # Required. The fingerprint of the public key to update. Public keys are + # identified by # their SHA-256 fingerprint. The fingerprint of the public key is in format # `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields @@ -222,7 +224,8 @@ module Google # Updates an SSH public key and returns the profile information. This method # supports patch semantics. # @param [String] name - # The fingerprint of the public key to update. Public keys are identified by + # Required. The fingerprint of the public key to update. Public keys are + # identified by # their SHA-256 fingerprint. The fingerprint of the public key is in format # `users/`user`/sshPublicKeys/`fingerprint``. # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object diff --git a/generated/google/apis/oslogin_v1beta.rb b/generated/google/apis/oslogin_v1beta.rb index a1c7f4077..6e2446f6a 100644 --- a/generated/google/apis/oslogin_v1beta.rb +++ b/generated/google/apis/oslogin_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/ module OsloginV1beta VERSION = 'V1beta' - REVISION = '20190921' + REVISION = '20191018' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/oslogin_v1beta/classes.rb b/generated/google/apis/oslogin_v1beta/classes.rb index f482cb623..5cbe68833 100644 --- a/generated/google/apis/oslogin_v1beta/classes.rb +++ b/generated/google/apis/oslogin_v1beta/classes.rb @@ -66,7 +66,7 @@ module Google class LoginProfile include Google::Apis::Core::Hashable - # A unique user ID. + # Required. A unique user ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/oslogin_v1beta/service.rb b/generated/google/apis/oslogin_v1beta/service.rb index 788e92f4f..d4db56059 100644 --- a/generated/google/apis/oslogin_v1beta/service.rb +++ b/generated/google/apis/oslogin_v1beta/service.rb @@ -51,7 +51,7 @@ module Google # Retrieves the profile information used for logging in to a virtual machine # on Google Compute Engine. # @param [String] name - # The unique ID for the user in format `users/`user``. + # Required. The unique ID for the user in format `users/`user``. # @param [String] project_id # The project ID of the Google Cloud Platform project. # @param [String] system_id @@ -125,7 +125,8 @@ module Google # Deletes a POSIX account. # @param [String] name - # A reference to the POSIX account to update. POSIX accounts are identified + # Required. A reference to the POSIX account to update. POSIX accounts are + # identified # by the project ID they are associated with. A reference to the POSIX # account is in format `users/`user`/projects/`project``. # @param [String] fields @@ -157,7 +158,8 @@ module Google # Deletes an SSH public key. # @param [String] name - # The fingerprint of the public key to update. Public keys are identified by + # Required. The fingerprint of the public key to update. Public keys are + # identified by # their SHA-256 fingerprint. The fingerprint of the public key is in format # `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields @@ -189,7 +191,8 @@ module Google # Retrieves an SSH public key. # @param [String] name - # The fingerprint of the public key to retrieve. Public keys are identified + # Required. The fingerprint of the public key to retrieve. Public keys are + # identified # by their SHA-256 fingerprint. The fingerprint of the public key is in # format `users/`user`/sshPublicKeys/`fingerprint``. # @param [String] fields @@ -222,7 +225,8 @@ module Google # Updates an SSH public key and returns the profile information. This method # supports patch semantics. # @param [String] name - # The fingerprint of the public key to update. Public keys are identified by + # Required. The fingerprint of the public key to update. Public keys are + # identified by # their SHA-256 fingerprint. The fingerprint of the public key is in format # `users/`user`/sshPublicKeys/`fingerprint``. # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object diff --git a/generated/google/apis/sql_v1beta4.rb b/generated/google/apis/sql_v1beta4.rb index 54765d979..c87d00748 100644 --- a/generated/google/apis/sql_v1beta4.rb +++ b/generated/google/apis/sql_v1beta4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-sql/ module SqlV1beta4 VERSION = 'V1beta4' - REVISION = '20191005' + REVISION = '20191018' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sql_v1beta4/classes.rb b/generated/google/apis/sql_v1beta4/classes.rb index f9ce6d8da..d08ef7c5a 100644 --- a/generated/google/apis/sql_v1beta4/classes.rb +++ b/generated/google/apis/sql_v1beta4/classes.rb @@ -399,6 +399,11 @@ module Google # @return [String] attr_accessor :self_link + # Represents a Sql Server database on the Cloud SQL instance. + # Corresponds to the JSON property `sqlserverDatabaseDetails` + # @return [Google::Apis::SqlV1beta4::SqlServerDatabaseDetails] + attr_accessor :sqlserver_database_details + def initialize(**args) update!(**args) end @@ -413,6 +418,7 @@ module Google @name = args[:name] if args.key?(:name) @project = args[:project] if args.key?(:project) @self_link = args[:self_link] if args.key?(:self_link) + @sqlserver_database_details = args[:sqlserver_database_details] if args.key?(:sqlserver_database_details) end end @@ -595,6 +601,11 @@ module Google # @return [String] attr_accessor :root_password + # Any scheduled maintenancce for this instance. + # Corresponds to the JSON property `scheduledMaintenance` + # @return [Google::Apis::SqlV1beta4::SqlScheduledMaintenance] + attr_accessor :scheduled_maintenance + # The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -661,6 +672,7 @@ module Google @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration) @replica_names = args[:replica_names] if args.key?(:replica_names) @root_password = args[:root_password] if args.key?(:root_password) + @scheduled_maintenance = args[:scheduled_maintenance] if args.key?(:scheduled_maintenance) @self_link = args[:self_link] if args.key?(:self_link) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address) @@ -2293,6 +2305,57 @@ module Google end end + # Any scheduled maintenancce for this instance. + class SqlScheduledMaintenance + include Google::Apis::Core::Hashable + + # If the scheduled maintenance can be deferred. + # Corresponds to the JSON property `canDefer` + # @return [Boolean] + attr_accessor :can_defer + alias_method :can_defer?, :can_defer + + # The start time of any upcoming scheduled maintenance for this instance. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @can_defer = args[:can_defer] if args.key?(:can_defer) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Represents a Sql Server database on the Cloud SQL instance. + class SqlServerDatabaseDetails + include Google::Apis::Core::Hashable + + # The version of SQL Server with which the database is to be made compatible + # Corresponds to the JSON property `compatibilityLevel` + # @return [Fixnum] + attr_accessor :compatibility_level + + # The recovery model of a SQL Server database + # Corresponds to the JSON property `recoveryModel` + # @return [String] + attr_accessor :recovery_model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compatibility_level = args[:compatibility_level] if args.key?(:compatibility_level) + @recovery_model = args[:recovery_model] if args.key?(:recovery_model) + end + end + # SslCerts Resource class SslCert include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sql_v1beta4/representations.rb b/generated/google/apis/sql_v1beta4/representations.rb index 7f33128de..8c9ce8f17 100644 --- a/generated/google/apis/sql_v1beta4/representations.rb +++ b/generated/google/apis/sql_v1beta4/representations.rb @@ -334,6 +334,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SqlScheduledMaintenance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SqlServerDatabaseDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SslCert class Representation < Google::Apis::Core::JsonRepresentation; end @@ -495,6 +507,8 @@ module Google property :name, as: 'name' property :project, as: 'project' property :self_link, as: 'selfLink' + property :sqlserver_database_details, as: 'sqlserverDatabaseDetails', class: Google::Apis::SqlV1beta4::SqlServerDatabaseDetails, decorator: Google::Apis::SqlV1beta4::SqlServerDatabaseDetails::Representation + end end @@ -537,6 +551,8 @@ module Google collection :replica_names, as: 'replicaNames' property :root_password, as: 'rootPassword' + property :scheduled_maintenance, as: 'scheduledMaintenance', class: Google::Apis::SqlV1beta4::SqlScheduledMaintenance, decorator: Google::Apis::SqlV1beta4::SqlScheduledMaintenance::Representation + property :self_link, as: 'selfLink' property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation @@ -984,6 +1000,22 @@ module Google end end + class SqlScheduledMaintenance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :can_defer, as: 'canDefer' + property :start_time, as: 'startTime' + end + end + + class SqlServerDatabaseDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compatibility_level, as: 'compatibilityLevel' + property :recovery_model, as: 'recoveryModel' + end + end + class SslCert # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/sql_v1beta4/service.rb b/generated/google/apis/sql_v1beta4/service.rb index 9035191bb..f08bedd39 100644 --- a/generated/google/apis/sql_v1beta4/service.rb +++ b/generated/google/apis/sql_v1beta4/service.rb @@ -92,6 +92,11 @@ module Google # 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 @@ -109,13 +114,14 @@ module Google # @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) @@ -128,6 +134,9 @@ module Google # @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 @@ -145,7 +154,7 @@ module Google # @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 @@ -153,6 +162,7 @@ module Google 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) @@ -169,6 +179,9 @@ module Google # @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 @@ -186,7 +199,7 @@ module Google # @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 @@ -194,6 +207,7 @@ module Google 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) @@ -243,6 +257,11 @@ module Google # 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 @@ -260,13 +279,14 @@ module Google # @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) @@ -279,6 +299,9 @@ module Google # @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 @@ -296,7 +319,7 @@ module Google # @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 @@ -304,6 +327,7 @@ module Google 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) @@ -314,6 +338,9 @@ module Google # 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 @@ -331,12 +358,13 @@ module Google # @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) @@ -462,6 +490,9 @@ module Google # 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 @@ -479,12 +510,13 @@ module Google # @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) @@ -497,6 +529,9 @@ module Google # 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 @@ -514,7 +549,7 @@ module Google # @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 @@ -522,6 +557,7 @@ module Google 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) @@ -567,6 +603,9 @@ module Google # @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 @@ -584,7 +623,7 @@ module Google # @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 @@ -592,6 +631,7 @@ module Google 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) @@ -604,6 +644,9 @@ module Google # @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 @@ -621,7 +664,7 @@ module Google # @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 @@ -629,6 +672,7 @@ module Google 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) @@ -640,6 +684,10 @@ module Google # @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 @@ -657,7 +705,7 @@ module Google # @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 @@ -665,6 +713,7 @@ module Google 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) @@ -675,6 +724,9 @@ module Google # 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 @@ -692,12 +744,13 @@ module Google # @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) @@ -710,6 +763,9 @@ module Google # @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 @@ -727,7 +783,7 @@ module Google # @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 @@ -735,6 +791,7 @@ module Google 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) @@ -745,6 +802,9 @@ module Google # 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 @@ -762,13 +822,14 @@ module Google # @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) @@ -825,6 +886,9 @@ module Google # 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 @@ -842,12 +906,13 @@ module Google # @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) @@ -895,6 +960,9 @@ module Google # 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 @@ -912,12 +980,13 @@ module Google # @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) @@ -929,6 +998,9 @@ module Google # 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 @@ -946,12 +1018,13 @@ module Google # @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) @@ -962,6 +1035,9 @@ module Google # 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 @@ -979,12 +1055,13 @@ module Google # @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) @@ -996,6 +1073,10 @@ module Google # @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 @@ -1013,7 +1094,7 @@ module Google # @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 @@ -1021,6 +1102,7 @@ module Google 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) @@ -1033,6 +1115,9 @@ module Google # @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 @@ -1050,7 +1135,7 @@ module Google # @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 @@ -1058,6 +1143,7 @@ module Google 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) @@ -1068,6 +1154,10 @@ module Google # 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 @@ -1085,12 +1175,13 @@ module Google # @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) @@ -1101,6 +1192,10 @@ module Google # 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 @@ -1118,12 +1213,13 @@ module Google # @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) @@ -1135,6 +1231,9 @@ module Google # @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 @@ -1152,7 +1251,7 @@ module Google # @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 @@ -1160,6 +1259,7 @@ module Google 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) @@ -1250,6 +1350,11 @@ module Google # @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 @@ -1267,7 +1372,7 @@ module Google # @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 @@ -1275,6 +1380,7 @@ module Google 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) @@ -1289,6 +1395,9 @@ module Google # @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 @@ -1306,7 +1415,7 @@ module Google # @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 @@ -1314,6 +1423,7 @@ module Google 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) @@ -1365,6 +1475,10 @@ module Google # 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 @@ -1382,13 +1496,14 @@ module Google # @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) @@ -1402,6 +1517,9 @@ module Google # @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 @@ -1419,7 +1537,7 @@ module Google # @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 @@ -1427,6 +1545,7 @@ module Google 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) @@ -1437,6 +1556,9 @@ module Google # 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 @@ -1454,12 +1576,13 @@ module Google # @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) @@ -1542,6 +1665,9 @@ module Google # @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 @@ -1559,7 +1685,7 @@ module Google # @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 @@ -1567,6 +1693,7 @@ module Google 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) @@ -1577,6 +1704,9 @@ module Google # 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 @@ -1594,12 +1724,13 @@ module Google # @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)