google-cloud-datastore-v1 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/datastore/v1/datastore/client.rb +19 -0
- data/lib/google/cloud/datastore/v1/datastore/rest/client.rb +19 -0
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/proto_docs/google/datastore/v1/datastore.rb +48 -0
- data/proto_docs/google/datastore/v1/entity.rb +26 -0
- data/proto_docs/google/datastore/v1/query.rb +14 -0
- data/proto_docs/google/protobuf/struct.rb +12 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40547a8a273560ebb8959396340c4d8d1fa1aefc09d754c4aef44a39c53ae048
|
4
|
+
data.tar.gz: 12a520f6ff7e6778b1e0e55c1c32aae8d05fcae861c6d945d9c173de8ac31a6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4689deec549b20ba89de52c5eeee5e29b8643ad3097bd0f893c3aa818a7449e3f3c4d4b75d2be09bc6d0f846896329edf03d731b0097e999de92efe4f4b8b03c
|
7
|
+
data.tar.gz: '0389d04daf27d7ca7eac240e6027f9885d5f9df81f409c521ccd63052369bbd2f14f5416680fa0ad669eb226670a0d7e8c849be0c52b1046f92037f802094f09'
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
86
86
|
|
87
87
|
## Supported Ruby Versions
|
88
88
|
|
89
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
90
90
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -352,8 +352,12 @@ module Google
|
|
352
352
|
# The options for this query.
|
353
353
|
# @param query [::Google::Cloud::Datastore::V1::Query, ::Hash]
|
354
354
|
# The query to run.
|
355
|
+
#
|
356
|
+
# Note: The following fields are mutually exclusive: `query`, `gql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
355
357
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
356
358
|
# The GQL query to run. This query must be a non-aggregation query.
|
359
|
+
#
|
360
|
+
# Note: The following fields are mutually exclusive: `gql_query`, `query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
357
361
|
# @param property_mask [::Google::Cloud::Datastore::V1::PropertyMask, ::Hash]
|
358
362
|
# The properties to return.
|
359
363
|
# This field must not be set for a projection query.
|
@@ -465,8 +469,12 @@ module Google
|
|
465
469
|
# The options for this query.
|
466
470
|
# @param aggregation_query [::Google::Cloud::Datastore::V1::AggregationQuery, ::Hash]
|
467
471
|
# The query to run.
|
472
|
+
#
|
473
|
+
# Note: The following fields are mutually exclusive: `aggregation_query`, `gql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
468
474
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
469
475
|
# The GQL query to run. This query must be an aggregation query.
|
476
|
+
#
|
477
|
+
# Note: The following fields are mutually exclusive: `gql_query`, `aggregation_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
470
478
|
# @param explain_options [::Google::Cloud::Datastore::V1::ExplainOptions, ::Hash]
|
471
479
|
# Optional. Explain options for the query. If set, additional query
|
472
480
|
# statistics will be returned. If not, only query results will be returned.
|
@@ -665,11 +673,15 @@ module Google
|
|
665
673
|
# The identifier of the transaction associated with the commit. A
|
666
674
|
# transaction identifier is returned by a call to
|
667
675
|
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
|
676
|
+
#
|
677
|
+
# Note: The following fields are mutually exclusive: `transaction`, `single_use_transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
668
678
|
# @param single_use_transaction [::Google::Cloud::Datastore::V1::TransactionOptions, ::Hash]
|
669
679
|
# Options for beginning a new transaction for this request.
|
670
680
|
# The transaction is committed when the request completes. If specified,
|
671
681
|
# {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
|
672
682
|
# {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
|
683
|
+
#
|
684
|
+
# Note: The following fields are mutually exclusive: `single_use_transaction`, `transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
673
685
|
# @param mutations [::Array<::Google::Cloud::Datastore::V1::Mutation, ::Hash>]
|
674
686
|
# The mutations to perform.
|
675
687
|
#
|
@@ -1086,6 +1098,13 @@ module Google
|
|
1086
1098
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1087
1099
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1088
1100
|
# * (`nil`) indicating no credentials
|
1101
|
+
#
|
1102
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
1103
|
+
# external source for authentication to Google Cloud, you must validate it before
|
1104
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
1105
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
1106
|
+
# For more information, refer to [Validate credential configurations from external
|
1107
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
1089
1108
|
# @return [::Object]
|
1090
1109
|
# @!attribute [rw] scope
|
1091
1110
|
# The OAuth scopes
|
@@ -335,8 +335,12 @@ module Google
|
|
335
335
|
# The options for this query.
|
336
336
|
# @param query [::Google::Cloud::Datastore::V1::Query, ::Hash]
|
337
337
|
# The query to run.
|
338
|
+
#
|
339
|
+
# Note: The following fields are mutually exclusive: `query`, `gql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
338
340
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
339
341
|
# The GQL query to run. This query must be a non-aggregation query.
|
342
|
+
#
|
343
|
+
# Note: The following fields are mutually exclusive: `gql_query`, `query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
340
344
|
# @param property_mask [::Google::Cloud::Datastore::V1::PropertyMask, ::Hash]
|
341
345
|
# The properties to return.
|
342
346
|
# This field must not be set for a projection query.
|
@@ -438,8 +442,12 @@ module Google
|
|
438
442
|
# The options for this query.
|
439
443
|
# @param aggregation_query [::Google::Cloud::Datastore::V1::AggregationQuery, ::Hash]
|
440
444
|
# The query to run.
|
445
|
+
#
|
446
|
+
# Note: The following fields are mutually exclusive: `aggregation_query`, `gql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
441
447
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
442
448
|
# The GQL query to run. This query must be an aggregation query.
|
449
|
+
#
|
450
|
+
# Note: The following fields are mutually exclusive: `gql_query`, `aggregation_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
443
451
|
# @param explain_options [::Google::Cloud::Datastore::V1::ExplainOptions, ::Hash]
|
444
452
|
# Optional. Explain options for the query. If set, additional query
|
445
453
|
# statistics will be returned. If not, only query results will be returned.
|
@@ -618,11 +626,15 @@ module Google
|
|
618
626
|
# The identifier of the transaction associated with the commit. A
|
619
627
|
# transaction identifier is returned by a call to
|
620
628
|
# {::Google::Cloud::Datastore::V1::Datastore::Rest::Client#begin_transaction Datastore.BeginTransaction}.
|
629
|
+
#
|
630
|
+
# Note: The following fields are mutually exclusive: `transaction`, `single_use_transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
621
631
|
# @param single_use_transaction [::Google::Cloud::Datastore::V1::TransactionOptions, ::Hash]
|
622
632
|
# Options for beginning a new transaction for this request.
|
623
633
|
# The transaction is committed when the request completes. If specified,
|
624
634
|
# {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
|
625
635
|
# {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
|
636
|
+
#
|
637
|
+
# Note: The following fields are mutually exclusive: `single_use_transaction`, `transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
626
638
|
# @param mutations [::Array<::Google::Cloud::Datastore::V1::Mutation, ::Hash>]
|
627
639
|
# The mutations to perform.
|
628
640
|
#
|
@@ -997,6 +1009,13 @@ module Google
|
|
997
1009
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
998
1010
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
999
1011
|
# * (`nil`) indicating no credentials
|
1012
|
+
#
|
1013
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
1014
|
+
# external source for authentication to Google Cloud, you must validate it before
|
1015
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
1016
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
1017
|
+
# For more information, refer to [Validate credential configurations from external
|
1018
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
1000
1019
|
# @return [::Object]
|
1001
1020
|
# @!attribute [rw] scope
|
1002
1021
|
# The OAuth scopes
|
@@ -105,9 +105,13 @@ module Google
|
|
105
105
|
# @!attribute [rw] query
|
106
106
|
# @return [::Google::Cloud::Datastore::V1::Query]
|
107
107
|
# The query to run.
|
108
|
+
#
|
109
|
+
# Note: The following fields are mutually exclusive: `query`, `gql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
108
110
|
# @!attribute [rw] gql_query
|
109
111
|
# @return [::Google::Cloud::Datastore::V1::GqlQuery]
|
110
112
|
# The GQL query to run. This query must be a non-aggregation query.
|
113
|
+
#
|
114
|
+
# Note: The following fields are mutually exclusive: `gql_query`, `query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
111
115
|
# @!attribute [rw] property_mask
|
112
116
|
# @return [::Google::Cloud::Datastore::V1::PropertyMask]
|
113
117
|
# The properties to return.
|
@@ -174,9 +178,13 @@ module Google
|
|
174
178
|
# @!attribute [rw] aggregation_query
|
175
179
|
# @return [::Google::Cloud::Datastore::V1::AggregationQuery]
|
176
180
|
# The query to run.
|
181
|
+
#
|
182
|
+
# Note: The following fields are mutually exclusive: `aggregation_query`, `gql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
177
183
|
# @!attribute [rw] gql_query
|
178
184
|
# @return [::Google::Cloud::Datastore::V1::GqlQuery]
|
179
185
|
# The GQL query to run. This query must be an aggregation query.
|
186
|
+
#
|
187
|
+
# Note: The following fields are mutually exclusive: `gql_query`, `aggregation_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
180
188
|
# @!attribute [rw] explain_options
|
181
189
|
# @return [::Google::Cloud::Datastore::V1::ExplainOptions]
|
182
190
|
# Optional. Explain options for the query. If set, additional query
|
@@ -287,12 +295,16 @@ module Google
|
|
287
295
|
# The identifier of the transaction associated with the commit. A
|
288
296
|
# transaction identifier is returned by a call to
|
289
297
|
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
|
298
|
+
#
|
299
|
+
# Note: The following fields are mutually exclusive: `transaction`, `single_use_transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
290
300
|
# @!attribute [rw] single_use_transaction
|
291
301
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions]
|
292
302
|
# Options for beginning a new transaction for this request.
|
293
303
|
# The transaction is committed when the request completes. If specified,
|
294
304
|
# {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
|
295
305
|
# {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
|
306
|
+
#
|
307
|
+
# Note: The following fields are mutually exclusive: `single_use_transaction`, `transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
296
308
|
# @!attribute [rw] mutations
|
297
309
|
# @return [::Array<::Google::Cloud::Datastore::V1::Mutation>]
|
298
310
|
# The mutations to perform.
|
@@ -407,28 +419,40 @@ module Google
|
|
407
419
|
# @return [::Google::Cloud::Datastore::V1::Entity]
|
408
420
|
# The entity to insert. The entity must not already exist.
|
409
421
|
# The entity key's final path element may be incomplete.
|
422
|
+
#
|
423
|
+
# Note: The following fields are mutually exclusive: `insert`, `update`, `upsert`, `delete`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
410
424
|
# @!attribute [rw] update
|
411
425
|
# @return [::Google::Cloud::Datastore::V1::Entity]
|
412
426
|
# The entity to update. The entity must already exist.
|
413
427
|
# Must have a complete key path.
|
428
|
+
#
|
429
|
+
# Note: The following fields are mutually exclusive: `update`, `insert`, `upsert`, `delete`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
414
430
|
# @!attribute [rw] upsert
|
415
431
|
# @return [::Google::Cloud::Datastore::V1::Entity]
|
416
432
|
# The entity to upsert. The entity may or may not already exist.
|
417
433
|
# The entity key's final path element may be incomplete.
|
434
|
+
#
|
435
|
+
# Note: The following fields are mutually exclusive: `upsert`, `insert`, `update`, `delete`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
418
436
|
# @!attribute [rw] delete
|
419
437
|
# @return [::Google::Cloud::Datastore::V1::Key]
|
420
438
|
# The key of the entity to delete. The entity may or may not already exist.
|
421
439
|
# Must have a complete key path and must not be reserved/read-only.
|
440
|
+
#
|
441
|
+
# Note: The following fields are mutually exclusive: `delete`, `insert`, `update`, `upsert`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
422
442
|
# @!attribute [rw] base_version
|
423
443
|
# @return [::Integer]
|
424
444
|
# The version of the entity that this mutation is being applied
|
425
445
|
# to. If this does not match the current version on the server, the
|
426
446
|
# mutation conflicts.
|
447
|
+
#
|
448
|
+
# Note: The following fields are mutually exclusive: `base_version`, `update_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
427
449
|
# @!attribute [rw] update_time
|
428
450
|
# @return [::Google::Protobuf::Timestamp]
|
429
451
|
# The update time of the entity that this mutation is being applied
|
430
452
|
# to. If this does not match the current update time on the server, the
|
431
453
|
# mutation conflicts.
|
454
|
+
#
|
455
|
+
# Note: The following fields are mutually exclusive: `update_time`, `base_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
432
456
|
# @!attribute [rw] conflict_resolution_strategy
|
433
457
|
# @return [::Google::Cloud::Datastore::V1::Mutation::ConflictResolutionStrategy]
|
434
458
|
# The strategy to use when a conflict is detected. Defaults to
|
@@ -482,6 +506,8 @@ module Google
|
|
482
506
|
# @!attribute [rw] set_to_server_value
|
483
507
|
# @return [::Google::Cloud::Datastore::V1::PropertyTransform::ServerValue]
|
484
508
|
# Sets the property to the given server value.
|
509
|
+
#
|
510
|
+
# Note: The following fields are mutually exclusive: `set_to_server_value`, `increment`, `maximum`, `minimum`, `append_missing_elements`, `remove_all_from_array`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
485
511
|
# @!attribute [rw] increment
|
486
512
|
# @return [::Google::Cloud::Datastore::V1::Value]
|
487
513
|
# Adds the given value to the property's current value.
|
@@ -494,6 +520,8 @@ module Google
|
|
494
520
|
# representation of double values follows IEEE 754 semantics.
|
495
521
|
# If there is positive/negative integer overflow, the property is resolved
|
496
522
|
# to the largest magnitude positive/negative integer.
|
523
|
+
#
|
524
|
+
# Note: The following fields are mutually exclusive: `increment`, `set_to_server_value`, `maximum`, `minimum`, `append_missing_elements`, `remove_all_from_array`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
497
525
|
# @!attribute [rw] maximum
|
498
526
|
# @return [::Google::Cloud::Datastore::V1::Value]
|
499
527
|
# Sets the property to the maximum of its current value and the given
|
@@ -509,6 +537,8 @@ module Google
|
|
509
537
|
# 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
|
510
538
|
# zero input value is always the stored value.
|
511
539
|
# The maximum of any numeric value x and NaN is NaN.
|
540
|
+
#
|
541
|
+
# Note: The following fields are mutually exclusive: `maximum`, `set_to_server_value`, `increment`, `minimum`, `append_missing_elements`, `remove_all_from_array`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
512
542
|
# @!attribute [rw] minimum
|
513
543
|
# @return [::Google::Cloud::Datastore::V1::Value]
|
514
544
|
# Sets the property to the minimum of its current value and the given
|
@@ -524,6 +554,8 @@ module Google
|
|
524
554
|
# and -0.0 are all zero. The minimum of a zero stored value and zero input
|
525
555
|
# value is always the stored value. The minimum of any numeric value x and
|
526
556
|
# NaN is NaN.
|
557
|
+
#
|
558
|
+
# Note: The following fields are mutually exclusive: `minimum`, `set_to_server_value`, `increment`, `maximum`, `append_missing_elements`, `remove_all_from_array`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
527
559
|
# @!attribute [rw] append_missing_elements
|
528
560
|
# @return [::Google::Cloud::Datastore::V1::ArrayValue]
|
529
561
|
# Appends the given elements in order if they are not already present in
|
@@ -538,6 +570,8 @@ module Google
|
|
538
570
|
# be considered.
|
539
571
|
#
|
540
572
|
# The corresponding transform result will be the null value.
|
573
|
+
#
|
574
|
+
# Note: The following fields are mutually exclusive: `append_missing_elements`, `set_to_server_value`, `increment`, `maximum`, `minimum`, `remove_all_from_array`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
541
575
|
# @!attribute [rw] remove_all_from_array
|
542
576
|
# @return [::Google::Cloud::Datastore::V1::ArrayValue]
|
543
577
|
# Removes all of the given elements from the array in the property.
|
@@ -550,6 +584,8 @@ module Google
|
|
550
584
|
# This will remove all equivalent values if there are duplicates.
|
551
585
|
#
|
552
586
|
# The corresponding transform result will be the null value.
|
587
|
+
#
|
588
|
+
# Note: The following fields are mutually exclusive: `remove_all_from_array`, `set_to_server_value`, `increment`, `maximum`, `minimum`, `append_missing_elements`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
553
589
|
class PropertyTransform
|
554
590
|
include ::Google::Protobuf::MessageExts
|
555
591
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -625,11 +661,15 @@ module Google
|
|
625
661
|
# @!attribute [rw] read_consistency
|
626
662
|
# @return [::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency]
|
627
663
|
# The non-transactional read consistency to use.
|
664
|
+
#
|
665
|
+
# Note: The following fields are mutually exclusive: `read_consistency`, `transaction`, `new_transaction`, `read_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
628
666
|
# @!attribute [rw] transaction
|
629
667
|
# @return [::String]
|
630
668
|
# The identifier of the transaction in which to read. A
|
631
669
|
# transaction identifier is returned by a call to
|
632
670
|
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
|
671
|
+
#
|
672
|
+
# Note: The following fields are mutually exclusive: `transaction`, `read_consistency`, `new_transaction`, `read_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
633
673
|
# @!attribute [rw] new_transaction
|
634
674
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions]
|
635
675
|
# Options for beginning a new transaction for this request.
|
@@ -639,6 +679,8 @@ module Google
|
|
639
679
|
# {::Google::Cloud::Datastore::V1::LookupResponse#transaction LookupResponse.transaction}
|
640
680
|
# or
|
641
681
|
# {::Google::Cloud::Datastore::V1::RunQueryResponse#transaction RunQueryResponse.transaction}.
|
682
|
+
#
|
683
|
+
# Note: The following fields are mutually exclusive: `new_transaction`, `read_consistency`, `transaction`, `read_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
642
684
|
# @!attribute [rw] read_time
|
643
685
|
# @return [::Google::Protobuf::Timestamp]
|
644
686
|
# Reads entities as they were at the given time. This value is only
|
@@ -647,6 +689,8 @@ module Google
|
|
647
689
|
# This must be a microsecond precision timestamp within the past one hour,
|
648
690
|
# or if Point-in-Time Recovery is enabled, can additionally be a whole
|
649
691
|
# minute timestamp within the past 7 days.
|
692
|
+
#
|
693
|
+
# Note: The following fields are mutually exclusive: `read_time`, `read_consistency`, `transaction`, `new_transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
650
694
|
class ReadOptions
|
651
695
|
include ::Google::Protobuf::MessageExts
|
652
696
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -674,9 +718,13 @@ module Google
|
|
674
718
|
# @!attribute [rw] read_write
|
675
719
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite]
|
676
720
|
# The transaction should allow both reads and writes.
|
721
|
+
#
|
722
|
+
# Note: The following fields are mutually exclusive: `read_write`, `read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
677
723
|
# @!attribute [rw] read_only
|
678
724
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly]
|
679
725
|
# The transaction should only allow reads.
|
726
|
+
#
|
727
|
+
# Note: The following fields are mutually exclusive: `read_only`, `read_write`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
680
728
|
class TransactionOptions
|
681
729
|
include ::Google::Protobuf::MessageExts
|
682
730
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -108,6 +108,8 @@ module Google
|
|
108
108
|
#
|
109
109
|
# Never equal to zero. Values less than zero are discouraged and may not
|
110
110
|
# be supported in the future.
|
111
|
+
#
|
112
|
+
# Note: The following fields are mutually exclusive: `id`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
111
113
|
# @!attribute [rw] name
|
112
114
|
# @return [::String]
|
113
115
|
# The name of the entity.
|
@@ -119,6 +121,8 @@ module Google
|
|
119
121
|
# Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
|
120
122
|
# encoded as `__bytes<X>__` where `<X>` is the base-64 encoding of the
|
121
123
|
# bytes.
|
124
|
+
#
|
125
|
+
# Note: The following fields are mutually exclusive: `name`, `id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
122
126
|
class PathElement
|
123
127
|
include ::Google::Protobuf::MessageExts
|
124
128
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -141,37 +145,55 @@ module Google
|
|
141
145
|
# @!attribute [rw] null_value
|
142
146
|
# @return [::Google::Protobuf::NullValue]
|
143
147
|
# A null value.
|
148
|
+
#
|
149
|
+
# Note: The following fields are mutually exclusive: `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
144
150
|
# @!attribute [rw] boolean_value
|
145
151
|
# @return [::Boolean]
|
146
152
|
# A boolean value.
|
153
|
+
#
|
154
|
+
# Note: The following fields are mutually exclusive: `boolean_value`, `null_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
147
155
|
# @!attribute [rw] integer_value
|
148
156
|
# @return [::Integer]
|
149
157
|
# An integer value.
|
158
|
+
#
|
159
|
+
# Note: The following fields are mutually exclusive: `integer_value`, `null_value`, `boolean_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
150
160
|
# @!attribute [rw] double_value
|
151
161
|
# @return [::Float]
|
152
162
|
# A double value.
|
163
|
+
#
|
164
|
+
# Note: The following fields are mutually exclusive: `double_value`, `null_value`, `boolean_value`, `integer_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
153
165
|
# @!attribute [rw] timestamp_value
|
154
166
|
# @return [::Google::Protobuf::Timestamp]
|
155
167
|
# A timestamp value.
|
156
168
|
# When stored in the Datastore, precise only to microseconds;
|
157
169
|
# any additional precision is rounded down.
|
170
|
+
#
|
171
|
+
# Note: The following fields are mutually exclusive: `timestamp_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
158
172
|
# @!attribute [rw] key_value
|
159
173
|
# @return [::Google::Cloud::Datastore::V1::Key]
|
160
174
|
# A key value.
|
175
|
+
#
|
176
|
+
# Note: The following fields are mutually exclusive: `key_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
161
177
|
# @!attribute [rw] string_value
|
162
178
|
# @return [::String]
|
163
179
|
# A UTF-8 encoded string value.
|
164
180
|
# When `exclude_from_indexes` is false (it is indexed) , may have at most
|
165
181
|
# 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
|
182
|
+
#
|
183
|
+
# Note: The following fields are mutually exclusive: `string_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `blob_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
166
184
|
# @!attribute [rw] blob_value
|
167
185
|
# @return [::String]
|
168
186
|
# A blob value.
|
169
187
|
# May have at most 1,000,000 bytes.
|
170
188
|
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
171
189
|
# In JSON requests, must be base64-encoded.
|
190
|
+
#
|
191
|
+
# Note: The following fields are mutually exclusive: `blob_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `geo_point_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
172
192
|
# @!attribute [rw] geo_point_value
|
173
193
|
# @return [::Google::Type::LatLng]
|
174
194
|
# A geo point value representing a point on the surface of Earth.
|
195
|
+
#
|
196
|
+
# Note: The following fields are mutually exclusive: `geo_point_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `entity_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
175
197
|
# @!attribute [rw] entity_value
|
176
198
|
# @return [::Google::Cloud::Datastore::V1::Entity]
|
177
199
|
# An entity value.
|
@@ -179,12 +201,16 @@ module Google
|
|
179
201
|
# - May have no key.
|
180
202
|
# - May have a key with an incomplete key path.
|
181
203
|
# - May have a reserved/read-only key.
|
204
|
+
#
|
205
|
+
# Note: The following fields are mutually exclusive: `entity_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `array_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
182
206
|
# @!attribute [rw] array_value
|
183
207
|
# @return [::Google::Cloud::Datastore::V1::ArrayValue]
|
184
208
|
# An array value.
|
185
209
|
# Cannot contain another array value.
|
186
210
|
# A `Value` instance that sets field `array_value` must not set fields
|
187
211
|
# `meaning` or `exclude_from_indexes`.
|
212
|
+
#
|
213
|
+
# Note: The following fields are mutually exclusive: `array_value`, `null_value`, `boolean_value`, `integer_value`, `double_value`, `timestamp_value`, `key_value`, `string_value`, `blob_value`, `geo_point_value`, `entity_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
188
214
|
# @!attribute [rw] meaning
|
189
215
|
# @return [::Integer]
|
190
216
|
# The `meaning` field should only be populated for backwards compatibility.
|
@@ -164,12 +164,18 @@ module Google
|
|
164
164
|
# @!attribute [rw] count
|
165
165
|
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Count]
|
166
166
|
# Count aggregator.
|
167
|
+
#
|
168
|
+
# Note: The following fields are mutually exclusive: `count`, `sum`, `avg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
167
169
|
# @!attribute [rw] sum
|
168
170
|
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Sum]
|
169
171
|
# Sum aggregator.
|
172
|
+
#
|
173
|
+
# Note: The following fields are mutually exclusive: `sum`, `count`, `avg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
170
174
|
# @!attribute [rw] avg
|
171
175
|
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Avg]
|
172
176
|
# Average aggregator.
|
177
|
+
#
|
178
|
+
# Note: The following fields are mutually exclusive: `avg`, `count`, `sum`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
173
179
|
# @!attribute [rw] alias
|
174
180
|
# @return [::String]
|
175
181
|
# Optional. Optional name of the property to store the result of the
|
@@ -353,9 +359,13 @@ module Google
|
|
353
359
|
# @!attribute [rw] composite_filter
|
354
360
|
# @return [::Google::Cloud::Datastore::V1::CompositeFilter]
|
355
361
|
# A composite filter.
|
362
|
+
#
|
363
|
+
# Note: The following fields are mutually exclusive: `composite_filter`, `property_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
356
364
|
# @!attribute [rw] property_filter
|
357
365
|
# @return [::Google::Cloud::Datastore::V1::PropertyFilter]
|
358
366
|
# A filter on a property.
|
367
|
+
#
|
368
|
+
# Note: The following fields are mutually exclusive: `property_filter`, `composite_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
359
369
|
class Filter
|
360
370
|
include ::Google::Protobuf::MessageExts
|
361
371
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -584,10 +594,14 @@ module Google
|
|
584
594
|
# @!attribute [rw] value
|
585
595
|
# @return [::Google::Cloud::Datastore::V1::Value]
|
586
596
|
# A value parameter.
|
597
|
+
#
|
598
|
+
# Note: The following fields are mutually exclusive: `value`, `cursor`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
587
599
|
# @!attribute [rw] cursor
|
588
600
|
# @return [::String]
|
589
601
|
# A query cursor. Query cursors are returned in query
|
590
602
|
# result batches.
|
603
|
+
#
|
604
|
+
# Note: The following fields are mutually exclusive: `cursor`, `value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
591
605
|
class GqlQueryParameter
|
592
606
|
include ::Google::Protobuf::MessageExts
|
593
607
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -53,21 +53,33 @@ module Google
|
|
53
53
|
# @!attribute [rw] null_value
|
54
54
|
# @return [::Google::Protobuf::NullValue]
|
55
55
|
# Represents a null value.
|
56
|
+
#
|
57
|
+
# Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
56
58
|
# @!attribute [rw] number_value
|
57
59
|
# @return [::Float]
|
58
60
|
# Represents a double value.
|
61
|
+
#
|
62
|
+
# Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
59
63
|
# @!attribute [rw] string_value
|
60
64
|
# @return [::String]
|
61
65
|
# Represents a string value.
|
66
|
+
#
|
67
|
+
# Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
62
68
|
# @!attribute [rw] bool_value
|
63
69
|
# @return [::Boolean]
|
64
70
|
# Represents a boolean value.
|
71
|
+
#
|
72
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
65
73
|
# @!attribute [rw] struct_value
|
66
74
|
# @return [::Google::Protobuf::Struct]
|
67
75
|
# Represents a structured value.
|
76
|
+
#
|
77
|
+
# Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
68
78
|
# @!attribute [rw] list_value
|
69
79
|
# @return [::Google::Protobuf::ListValue]
|
70
80
|
# Represents a repeated `Value`.
|
81
|
+
#
|
82
|
+
# Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
71
83
|
class Value
|
72
84
|
include ::Google::Protobuf::MessageExts
|
73
85
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -93,7 +92,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
93
92
|
licenses:
|
94
93
|
- Apache-2.0
|
95
94
|
metadata: {}
|
96
|
-
post_install_message:
|
97
95
|
rdoc_options: []
|
98
96
|
require_paths:
|
99
97
|
- lib
|
@@ -101,15 +99,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
99
|
requirements:
|
102
100
|
- - ">="
|
103
101
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
102
|
+
version: '3.0'
|
105
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
104
|
requirements:
|
107
105
|
- - ">="
|
108
106
|
- !ruby/object:Gem::Version
|
109
107
|
version: '0'
|
110
108
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
112
|
-
signing_key:
|
109
|
+
rubygems_version: 3.6.2
|
113
110
|
specification_version: 4
|
114
111
|
summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
|
115
112
|
scalable storage for your application.
|