google-cloud-spanner-v1 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 6fba6f09fa77e45b73c0fbc08dd22c14a136a70809e998c971d94607189209e5
         | 
| 4 | 
            +
              data.tar.gz: 0523b6fd8ec3ce8faf66afb5e258f0c00e21fb34f09c0e436695a24967f85a1a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5d3ab71a7be71babeeb5244d091253cc100d0a51b3b8442106dbfb9d13d9adb4cdff91e5606a4a2d354e024c9df6e636ae69f67016cca5b70928caf3965b31e1
         | 
| 7 | 
            +
              data.tar.gz: 6cb8b0f889e2a422df8b3faef5f20dc7949df73d3cef904b7fd96643efe6dd9692b9fec96073c80de375c4abf4be63c416628a83267f9411a4bf73c2e2f8ea1d
         | 
| @@ -668,7 +668,7 @@ module Google | |
| 668 668 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 669 669 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 670 670 | 
             
                        #
         | 
| 671 | 
            -
                        # @overload execute_sql(session: nil, transaction: nil, sql: nil, params: nil, param_types: nil, resume_token: nil, query_mode: nil, partition_token: nil, seqno: nil, query_options: nil)
         | 
| 671 | 
            +
                        # @overload execute_sql(session: nil, transaction: nil, sql: nil, params: nil, param_types: nil, resume_token: nil, query_mode: nil, partition_token: nil, seqno: nil, query_options: nil, request_options: nil)
         | 
| 672 672 | 
             
                        #   Pass arguments to `execute_sql` via keyword arguments. Note that at
         | 
| 673 673 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 674 674 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -740,6 +740,8 @@ module Google | |
| 740 740 | 
             
                        #     Required for DML statements. Ignored for queries.
         | 
| 741 741 | 
             
                        #   @param query_options [::Google::Cloud::Spanner::V1::ExecuteSqlRequest::QueryOptions, ::Hash]
         | 
| 742 742 | 
             
                        #     Query optimizer configuration to use for the given query.
         | 
| 743 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 744 | 
            +
                        #     Common options for this request.
         | 
| 743 745 | 
             
                        #
         | 
| 744 746 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 745 747 | 
             
                        # @yieldparam response [::Google::Cloud::Spanner::V1::ResultSet]
         | 
| @@ -803,7 +805,7 @@ module Google | |
| 803 805 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 804 806 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 805 807 | 
             
                        #
         | 
| 806 | 
            -
                        # @overload execute_streaming_sql(session: nil, transaction: nil, sql: nil, params: nil, param_types: nil, resume_token: nil, query_mode: nil, partition_token: nil, seqno: nil, query_options: nil)
         | 
| 808 | 
            +
                        # @overload execute_streaming_sql(session: nil, transaction: nil, sql: nil, params: nil, param_types: nil, resume_token: nil, query_mode: nil, partition_token: nil, seqno: nil, query_options: nil, request_options: nil)
         | 
| 807 809 | 
             
                        #   Pass arguments to `execute_streaming_sql` via keyword arguments. Note that at
         | 
| 808 810 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 809 811 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -875,6 +877,8 @@ module Google | |
| 875 877 | 
             
                        #     Required for DML statements. Ignored for queries.
         | 
| 876 878 | 
             
                        #   @param query_options [::Google::Cloud::Spanner::V1::ExecuteSqlRequest::QueryOptions, ::Hash]
         | 
| 877 879 | 
             
                        #     Query optimizer configuration to use for the given query.
         | 
| 880 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 881 | 
            +
                        #     Common options for this request.
         | 
| 878 882 | 
             
                        #
         | 
| 879 883 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 880 884 | 
             
                        # @yieldparam response [::Enumerable<::Google::Cloud::Spanner::V1::PartialResultSet>]
         | 
| @@ -944,7 +948,7 @@ module Google | |
| 944 948 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 945 949 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 946 950 | 
             
                        #
         | 
| 947 | 
            -
                        # @overload execute_batch_dml(session: nil, transaction: nil, statements: nil, seqno: nil)
         | 
