From 17be7a706f0bc2339ae82acb6c9019f2edde6577 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 1 Mar 2020 00:37:45 +0000 Subject: [PATCH] Autogenerated update (2020-03-01) Update: - dataproc_v1beta2 - servicemanagement_v1 - spanner_v1 --- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 15 ++++++ .../apis/dataproc_v1beta2/representations.rb | 2 + generated/google/apis/servicemanagement_v1.rb | 2 +- generated/google/apis/spanner_v1.rb | 2 +- generated/google/apis/spanner_v1/classes.rb | 49 ++++++++++++++----- .../google/apis/spanner_v1/representations.rb | 15 ++++++ 7 files changed, 73 insertions(+), 14 deletions(-) diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index bc98a9f4f..0cf8efa59 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20200213' + REVISION = '20200220' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index 9a2637b6c..2847bd54d 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -1307,6 +1307,11 @@ module Google # @return [Fixnum] 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) update!(**args) end @@ -1322,6 +1327,7 @@ module Google @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) @num_instances = args[:num_instances] if args.key?(:num_instances) + @preemptibility = args[:preemptibility] if args.key?(:preemptibility) end end @@ -1375,6 +1381,14 @@ module Google class Job 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 # 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. @@ -1500,6 +1514,7 @@ module Google # Update properties of this object 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_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) diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 634f80aeb..51f2598db 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -775,6 +775,7 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' property :num_instances, as: 'numInstances' + property :preemptibility, as: 'preemptibility' end end @@ -791,6 +792,7 @@ module Google class Job # @private class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' property :driver_control_files_uri, as: 'driverControlFilesUri' property :driver_output_resource_uri, as: 'driverOutputResourceUri' property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1beta2::HadoopJob, decorator: Google::Apis::DataprocV1beta2::HadoopJob::Representation diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index b460dd1b2..ec262500a 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20200218' + REVISION = '20200221' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index 686fa4a11..e0b95f4af 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20200208' + REVISION = '20200224' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index 764f5f298..0b23703b2 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -1055,6 +1055,11 @@ module Google # @return [String] 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 # execution, `resume_token` should be copied from the last # PartialResultSet yielded before the interruption. Doing this @@ -1101,6 +1106,7 @@ module Google @params = args[:params] if args.key?(:params) @partition_token = args[:partition_token] if args.key?(:partition_token) @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) @seqno = args[:seqno] if args.key?(:seqno) @sql = args[:sql] if args.key?(:sql) @@ -1284,17 +1290,7 @@ module Google # @return [String] attr_accessor :display_name - # Output only. A set of endpoint URIs based on your instance config - # 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`. + # Deprecated. This field is not populated. # Corresponds to the JSON property `endpointUris` # @return [Array] attr_accessor :endpoint_uris @@ -2310,6 +2306,37 @@ module Google 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. class QueryPlan include Google::Apis::Core::Hashable diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb index 598632985..f31a8f8de 100644 --- a/generated/google/apis/spanner_v1/representations.rb +++ b/generated/google/apis/spanner_v1/representations.rb @@ -280,6 +280,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class QueryOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class QueryPlan class Representation < Google::Apis::Core::JsonRepresentation; end @@ -593,6 +599,8 @@ module Google hash :params, as: 'params' property :partition_token, :base64 => true, as: 'partitionToken' 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 :seqno, :numeric_string => true, as: 'seqno' property :sql, as: 'sql' @@ -860,6 +868,13 @@ module Google end end + class QueryOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :optimizer_version, as: 'optimizerVersion' + end + end + class QueryPlan # @private class Representation < Google::Apis::Core::JsonRepresentation