Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of sqladmin v1beta4 client #1638

Merged
merged 1 commit into from Dec 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions api_names_out.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/sqladmin_v1beta4.rb
Expand Up @@ -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'
Expand Down
97 changes: 90 additions & 7 deletions generated/google/apis/sqladmin_v1beta4/classes.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -2359,6 +2435,12 @@ class Settings
# @return [Array<Google::Apis::SqladminV1beta4::DenyMaintenancePeriod>]
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]
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions generated/google/apis/sqladmin_v1beta4/representations.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/sqladmin_v1beta4/service.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/sqladmin_v1beta4/synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "4d5b98ffca7eaf905a28939051f53ff2881aaf64"
"sha": "44f28cbd419fc167993a2b735b072dc0844c2918"
}
}
]
Expand Down