| 951 | 
            +
                        # @overload execute_batch_dml(session: nil, transaction: nil, statements: nil, seqno: nil, request_options: nil)
         | 
| 948 952 | 
             
                        #   Pass arguments to `execute_batch_dml` via keyword arguments. Note that at
         | 
| 949 953 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 950 954 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -973,6 +977,8 @@ module Google | |
| 973 977 | 
             
                        #     transaction. If a request arrives for the first time with an out-of-order
         | 
| 974 978 | 
             
                        #     sequence number, the transaction may be aborted. Replays of previously
         | 
| 975 979 | 
             
                        #     handled requests will yield the same response as the first execution.
         | 
| 980 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 981 | 
            +
                        #     Common options for this request.
         | 
| 976 982 | 
             
                        #
         | 
| 977 983 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 978 984 | 
             
                        # @yieldparam response [::Google::Cloud::Spanner::V1::ExecuteBatchDmlResponse]
         | 
| @@ -1044,7 +1050,7 @@ module Google | |
| 1044 1050 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1045 1051 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1046 1052 | 
             
                        #
         | 
| 1047 | 
            -
                        # @overload read(session: nil, transaction: nil, table: nil, index: nil, columns: nil, key_set: nil, limit: nil, resume_token: nil, partition_token: nil)
         | 
| 1053 | 
            +
                        # @overload read(session: nil, transaction: nil, table: nil, index: nil, columns: nil, key_set: nil, limit: nil, resume_token: nil, partition_token: nil, request_options: nil)
         | 
| 1048 1054 | 
             
                        #   Pass arguments to `read` via keyword arguments. Note that at
         | 
| 1049 1055 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1050 1056 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -1092,6 +1098,8 @@ module Google | |
| 1092 1098 | 
             
                        #     previously created using PartitionRead().    There must be an exact
         | 
| 1093 1099 | 
             
                        #     match for the values of fields common to this message and the
         | 
| 1094 1100 | 
             
                        #     PartitionReadRequest message used to create this partition_token.
         | 
| 1101 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 1102 | 
            +
                        #     Common options for this request.
         | 
| 1095 1103 | 
             
                        #
         | 
| 1096 1104 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1097 1105 | 
             
                        # @yieldparam response [::Google::Cloud::Spanner::V1::ResultSet]
         | 
| @@ -1155,7 +1163,7 @@ module Google | |
| 1155 1163 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1156 1164 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1157 1165 | 
             
                        #
         | 
| 1158 | 
            -
                        # @overload streaming_read(session: nil, transaction: nil, table: nil, index: nil, columns: nil, key_set: nil, limit: nil, resume_token: nil, partition_token: nil)
         | 
| 1166 | 
            +
                        # @overload streaming_read(session: nil, transaction: nil, table: nil, index: nil, columns: nil, key_set: nil, limit: nil, resume_token: nil, partition_token: nil, request_options: nil)
         | 
| 1159 1167 | 
             
                        #   Pass arguments to `streaming_read` via keyword arguments. Note that at
         | 
| 1160 1168 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1161 1169 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -1203,6 +1211,8 @@ module Google | |
| 1203 1211 | 
             
                        #     previously created using PartitionRead().    There must be an exact
         | 
| 1204 1212 | 
             
                        #     match for the values of fields common to this message and the
         | 
| 1205 1213 | 
             
                        #     PartitionReadRequest message used to create this partition_token.
         | 
| 1214 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 1215 | 
            +
                        #     Common options for this request.
         | 
| 1206 1216 | 
             
                        #
         | 
| 1207 1217 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1208 1218 | 
             
                        # @yieldparam response [::Enumerable<::Google::Cloud::Spanner::V1::PartialResultSet>]
         | 
| @@ -1265,7 +1275,7 @@ module Google | |
| 1265 1275 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1266 1276 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1267 1277 | 
             
                        #
         | 
| 1268 | 
            -
                        # @overload begin_transaction(session: nil, options: nil)
         | 
| 1278 | 
            +
                        # @overload begin_transaction(session: nil, options: nil, request_options: nil)
         | 
