feat: Automated regeneration of sqladmin v1beta4 client (#1638)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-12-04 03:07:45,310 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-sqladmin-v1beta4
nothing to commit, working tree clean
2020-12-04 03:07:45,335 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth sqladmin v1beta4
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth sqladmin v1beta4
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=sqladmin.v1beta4 --names-out=/workspace/api_names_out.yaml
Loading sqladmin, version v1beta4 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/sqladmin.v1beta4.json
    conflict  google/apis/sqladmin_v1beta4.rb
<qladmin_v1beta4.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/sqladmin_v1beta4.rb
    conflict  google/apis/sqladmin_v1beta4/service.rb
       force  google/apis/sqladmin_v1beta4/service.rb
    conflict  google/apis/sqladmin_v1beta4/classes.rb
       force  google/apis/sqladmin_v1beta4/classes.rb
    conflict  google/apis/sqladmin_v1beta4/representations.rb
       force  google/apis/sqladmin_v1beta4/representations.rb
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2020-12-04 03:08:08,018 synthtool [DEBUG] > Wrote metadata to generated/google/apis/sqladmin_v1beta4/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/sqladmin_v1beta4/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/2a4cd988-c01c-4f7a-8bf0-14d965cc9746/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2020-12-04 03:20:03 -08:00 committed by GitHub
parent 44f28cbd41
commit c507ec31eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 137 additions and 10 deletions

View File

@ -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

View File

@ -25,7 +25,7 @@ module Google
# @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'

View File

@ -160,6 +160,31 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
@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 @@ module Google
# 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 @@ module Google
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 @@ module Google
# 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 @@ module Google
# 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 @@ module Google
# @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]
@ -2448,6 +2530,7 @@ module Google
@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 @@ module Google
# 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

View File

@ -40,6 +40,12 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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 @@ module Google
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'

View File

@ -1324,7 +1324,7 @@ module Google
# @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

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "4d5b98ffca7eaf905a28939051f53ff2881aaf64"
"sha": "44f28cbd419fc167993a2b735b072dc0844c2918"
}
}
]