Autogenerated update (2020-01-18)

Update:
- accesscontextmanager_v1beta
- androidpublisher_v2
- androidpublisher_v3
- content_v2
- content_v2_1
- doubleclickbidmanager_v1_1
- firestore_v1
- firestore_v1beta1
- fitness_v1
- homegraph_v1
- jobs_v3
- jobs_v3p1beta1
- servicecontrol_v1
- sql_v1beta4
This commit is contained in:
Google APIs committed 2020-01-18 00:37:34 +00:00
1 parent abd177aded
commit 611cc4dc34
38 files changed
+932 -324

No files matched your search

+40 -1
View File
@@ -1080,6 +1080,12 @@ module Google
class Flag
include Google::Apis::Core::Hashable
# Use this field if only certain integers are accepted. Can be combined
# with min_value and max_value to add additional values.
# Corresponds to the JSON property `allowedIntValues`
# @return [Array<Fixnum>]
attr_accessor :allowed_int_values
# For <code>STRING</code> flags, a list of strings that the value can be set
# to.
# Corresponds to the JSON property `allowedStringValues`
@@ -1141,6 +1147,7 @@ module Google
# Update properties of this object
def update!(**args)
@allowed_int_values = args[:allowed_int_values] if args.key?(:allowed_int_values)
@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)
@@ -1437,7 +1444,7 @@ module Google
# @return [String]
attr_accessor :next_page_token
# List of warnings that ocurred while handling the request.
# List of warnings that occurred while handling the request.
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::SqlV1beta4::ApiWarning>]
attr_accessor :warnings
@@ -2427,6 +2434,32 @@ module Google
end
end
# 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
# SslCerts Resource
class SslCert
include Google::Apis::Core::Hashable
@@ -2770,6 +2803,11 @@ module Google
# @return [String]
attr_accessor :project
# Represents a Sql Server user on the Cloud SQL instance.
# Corresponds to the JSON property `sqlserverUserDetails`
# @return [Google::Apis::SqlV1beta4::SqlServerUserDetails]
attr_accessor :sqlserver_user_details
def initialize(**args)
update!(**args)
end
@@ -2783,6 +2821,7 @@ module Google
@name = args[:name] if args.key?(:name)
@password = args[:password] if args.key?(:password)
@project = args[:project] if args.key?(:project)
@sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
end
end
@@ -358,6 +358,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SqlServerUserDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslCert
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -690,6 +696,7 @@ module Google
class Flag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_int_values, as: 'allowedIntValues'
collection :allowed_string_values, as: 'allowedStringValues'
collection :applies_to, as: 'appliesTo'
property :in_beta, as: 'inBeta'
@@ -1048,6 +1055,14 @@ module Google
end
end
class SqlServerUserDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
collection :server_roles, as: 'serverRoles'
end
end
class SslCert
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1146,6 +1161,8 @@ module Google
property :name, as: 'name'
property :password, as: 'password'
property :project, as: 'project'
property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqlV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqlV1beta4::SqlServerUserDetails::Representation
end
end
+20 -9
View File
@@ -384,6 +384,12 @@ module Google
# Partially updates a resource containing information about a database inside
# a Cloud SQL instance. This method supports patch semantics.
# <aside
# class="caution"><strong>Caution:</strong> This is not a partial update, so
# you must include values for all the settings that you want to retain. For
# partial updates, use <a
# href="/sql/docs/db_path/admin-api/rest/v1beta4/instances/update">update</a>.</
# aside>
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance
@@ -867,13 +873,22 @@ module Google
# @param [String] project
# Project ID of the project for which to list Cloud SQL instances.
# @param [String] filter
# An expression for filtering the results of the request, such as by name or
# label.
# A filter expression that filters resources listed in the response.
# The expression is in the form of field:value. For example,
# 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per
# their JSON representation, such as 'settings.userLabels.auto_start:true'.
# Multiple filter queries are space-separated. For example.
# 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each
# expression is an AND expression. However, you can include AND and OR
# expressions explicitly.
# @param [Fixnum] max_results
# The maximum number of results to return per response.
# @param [String] page_token
# A previously-returned page token representing part of the larger set of
# results to view.
# @param [String] parent
# The parent, which owns this collection of database instances.
# Format: projects/`project`/locations/`location`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -891,7 +906,7 @@ module Google
# @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 list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_instances(project, filter: nil, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances', options)
command.response_representation = Google::Apis::SqlV1beta4::InstancesListResponse::Representation
command.response_class = Google::Apis::SqlV1beta4::InstancesListResponse
@@ -899,6 +914,7 @@ module Google
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.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)
@@ -1296,12 +1312,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates settings of a Cloud SQL instance. <aside
# class="caution"><strong>Caution:</strong> This is not a partial update, so
# you must include values for all the settings that you want to retain. For
# partial updates, use <a
# href="/sql/docs/db_path/admin-api/rest/v1beta4/instances/patch">patch</a>.</
# aside>
# Updates settings of a Cloud SQL instance.
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] instance