| 1269 1279 | 
             
                        #   Pass arguments to `begin_transaction` via keyword arguments. Note that at
         | 
| 1270 1280 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1271 1281 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -1274,6 +1284,12 @@ module Google | |
| 1274 1284 | 
             
                        #     Required. The session in which the transaction runs.
         | 
| 1275 1285 | 
             
                        #   @param options [::Google::Cloud::Spanner::V1::TransactionOptions, ::Hash]
         | 
| 1276 1286 | 
             
                        #     Required. Options for the new transaction.
         | 
| 1287 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 1288 | 
            +
                        #     Common options for this request.
         | 
| 1289 | 
            +
                        #     Priority is ignored for this request. Setting the priority in this
         | 
| 1290 | 
            +
                        #     request_options struct will not do anything. To set the priority for a
         | 
| 1291 | 
            +
                        #     transaction, set it on the reads and writes that are part of this
         | 
| 1292 | 
            +
                        #     transaction instead.
         | 
| 1277 1293 | 
             
                        #
         | 
| 1278 1294 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1279 1295 | 
             
                        # @yieldparam response [::Google::Cloud::Spanner::V1::Transaction]
         | 
| @@ -1346,7 +1362,7 @@ module Google | |
| 1346 1362 | 
             
                        #   @param options [::Gapic::CallOptions, ::Hash]
         | 
| 1347 1363 | 
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         | 
| 1348 1364 | 
             
                        #
         | 
| 1349 | 
            -
                        # @overload commit(session: nil, transaction_id: nil, single_use_transaction: nil, mutations: nil, return_commit_stats: nil)
         | 
| 1365 | 
            +
                        # @overload commit(session: nil, transaction_id: nil, single_use_transaction: nil, mutations: nil, return_commit_stats: nil, request_options: nil)
         | 
| 1350 1366 | 
             
                        #   Pass arguments to `commit` via keyword arguments. Note that at
         | 
| 1351 1367 | 
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         | 
| 1352 1368 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| @@ -1373,6 +1389,8 @@ module Google | |
| 1373 1389 | 
             
                        #     If `true`, then statistics related to the transaction will be included in
         | 
| 1374 1390 | 
             
                        #     the {::Google::Cloud::Spanner::V1::CommitResponse#commit_stats CommitResponse}. Default value is
         | 
| 1375 1391 | 
             
                        #     `false`.
         | 
| 1392 | 
            +
                        #   @param request_options [::Google::Cloud::Spanner::V1::RequestOptions, ::Hash]
         | 
| 1393 | 
            +
                        #     Common options for this request.
         | 
| 1376 1394 | 
             
                        #
         | 
| 1377 1395 | 
             
                        # @yield [response, operation] Access the result along with the RPC operation
         | 
| 1378 1396 | 
             
                        # @yieldparam response [::Google::Cloud::Spanner::V1::CommitResponse]
         | 
| @@ -53,6 +53,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do | |
| 53 53 | 
             
                add_message "google.spanner.v1.DeleteSessionRequest" do
         | 
| 54 54 | 
             
                  optional :name, :string, 1
         | 
| 55 55 | 
             
                end
         | 
| 56 | 
            +
                add_message "google.spanner.v1.RequestOptions" do
         | 
| 57 | 
            +
                  optional :priority, :enum, 1, "google.spanner.v1.RequestOptions.Priority"
         | 
| 58 | 
            +
                  optional :request_tag, :string, 2
         | 
| 59 | 
            +
                  optional :transaction_tag, :string, 3
         | 
| 60 | 
            +
                end
         | 
| 61 | 
            +
                add_enum "google.spanner.v1.RequestOptions.Priority" do
         | 
| 62 | 
            +
                  value :PRIORITY_UNSPECIFIED, 0
         | 
| 63 | 
            +
                  value :PRIORITY_LOW, 1
         | 
| 64 | 
            +
                  value :PRIORITY_MEDIUM, 2
         | 
| 65 | 
            +
                  value :PRIORITY_HIGH, 3
         | 
| 66 | 
            +
                end
         | 
