diff --git a/api_names_out.yaml b/api_names_out.yaml index 5ed13d42678..394c8edee0c 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -144886,6 +144886,9 @@ "/sqladmin:v1beta4/BackupConfiguration/replicationLogArchivingEnabled": replication_log_archiving_enabled "/sqladmin:v1beta4/BackupConfiguration/startTime": start_time "/sqladmin:v1beta4/BackupConfiguration/transactionLogRetentionDays": transaction_log_retention_days +"/sqladmin:v1beta4/BackupContext": backup_context +"/sqladmin:v1beta4/BackupContext/backupId": backup_id +"/sqladmin:v1beta4/BackupContext/kind": kind "/sqladmin:v1beta4/BackupRetentionSettings": backup_retention_settings "/sqladmin:v1beta4/BackupRetentionSettings/retainedBackups": retained_backups "/sqladmin:v1beta4/BackupRetentionSettings/retentionUnit": retention_unit @@ -145051,6 +145054,11 @@ "/sqladmin:v1beta4/ImportContext/importUser": import_user "/sqladmin:v1beta4/ImportContext/kind": kind "/sqladmin:v1beta4/ImportContext/uri": uri +"/sqladmin:v1beta4/InsightsConfig": insights_config +"/sqladmin:v1beta4/InsightsConfig/queryInsightsEnabled": query_insights_enabled +"/sqladmin:v1beta4/InsightsConfig/queryStringLength": query_string_length +"/sqladmin:v1beta4/InsightsConfig/recordApplicationTags": record_application_tags +"/sqladmin:v1beta4/InsightsConfig/recordClientAddress": record_client_address "/sqladmin:v1beta4/InstancesCloneRequest": clone_instances_request "/sqladmin:v1beta4/InstancesCloneRequest/cloneContext": clone_context "/sqladmin:v1beta4/InstancesDemoteMasterRequest": instances_demote_master_request @@ -145125,6 +145133,7 @@ "/sqladmin:v1beta4/OnPremisesConfiguration/password": password "/sqladmin:v1beta4/OnPremisesConfiguration/username": username "/sqladmin:v1beta4/Operation": operation +"/sqladmin:v1beta4/Operation/backupContext": backup_context "/sqladmin:v1beta4/Operation/endTime": end_time "/sqladmin:v1beta4/Operation/error": error "/sqladmin:v1beta4/Operation/exportContext": export_context @@ -145184,6 +145193,7 @@ "/sqladmin:v1beta4/Settings/databaseReplicationEnabled": database_replication_enabled "/sqladmin:v1beta4/Settings/denyMaintenancePeriods": deny_maintenance_periods "/sqladmin:v1beta4/Settings/denyMaintenancePeriods/deny_maintenance_period": deny_maintenance_period +"/sqladmin:v1beta4/Settings/insightsConfig": insights_config "/sqladmin:v1beta4/Settings/ipConfiguration": ip_configuration "/sqladmin:v1beta4/Settings/kind": kind "/sqladmin:v1beta4/Settings/locationPreference": location_preference diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index 3c9b2786bdf..d510c8a4c8d 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -25,7 +25,7 @@ module Apis # @see https://developers.google.com/cloud-sql/ module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20201022' + REVISION = '20201112' # 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/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index 22a13d6fdc6..7427fe67dd4 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -160,6 +160,31 @@ def update!(**args) end end + # Backup context. + class BackupContext + include Google::Apis::Core::Hashable + + # The identifier of the backup. + # Corresponds to the JSON property `backupId` + # @return [Fixnum] + attr_accessor :backup_id + + # This is always *sql#backupContext*. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_id = args[:backup_id] if args.key?(:backup_id) + @kind = args[:kind] if args.key?(:kind) + end + end + # We currently only support backup retention by specifying the number of backups # we will retain. class BackupRetentionSettings @@ -1009,7 +1034,7 @@ def update!(**args) class ExportContext include Google::Apis::Core::Hashable - # Options for exporting data as CSV. + # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only. # Corresponds to the JSON property `csvExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions] attr_accessor :csv_export_options @@ -1026,7 +1051,8 @@ class ExportContext attr_accessor :databases # The file type for the specified uri. *SQL*: The file contains SQL statements. * - # CSV*: The file contains CSV data. + # CSV*: The file contains CSV data. *BAK*: The file contains backup data for a + # SQL Server instance. # Corresponds to the JSON property `fileType` # @return [String] attr_accessor :file_type @@ -1070,7 +1096,7 @@ def update!(**args) @uri = args[:uri] if args.key?(:uri) end - # Options for exporting data as CSV. + # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only. class CsvExportOptions include Google::Apis::Core::Hashable @@ -1128,8 +1154,9 @@ class MysqlExportOptions # Option to include SQL statement required to set up replication. If set to *1*, # the dump file includes a CHANGE MASTER TO statement with the binary log - # coordinates. If set to *2*, the CHANGE MASTER TO statement is written as a SQL - # comment, and has no effect. All other values are ignored. + # coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE + # MASTER TO statement is written as a SQL comment and has no effect. If set to + # any value other than *1*, --set-gtid-purged is set to OFF. # Corresponds to the JSON property `masterData` # @return [Fixnum] attr_accessor :master_data @@ -1420,6 +1447,49 @@ def update!(**args) end end + # Insights configuration. This specifies when Cloud SQL Insights feature is + # enabled and optional configuration. + class InsightsConfig + include Google::Apis::Core::Hashable + + # Whether Query Insights feature is enabled. + # Corresponds to the JSON property `queryInsightsEnabled` + # @return [Boolean] + attr_accessor :query_insights_enabled + alias_method :query_insights_enabled?, :query_insights_enabled + + # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256- + # 4500 bytes. Query length more than this field value will be truncated to this + # value. When unset, query length will be the default value. + # Corresponds to the JSON property `queryStringLength` + # @return [Fixnum] + attr_accessor :query_string_length + + # Whether Query Insights will record application tags from query when enabled. + # Corresponds to the JSON property `recordApplicationTags` + # @return [Boolean] + attr_accessor :record_application_tags + alias_method :record_application_tags?, :record_application_tags + + # Whether Query Insights will record client address when enabled. + # Corresponds to the JSON property `recordClientAddress` + # @return [Boolean] + attr_accessor :record_client_address + alias_method :record_client_address?, :record_client_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @query_insights_enabled = args[:query_insights_enabled] if args.key?(:query_insights_enabled) + @query_string_length = args[:query_string_length] if args.key?(:query_string_length) + @record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags) + @record_client_address = args[:record_client_address] if args.key?(:record_client_address) + end + end + # Database instance clone request. class CloneInstancesRequest include Google::Apis::Core::Hashable @@ -1954,10 +2024,15 @@ def update!(**args) # An Operation resource. For successful operations that return an Operation # resource, only the fields relevant to the operation are populated in the - # resource. + # resource. Next field: 18 class Operation include Google::Apis::Core::Hashable + # Backup context. + # Corresponds to the JSON property `backupContext` + # @return [Google::Apis::SqladminV1beta4::BackupContext] + attr_accessor :backup_context + # The time this operation finished in UTC timezone in RFC 3339 format, for # example *2012-11-15T16:19:00.094Z*. # Corresponds to the JSON property `endTime` @@ -2047,6 +2122,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @backup_context = args[:backup_context] if args.key?(:backup_context) @end_time = args[:end_time] if args.key?(:end_time) @error = args[:error] if args.key?(:error) @export_context = args[:export_context] if args.key?(:export_context) @@ -2359,6 +2435,12 @@ class Settings # @return [Array] attr_accessor :deny_maintenance_periods + # Insights configuration. This specifies when Cloud SQL Insights feature is + # enabled and optional configuration. + # Corresponds to the JSON property `insightsConfig` + # @return [Google::Apis::SqladminV1beta4::InsightsConfig] + attr_accessor :insights_config + # IP Management configuration. # Corresponds to the JSON property `ipConfiguration` # @return [Google::Apis::SqladminV1beta4::IpConfiguration] @@ -2448,6 +2530,7 @@ def update!(**args) @database_flags = args[:database_flags] if args.key?(:database_flags) @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods) + @insights_config = args[:insights_config] if args.key?(:insights_config) @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) @kind = args[:kind] if args.key?(:kind) @location_preference = args[:location_preference] if args.key?(:location_preference) @@ -2796,7 +2879,7 @@ class InsertSslCertsResponse # An Operation resource. For successful operations that return an Operation # resource, only the fields relevant to the operation are populated in the - # resource. + # resource. Next field: 18 # Corresponds to the JSON property `operation` # @return [Google::Apis::SqladminV1beta4::Operation] attr_accessor :operation diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index ec56141c7a2..e64991bab1b 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -40,6 +40,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class BackupContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackupRetentionSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -202,6 +208,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class InsightsConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CloneInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -494,6 +506,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class BackupContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backup_id, :numeric_string => true, as: 'backupId' + property :kind, as: 'kind' + end + end + class BackupRetentionSettings # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -814,6 +834,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class InsightsConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :query_insights_enabled, as: 'queryInsightsEnabled' + property :query_string_length, as: 'queryStringLength' + property :record_application_tags, as: 'recordApplicationTags' + property :record_client_address, as: 'recordClientAddress' + end + end + class CloneInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -974,6 +1004,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation + property :backup_context, as: 'backupContext', class: Google::Apis::SqladminV1beta4::BackupContext, decorator: Google::Apis::SqladminV1beta4::BackupContext::Representation + property :end_time, as: 'endTime' property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationErrors, decorator: Google::Apis::SqladminV1beta4::OperationErrors::Representation @@ -1078,6 +1110,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :database_replication_enabled, as: 'databaseReplicationEnabled' collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod::Representation + property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1beta4::InsightsConfig, decorator: Google::Apis::SqladminV1beta4::InsightsConfig::Representation + property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta4::IpConfiguration, decorator: Google::Apis::SqladminV1beta4::IpConfiguration::Representation property :kind, as: 'kind' diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index 5c356c5237f..dc33946d2db 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -1324,7 +1324,7 @@ def reschedule_project_instance_maintenance(project, instance, sql_instances_res # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [String] sync_mode - # External sync mode + # External sync mode. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/sqladmin_v1beta4/synth.metadata b/generated/google/apis/sqladmin_v1beta4/synth.metadata index 7ee91b7ad6c..bda86a8c03e 100644 --- a/generated/google/apis/sqladmin_v1beta4/synth.metadata +++ b/generated/google/apis/sqladmin_v1beta4/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "4d5b98ffca7eaf905a28939051f53ff2881aaf64" + "sha": "44f28cbd419fc167993a2b735b072dc0844c2918" } } ]