2019-10-15 00:37:33 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
2020-09-18 00:39:13 +00:00
|
|
|
module SqladminV1beta4
|
2019-10-15 00:37:33 +00:00
|
|
|
|
|
|
|
# An entry for an Access Control list.
|
|
|
|
class AclEntry
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time when this access control entry expires in RFC 3339 format, for
|
|
|
|
# example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `expirationTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :expiration_time
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#aclEntry*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2019-12-17 00:37:11 +00:00
|
|
|
# Optional. A label to identify this entry.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# The allowlisted value for the access control list.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# An Admin API warning message.
|
|
|
|
class ApiWarning
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Code to uniquely identify the warning type.
|
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :code
|
|
|
|
|
|
|
|
# The warning message.
|
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance backup configuration.
|
|
|
|
class BackupConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-10-10 00:39:11 +00:00
|
|
|
# We currently only support backup retention by specifying the number of backups
|
|
|
|
# we will retain.
|
|
|
|
# Corresponds to the JSON property `backupRetentionSettings`
|
|
|
|
# @return [Google::Apis::SqladminV1beta4::BackupRetentionSettings]
|
|
|
|
attr_accessor :backup_retention_settings
|
|
|
|
|
2020-04-13 16:49:10 +00:00
|
|
|
# (MySQL only) Whether binary log is enabled. If backup configuration is
|
|
|
|
# disabled, binarylog must be disabled as well.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `binaryLogEnabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :binary_log_enabled
|
|
|
|
alias_method :binary_log_enabled?, :binary_log_enabled
|
|
|
|
|
|
|
|
# Whether this configuration is enabled.
|
|
|
|
# Corresponds to the JSON property `enabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :enabled
|
|
|
|
alias_method :enabled?, :enabled
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#backupConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Location of the backup
|
|
|
|
# Corresponds to the JSON property `location`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :location
|
|
|
|
|
2020-01-29 00:37:31 +00:00
|
|
|
# Reserved for future use.
|
|
|
|
# Corresponds to the JSON property `pointInTimeRecoveryEnabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :point_in_time_recovery_enabled
|
|
|
|
alias_method :point_in_time_recovery_enabled?, :point_in_time_recovery_enabled
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# Reserved for future use.
|
|
|
|
# Corresponds to the JSON property `replicationLogArchivingEnabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :replication_log_archiving_enabled
|
|
|
|
alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Start time for the daily backup configuration in UTC timezone in the 24 hour
|
|
|
|
# format - *HH:MM*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
|
|
|
|
2020-10-10 00:39:11 +00:00
|
|
|
# The number of days of transaction logs we retain for point in time restore,
|
|
|
|
# from 1-7.
|
|
|
|
# Corresponds to the JSON property `transactionLogRetentionDays`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :transaction_log_retention_days
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2020-10-10 00:39:11 +00:00
|
|
|
@backup_retention_settings = args[:backup_retention_settings] if args.key?(:backup_retention_settings)
|
2019-10-15 00:37:33 +00:00
|
|
|
@binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled)
|
|
|
|
@enabled = args[:enabled] if args.key?(:enabled)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@location = args[:location] if args.key?(:location)
|
2020-01-29 00:37:31 +00:00
|
|
|
@point_in_time_recovery_enabled = args[:point_in_time_recovery_enabled] if args.key?(:point_in_time_recovery_enabled)
|
2019-10-15 00:37:33 +00:00
|
|
|
@replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2020-10-10 00:39:11 +00:00
|
|
|
@transaction_log_retention_days = args[:transaction_log_retention_days] if args.key?(:transaction_log_retention_days)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# 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
|
|
|
|
|
2020-10-10 00:39:11 +00:00
|
|
|
# We currently only support backup retention by specifying the number of backups
|
|
|
|
# we will retain.
|
|
|
|
class BackupRetentionSettings
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Depending on the value of retention_unit, this is used to determine if a
|
|
|
|
# backup needs to be deleted. If retention_unit is 'COUNT', we will retain this
|
|
|
|
# many backups.
|
|
|
|
# Corresponds to the JSON property `retainedBackups`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :retained_backups
|
|
|
|
|
|
|
|
# The unit that 'retained_backups' represents.
|
|
|
|
# Corresponds to the JSON property `retentionUnit`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :retention_unit
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@retained_backups = args[:retained_backups] if args.key?(:retained_backups)
|
|
|
|
@retention_unit = args[:retention_unit] if args.key?(:retention_unit)
|
2019-10-15 00:37:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A BackupRun resource.
|
|
|
|
class BackupRun
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-07-24 00:38:50 +00:00
|
|
|
# Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
|
|
|
|
# Corresponds to the JSON property `backupKind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :backup_kind
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# The description of this run, only applicable to on-demand backups.
|
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
|
|
|
# Disk encryption configuration for an instance.
|
|
|
|
# Corresponds to the JSON property `diskEncryptionConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :disk_encryption_configuration
|
|
|
|
|
|
|
|
# Disk encryption status for an instance.
|
|
|
|
# Corresponds to the JSON property `diskEncryptionStatus`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :disk_encryption_status
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time the backup operation completed in UTC timezone in RFC 3339 format,
|
|
|
|
# for example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `endTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_time
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time the run was enqueued in UTC timezone in RFC 3339 format, for example *
|
|
|
|
# 2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `enqueuedTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :enqueued_time
|
|
|
|
|
|
|
|
# Database instance operation error.
|
|
|
|
# Corresponds to the JSON property `error`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::OperationError]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :error
|
|
|
|
|
|
|
|
# The identifier for this backup run. Unique only for a specific Cloud SQL
|
|
|
|
# instance.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
# Name of the database instance.
|
|
|
|
# Corresponds to the JSON property `instance`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#backupRun*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Location of the backups.
|
|
|
|
# Corresponds to the JSON property `location`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :location
|
|
|
|
|
|
|
|
# The URI of this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time the backup operation actually started in UTC timezone in RFC 3339
|
|
|
|
# format, for example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
|
|
|
|
|
|
|
# The status of this run.
|
|
|
|
# Corresponds to the JSON property `status`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :status
|
|
|
|
|
|
|
|
# The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The start time of the backup window during which this the backup was attempted
|
|
|
|
# in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `windowStartTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :window_start_time
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2020-07-24 00:38:50 +00:00
|
|
|
@backup_kind = args[:backup_kind] if args.key?(:backup_kind)
|
2019-10-15 00:37:33 +00:00
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
|
|
|
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
|
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time)
|
|
|
|
@error = args[:error] if args.key?(:error)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@instance = args[:instance] if args.key?(:instance)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@location = args[:location] if args.key?(:location)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
|
|
@status = args[:status] if args.key?(:status)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@window_start_time = args[:window_start_time] if args.key?(:window_start_time)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Backup run list results.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListBackupRunsResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A list of backup runs in reverse chronological order of the enqueued time.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::BackupRun>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#backupRunsList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The continuation token, used to page through large result sets. Provide this
|
|
|
|
# value in a subsequent request to return the next page of results.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Binary log coordinates.
|
|
|
|
class BinLogCoordinates
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Name of the binary log file for a Cloud SQL instance.
|
|
|
|
# Corresponds to the JSON property `binLogFileName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :bin_log_file_name
|
|
|
|
|
|
|
|
# Position (offset) within the binary log file.
|
|
|
|
# Corresponds to the JSON property `binLogPosition`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :bin_log_position
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#binLogCoordinates*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name)
|
|
|
|
@bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance clone context.
|
|
|
|
class CloneContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Binary log coordinates.
|
|
|
|
# Corresponds to the JSON property `binLogCoordinates`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::BinLogCoordinates]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :bin_log_coordinates
|
|
|
|
|
|
|
|
# Name of the Cloud SQL instance to be created as a clone.
|
|
|
|
# Corresponds to the JSON property `destinationInstanceName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :destination_instance_name
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#cloneContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Reserved for future use.
|
|
|
|
# Corresponds to the JSON property `pitrTimestampMs`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :pitr_timestamp_ms
|
|
|
|
|
2020-01-29 00:37:31 +00:00
|
|
|
# Reserved for future use.
|
|
|
|
# Corresponds to the JSON property `pointInTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :point_in_time
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates)
|
|
|
|
@destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
|
2020-01-29 00:37:31 +00:00
|
|
|
@point_in_time = args[:point_in_time] if args.key?(:point_in_time)
|
2019-10-15 00:37:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Represents a SQL database on the Cloud SQL instance.
|
|
|
|
class Database
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-07-24 00:38:50 +00:00
|
|
|
# The Cloud SQL charset value.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `charset`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :charset
|
|
|
|
|
2020-07-24 00:38:50 +00:00
|
|
|
# The Cloud SQL collation value.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `collation`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :collation
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This field is deprecated and will be removed from a future version of the API.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `etag`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :etag
|
|
|
|
|
|
|
|
# The name of the Cloud SQL instance. This does not include the project ID.
|
|
|
|
# Corresponds to the JSON property `instance`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#database*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The name of the database in the Cloud SQL instance. This does not include the
|
|
|
|
# project ID or instance name.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# The project ID of the project containing the Cloud SQL database. The Google
|
|
|
|
# apps domain is prefixed if applicable.
|
|
|
|
# Corresponds to the JSON property `project`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :project
|
|
|
|
|
|
|
|
# The URI of this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
2019-10-25 00:37:24 +00:00
|
|
|
# Represents a Sql Server database on the Cloud SQL instance.
|
|
|
|
# Corresponds to the JSON property `sqlserverDatabaseDetails`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails]
|
2019-10-25 00:37:24 +00:00
|
|
|
attr_accessor :sqlserver_database_details
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@charset = args[:charset] if args.key?(:charset)
|
|
|
|
@collation = args[:collation] if args.key?(:collation)
|
|
|
|
@etag = args[:etag] if args.key?(:etag)
|
|
|
|
@instance = args[:instance] if args.key?(:instance)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@project = args[:project] if args.key?(:project)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2019-10-25 00:37:24 +00:00
|
|
|
@sqlserver_database_details = args[:sqlserver_database_details] if args.key?(:sqlserver_database_details)
|
2019-10-15 00:37:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database flags for Cloud SQL instances.
|
|
|
|
class DatabaseFlags
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The name of the flag. These flags are passed at instance startup, so include
|
|
|
|
# both server options and system variables for MySQL. Flags are specified with
|
|
|
|
# underscores, not hyphens. For more information, see Configuring Database Flags
|
|
|
|
# in the Cloud SQL documentation.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The value of the flag. Booleans are set to *on* for true and *off* for false.
|
|
|
|
# This field must be omitted if the flag doesn't take a value.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# A Cloud SQL instance resource. Next field: 36
|
2019-10-15 00:37:33 +00:00
|
|
|
class DatabaseInstance
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# *SECOND_GEN*: Cloud SQL database instance. *EXTERNAL*: A database server that
|
|
|
|
# is not managed by Google. This property is read-only; use the *tier* property
|
|
|
|
# in the *settings* object to determine the database type.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `backendType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :backend_type
|
|
|
|
|
|
|
|
# Connection name of the Cloud SQL instance used in connection strings.
|
|
|
|
# Corresponds to the JSON property `connectionName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :connection_name
|
|
|
|
|
|
|
|
# The current disk usage of the instance in bytes. This property has been
|
2020-08-14 00:38:12 +00:00
|
|
|
# deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
|
|
|
|
# in Cloud Monitoring API instead. Please see this announcement for details.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `currentDiskSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :current_disk_size
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The database engine type and version. The *databaseVersion* field cannot be
|
2020-09-25 00:38:43 +00:00
|
|
|
# changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (
|
|
|
|
# default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*,
|
|
|
|
# *POSTGRES_11* or *POSTGRES_12* (default). SQL Server instances: *
|
|
|
|
# SQLSERVER_2017_STANDARD* (default), *SQLSERVER_2017_ENTERPRISE*, *
|
|
|
|
# SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `databaseVersion`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :database_version
|
|
|
|
|
|
|
|
# Disk encryption configuration for an instance.
|
|
|
|
# Corresponds to the JSON property `diskEncryptionConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :disk_encryption_configuration
|
|
|
|
|
|
|
|
# Disk encryption status for an instance.
|
|
|
|
# Corresponds to the JSON property `diskEncryptionStatus`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :disk_encryption_status
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This field is deprecated and will be removed from a future version of the API.
|
|
|
|
# Use the *settings.settingsVersion* field instead.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `etag`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :etag
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The name and status of the failover replica. This property is applicable only
|
|
|
|
# to Second Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `failoverReplica`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :failover_replica
|
|
|
|
|
|
|
|
# The Compute Engine zone that the instance is currently serving from. This
|
|
|
|
# value could be different from the zone that was specified when the instance
|
|
|
|
# was created if the instance has failed over to its secondary zone.
|
|
|
|
# Corresponds to the JSON property `gceZone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :gce_zone
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The instance type. This can be one of the following. *CLOUD_SQL_INSTANCE*: A
|
2020-09-18 00:39:13 +00:00
|
|
|
# Cloud SQL instance that is not replicating from a primary instance. *
|
2020-08-14 00:38:12 +00:00
|
|
|
# ON_PREMISES_INSTANCE*: An instance running on the customer's premises. *
|
|
|
|
# READ_REPLICA_INSTANCE*: A Cloud SQL instance configured as a read-replica.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `instanceType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance_type
|
|
|
|
|
|
|
|
# The assigned IP addresses for the instance.
|
|
|
|
# Corresponds to the JSON property `ipAddresses`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :ip_addresses
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The IPv6 address assigned to the instance. (Deprecated) This property was
|
|
|
|
# applicable only to First Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `ipv6Address`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ipv6_address
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#instance*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# The name of the instance which will act as primary in the replication setup.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `masterInstanceName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :master_instance_name
|
|
|
|
|
|
|
|
# The maximum disk size of the instance in bytes.
|
|
|
|
# Corresponds to the JSON property `maxDiskSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :max_disk_size
|
|
|
|
|
|
|
|
# Name of the Cloud SQL instance. This does not include the project ID.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# On-premises instance configuration.
|
|
|
|
# Corresponds to the JSON property `onPremisesConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::OnPremisesConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :on_premises_configuration
|
|
|
|
|
|
|
|
# The project ID of the project containing the Cloud SQL instance. The Google
|
|
|
|
# apps domain is prefixed if applicable.
|
|
|
|
# Corresponds to the JSON property `project`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :project
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The geographical region. Can be *us-central* (*FIRST_GEN* instances only) *us-
|
|
|
|
# central1* (*SECOND_GEN* instances only) *asia-east1* or *europe-west1*.
|
|
|
|
# Defaults to *us-central* or *us-central1* depending on the instance type. The
|
|
|
|
# region cannot be changed after instance creation.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `region`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :region
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Read-replica configuration for connecting to the primary instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `replicaConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ReplicaConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :replica_configuration
|
|
|
|
|
|
|
|
# The replicas of the instance.
|
|
|
|
# Corresponds to the JSON property `replicaNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :replica_names
|
|
|
|
|
|
|
|
# Initial root password. Use only on creation.
|
|
|
|
# Corresponds to the JSON property `rootPassword`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :root_password
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# The status indicating if instance satisfies physical zone separation. Reserved
|
|
|
|
# for future use.
|
|
|
|
# Corresponds to the JSON property `satisfiesPzs`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :satisfies_pzs
|
|
|
|
alias_method :satisfies_pzs?, :satisfies_pzs
|
|
|
|
|
2019-10-25 00:37:24 +00:00
|
|
|
# Any scheduled maintenancce for this instance.
|
|
|
|
# Corresponds to the JSON property `scheduledMaintenance`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SqlScheduledMaintenance]
|
2019-10-25 00:37:24 +00:00
|
|
|
attr_accessor :scheduled_maintenance
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# The Compute Engine zone that the failover instance is currently serving from
|
|
|
|
# for a regional instance. This value could be different from the zone that was
|
|
|
|
# specified when the instance was created if the instance has failed over to its
|
|
|
|
# secondary/failover zone. Reserved for future use.
|
|
|
|
# Corresponds to the JSON property `secondaryGceZone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :secondary_gce_zone
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# The URI of this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
# SslCerts Resource
|
|
|
|
# Corresponds to the JSON property `serverCaCert`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :server_ca_cert
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The service account email address assigned to the instance. This property is
|
|
|
|
# applicable only to Second Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `serviceAccountEmailAddress`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :service_account_email_address
|
|
|
|
|
|
|
|
# Database instance settings.
|
|
|
|
# Corresponds to the JSON property `settings`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::Settings]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :settings
|
|
|
|
|
|
|
|
# The current serving state of the Cloud SQL instance. This can be one of the
|
2020-10-10 00:39:11 +00:00
|
|
|
# following. *SQL_INSTANCE_STATE_UNSPECIFIED*: The state of the instance is
|
|
|
|
# unknown. *RUNNABLE*: The instance has been stopped by owner. It is not
|
|
|
|
# currently running, but it's ready to be restarted. *SUSPENDED*: The instance
|
|
|
|
# is not available, for example due to problems with billing. for example due to
|
|
|
|
# problems with billing. *PENDING_DELETE*: The instance is being deleted. *
|
|
|
|
# PENDING_CREATE*: The instance is being created. *MAINTENANCE*: The instance is
|
|
|
|
# down for maintenance. *FAILED*: The instance creation failed.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `state`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :state
|
|
|
|
|
|
|
|
# If the instance state is SUSPENDED, the reason for the suspension.
|
|
|
|
# Corresponds to the JSON property `suspensionReason`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :suspension_reason
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
|
|
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
|
|
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
|
|
|
@database_version = args[:database_version] if args.key?(:database_version)
|
|
|
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
|
|
|
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
|
|
|
|
@etag = args[:etag] if args.key?(:etag)
|
|
|
|
@failover_replica = args[:failover_replica] if args.key?(:failover_replica)
|
|
|
|
@gce_zone = args[:gce_zone] if args.key?(:gce_zone)
|
|
|
|
@instance_type = args[:instance_type] if args.key?(:instance_type)
|
|
|
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
|
|
|
@ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
|
|
|
@max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration)
|
|
|
|
@project = args[:project] if args.key?(:project)
|
|
|
|
@region = args[:region] if args.key?(:region)
|
|
|
|
@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)
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
2019-10-25 00:37:24 +00:00
|
|
|
@scheduled_maintenance = args[:scheduled_maintenance] if args.key?(:scheduled_maintenance)
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
@secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone)
|
2019-10-15 00:37:33 +00:00
|
|
|
@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)
|
|
|
|
@settings = args[:settings] if args.key?(:settings)
|
|
|
|
@state = args[:state] if args.key?(:state)
|
|
|
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
|
|
|
end
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The name and status of the failover replica. This property is applicable only
|
|
|
|
# to Second Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
class FailoverReplica
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The availability status of the failover replica. A false status indicates that
|
2020-09-18 00:39:13 +00:00
|
|
|
# the failover replica is out of sync. The primary instance can only failover to
|
|
|
|
# the failover replica when the status is true.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `available`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :available
|
|
|
|
alias_method :available?, :available
|
|
|
|
|
|
|
|
# The name of the failover replica. If specified at instance creation, a
|
2020-08-14 00:38:12 +00:00
|
|
|
# failover replica is created for the instance. The name doesn't include the
|
|
|
|
# project ID. This property is applicable only to Second Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@available = args[:available] if args.key?(:available)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database list response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListDatabasesResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of database resources in the instance.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::Database>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#databasesList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Read-replica configuration for connecting to the on-premises primary instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
class DemoteMasterConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#demoteMasterConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Read-replica configuration specific to MySQL databases.
|
|
|
|
# Corresponds to the JSON property `mysqlReplicaConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :mysql_replica_configuration
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Database instance demote primary instance context.
|
2019-10-15 00:37:33 +00:00
|
|
|
class DemoteMasterContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#demoteMasterContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# The name of the instance which will act as on-premises primary instance in the
|
2019-10-15 00:37:33 +00:00
|
|
|
# replication setup.
|
|
|
|
# Corresponds to the JSON property `masterInstanceName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :master_instance_name
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Read-replica configuration for connecting to the on-premises primary instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `replicaConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :replica_configuration
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Verify GTID consistency for demote operation. Default value: *True*. Second
|
|
|
|
# Generation instances only. Setting this flag to false enables you to bypass
|
2020-09-18 00:39:13 +00:00
|
|
|
# GTID consistency check between on-premises primary instance and Cloud SQL
|
|
|
|
# instance during the demotion operation but also exposes you to the risk of
|
|
|
|
# future replication failures. Change the value only if you know the reason for
|
|
|
|
# the GTID divergence and are confident that doing so will not cause any
|
|
|
|
# replication issues.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `verifyGtidConsistency`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :verify_gtid_consistency
|
|
|
|
alias_method :verify_gtid_consistency?, :verify_gtid_consistency
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
|
|
|
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
|
|
|
@verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Read-replica configuration specific to MySQL databases.
|
|
|
|
class DemoteMasterMySqlReplicaConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# PEM representation of the trusted CA's x509 certificate.
|
|
|
|
# Corresponds to the JSON property `caCertificate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ca_certificate
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# PEM representation of the replica's x509 certificate.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `clientCertificate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_certificate
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# PEM representation of the replica's private key. The corresponsing public key
|
|
|
|
# is encoded in the client's certificate. The format of the replica's private
|
|
|
|
# key can be either PKCS #1 or PKCS #8.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `clientKey`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_key
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#demoteMasterMysqlReplicaConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# The password for the replication connection.
|
|
|
|
# Corresponds to the JSON property `password`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :password
|
|
|
|
|
|
|
|
# The username for the replication connection.
|
|
|
|
# Corresponds to the JSON property `username`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :username
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
|
|
|
|
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
|
|
@client_key = args[:client_key] if args.key?(:client_key)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@password = args[:password] if args.key?(:password)
|
|
|
|
@username = args[:username] if args.key?(:username)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-25 00:38:43 +00:00
|
|
|
# Deny Maintenance Periods. This specifies a date range during when all CSA
|
|
|
|
# rollout will be denied.
|
|
|
|
class DenyMaintenancePeriod
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# "deny maintenance period" end date. If the year of the end date is empty, the
|
|
|
|
# year of the start date also must be empty. In this case, it means the deny
|
|
|
|
# maintenance period recurs every year. The date is in format yyyy-mm-dd i.e.,
|
|
|
|
# 2020-11-01, or mm-dd, i.e., 11-01
|
|
|
|
# Corresponds to the JSON property `endDate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_date
|
|
|
|
|
|
|
|
# "deny maintenance period" start date. If the year of the start date is empty,
|
|
|
|
# the year of the end date also must be empty. In this case, it means the deny
|
|
|
|
# maintenance period recurs every year. The date is in format yyyy-mm-dd i.e.,
|
|
|
|
# 2020-11-01, or mm-dd, i.e., 11-01
|
|
|
|
# Corresponds to the JSON property `startDate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_date
|
|
|
|
|
|
|
|
# Time in UTC when the "deny maintenance period" starts on start_date and ends
|
|
|
|
# on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
|
|
|
|
# Corresponds to the JSON property `time`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :time
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@end_date = args[:end_date] if args.key?(:end_date)
|
|
|
|
@start_date = args[:start_date] if args.key?(:start_date)
|
|
|
|
@time = args[:time] if args.key?(:time)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# Disk encryption configuration for an instance.
|
|
|
|
class DiskEncryptionConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#diskEncryptionConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Resource name of KMS key for disk encryption
|
|
|
|
# Corresponds to the JSON property `kmsKeyName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kms_key_name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Disk encryption status for an instance.
|
|
|
|
class DiskEncryptionStatus
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#diskEncryptionStatus*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# KMS key version used to encrypt the Cloud SQL instance resource
|
|
|
|
# Corresponds to the JSON property `kmsKeyVersionName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kms_key_version_name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance export context.
|
|
|
|
class ExportContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `csvExportOptions`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :csv_export_options
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no
|
|
|
|
# database is specified, all databases are exported, except for the *mysql*
|
|
|
|
# system database. If *fileType* is *CSV*, you can specify one database, either
|
|
|
|
# by using this property or by using the *csvExportOptions.selectQuery* property,
|
|
|
|
# which takes precedence over this property. *PostgreSQL instances:* You must
|
|
|
|
# specify one database to be exported. If *fileType* is *CSV*, this database
|
|
|
|
# must match the one specified in the *csvExportOptions.selectQuery* property.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `databases`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :databases
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The file type for the specified uri. *SQL*: The file contains SQL statements. *
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# CSV*: The file contains CSV data. *BAK*: The file contains backup data for a
|
|
|
|
# SQL Server instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `fileType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :file_type
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#exportContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Option for export offload.
|
|
|
|
# Corresponds to the JSON property `offload`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :offload
|
|
|
|
alias_method :offload?, :offload
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# Options for exporting data as SQL statements.
|
|
|
|
# Corresponds to the JSON property `sqlExportOptions`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :sql_export_options
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The path to the file in Google Cloud Storage where the export will be stored.
|
feat: Automated regeneration of sqladmin v1beta4 client (#1790)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-16 03:21:22,617 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-16 03:21:22,646 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.4.0
Installing json 2.4.0 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.52.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.1
Installing redcarpet 3.5.1 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
identical google/apis/sqladmin_v1beta4/representations.rb
conflict /workspace/api_names_out.yaml
force /workspace/api_names_out.yaml
2020-12-16 03:21:48,060 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/8c2a23fc-c90e-4796-819a-bcc7e98db1cb/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-16 11:34:04 +00:00
|
|
|
# The URI is in the form *gs://bucketName/fileName*. If the file already exists,
|
|
|
|
# the request succeeds, but the operation fails. If *fileType* is *SQL* and the
|
|
|
|
# filename ends with .gz, the contents are compressed.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `uri`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :uri
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
|
|
|
|
@databases = args[:databases] if args.key?(:databases)
|
|
|
|
@file_type = args[:file_type] if args.key?(:file_type)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
2020-08-14 00:38:12 +00:00
|
|
|
@offload = args[:offload] if args.key?(:offload)
|
2019-10-15 00:37:33 +00:00
|
|
|
@sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
|
|
|
|
@uri = args[:uri] if args.key?(:uri)
|
|
|
|
end
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
|
2019-10-15 00:37:33 +00:00
|
|
|
class CsvExportOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The select query used to extract the data.
|
|
|
|
# Corresponds to the JSON property `selectQuery`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :select_query
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@select_query = args[:select_query] if args.key?(:select_query)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Options for exporting data as SQL statements.
|
|
|
|
class SqlExportOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Options for exporting from MySQL.
|
|
|
|
# Corresponds to the JSON property `mysqlExportOptions`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :mysql_export_options
|
|
|
|
|
|
|
|
# Export only schemas.
|
|
|
|
# Corresponds to the JSON property `schemaOnly`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :schema_only
|
|
|
|
alias_method :schema_only?, :schema_only
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Tables to export, or that were exported, from the specified database. If you
|
|
|
|
# specify tables, specify one and only one database. For PostgreSQL instances,
|
|
|
|
# you can specify only one table.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `tables`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :tables
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@mysql_export_options = args[:mysql_export_options] if args.key?(:mysql_export_options)
|
|
|
|
@schema_only = args[:schema_only] if args.key?(:schema_only)
|
|
|
|
@tables = args[:tables] if args.key?(:tables)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Options for exporting from MySQL.
|
|
|
|
class MysqlExportOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# 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
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# 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.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `masterData`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :master_data
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@master_data = args[:master_data] if args.key?(:master_data)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance failover context.
|
|
|
|
class FailoverContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#failoverContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# The current settings version of this instance. Request will be rejected if
|
|
|
|
# this version doesn't match the current settings version.
|
|
|
|
# Corresponds to the JSON property `settingsVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :settings_version
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A flag resource.
|
|
|
|
class Flag
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Use this field if only certain integers are accepted. Can be combined with
|
|
|
|
# min_value and max_value to add additional values.
|
2020-01-18 00:37:34 +00:00
|
|
|
# Corresponds to the JSON property `allowedIntValues`
|
|
|
|
# @return [Array<Fixnum>]
|
|
|
|
attr_accessor :allowed_int_values
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# For *STRING* flags, a list of strings that the value can be set to.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `allowedStringValues`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :allowed_string_values
|
|
|
|
|
2020-09-25 00:38:43 +00:00
|
|
|
# The database version this flag applies to. Can be *MYSQL_8_0*, *MYSQL_5_6*, or
|
|
|
|
# *MYSQL_5_7*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `appliesTo`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :applies_to
|
|
|
|
|
|
|
|
# Whether or not the flag is considered in beta.
|
|
|
|
# Corresponds to the JSON property `inBeta`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :in_beta
|
|
|
|
alias_method :in_beta?, :in_beta
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#flag*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# For *INTEGER* flags, the maximum allowed value.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `maxValue`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :max_value
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# For *INTEGER* flags, the minimum allowed value.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `minValue`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :min_value
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is the name of the flag. Flag names always use underscores, not hyphens,
|
|
|
|
# for example: *max_allowed_packet*
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# Indicates whether changing this flag will trigger a database restart. Only
|
|
|
|
# applicable to Second Generation instances.
|
|
|
|
# Corresponds to the JSON property `requiresRestart`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :requires_restart
|
|
|
|
alias_method :requires_restart?, :requires_restart
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The type of the flag. Flags are typed to being *BOOLEAN*, *STRING*, *INTEGER*
|
|
|
|
# or *NONE*. *NONE* is used for flags which do not take a value, such as *
|
|
|
|
# skip_grant_tables*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2020-01-18 00:37:34 +00:00
|
|
|
@allowed_int_values = args[:allowed_int_values] if args.key?(:allowed_int_values)
|
2019-10-15 00:37:33 +00:00
|
|
|
@allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values)
|
|
|
|
@applies_to = args[:applies_to] if args.key?(:applies_to)
|
|
|
|
@in_beta = args[:in_beta] if args.key?(:in_beta)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@max_value = args[:max_value] if args.key?(:max_value)
|
|
|
|
@min_value = args[:min_value] if args.key?(:min_value)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@requires_restart = args[:requires_restart] if args.key?(:requires_restart)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Flags list response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListFlagsResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of flags.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::Flag>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#flagsList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance import context.
|
|
|
|
class ImportContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Import parameters specific to SQL Server .BAK files
|
|
|
|
# Corresponds to the JSON property `bakImportOptions`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :bak_import_options
|
|
|
|
|
|
|
|
# Options for importing data as CSV.
|
|
|
|
# Corresponds to the JSON property `csvImportOptions`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :csv_import_options
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The target database for the import. If *fileType* is *SQL*, this field is
|
|
|
|
# required only if the import file does not specify a database, and is
|
|
|
|
# overridden by any database specification in the import file. If *fileType* is *
|
|
|
|
# CSV*, one database must be specified.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `database`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :database
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The file type for the specified uri. *SQL*: The file contains SQL statements. *
|
|
|
|
# CSV*: The file contains CSV data.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `fileType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :file_type
|
|
|
|
|
|
|
|
# The PostgreSQL user for this import operation. PostgreSQL instances only.
|
|
|
|
# Corresponds to the JSON property `importUser`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :import_user
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#importContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1790)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-16 03:21:22,617 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-16 03:21:22,646 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.4.0
Installing json 2.4.0 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.52.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.1
Installing redcarpet 3.5.1 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
identical google/apis/sqladmin_v1beta4/representations.rb
conflict /workspace/api_names_out.yaml
force /workspace/api_names_out.yaml
2020-12-16 03:21:48,060 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/8c2a23fc-c90e-4796-819a-bcc7e98db1cb/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-16 11:34:04 +00:00
|
|
|
# Path to the import file in Cloud Storage, in the form *gs://bucketName/
|
|
|
|
# fileName*. Compressed gzip files (.gz) are supported when *fileType* is *SQL*.
|
|
|
|
# The instance must have write permissions to the bucket and read access to the
|
|
|
|
# file.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `uri`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :uri
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@bak_import_options = args[:bak_import_options] if args.key?(:bak_import_options)
|
|
|
|
@csv_import_options = args[:csv_import_options] if args.key?(:csv_import_options)
|
|
|
|
@database = args[:database] if args.key?(:database)
|
|
|
|
@file_type = args[:file_type] if args.key?(:file_type)
|
|
|
|
@import_user = args[:import_user] if args.key?(:import_user)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@uri = args[:uri] if args.key?(:uri)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Import parameters specific to SQL Server .BAK files
|
|
|
|
class BakImportOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
#
|
|
|
|
# Corresponds to the JSON property `encryptionOptions`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :encryption_options
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@encryption_options = args[:encryption_options] if args.key?(:encryption_options)
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class EncryptionOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Path to the Certificate (.cer) in Cloud Storage, in the form *gs://bucketName/
|
|
|
|
# fileName*. The instance must have write permissions to the bucket and read
|
|
|
|
# access to the file.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `certPath`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cert_path
|
|
|
|
|
|
|
|
# Password that encrypts the private key
|
|
|
|
# Corresponds to the JSON property `pvkPassword`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :pvk_password
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form *gs://
|
|
|
|
# bucketName/fileName*. The instance must have write permissions to the bucket
|
|
|
|
# and read access to the file.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `pvkPath`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :pvk_path
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cert_path = args[:cert_path] if args.key?(:cert_path)
|
|
|
|
@pvk_password = args[:pvk_password] if args.key?(:pvk_password)
|
|
|
|
@pvk_path = args[:pvk_path] if args.key?(:pvk_path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Options for importing data as CSV.
|
|
|
|
class CsvImportOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The columns to which CSV data is imported. If not specified, all columns of
|
|
|
|
# the database table are loaded with CSV data.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `columns`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :columns
|
|
|
|
|
|
|
|
# The table to which CSV data is imported.
|
|
|
|
# Corresponds to the JSON property `table`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :table
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@columns = args[:columns] if args.key?(:columns)
|
|
|
|
@table = args[:table] if args.key?(:table)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# 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
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# Database instance clone request.
|
2020-09-18 00:39:13 +00:00
|
|
|
class CloneInstancesRequest
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Database instance clone context.
|
|
|
|
# Corresponds to the JSON property `cloneContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::CloneContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :clone_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@clone_context = args[:clone_context] if args.key?(:clone_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Database demote primary instance request.
|
2019-10-15 00:37:33 +00:00
|
|
|
class InstancesDemoteMasterRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Database instance demote primary instance context.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `demoteMasterContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::DemoteMasterContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :demote_master_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@demote_master_context = args[:demote_master_context] if args.key?(:demote_master_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance export request.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ExportInstancesRequest
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Database instance export context.
|
|
|
|
# Corresponds to the JSON property `exportContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ExportContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :export_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@export_context = args[:export_context] if args.key?(:export_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Instance failover request.
|
|
|
|
class InstancesFailoverRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Database instance failover context.
|
|
|
|
# Corresponds to the JSON property `failoverContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::FailoverContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :failover_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@failover_context = args[:failover_context] if args.key?(:failover_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance import request.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ImportInstancesRequest
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Database instance import context.
|
|
|
|
# Corresponds to the JSON property `importContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ImportContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :import_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@import_context = args[:import_context] if args.key?(:import_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instances list response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListInstancesResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of database instance resources.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::DatabaseInstance>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#instancesList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The continuation token, used to page through large result sets. Provide this
|
|
|
|
# value in a subsequent request to return the next page of results.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
2020-01-18 00:37:34 +00:00
|
|
|
# List of warnings that occurred while handling the request.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `warnings`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::ApiWarning>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :warnings
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
@warnings = args[:warnings] if args.key?(:warnings)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Instances ListServerCas response.
|
|
|
|
class InstancesListServerCasResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
#
|
|
|
|
# Corresponds to the JSON property `activeVersion`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :active_version
|
|
|
|
|
|
|
|
# List of server CA certificates for the instance.
|
|
|
|
# Corresponds to the JSON property `certs`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :certs
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#instancesListServerCas*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@active_version = args[:active_version] if args.key?(:active_version)
|
|
|
|
@certs = args[:certs] if args.key?(:certs)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance restore backup request.
|
2020-09-18 00:39:13 +00:00
|
|
|
class RestoreInstancesBackupRequest
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Database instance restore from backup context. Backup context contains source
|
|
|
|
# instance id and project id.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `restoreBackupContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::RestoreBackupContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :restore_backup_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Rotate Server CA request.
|
|
|
|
class InstancesRotateServerCaRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Instance rotate server CA context.
|
|
|
|
# Corresponds to the JSON property `rotateServerCaContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::RotateServerCaContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :rotate_server_ca_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@rotate_server_ca_context = args[:rotate_server_ca_context] if args.key?(:rotate_server_ca_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Instance truncate log request.
|
|
|
|
class InstancesTruncateLogRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Database Instance truncate log context.
|
|
|
|
# Corresponds to the JSON property `truncateLogContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::TruncateLogContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :truncate_log_context
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@truncate_log_context = args[:truncate_log_context] if args.key?(:truncate_log_context)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# IP Management configuration.
|
|
|
|
class IpConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The list of external networks that are allowed to connect to the instance
|
2020-08-14 00:38:12 +00:00
|
|
|
# using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
|
|
|
|
# *192.168.100.0/24*).
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `authorizedNetworks`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :authorized_networks
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# Whether the instance is assigned a public IP address or not.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `ipv4Enabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :ipv4_enabled
|
|
|
|
alias_method :ipv4_enabled?, :ipv4_enabled
|
|
|
|
|
|
|
|
# The resource link for the VPC network from which the Cloud SQL instance is
|
2020-08-14 00:38:12 +00:00
|
|
|
# accessible for private IP. For example, */projects/myProject/global/networks/
|
|
|
|
# default*. This setting can be updated, but it cannot be removed after it is
|
|
|
|
# set.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `privateNetwork`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :private_network
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# Whether SSL connections over IP are enforced or not.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `requireSsl`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :require_ssl
|
|
|
|
alias_method :require_ssl?, :require_ssl
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
|
|
|
|
@ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
|
|
|
|
@private_network = args[:private_network] if args.key?(:private_network)
|
|
|
|
@require_ssl = args[:require_ssl] if args.key?(:require_ssl)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance IP Mapping.
|
|
|
|
class IpMapping
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The IP address assigned.
|
|
|
|
# Corresponds to the JSON property `ipAddress`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ip_address
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The due time for this IP to be retired in RFC 3339 format, for example *2012-
|
|
|
|
# 11-15T16:19:00.094Z*. This field is only available when the IP is scheduled to
|
|
|
|
# be retired.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `timeToRetire`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :time_to_retire
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The type of this IP address. A *PRIMARY* address is a public address that can
|
|
|
|
# accept incoming connections. A *PRIVATE* address is a private address that can
|
|
|
|
# accept incoming connections. An *OUTGOING* address is the source address of
|
|
|
|
# connections originating from the instance, if supported.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
|
|
@time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Preferred location. This specifies where a Cloud SQL instance is located,
|
|
|
|
# either in a specific Compute Engine zone, or co-located with an App Engine
|
|
|
|
# application. Note that if the preferred location is not available, the
|
|
|
|
# instance will be located as close as possible within the region. Only one
|
|
|
|
# location may be specified.
|
2019-10-15 00:37:33 +00:00
|
|
|
class LocationPreference
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-07-24 00:38:50 +00:00
|
|
|
# The App Engine application to follow, it must be in the same region as the
|
2019-10-15 00:37:33 +00:00
|
|
|
# Cloud SQL instance.
|
|
|
|
# Corresponds to the JSON property `followGaeApplication`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :follow_gae_application
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#locationPreference*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# The preferred Compute Engine zone for the secondary/failover (for example: us-
|
|
|
|
# central1-a, us-central1-b, etc.). Reserved for future use.
|
|
|
|
# Corresponds to the JSON property `secondaryZone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :secondary_zone
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The preferred Compute Engine zone (for example: us-central1-a, us-central1-b,
|
|
|
|
# etc.).
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `zone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :zone
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
@secondary_zone = args[:secondary_zone] if args.key?(:secondary_zone)
|
2019-10-15 00:37:33 +00:00
|
|
|
@zone = args[:zone] if args.key?(:zone)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Maintenance window. This specifies when a Cloud SQL instance is restarted for
|
|
|
|
# system maintenance purposes.
|
2019-10-15 00:37:33 +00:00
|
|
|
class MaintenanceWindow
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# day of week (1-7), starting on Monday.
|
|
|
|
# Corresponds to the JSON property `day`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :day
|
|
|
|
|
|
|
|
# hour of day - 0 to 23.
|
|
|
|
# Corresponds to the JSON property `hour`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :hour
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#maintenanceWindow*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Maintenance timing setting: *canary* (Earlier) or *stable* (Later). Learn more.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `updateTrack`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :update_track
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@day = args[:day] if args.key?(:day)
|
|
|
|
@hour = args[:hour] if args.key?(:hour)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@update_track = args[:update_track] if args.key?(:update_track)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Read-replica configuration specific to MySQL databases.
|
|
|
|
class MySqlReplicaConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# PEM representation of the trusted CA's x509 certificate.
|
|
|
|
# Corresponds to the JSON property `caCertificate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ca_certificate
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# PEM representation of the replica's x509 certificate.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `clientCertificate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_certificate
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# PEM representation of the replica's private key. The corresponsing public key
|
|
|
|
# is encoded in the client's certificate.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `clientKey`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_key
|
|
|
|
|
|
|
|
# Seconds to wait between connect retries. MySQL's default is 60 seconds.
|
|
|
|
# Corresponds to the JSON property `connectRetryInterval`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :connect_retry_interval
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# Path to a SQL dump file in Google Cloud Storage from which the replica
|
2020-07-24 00:38:50 +00:00
|
|
|
# instance is to be created. The URI is in the form gs://bucketName/fileName.
|
2020-08-14 00:38:12 +00:00
|
|
|
# Compressed gzip files (.gz) are also supported. Dumps have the binlog co-
|
|
|
|
# ordinates from which replication begins. This can be accomplished by setting --
|
|
|
|
# master-data to 1 when using mysqldump.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `dumpFilePath`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :dump_file_path
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#mysqlReplicaConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Interval in milliseconds between replication heartbeats.
|
|
|
|
# Corresponds to the JSON property `masterHeartbeatPeriod`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :master_heartbeat_period
|
|
|
|
|
|
|
|
# The password for the replication connection.
|
|
|
|
# Corresponds to the JSON property `password`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :password
|
|
|
|
|
|
|
|
# A list of permissible ciphers to use for SSL encryption.
|
|
|
|
# Corresponds to the JSON property `sslCipher`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ssl_cipher
|
|
|
|
|
|
|
|
# The username for the replication connection.
|
|
|
|
# Corresponds to the JSON property `username`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :username
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Whether or not to check the primary instance's Common Name value in the
|
|
|
|
# certificate that it sends during the SSL handshake.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `verifyServerCertificate`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :verify_server_certificate
|
|
|
|
alias_method :verify_server_certificate?, :verify_server_certificate
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
|
|
|
|
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
|
|
@client_key = args[:client_key] if args.key?(:client_key)
|
|
|
|
@connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval)
|
|
|
|
@dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period)
|
|
|
|
@password = args[:password] if args.key?(:password)
|
|
|
|
@ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher)
|
|
|
|
@username = args[:username] if args.key?(:username)
|
|
|
|
@verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# On-premises instance configuration.
|
|
|
|
class OnPremisesConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-12-17 00:37:11 +00:00
|
|
|
# PEM representation of the trusted CA's x509 certificate.
|
|
|
|
# Corresponds to the JSON property `caCertificate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ca_certificate
|
|
|
|
|
2020-08-07 00:38:13 +00:00
|
|
|
# PEM representation of the replica's x509 certificate.
|
2019-12-17 00:37:11 +00:00
|
|
|
# Corresponds to the JSON property `clientCertificate`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_certificate
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# PEM representation of the replica's private key. The corresponsing public key
|
|
|
|
# is encoded in the client's certificate.
|
2019-12-17 00:37:11 +00:00
|
|
|
# Corresponds to the JSON property `clientKey`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_key
|
|
|
|
|
2020-02-11 00:37:43 +00:00
|
|
|
# The dump file to create the Cloud SQL replica.
|
|
|
|
# Corresponds to the JSON property `dumpFilePath`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :dump_file_path
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# The host and port of the on-premises instance in host:port format
|
|
|
|
# Corresponds to the JSON property `hostPort`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :host_port
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#onPremisesConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-02-11 00:37:43 +00:00
|
|
|
# The password for connecting to on-premises instance.
|
|
|
|
# Corresponds to the JSON property `password`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :password
|
|
|
|
|
|
|
|
# The username for connecting to on-premises instance.
|
|
|
|
# Corresponds to the JSON property `username`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :username
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-12-17 00:37:11 +00:00
|
|
|
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
|
|
|
|
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
|
|
@client_key = args[:client_key] if args.key?(:client_key)
|
2020-02-11 00:37:43 +00:00
|
|
|
@dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
|
2019-10-15 00:37:33 +00:00
|
|
|
@host_port = args[:host_port] if args.key?(:host_port)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
2020-02-11 00:37:43 +00:00
|
|
|
@password = args[:password] if args.key?(:password)
|
|
|
|
@username = args[:username] if args.key?(:username)
|
2019-10-15 00:37:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# An Operation resource. For successful operations that return an Operation
|
|
|
|
# resource, only the fields relevant to the operation are populated in the
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# resource. Next field: 18
|
2019-10-15 00:37:33 +00:00
|
|
|
class Operation
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# Backup context.
|
|
|
|
# Corresponds to the JSON property `backupContext`
|
|
|
|
# @return [Google::Apis::SqladminV1beta4::BackupContext]
|
|
|
|
attr_accessor :backup_context
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time this operation finished in UTC timezone in RFC 3339 format, for
|
|
|
|
# example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `endTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_time
|
|
|
|
|
|
|
|
# Database instance operation errors list wrapper.
|
|
|
|
# Corresponds to the JSON property `error`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::OperationErrors]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :error
|
|
|
|
|
|
|
|
# Database instance export context.
|
|
|
|
# Corresponds to the JSON property `exportContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ExportContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :export_context
|
|
|
|
|
|
|
|
# Database instance import context.
|
|
|
|
# Corresponds to the JSON property `importContext`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::ImportContext]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :import_context
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time this operation was enqueued in UTC timezone in RFC 3339 format, for
|
|
|
|
# example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `insertTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :insert_time
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#operation*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# An identifier that uniquely identifies the operation. You can use this
|
2020-08-14 00:38:12 +00:00
|
|
|
# identifier to retrieve the Operations resource that has information about the
|
|
|
|
# operation.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The type of the operation. Valid values are: *CREATE* *DELETE* *UPDATE* *
|
|
|
|
# RESTART* *IMPORT* *EXPORT* *BACKUP_VOLUME* *RESTORE_VOLUME* *CREATE_USER* *
|
|
|
|
# DELETE_USER* *CREATE_DATABASE* *DELETE_DATABASE*
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `operationType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :operation_type
|
|
|
|
|
|
|
|
# The URI of this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time this operation actually started in UTC timezone in RFC 3339 format,
|
|
|
|
# for example *2012-11-15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *
|
|
|
|
# SQL_OPERATION_STATUS_UNSPECIFIED*
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `status`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :status
|
|
|
|
|
|
|
|
# Name of the database instance related to this operation.
|
|
|
|
# Corresponds to the JSON property `targetId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :target_id
|
|
|
|
|
|
|
|
#
|
|
|
|
# Corresponds to the JSON property `targetLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :target_link
|
|
|
|
|
|
|
|
# The project ID of the target instance related to this operation.
|
|
|
|
# Corresponds to the JSON property `targetProject`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :target_project
|
|
|
|
|
|
|
|
# The email address of the user who initiated this operation.
|
|
|
|
# Corresponds to the JSON property `user`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :user
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
@backup_context = args[:backup_context] if args.key?(:backup_context)
|
2019-10-15 00:37:33 +00:00
|
|
|
@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)
|
|
|
|
@import_context = args[:import_context] if args.key?(:import_context)
|
|
|
|
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
|
|
@status = args[:status] if args.key?(:status)
|
|
|
|
@target_id = args[:target_id] if args.key?(:target_id)
|
|
|
|
@target_link = args[:target_link] if args.key?(:target_link)
|
|
|
|
@target_project = args[:target_project] if args.key?(:target_project)
|
|
|
|
@user = args[:user] if args.key?(:user)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance operation error.
|
|
|
|
class OperationError
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Identifies the specific error that occurred.
|
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :code
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#operationError*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Additional information about the error encountered.
|
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance operation errors list wrapper.
|
|
|
|
class OperationErrors
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The list of errors encountered while processing this operation.
|
|
|
|
# Corresponds to the JSON property `errors`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::OperationError>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :errors
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#operationErrors*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@errors = args[:errors] if args.key?(:errors)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance list operations response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListOperationsResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of operation resources.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::Operation>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#operationsList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The continuation token, used to page through large result sets. Provide this
|
|
|
|
# value in a subsequent request to return the next page of results.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# Read-replica configuration for connecting to the primary instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
class ReplicaConfiguration
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Specifies if the replica is the failover target. If the field is set to *true*
|
2020-09-18 00:39:13 +00:00
|
|
|
# the replica will be designated as a failover replica. In case the primary
|
|
|
|
# instance fails, the replica instance will be promoted as the new primary
|
2020-08-14 00:38:12 +00:00
|
|
|
# instance. Only one replica can be specified as failover target, and the
|
2020-09-18 00:39:13 +00:00
|
|
|
# replica has to be in different zone with the primary instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `failoverTarget`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :failover_target
|
|
|
|
alias_method :failover_target?, :failover_target
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#replicaConfiguration*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Read-replica configuration specific to MySQL databases.
|
|
|
|
# Corresponds to the JSON property `mysqlReplicaConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :mysql_replica_configuration
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@failover_target = args[:failover_target] if args.key?(:failover_target)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-12-17 00:37:11 +00:00
|
|
|
#
|
|
|
|
class Reschedule
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Required. The type of the reschedule.
|
|
|
|
# Corresponds to the JSON property `rescheduleType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :reschedule_type
|
|
|
|
|
|
|
|
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
2020-08-14 00:38:12 +00:00
|
|
|
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example *2012-11-15T16:
|
|
|
|
# 19:00.094Z*.
|
2019-12-17 00:37:11 +00:00
|
|
|
# Corresponds to the JSON property `scheduleTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :schedule_time
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
|
|
|
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Database instance restore from backup context. Backup context contains source
|
|
|
|
# instance id and project id.
|
2019-10-15 00:37:33 +00:00
|
|
|
class RestoreBackupContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The ID of the backup run to restore from.
|
|
|
|
# Corresponds to the JSON property `backupRunId`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :backup_run_id
|
|
|
|
|
|
|
|
# The ID of the instance that the backup was taken from.
|
|
|
|
# Corresponds to the JSON property `instanceId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance_id
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#restoreBackupContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# The full project ID of the source instance.
|
|
|
|
# Corresponds to the JSON property `project`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :project
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@backup_run_id = args[:backup_run_id] if args.key?(:backup_run_id)
|
|
|
|
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@project = args[:project] if args.key?(:project)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Instance rotate server CA context.
|
|
|
|
class RotateServerCaContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#rotateServerCaContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# The fingerprint of the next version to be rotated to. If left unspecified,
|
|
|
|
# will be rotated to the most recently added server CA version.
|
|
|
|
# Corresponds to the JSON property `nextVersion`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_version
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@next_version = args[:next_version] if args.key?(:next_version)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database instance settings.
|
|
|
|
class Settings
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The activation policy specifies when the instance is activated; it is
|
2020-08-14 00:38:12 +00:00
|
|
|
# applicable only when the instance state is RUNNABLE. Valid values: *ALWAYS*:
|
|
|
|
# The instance is on, and remains so even in the absence of connection requests.
|
|
|
|
# *NEVER*: The instance is off; it is not activated, even if a connection
|
|
|
|
# request arrives.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `activationPolicy`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :activation_policy
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
2020-09-25 00:38:43 +00:00
|
|
|
# Corresponds to the JSON property `activeDirectoryConfig`
|
|
|
|
# @return [Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig]
|
|
|
|
attr_accessor :active_directory_config
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The App Engine app IDs that can access this instance. (Deprecated) Applied to
|
|
|
|
# First Generation instances only.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `authorizedGaeApplications`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :authorized_gae_applications
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Availability type. Potential values: *ZONAL*: The instance serves data from
|
|
|
|
# only one zone. Outages in that zone affect data accessibility. *REGIONAL*: The
|
|
|
|
# instance can serve data from more than one zone in a region (it is highly
|
|
|
|
# available). For more information, see Overview of the High Availability
|
|
|
|
# Configuration.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `availabilityType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :availability_type
|
|
|
|
|
|
|
|
# Database instance backup configuration.
|
|
|
|
# Corresponds to the JSON property `backupConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::BackupConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :backup_configuration
|
|
|
|
|
2020-07-24 00:38:50 +00:00
|
|
|
# The name of server Instance collation.
|
|
|
|
# Corresponds to the JSON property `collation`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :collation
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Configuration specific to read replica instances. Indicates whether database
|
|
|
|
# flags for crash-safe replication are enabled. This property was only
|
|
|
|
# applicable to First Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `crashSafeReplicationEnabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :crash_safe_replication_enabled
|
|
|
|
alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
|
|
|
|
|
2020-07-24 00:38:50 +00:00
|
|
|
# The size of data disk, in GB. The data disk size minimum is 10GB.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `dataDiskSizeGb`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :data_disk_size_gb
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The type of data disk: PD_SSD (default) or PD_HDD. Not used for First
|
|
|
|
# Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `dataDiskType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :data_disk_type
|
|
|
|
|
|
|
|
# The database flags passed to the instance at startup.
|
|
|
|
# Corresponds to the JSON property `databaseFlags`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::DatabaseFlags>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :database_flags
|
|
|
|
|
|
|
|
# Configuration specific to read replica instances. Indicates whether
|
|
|
|
# replication is enabled or not.
|
|
|
|
# Corresponds to the JSON property `databaseReplicationEnabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :database_replication_enabled
|
|
|
|
alias_method :database_replication_enabled?, :database_replication_enabled
|
|
|
|
|
2020-09-25 00:38:43 +00:00
|
|
|
# Deny maintenance periods
|
|
|
|
# Corresponds to the JSON property `denyMaintenancePeriods`
|
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::DenyMaintenancePeriod>]
|
|
|
|
attr_accessor :deny_maintenance_periods
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# 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
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# IP Management configuration.
|
|
|
|
# Corresponds to the JSON property `ipConfiguration`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::IpConfiguration]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :ip_configuration
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#settings*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Preferred location. This specifies where a Cloud SQL instance is located,
|
|
|
|
# either in a specific Compute Engine zone, or co-located with an App Engine
|
|
|
|
# application. Note that if the preferred location is not available, the
|
|
|
|
# instance will be located as close as possible within the region. Only one
|
|
|
|
# location may be specified.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `locationPreference`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::LocationPreference]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :location_preference
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# Maintenance window. This specifies when a Cloud SQL instance is restarted for
|
|
|
|
# system maintenance purposes.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `maintenanceWindow`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :maintenance_window
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The pricing plan for this instance. This can be either *PER_USE* or *PACKAGE*.
|
|
|
|
# Only *PER_USE* is supported for Second Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `pricingPlan`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :pricing_plan
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The type of replication this instance uses. This can be either *ASYNCHRONOUS*
|
|
|
|
# or *SYNCHRONOUS*. (Deprecated_ This property was only applicable to First
|
|
|
|
# Generation instances.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `replicationType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :replication_type
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The version of instance settings. This is a required field for update method
|
|
|
|
# to make sure concurrent updates are handled properly. During update, use the
|
|
|
|
# most recent settingsVersion value for this instance and do not try to update
|
|
|
|
# this value.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `settingsVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :settings_version
|
|
|
|
|
|
|
|
# Configuration to increase storage size automatically. The default value is
|
2020-07-24 00:38:50 +00:00
|
|
|
# true.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `storageAutoResize`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :storage_auto_resize
|
|
|
|
alias_method :storage_auto_resize?, :storage_auto_resize
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The maximum size to which storage capacity can be automatically increased. The
|
|
|
|
# default value is 0, which specifies that there is no limit.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `storageAutoResizeLimit`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :storage_auto_resize_limit
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The tier (or machine type) for this instance, for example *db-n1-standard-1* (
|
|
|
|
# MySQL instances) or *db-custom-1-3840* (PostgreSQL instances).
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `tier`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :tier
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# User-provided labels, represented as a dictionary where each label is a single
|
|
|
|
# key value pair.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `userLabels`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :user_labels
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@activation_policy = args[:activation_policy] if args.key?(:activation_policy)
|
2020-09-25 00:38:43 +00:00
|
|
|
@active_directory_config = args[:active_directory_config] if args.key?(:active_directory_config)
|
2019-10-15 00:37:33 +00:00
|
|
|
@authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications)
|
|
|
|
@availability_type = args[:availability_type] if args.key?(:availability_type)
|
|
|
|
@backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
|
2020-07-24 00:38:50 +00:00
|
|
|
@collation = args[:collation] if args.key?(:collation)
|
2019-10-15 00:37:33 +00:00
|
|
|
@crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
|
|
|
|
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
|
|
|
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
|
|
|
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
|
|
|
@database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
|
2020-09-25 00:38:43 +00:00
|
|
|
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
@insights_config = args[:insights_config] if args.key?(:insights_config)
|
2019-10-15 00:37:33 +00:00
|
|
|
@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)
|
|
|
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
|
|
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
|
|
|
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
|
|
|
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
|
|
|
@storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
|
|
|
|
@storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
|
|
|
|
@tier = args[:tier] if args.key?(:tier)
|
|
|
|
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
|
|
|
end
|
|
|
|
end
|
2020-09-25 00:38:43 +00:00
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
2020-09-25 00:38:43 +00:00
|
|
|
class SqlActiveDirectoryConfig
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# The name of the domain (e.g., mydomain.com).
|
2020-09-25 00:38:43 +00:00
|
|
|
# Corresponds to the JSON property `domain`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :domain
|
|
|
|
|
feat: Automated regeneration of sqladmin v1beta4 client (#1335)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-30 03:22:58,907 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-10-30 03:22:58,937 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.7
Installing tzinfo 1.2.7
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.47.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.0512
Installing mime-types-data 3.2020.0512
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.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Installing rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.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.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
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
identical 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-10-30 03:23:25,569 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/7d362833-5328-4c81-a247-3f5caf27d99a/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-30 14:28:04 +00:00
|
|
|
# This is always sql#activeDirectoryConfig.
|
2020-09-25 00:38:43 +00:00
|
|
|
# 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)
|
|
|
|
@domain = args[:domain] if args.key?(:domain)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
2019-10-15 00:37:33 +00:00
|
|
|
|
2020-09-18 00:39:13 +00:00
|
|
|
# External primary instance migration setting error.
|
2020-02-11 00:37:43 +00:00
|
|
|
class SqlExternalSyncSettingError
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Additional information about the error encountered.
|
|
|
|
# Corresponds to the JSON property `detail`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :detail
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#migrationSettingError*.
|
2020-02-11 00:37:43 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Identifies the specific error that occurred.
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@detail = args[:detail] if args.key?(:detail)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-12-17 00:37:11 +00:00
|
|
|
# Reschedule options for maintenance windows.
|
|
|
|
class SqlInstancesRescheduleMaintenanceRequestBody
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Required. The type of the reschedule the user wants.
|
|
|
|
# Corresponds to the JSON property `reschedule`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::Reschedule]
|
2019-12-17 00:37:11 +00:00
|
|
|
attr_accessor :reschedule
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@reschedule = args[:reschedule] if args.key?(:reschedule)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-02-11 00:37:43 +00:00
|
|
|
# Instance verify external sync settings response.
|
|
|
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of migration violations.
|
|
|
|
# Corresponds to the JSON property `errors`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError>]
|
2020-02-11 00:37:43 +00:00
|
|
|
attr_accessor :errors
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#migrationSettingErrorList*.
|
2020-02-11 00:37:43 +00:00
|
|
|
# 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)
|
|
|
|
@errors = args[:errors] if args.key?(:errors)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-10-25 00:37:24 +00:00
|
|
|
# Any scheduled maintenancce for this instance.
|
|
|
|
class SqlScheduledMaintenance
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-12-17 00:37:11 +00:00
|
|
|
#
|
2019-10-25 00:37:24 +00:00
|
|
|
# Corresponds to the JSON property `canDefer`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :can_defer
|
|
|
|
alias_method :can_defer?, :can_defer
|
|
|
|
|
2019-12-17 00:37:11 +00:00
|
|
|
# If the scheduled maintenance can be rescheduled.
|
|
|
|
# Corresponds to the JSON property `canReschedule`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :can_reschedule
|
|
|
|
alias_method :can_reschedule?, :can_reschedule
|
|
|
|
|
2019-10-25 00:37:24 +00:00
|
|
|
# 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)
|
2019-12-17 00:37:11 +00:00
|
|
|
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
2019-10-25 00:37:24 +00:00
|
|
|
@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
|
|
|
|
|
2020-01-18 00:37:34 +00:00
|
|
|
# Represents a Sql Server user on the Cloud SQL instance.
|
|
|
|
class SqlServerUserDetails
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# If the user has been disabled
|
|
|
|
# Corresponds to the JSON property `disabled`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disabled
|
|
|
|
alias_method :disabled?, :disabled
|
|
|
|
|
|
|
|
# The server roles for this user
|
|
|
|
# Corresponds to the JSON property `serverRoles`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :server_roles
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@disabled = args[:disabled] if args.key?(:disabled)
|
|
|
|
@server_roles = args[:server_roles] if args.key?(:server_roles)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# SslCerts Resource
|
|
|
|
class SslCert
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# PEM representation.
|
|
|
|
# Corresponds to the JSON property `cert`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cert
|
|
|
|
|
|
|
|
# Serial number, as extracted from the certificate.
|
|
|
|
# Corresponds to the JSON property `certSerialNumber`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cert_serial_number
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# User supplied name. Constrained to [a-zA-Z.-_ ]+.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `commonName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :common_name
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time when the certificate was created in RFC 3339 format, for example *
|
|
|
|
# 2012-11-15T16:19:00.094Z*
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `createTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :create_time
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The time when the certificate expires in RFC 3339 format, for example *2012-11-
|
|
|
|
# 15T16:19:00.094Z*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `expirationTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :expiration_time
|
|
|
|
|
|
|
|
# Name of the database instance.
|
|
|
|
# Corresponds to the JSON property `instance`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#sslCert*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# The URI of this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
# Sha1 Fingerprint.
|
|
|
|
# Corresponds to the JSON property `sha1Fingerprint`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha1_fingerprint
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cert = args[:cert] if args.key?(:cert)
|
|
|
|
@cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number)
|
|
|
|
@common_name = args[:common_name] if args.key?(:common_name)
|
|
|
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
|
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
|
|
@instance = args[:instance] if args.key?(:instance)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
|
|
@sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# SslCertDetail.
|
|
|
|
class SslCertDetail
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# SslCerts Resource
|
|
|
|
# Corresponds to the JSON property `certInfo`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :cert_info
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The private key for the client cert, in pem format. Keep private in order to
|
|
|
|
# protect your security.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `certPrivateKey`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cert_private_key
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cert_info = args[:cert_info] if args.key?(:cert_info)
|
|
|
|
@cert_private_key = args[:cert_private_key] if args.key?(:cert_private_key)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# SslCerts create ephemeral certificate request.
|
|
|
|
class SslCertsCreateEphemeralRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# PEM encoded public key to include in the signed certificate.
|
|
|
|
# Corresponds to the JSON property `public_key`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :public_key
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@public_key = args[:public_key] if args.key?(:public_key)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# SslCerts insert request.
|
2020-09-18 00:39:13 +00:00
|
|
|
class InsertSslCertsRequest
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# User supplied name. Must be a distinct name from the other certificates for
|
|
|
|
# this instance.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `commonName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :common_name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@common_name = args[:common_name] if args.key?(:common_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# SslCert insert response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class InsertSslCertsResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# SslCertDetail.
|
|
|
|
# Corresponds to the JSON property `clientCert`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SslCertDetail]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :client_cert
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#sslCertsInsert*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# An Operation resource. For successful operations that return an Operation
|
|
|
|
# resource, only the fields relevant to the operation are populated in the
|
feat: Automated regeneration of sqladmin v1beta4 client (#1638)
This PR was generated using Autosynth. :rainbow:
<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.
2020-12-04 11:20:03 +00:00
|
|
|
# resource. Next field: 18
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `operation`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::Operation]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :operation
|
|
|
|
|
|
|
|
# SslCerts Resource
|
|
|
|
# Corresponds to the JSON property `serverCaCert`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :server_ca_cert
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@client_cert = args[:client_cert] if args.key?(:client_cert)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@operation = args[:operation] if args.key?(:operation)
|
|
|
|
@server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# SslCerts list response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListSslCertsResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of client certificates for the instance.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#sslCertsList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A Google Cloud SQL service tier resource.
|
|
|
|
class Tier
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The maximum disk size of this tier in bytes.
|
|
|
|
# Corresponds to the JSON property `DiskQuota`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :disk_quota
|
|
|
|
|
|
|
|
# The maximum RAM usage of this tier in bytes.
|
|
|
|
# Corresponds to the JSON property `RAM`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :ram
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#tier*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# The applicable regions for this tier.
|
|
|
|
# Corresponds to the JSON property `region`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :region
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# An identifier for the machine type, for example, db-n1-standard-1. For related
|
|
|
|
# information, see Pricing.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `tier`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :tier
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@disk_quota = args[:disk_quota] if args.key?(:disk_quota)
|
|
|
|
@ram = args[:ram] if args.key?(:ram)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@region = args[:region] if args.key?(:region)
|
|
|
|
@tier = args[:tier] if args.key?(:tier)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Tiers list response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListTiersResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of tiers.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::Tier>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#tiersList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# 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)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Database Instance truncate log context.
|
|
|
|
class TruncateLogContext
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#truncateLogContext*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The type of log to truncate. Valid values are *MYSQL_GENERAL_TABLE* and *
|
|
|
|
# MYSQL_SLOW_TABLE*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `logType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :log_type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@log_type = args[:log_type] if args.key?(:log_type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A Cloud SQL user resource.
|
|
|
|
class User
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This field is deprecated and will be removed from a future version of the API.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `etag`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :etag
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The host name from which the user can connect. For *insert* operations, host
|
|
|
|
# defaults to an empty string. For *update* operations, host is specified as
|
|
|
|
# part of the request URL. The host name cannot be updated after insertion.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `host`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :host
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
|
|
|
# be omitted for *update* since it is already specified on the URL.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `instance`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#user*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The name of the user in the Cloud SQL instance. Can be omitted for *update*
|
|
|
|
# since it is already specified in the URL.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# The password for the user.
|
|
|
|
# Corresponds to the JSON property `password`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :password
|
|
|
|
|
|
|
|
# The project ID of the project containing the Cloud SQL database. The Google
|
2020-08-14 00:38:12 +00:00
|
|
|
# apps domain is prefixed if applicable. Can be omitted for *update* since it is
|
|
|
|
# already specified on the URL.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `project`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :project
|
|
|
|
|
2020-01-18 00:37:34 +00:00
|
|
|
# Represents a Sql Server user on the Cloud SQL instance.
|
|
|
|
# Corresponds to the JSON property `sqlserverUserDetails`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Google::Apis::SqladminV1beta4::SqlServerUserDetails]
|
2020-01-18 00:37:34 +00:00
|
|
|
attr_accessor :sqlserver_user_details
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# The user type. It determines the method to authenticate the user during login.
|
|
|
|
# The default is the database's built-in user type.
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@etag = args[:etag] if args.key?(:etag)
|
|
|
|
@host = args[:host] if args.key?(:host)
|
|
|
|
@instance = args[:instance] if args.key?(:instance)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@password = args[:password] if args.key?(:password)
|
|
|
|
@project = args[:project] if args.key?(:project)
|
2020-01-18 00:37:34 +00:00
|
|
|
@sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
|
2020-08-14 00:38:12 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
2019-10-15 00:37:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# User list response.
|
2020-09-18 00:39:13 +00:00
|
|
|
class ListUsersResponse
|
2019-10-15 00:37:33 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# List of user resources in the instance.
|
|
|
|
# Corresponds to the JSON property `items`
|
2020-09-18 00:39:13 +00:00
|
|
|
# @return [Array<Google::Apis::SqladminV1beta4::User>]
|
2019-10-15 00:37:33 +00:00
|
|
|
attr_accessor :items
|
|
|
|
|
2020-08-14 00:38:12 +00:00
|
|
|
# This is always *sql#usersList*.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# An identifier that uniquely identifies the operation. You can use this
|
2020-08-14 00:38:12 +00:00
|
|
|
# identifier to retrieve the Operations resource that has information about the
|
|
|
|
# operation.
|
2019-10-15 00:37:33 +00:00
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@items = args[:items] if args.key?(:items)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|