| 56 67 | 
             
                add_message "google.spanner.v1.ExecuteSqlRequest" do
         | 
| 57 68 | 
             
                  optional :session, :string, 1
         | 
| 58 69 | 
             
                  optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
         | 
| @@ -64,6 +75,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do | |
| 64 75 | 
             
                  optional :partition_token, :bytes, 8
         | 
| 65 76 | 
             
                  optional :seqno, :int64, 9
         | 
| 66 77 | 
             
                  optional :query_options, :message, 10, "google.spanner.v1.ExecuteSqlRequest.QueryOptions"
         | 
| 78 | 
            +
                  optional :request_options, :message, 11, "google.spanner.v1.RequestOptions"
         | 
| 67 79 | 
             
                end
         | 
| 68 80 | 
             
                add_message "google.spanner.v1.ExecuteSqlRequest.QueryOptions" do
         | 
| 69 81 | 
             
                  optional :optimizer_version, :string, 1
         | 
| @@ -79,6 +91,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do | |
| 79 91 | 
             
                  optional :transaction, :message, 2, "google.spanner.v1.TransactionSelector"
         | 
| 80 92 | 
             
                  repeated :statements, :message, 3, "google.spanner.v1.ExecuteBatchDmlRequest.Statement"
         | 
| 81 93 | 
             
                  optional :seqno, :int64, 4
         | 
| 94 | 
            +
                  optional :request_options, :message, 5, "google.spanner.v1.RequestOptions"
         | 
| 82 95 | 
             
                end
         | 
| 83 96 | 
             
                add_message "google.spanner.v1.ExecuteBatchDmlRequest.Statement" do
         | 
| 84 97 | 
             
                  optional :sql, :string, 1
         | 
| @@ -127,15 +140,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do | |
| 127 140 | 
             
                  optional :limit, :int64, 8
         | 
| 128 141 | 
             
                  optional :resume_token, :bytes, 9
         | 
| 129 142 | 
             
                  optional :partition_token, :bytes, 10
         | 
| 143 | 
            +
                  optional :request_options, :message, 11, "google.spanner.v1.RequestOptions"
         | 
| 130 144 | 
             
                end
         | 
| 131 145 | 
             
                add_message "google.spanner.v1.BeginTransactionRequest" do
         | 
| 132 146 | 
             
                  optional :session, :string, 1
         | 
| 133 147 | 
             
                  optional :options, :message, 2, "google.spanner.v1.TransactionOptions"
         | 
| 148 | 
            +
                  optional :request_options, :message, 3, "google.spanner.v1.RequestOptions"
         | 
| 134 149 | 
             
                end
         | 
| 135 150 | 
             
                add_message "google.spanner.v1.CommitRequest" do
         | 
| 136 151 | 
             
                  optional :session, :string, 1
         | 
| 137 152 | 
             
                  repeated :mutations, :message, 4, "google.spanner.v1.Mutation"
         | 
| 138 153 | 
             
                  optional :return_commit_stats, :bool, 5
         | 
| 154 | 
            +
                  optional :request_options, :message, 6, "google.spanner.v1.RequestOptions"
         | 
| 139 155 | 
             
                  oneof :transaction do
         | 
| 140 156 | 
             
                    optional :transaction_id, :bytes, 2
         | 
| 141 157 | 
             
                    optional :single_use_transaction, :message, 3, "google.spanner.v1.TransactionOptions"
         | 
| @@ -167,6 +183,8 @@ module Google | |
| 167 183 | 
             
                    ListSessionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ListSessionsRequest").msgclass
         | 
| 168 184 | 
             
                    ListSessionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ListSessionsResponse").msgclass
         | 
| 169 185 | 
             
                    DeleteSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.DeleteSessionRequest").msgclass
         | 
| 186 | 
            +
                    RequestOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.RequestOptions").msgclass
         | 
| 187 | 
            +
                    RequestOptions::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.RequestOptions.Priority").enummodule
         | 
| 170 188 | 
             
                    ExecuteSqlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest").msgclass
         | 
