Autogenerated update (2020-03-01)

Update:
- dataproc_v1beta2
- servicemanagement_v1
- spanner_v1
This commit is contained in:
Google APIs 2020-03-01 00:37:45 +00:00
parent a015e1e9e9
commit 17be7a706f
7 changed files with 73 additions and 14 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1beta2 module DataprocV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20200213' REVISION = '20200220'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1307,6 +1307,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :num_instances attr_accessor :num_instances
# Optional. Specifies the preemptibility of the instance group.
# Corresponds to the JSON property `preemptibility`
# @return [String]
attr_accessor :preemptibility
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1322,6 +1327,7 @@ module Google
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@num_instances = args[:num_instances] if args.key?(:num_instances) @num_instances = args[:num_instances] if args.key?(:num_instances)
@preemptibility = args[:preemptibility] if args.key?(:preemptibility)
end end
end end
@ -1375,6 +1381,14 @@ module Google
class Job class Job
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. Indicates whether the job is completed. If the value is false,
# the job is still in progress. If true, the job is completed, and status.state
# field will indicate if it was successful, failed, or cancelled.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# Output only. If present, the location of miscellaneous control files which may # Output only. If present, the location of miscellaneous control files which may
# be used as part of job setup and handling. If not present, control files may # be used as part of job setup and handling. If not present, control files may
# be placed in the same location as driver_output_uri. # be placed in the same location as driver_output_uri.
@ -1500,6 +1514,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@done = args[:done] if args.key?(:done)
@driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri) @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri) @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job) @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)

View File

@ -775,6 +775,7 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform' property :min_cpu_platform, as: 'minCpuPlatform'
property :num_instances, as: 'numInstances' property :num_instances, as: 'numInstances'
property :preemptibility, as: 'preemptibility'
end end
end end
@ -791,6 +792,7 @@ module Google
class Job class Job
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :driver_control_files_uri, as: 'driverControlFilesUri' property :driver_control_files_uri, as: 'driverControlFilesUri'
property :driver_output_resource_uri, as: 'driverOutputResourceUri' property :driver_output_resource_uri, as: 'driverOutputResourceUri'
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1beta2::HadoopJob, decorator: Google::Apis::DataprocV1beta2::HadoopJob::Representation property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1beta2::HadoopJob, decorator: Google::Apis::DataprocV1beta2::HadoopJob::Representation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/ # @see https://cloud.google.com/service-management/
module ServicemanagementV1 module ServicemanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200218' REVISION = '20200221'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/ # @see https://cloud.google.com/spanner/
module SpannerV1 module SpannerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200208' REVISION = '20200224'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1055,6 +1055,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :query_mode attr_accessor :query_mode
# Query optimizer configuration.
# Corresponds to the JSON property `queryOptions`
# @return [Google::Apis::SpannerV1::QueryOptions]
attr_accessor :query_options
# If this request is resuming a previously interrupted SQL statement # If this request is resuming a previously interrupted SQL statement
# execution, `resume_token` should be copied from the last # execution, `resume_token` should be copied from the last
# PartialResultSet yielded before the interruption. Doing this # PartialResultSet yielded before the interruption. Doing this
@ -1101,6 +1106,7 @@ module Google
@params = args[:params] if args.key?(:params) @params = args[:params] if args.key?(:params)
@partition_token = args[:partition_token] if args.key?(:partition_token) @partition_token = args[:partition_token] if args.key?(:partition_token)
@query_mode = args[:query_mode] if args.key?(:query_mode) @query_mode = args[:query_mode] if args.key?(:query_mode)
@query_options = args[:query_options] if args.key?(:query_options)
@resume_token = args[:resume_token] if args.key?(:resume_token) @resume_token = args[:resume_token] if args.key?(:resume_token)
@seqno = args[:seqno] if args.key?(:seqno) @seqno = args[:seqno] if args.key?(:seqno)
@sql = args[:sql] if args.key?(:sql) @sql = args[:sql] if args.key?(:sql)
@ -1284,17 +1290,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Output only. A set of endpoint URIs based on your instance config # Deprecated. This field is not populated.
# that you can use instead of the global endpoint `spanner.googleapis.com`.
# For example, if your instance config is `us-central1` (a regional config
# in Iowa), then your instance specific endpoints may include
# `us-central1-spanner.googleapis.com`. By calling these endpoints instead of
# the global endpoint, you optimize network routing which could reduce
# network latency.
# The client libraries, JDBC drivers, and other SDK clients automatically
# call these instance specific endpoints.
# If you are using DNS whitelists, firewalls, or filtering to control access
# to endpoints, make sure you grant access to `*spanner.googleapis.com`.
# Corresponds to the JSON property `endpointUris` # Corresponds to the JSON property `endpointUris`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :endpoint_uris attr_accessor :endpoint_uris
@ -2310,6 +2306,37 @@ module Google
end end
end end
# Query optimizer configuration.
class QueryOptions
include Google::Apis::Core::Hashable
# An option to control the selection of optimizer version.
# This parameter allows individual queries to pick different query
# optimizer versions.
# Specifying "latest" as a value instructs Cloud Spanner to use the
# latest supported query optimizer version. If not specified, Cloud Spanner
# uses optimizer version set at the database level options. Any other
# positive integer (from the list of supported optimizer versions)
# overrides the default optimizer version for query execution.
# The list of supported optimizer versions can be queried from
# SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement
# with an invalid optimizer version will fail with a syntax error
# (`INVALID_ARGUMENT`) status.
# The `optimizer_version` statement hint has precedence over this setting.
# Corresponds to the JSON property `optimizerVersion`
# @return [String]
attr_accessor :optimizer_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@optimizer_version = args[:optimizer_version] if args.key?(:optimizer_version)
end
end
# Contains an ordered list of nodes appearing in the query plan. # Contains an ordered list of nodes appearing in the query plan.
class QueryPlan class QueryPlan
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -280,6 +280,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class QueryOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryPlan class QueryPlan
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -593,6 +599,8 @@ module Google
hash :params, as: 'params' hash :params, as: 'params'
property :partition_token, :base64 => true, as: 'partitionToken' property :partition_token, :base64 => true, as: 'partitionToken'
property :query_mode, as: 'queryMode' property :query_mode, as: 'queryMode'
property :query_options, as: 'queryOptions', class: Google::Apis::SpannerV1::QueryOptions, decorator: Google::Apis::SpannerV1::QueryOptions::Representation
property :resume_token, :base64 => true, as: 'resumeToken' property :resume_token, :base64 => true, as: 'resumeToken'
property :seqno, :numeric_string => true, as: 'seqno' property :seqno, :numeric_string => true, as: 'seqno'
property :sql, as: 'sql' property :sql, as: 'sql'
@ -860,6 +868,13 @@ module Google
end end
end end
class QueryOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :optimizer_version, as: 'optimizerVersion'
end
end
class QueryPlan class QueryPlan
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation