Autogenerated update (2019-12-17)
Update: - datacatalog_v1beta1 - docs_v1 - firebase_v1beta1 - remotebuildexecution_v1 - securitycenter_v1 - spanner_v1 - sql_v1beta4
This commit is contained in:
1 parent
5616b64afc
commit
10b70fa899
20 files changed
+474
-34
No files matched your search
@@ -38,7 +38,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# An optional label to identify this entry.
|
||||
# Optional. A label to identify this entry.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
@@ -454,7 +454,6 @@ module Google
|
||||
end
|
||||
|
||||
# A Cloud SQL instance resource.
|
||||
# If you change this, also change SqlDatabaseInstance
|
||||
class DatabaseInstance
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -1798,6 +1797,22 @@ module Google
|
||||
class OnPremisesConfiguration
|
||||
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
|
||||
|
||||
# PEM representation of the slave's x509 certificate.
|
||||
# Corresponds to the JSON property `clientCertificate`
|
||||
# @return [String]
|
||||
attr_accessor :client_certificate
|
||||
|
||||
# PEM representation of the slave's private key. The corresponsing public key
|
||||
# is encoded in the client's certificate.
|
||||
# Corresponds to the JSON property `clientKey`
|
||||
# @return [String]
|
||||
attr_accessor :client_key
|
||||
|
||||
# The host and port of the on-premises instance in host:port format
|
||||
# Corresponds to the JSON property `hostPort`
|
||||
# @return [String]
|
||||
@@ -1814,6 +1829,9 @@ module Google
|
||||
|
||||
# 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)
|
||||
@host_port = args[:host_port] if args.key?(:host_port)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
@@ -1889,7 +1907,8 @@ module Google
|
||||
attr_accessor :start_time
|
||||
|
||||
# The status of an operation. Valid values are <code>PENDING</code>,
|
||||
# <code>RUNNING</code>, <code>DONE</code>, <code>UNKNOWN</code>.
|
||||
# <code>RUNNING</code>, <code>DONE</code>,
|
||||
# <code>SQL_OPERATION_STATUS_UNSPECIFIED</code>.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
@@ -2063,6 +2082,32 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
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
|
||||
# reschedule_type=SPECIFIC_TIME.
|
||||
# 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
|
||||
|
||||
# Database instance restore from backup context.
|
||||
# Backup context contains source instance id and project id.
|
||||
class RestoreBackupContext
|
||||
@@ -2305,16 +2350,41 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# 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`
|
||||
# @return [Google::Apis::SqlV1beta4::Reschedule]
|
||||
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
|
||||
|
||||
# Any scheduled maintenancce for this instance.
|
||||
class SqlScheduledMaintenance
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the scheduled maintenance can be deferred.
|
||||
#
|
||||
# Corresponds to the JSON property `canDefer`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_defer
|
||||
alias_method :can_defer?, :can_defer
|
||||
|
||||
# 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
|
||||
|
||||
# The start time of any upcoming scheduled maintenance for this instance.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
@@ -2327,6 +2397,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_defer = args[:can_defer] if args.key?(:can_defer)
|
||||
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -316,6 +316,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Reschedule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RestoreBackupContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -334,6 +340,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SqlInstancesRescheduleMaintenanceRequestBody
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SqlScheduledMaintenance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -884,6 +896,9 @@ module Google
|
||||
class OnPremisesConfiguration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ca_certificate, as: 'caCertificate'
|
||||
property :client_certificate, as: 'clientCertificate'
|
||||
property :client_key, as: 'clientKey'
|
||||
property :host_port, as: 'hostPort'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
@@ -951,6 +966,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Reschedule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reschedule_type, as: 'rescheduleType'
|
||||
property :schedule_time, as: 'scheduleTime'
|
||||
end
|
||||
end
|
||||
|
||||
class RestoreBackupContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1000,10 +1023,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SqlInstancesRescheduleMaintenanceRequestBody
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reschedule, as: 'reschedule', class: Google::Apis::SqlV1beta4::Reschedule, decorator: Google::Apis::SqlV1beta4::Reschedule::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SqlScheduledMaintenance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_defer, as: 'canDefer'
|
||||
property :can_reschedule, as: 'canReschedule'
|
||||
property :start_time, as: 'startTime'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1422,6 +1422,88 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Reschedules the maintenance on the given instance.
|
||||
# @param [String] project
|
||||
# ID of the project that contains the instance.
|
||||
# @param [String] instance
|
||||
# Cloud SQL instance ID. This does not include the project ID.
|
||||
# @param [Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object
|
||||
# @param [String] parent
|
||||
# The parent resource where Cloud SQL reshedule this database instance's
|
||||
# maintenance. Format:
|
||||
# projects/`project`/locations/`location`/instances/`instance`
|
||||
# @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 reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance', options)
|
||||
command.request_representation = Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation
|
||||
command.request_object = sql_instances_reschedule_maintenance_request_body_object
|
||||
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['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
|
||||
# maintenance. Format:
|
||||
# projects/`project`/locations/`location`/instances/`instance`
|
||||
# @param [Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object
|
||||
# @param [String] instance
|
||||
# Cloud SQL instance ID. This does not include the project ID.
|
||||
# @param [String] project
|
||||
# ID of the project that contains the instance.
|
||||
# @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 reschedule_project_location_instance_maintenance(parent, sql_instances_reschedule_maintenance_request_body_object = nil, instance: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'sql/v1beta4/{+parent}/rescheduleMaintenance', options)
|
||||
command.request_representation = Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation
|
||||
command.request_object = sql_instances_reschedule_maintenance_request_body_object
|
||||
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['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
|
||||
@@ -1788,8 +1870,7 @@ module Google
|
||||
# Database instance ID. This does not include the project ID.
|
||||
# @param [Google::Apis::SqlV1beta4::User] user_object
|
||||
# @param [String] host
|
||||
# Host of the user in the instance. For a MySQL instance, it's required; For
|
||||
# a PostgreSQL instance, it's optional.
|
||||
# Optional. Host of the user in the instance.
|
||||
# @param [String] name
|
||||
# Name of the user in the instance.
|
||||
# @param [String] resource_name
|
||||
|
||||
Reference in new issue
Block a user