| 171 189 | 
             
                    ExecuteSqlRequest::QueryOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest.QueryOptions").msgclass
         | 
| 172 190 | 
             
                    ExecuteSqlRequest::QueryMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest.QueryMode").enummodule
         | 
| @@ -159,6 +159,66 @@ module Google | |
| 159 159 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 160 160 | 
             
                    end
         | 
| 161 161 |  | 
| 162 | 
            +
                    # Common request options for various APIs.
         | 
| 163 | 
            +
                    # @!attribute [rw] priority
         | 
| 164 | 
            +
                    #   @return [::Google::Cloud::Spanner::V1::RequestOptions::Priority]
         | 
| 165 | 
            +
                    #     Priority for the request.
         | 
| 166 | 
            +
                    # @!attribute [rw] request_tag
         | 
| 167 | 
            +
                    #   @return [::String]
         | 
| 168 | 
            +
                    #     A per-request tag which can be applied to queries or reads, used for
         | 
| 169 | 
            +
                    #     statistics collection.
         | 
| 170 | 
            +
                    #     Both request_tag and transaction_tag can be specified for a read or query
         | 
| 171 | 
            +
                    #     that belongs to a transaction.
         | 
| 172 | 
            +
                    #     This field is ignored for requests where it's not applicable (e.g.
         | 
| 173 | 
            +
                    #     CommitRequest).
         | 
| 174 | 
            +
                    #     `request_tag` must be a valid identifier of the form:
         | 
| 175 | 
            +
                    #     `[a-zA-Z][a-zA-Z0-9_\-]` between 2 and 64 characters in length
         | 
| 176 | 
            +
                    # @!attribute [rw] transaction_tag
         | 
| 177 | 
            +
                    #   @return [::String]
         | 
| 178 | 
            +
                    #     A tag used for statistics collection about this transaction.
         | 
| 179 | 
            +
                    #     Both request_tag and transaction_tag can be specified for a read or query
         | 
| 180 | 
            +
                    #     that belongs to a transaction.
         | 
| 181 | 
            +
                    #     The value of transaction_tag should be the same for all requests belonging
         | 
| 182 | 
            +
                    #     to the same transaction.
         | 
| 183 | 
            +
                    #     If this request doesn’t belong to any transaction, transaction_tag will be
         | 
| 184 | 
            +
                    #     ignored.
         | 
| 185 | 
            +
                    #     `transaction_tag` must be a valid identifier of the format:
         | 
| 186 | 
            +
                    #     `[a-zA-Z][a-zA-Z0-9_\-]{0,49}`
         | 
| 187 | 
            +
                    class RequestOptions
         | 
| 188 | 
            +
                      include ::Google::Protobuf::MessageExts
         | 
| 189 | 
            +
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 190 | 
            +
             | 
| 191 | 
            +
                      # The relative priority for requests. Note that priority is not applicable
         | 
| 192 | 
            +
                      # for {::Google::Cloud::Spanner::V1::Spanner::Client#begin_transaction BeginTransaction}.
         | 
| 193 | 
            +
                      #
         | 
| 194 | 
            +
                      # The priority acts as a hint to the Cloud Spanner scheduler and does not
         | 
| 195 | 
            +
                      # guarantee priority or order of execution. For example:
         | 
| 196 | 
            +
                      #
         | 
| 197 | 
            +
                      # * Some parts of a write operation always execute at `PRIORITY_HIGH`,
         | 
| 198 | 
            +
                      #   regardless of the specified priority. This may cause you to see an
         | 
| 199 | 
            +
                      #   increase in high priority workload even when executing a low priority
         | 
| 200 | 
            +
                      #   request. This can also potentially cause a priority inversion where a
         | 
| 201 | 
            +
                      #   lower priority request will be fulfilled ahead of a higher priority
         | 
| 202 | 
            +
                      #   request.
         | 
| 203 | 
            +
                      # * If a transaction contains multiple operations with different priorities,
         | 
| 204 | 
            +
                      #   Cloud Spanner does not guarantee to process the higher priority
         | 
