generated/google/apis/spanner_v1/classes.rb in google-api-client-0.37.1 vs generated/google/apis/spanner_v1/classes.rb in google-api-client-0.37.2

- old
+ new

@@ -1053,10 +1053,15 @@ # be set to QueryMode.NORMAL. # Corresponds to the JSON property `queryMode` # @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 # enables the new SQL statement execution to resume where the last one left # off. The rest of the request parameters must exactly match the @@ -1099,10 +1104,11 @@ def update!(**args) @param_types = args[:param_types] if args.key?(:param_types) @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) @transaction = args[:transaction] if args.key?(:transaction) end @@ -1282,21 +1288,11 @@ # Must be unique per project and between 4 and 30 characters in length. # Corresponds to the JSON property `displayName` # @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<String>] attr_accessor :endpoint_uris # Cloud Labels are a flexible and lightweight mechanism for organizing cloud @@ -2305,9 +2301,40 @@ # Update properties of this object def update!(**args) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) @version = args[:version] if args.key?(:version) + 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