Autogenerated update (2020-02-11)
Update: - acceleratedmobilepageurl_v1 - accessapproval_v1 - adexchangebuyer2_v2beta1 - admob_v1 - androiddeviceprovisioning_v1 - cloudbilling_v1 - cloudshell_v1 - cloudshell_v1alpha1 - commentanalyzer_v1alpha1 - factchecktools_v1alpha1 - kgsearch_v1 - libraryagent_v1 - poly_v1 - sql_v1beta4 - streetviewpublish_v1 - tagmanager_v2 - toolresults_v1 - youtube_analytics_v1 - youtube_analytics_v2 - youtubereporting_v1
This commit is contained in:
1 parent
e2967193a5
commit
6d134f080d
24 files changed
+315
-21
No files matched your search
@@ -1833,6 +1833,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :client_key
|
||||
|
||||
# The dump file to create the Cloud SQL replica.
|
||||
# Corresponds to the JSON property `dumpFilePath`
|
||||
# @return [String]
|
||||
attr_accessor :dump_file_path
|
||||
|
||||
# The host and port of the on-premises instance in host:port format
|
||||
# Corresponds to the JSON property `hostPort`
|
||||
# @return [String]
|
||||
@@ -1843,6 +1848,16 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -1852,8 +1867,11 @@ module Google
|
||||
@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)
|
||||
@dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
|
||||
@host_port = args[:host_port] if args.key?(:host_port)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2112,7 +2130,9 @@ module Google
|
||||
attr_accessor :reschedule_type
|
||||
|
||||
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
||||
# reschedule_type=SPECIFIC_TIME.
|
||||
# reschedule_type=SPECIFIC_TIME, in <a
|
||||
# href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for
|
||||
# example <code>2012-11-15T16:19:00.094Z</code>.
|
||||
# Corresponds to the JSON property `scheduleTime`
|
||||
# @return [String]
|
||||
attr_accessor :schedule_time
|
||||
@@ -2370,6 +2390,37 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# External master migration setting error.
|
||||
class SqlExternalSyncSettingError
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Additional information about the error encountered.
|
||||
# Corresponds to the JSON property `detail`
|
||||
# @return [String]
|
||||
attr_accessor :detail
|
||||
|
||||
# This is always <code>sql#migrationSettingError</code>.
|
||||
# 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
|
||||
|
||||
# Reschedule options for maintenance windows.
|
||||
class SqlInstancesRescheduleMaintenanceRequestBody
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2389,6 +2440,31 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Instance verify external sync settings response.
|
||||
class SqlInstancesVerifyExternalSyncSettingsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of migration violations.
|
||||
# Corresponds to the JSON property `errors`
|
||||
# @return [Array<Google::Apis::SqlV1beta4::SqlExternalSyncSettingError>]
|
||||
attr_accessor :errors
|
||||
|
||||
# This is always <code>sql#migrationSettingErrorList</code>.
|
||||
# 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
|
||||
|
||||
# Any scheduled maintenancce for this instance.
|
||||
class SqlScheduledMaintenance
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -340,12 +340,24 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SqlExternalSyncSettingError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SqlInstancesRescheduleMaintenanceRequestBody
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SqlInstancesVerifyExternalSyncSettingsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SqlScheduledMaintenance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -908,8 +920,11 @@ module Google
|
||||
property :ca_certificate, as: 'caCertificate'
|
||||
property :client_certificate, as: 'clientCertificate'
|
||||
property :client_key, as: 'clientKey'
|
||||
property :dump_file_path, as: 'dumpFilePath'
|
||||
property :host_port, as: 'hostPort'
|
||||
property :kind, as: 'kind'
|
||||
property :password, as: 'password'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1032,6 +1047,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SqlExternalSyncSettingError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :detail, as: 'detail'
|
||||
property :kind, as: 'kind'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class SqlInstancesRescheduleMaintenanceRequestBody
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1040,6 +1064,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SqlInstancesVerifyExternalSyncSettingsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :errors, as: 'errors', class: Google::Apis::SqlV1beta4::SqlExternalSyncSettingError, decorator: Google::Apis::SqlV1beta4::SqlExternalSyncSettingError::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class SqlScheduledMaintenance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -1477,6 +1477,91 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Start External master migration.
|
||||
# @param [String] project
|
||||
# ID of the project that contains the first generation instance.
|
||||
# @param [String] instance
|
||||
# Cloud SQL instance ID. This does not include the project ID.
|
||||
# @param [String] parent
|
||||
# The parent resource where Cloud SQL starts this database instance
|
||||
# external sync. Format:
|
||||
# projects/`project`/locations/`location`/instances/`instance`
|
||||
# @param [String] sync_mode
|
||||
# External sync mode
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SqlV1beta4::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def start_project_instance_external_sync(project, instance, parent: nil, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options)
|
||||
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
||||
command.response_class = Google::Apis::SqlV1beta4::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['instance'] = instance unless instance.nil?
|
||||
command.query['parent'] = parent unless parent.nil?
|
||||
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Verify External master external sync settings.
|
||||
# @param [String] project
|
||||
# Project ID of the project that contains the instance.
|
||||
# @param [String] instance
|
||||
# Cloud SQL instance ID. This does not include the project ID.
|
||||
# @param [String] parent
|
||||
# The parent resource where Cloud SQL verifies this database instance
|
||||
# external sync settings. Format:
|
||||
# projects/`project`/locations/`location`/instances/`instance`
|
||||
# @param [String] sync_mode
|
||||
# External sync mode
|
||||
# @param [Boolean] verify_connection_only
|
||||
# Flag to enable verifying connection only
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def verify_project_instance_external_sync_settings(project, instance, parent: nil, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
|
||||
command.response_representation = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
|
||||
command.response_class = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['instance'] = instance unless instance.nil?
|
||||
command.query['parent'] = parent unless parent.nil?
|
||||
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
||||
command.query['verifyConnectionOnly'] = verify_connection_only unless verify_connection_only.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Reschedules the maintenance on the given instance.
|
||||
# @param [String] parent
|
||||
# The parent resource where Cloud SQL reshedule this database instance's
|
||||
@@ -1518,6 +1603,91 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Start External master migration.
|
||||
# @param [String] parent
|
||||
# The parent resource where Cloud SQL starts this database instance
|
||||
# external sync. Format:
|
||||
# projects/`project`/locations/`location`/instances/`instance`
|
||||
# @param [String] instance
|
||||
# Cloud SQL instance ID. This does not include the project ID.
|
||||
# @param [String] project
|
||||
# ID of the project that contains the first generation instance.
|
||||
# @param [String] sync_mode
|
||||
# External sync mode
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SqlV1beta4::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def start_project_location_instance_external_sync(parent, instance: nil, project: nil, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'sql/v1beta4/{+parent}/startExternalSync', options)
|
||||
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
||||
command.response_class = Google::Apis::SqlV1beta4::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['instance'] = instance unless instance.nil?
|
||||
command.query['project'] = project unless project.nil?
|
||||
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Verify External master external sync settings.
|
||||
# @param [String] parent
|
||||
# The parent resource where Cloud SQL verifies this database instance
|
||||
# external sync settings. Format:
|
||||
# projects/`project`/locations/`location`/instances/`instance`
|
||||
# @param [String] instance
|
||||
# Cloud SQL instance ID. This does not include the project ID.
|
||||
# @param [String] project
|
||||
# Project ID of the project that contains the instance.
|
||||
# @param [String] sync_mode
|
||||
# External sync mode
|
||||
# @param [Boolean] verify_connection_only
|
||||
# Flag to enable verifying connection only
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def verify_project_location_instance_external_sync_settings(parent, instance: nil, project: nil, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'sql/v1beta4/{+parent}/verifyExternalSyncSettings', options)
|
||||
command.response_representation = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
|
||||
command.response_class = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['instance'] = instance unless instance.nil?
|
||||
command.query['project'] = project unless project.nil?
|
||||
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
||||
command.query['verifyConnectionOnly'] = verify_connection_only unless verify_connection_only.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Generates a short-lived X509 certificate containing the provided public key
|
||||
# and signed by a private key specific to the target instance. Users may use
|
||||
# the certificate to authenticate as themselves when connecting to the
|
||||
|
||||
Reference in new issue
Block a user