| 205 | 
            +
                      #   operations first. There may be other constraints to satisfy, such as
         | 
| 206 | 
            +
                      #   order of operations.
         | 
| 207 | 
            +
                      module Priority
         | 
| 208 | 
            +
                        # `PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
         | 
| 209 | 
            +
                        PRIORITY_UNSPECIFIED = 0
         | 
| 210 | 
            +
             | 
| 211 | 
            +
                        # This specifies that the request is low priority.
         | 
| 212 | 
            +
                        PRIORITY_LOW = 1
         | 
| 213 | 
            +
             | 
| 214 | 
            +
                        # This specifies that the request is medium priority.
         | 
| 215 | 
            +
                        PRIORITY_MEDIUM = 2
         | 
| 216 | 
            +
             | 
| 217 | 
            +
                        # This specifies that the request is high priority.
         | 
| 218 | 
            +
                        PRIORITY_HIGH = 3
         | 
| 219 | 
            +
                      end
         | 
| 220 | 
            +
                    end
         | 
| 221 | 
            +
             | 
| 162 222 | 
             
                    # The request for {::Google::Cloud::Spanner::V1::Spanner::Client#execute_sql ExecuteSql} and
         | 
| 163 223 | 
             
                    # {::Google::Cloud::Spanner::V1::Spanner::Client#execute_streaming_sql ExecuteStreamingSql}.
         | 
| 164 224 | 
             
                    # @!attribute [rw] session
         | 
| @@ -238,6 +298,9 @@ module Google | |
| 238 298 | 
             
                    # @!attribute [rw] query_options
         | 
| 239 299 | 
             
                    #   @return [::Google::Cloud::Spanner::V1::ExecuteSqlRequest::QueryOptions]
         | 
| 240 300 | 
             
                    #     Query optimizer configuration to use for the given query.
         | 
| 301 | 
            +
                    # @!attribute [rw] request_options
         | 
| 302 | 
            +
                    #   @return [::Google::Cloud::Spanner::V1::RequestOptions]
         | 
| 303 | 
            +
                    #     Common options for this request.
         | 
| 241 304 | 
             
                    class ExecuteSqlRequest
         | 
| 242 305 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 243 306 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -269,15 +332,15 @@ module Google | |
| 269 332 | 
             
                      #     The `optimizer_version` statement hint has precedence over this setting.
         | 
| 270 333 | 
             
                      # @!attribute [rw] optimizer_statistics_package
         | 
| 271 334 | 
             
                      #   @return [::String]
         | 
| 272 | 
            -
                      #      | 
| 335 | 
            +
                      #     An option to control the selection of optimizer statistics package.
         | 
| 273 336 | 
             
                      #
         | 
| 274 337 | 
             
                      #     This parameter allows individual queries to use a different query
         | 
| 275 | 
            -
                      #     optimizer statistics.
         | 
| 338 | 
            +
                      #     optimizer statistics package.
         | 
| 276 339 | 
             
                      #
         | 
| 277 340 | 
             
                      #     Specifying `latest` as a value instructs Cloud Spanner to use the latest
         | 
| 278 341 | 
             
                      #     generated statistics package. If not specified, Cloud Spanner uses
         | 
| 279 | 
            -
                      #     statistics package set at the database level options, or latest | 
| 280 | 
            -
                      #     the database option is not set.
         | 
| 342 | 
            +
                      #     the statistics package set at the database level options, or the latest
         | 
| 343 | 
            +
                      #     package if the database option is not set.
         | 
| 281 344 | 
             
                      #
         | 
| 282 345 | 
             
                      #     The statistics package requested by the query has to be exempt from
         | 
| 283 346 | 
             
                      #     garbage collection. This can be achieved with the following DDL
         | 
| @@ -288,10 +351,10 @@ module Google | |
| 288 351 | 
             
                      #     ```
         | 
| 289 352 | 
             
                      #
         | 
| 290 353 | 
             
                      #     The list of available statistics packages can be queried from
         | 
| 291 | 
            -
                      #     ` | 
| 354 | 
            +
                      #     `INFORMATION_SCHEMA.SPANNER_STATISTICS`.
         | 
| 292 355 | 
             
                      #
         | 
| 293 356 | 
             
                      #     Executing a SQL statement with an invalid optimizer statistics package
         | 
| 294 | 
            -
                      #     or with statistics package that allows garbage collection fails with
         | 
| 357 | 
            +
                      #     or with a statistics package that allows garbage collection fails with
         | 
| 295 358 | 
             
                      #     an `INVALID_ARGUMENT` error.
         | 
| 296 359 | 
             
                      class QueryOptions
         | 
| 297 360 | 
             
                        include ::Google::Protobuf::MessageExts
         | 
| @@ -351,6 +414,9 @@ module Google | |
| 351 414 | 
             
                    #     transaction. If a request arrives for the first time with an out-of-order
         | 
| 352 415 | 
             
                    #     sequence number, the transaction may be aborted. Replays of previously
         | 
| 353 416 | 
             
                    #     handled requests will yield the same response as the first execution.
         | 
| 417 | 
            +
                    # @!attribute [rw] request_options
         | 
| 418 | 
            +
                    #   @return [::Google::Cloud::Spanner::V1::RequestOptions]
         | 
| 419 | 
            +
                    #     Common options for this request.
         | 
| 354 420 | 
             
                    class ExecuteBatchDmlRequest
         | 
| 355 421 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 356 422 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -642,6 +708,9 @@ module Google | |
| 642 708 | 
             
                    #     previously created using PartitionRead().    There must be an exact
         | 
| 643 709 | 
             
                    #     match for the values of fields common to this message and the
         | 
| 644 710 | 
             
                    #     PartitionReadRequest message used to create this partition_token.
         | 
| 711 | 
            +
                    # @!attribute [rw] request_options
         | 
| 712 | 
            +
                    #   @return [::Google::Cloud::Spanner::V1::RequestOptions]
         | 
| 713 | 
            +
                    #     Common options for this request.
         | 
| 645 714 | 
             
                    class ReadRequest
         | 
| 646 715 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 647 716 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -654,6 +723,13 @@ module Google | |
| 654 723 | 
             
                    # @!attribute [rw] options
         | 
| 655 724 | 
             
                    #   @return [::Google::Cloud::Spanner::V1::TransactionOptions]
         | 
| 656 725 | 
             
                    #     Required. Options for the new transaction.
         | 
| 726 | 
            +
                    # @!attribute [rw] request_options
         | 
| 727 | 
            +
                    #   @return [::Google::Cloud::Spanner::V1::RequestOptions]
         | 
| 728 | 
            +
                    #     Common options for this request.
         | 
| 729 | 
            +
                    #     Priority is ignored for this request. Setting the priority in this
         | 
| 730 | 
            +
                    #     request_options struct will not do anything. To set the priority for a
         | 
| 731 | 
            +
                    #     transaction, set it on the reads and writes that are part of this
         | 
| 732 | 
            +
                    #     transaction instead.
         | 
| 657 733 | 
             
                    class BeginTransactionRequest
         | 
| 658 734 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 659 735 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -687,6 +763,9 @@ module Google | |
| 687 763 | 
             
                    #     If `true`, then statistics related to the transaction will be included in
         | 
| 688 764 | 
             
                    #     the {::Google::Cloud::Spanner::V1::CommitResponse#commit_stats CommitResponse}. Default value is
         | 
| 689 765 | 
             
                    #     `false`.
         | 
| 766 | 
            +
                    # @!attribute [rw] request_options
         | 
| 767 | 
            +
                    #   @return [::Google::Cloud::Spanner::V1::RequestOptions]
         | 
| 768 | 
            +
                    #     Common options for this request.
         | 
| 690 769 | 
             
                    class CommitRequest
         | 
| 691 770 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 692 771 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-spanner-v1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.6.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021- | 
| 11 | 
            +
            date: 2021-04-05 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: '0. | 
| 19 | 
            +
                    version: '0.4'
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: '0. | 
| 26 | 
            +
                    version: '0.4'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: google-cloud-errors
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         |