google-apis-datastore_v1beta3 0.33.0 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b540a2eb84d43845414ecf0a5c9b16510896557b7bd9ab1a158de21acdb86e9d
4
- data.tar.gz: fa95d64fed2a5fb3aa8307350084f5ca21b7b3d5ab438f2b633187b93242bbef
3
+ metadata.gz: d57ee5a9154d0988b85f874c06c4252a701a2bb393d7275365bae5be59afc41a
4
+ data.tar.gz: bf00c7ce46b137fecfa906917c48b357639d11c9d0126fd57c564209b5cfe9c1
5
5
  SHA512:
6
- metadata.gz: d1bd5f2ce99274ded200f19e90426395c7e4c1ab78145971046f949c9511c232418e13dfd33960678dda07ed32149f1e450387b9845aa2975cb129674758f0a9
7
- data.tar.gz: 469382dc7c2bb6708c3d0d011b8ba930d5f84d675db6e23036cf8476c5fc453440e55c4cae8f7b15e553a025c21ac90d0314b0ec6f36bd12b55276b17cf27438
6
+ metadata.gz: 11d76b7623fbdd32afff655ad11affe6f0973c072472359404b35630aa20fc6fdabd4da1d52e1cc8c66ac960df1c3961cc5cabc8a164727c71b7eac871552d72
7
+ data.tar.gz: 611dc456365f82c2b126edc408da10008caea993bd6382e87ee98934089319d6c78a58fb6f9190279455c5dafd3b1b2507d448e1c806a3449303539ed1a1952f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-datastore_v1beta3
2
2
 
3
+ ### v0.34.0 (2024-12-02)
4
+
5
+ * Regenerated from discovery document revision 20241018
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.33.0 (2024-05-19)
4
9
 
5
10
  * Regenerated using generator version 0.15.0
@@ -94,7 +94,9 @@ module Google
94
94
  # @return [Array<Google::Apis::DatastoreV1beta3::Aggregation>]
95
95
  attr_accessor :aggregations
96
96
 
97
- # A query for entities.
97
+ # A query for entities. The query stages are executed in the following order: 1.
98
+ # kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
99
+ # limit 7. find_nearest
98
100
  # Corresponds to the JSON property `nestedQuery`
99
101
  # @return [Google::Apis::DatastoreV1beta3::Query]
100
102
  attr_accessor :nested_query
@@ -609,6 +611,66 @@ module Google
609
611
  end
610
612
  end
611
613
 
614
+ # Nearest Neighbors search config. The ordering provided by FindNearest
615
+ # supersedes the order_by stage. If multiple documents have the same vector
616
+ # distance, the returned document order is not guaranteed to be stable between
617
+ # queries.
618
+ class FindNearest
619
+ include Google::Apis::Core::Hashable
620
+
621
+ # Required. The Distance Measure to use, required.
622
+ # Corresponds to the JSON property `distanceMeasure`
623
+ # @return [String]
624
+ attr_accessor :distance_measure
625
+
626
+ # Optional. Optional name of the field to output the result of the vector
627
+ # distance calculation. Must conform to entity property limitations.
628
+ # Corresponds to the JSON property `distanceResultProperty`
629
+ # @return [String]
630
+ attr_accessor :distance_result_property
631
+
632
+ # Optional. Option to specify a threshold for which no less similar documents
633
+ # will be returned. The behavior of the specified `distance_measure` will affect
634
+ # the meaning of the distance threshold. Since DOT_PRODUCT distances increase
635
+ # when the vectors are more similar, the comparison is inverted. * For EUCLIDEAN,
636
+ # COSINE: WHERE distance <= distance_threshold * For DOT_PRODUCT: WHERE
637
+ # distance >= distance_threshold
638
+ # Corresponds to the JSON property `distanceThreshold`
639
+ # @return [Float]
640
+ attr_accessor :distance_threshold
641
+
642
+ # Required. The number of nearest neighbors to return. Must be a positive
643
+ # integer of no more than 100.
644
+ # Corresponds to the JSON property `limit`
645
+ # @return [Fixnum]
646
+ attr_accessor :limit
647
+
648
+ # A message that can hold any of the supported value types and associated
649
+ # metadata.
650
+ # Corresponds to the JSON property `queryVector`
651
+ # @return [Google::Apis::DatastoreV1beta3::Value]
652
+ attr_accessor :query_vector
653
+
654
+ # A reference to a property relative to the kind expressions.
655
+ # Corresponds to the JSON property `vectorProperty`
656
+ # @return [Google::Apis::DatastoreV1beta3::PropertyReference]
657
+ attr_accessor :vector_property
658
+
659
+ def initialize(**args)
660
+ update!(**args)
661
+ end
662
+
663
+ # Update properties of this object
664
+ def update!(**args)
665
+ @distance_measure = args[:distance_measure] if args.key?(:distance_measure)
666
+ @distance_result_property = args[:distance_result_property] if args.key?(:distance_result_property)
667
+ @distance_threshold = args[:distance_threshold] if args.key?(:distance_threshold)
668
+ @limit = args[:limit] if args.key?(:limit)
669
+ @query_vector = args[:query_vector] if args.key?(:query_vector)
670
+ @vector_property = args[:vector_property] if args.key?(:vector_property)
671
+ end
672
+ end
673
+
612
674
  # Metadata common to all Datastore Admin operations.
613
675
  class GoogleDatastoreAdminV1CommonMetadata
614
676
  include Google::Apis::Core::Hashable
@@ -1482,6 +1544,12 @@ module Google
1482
1544
  # @return [Fixnum]
1483
1545
  attr_accessor :base_version
1484
1546
 
1547
+ # The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`.
1548
+ # If this is set, then `conflict_detection_strategy` must also be set.
1549
+ # Corresponds to the JSON property `conflictResolutionStrategy`
1550
+ # @return [String]
1551
+ attr_accessor :conflict_resolution_strategy
1552
+
1485
1553
  # A unique identifier for an entity. If a key's partition ID or any of its path
1486
1554
  # kinds or names are reserved/read-only, the key is reserved/read-only. A
1487
1555
  # reserved/read-only key is forbidden in certain documented contexts.
@@ -1500,6 +1568,14 @@ module Google
1500
1568
  # @return [Google::Apis::DatastoreV1beta3::PropertyMask]
1501
1569
  attr_accessor :property_mask
1502
1570
 
1571
+ # Optional. The transforms to perform on the entity. This field can be set only
1572
+ # when the operation is `insert`, `update`, or `upsert`. If present, the
1573
+ # transforms are be applied to the entity regardless of the property mask, in
1574
+ # order, after the operation.
1575
+ # Corresponds to the JSON property `propertyTransforms`
1576
+ # @return [Array<Google::Apis::DatastoreV1beta3::PropertyTransform>]
1577
+ attr_accessor :property_transforms
1578
+
1503
1579
  # A Datastore data object. Must not exceed 1 MiB - 4 bytes.
1504
1580
  # Corresponds to the JSON property `update`
1505
1581
  # @return [Google::Apis::DatastoreV1beta3::Entity]
@@ -1523,9 +1599,11 @@ module Google
1523
1599
  # Update properties of this object
1524
1600
  def update!(**args)
1525
1601
  @base_version = args[:base_version] if args.key?(:base_version)
1602
+ @conflict_resolution_strategy = args[:conflict_resolution_strategy] if args.key?(:conflict_resolution_strategy)
1526
1603
  @delete = args[:delete] if args.key?(:delete)
1527
1604
  @insert = args[:insert] if args.key?(:insert)
1528
1605
  @property_mask = args[:property_mask] if args.key?(:property_mask)
1606
+ @property_transforms = args[:property_transforms] if args.key?(:property_transforms)
1529
1607
  @update = args[:update] if args.key?(:update)
1530
1608
  @update_time = args[:update_time] if args.key?(:update_time)
1531
1609
  @upsert = args[:upsert] if args.key?(:upsert)
@@ -1555,6 +1633,12 @@ module Google
1555
1633
  # @return [Google::Apis::DatastoreV1beta3::Key]
1556
1634
  attr_accessor :key
1557
1635
 
1636
+ # The results of applying each PropertyTransform, in the same order of the
1637
+ # request.
1638
+ # Corresponds to the JSON property `transformResults`
1639
+ # @return [Array<Google::Apis::DatastoreV1beta3::Value>]
1640
+ attr_accessor :transform_results
1641
+
1558
1642
  # The update time of the entity on the server after processing the mutation. If
1559
1643
  # the mutation doesn't change anything on the server, then the timestamp will be
1560
1644
  # the update timestamp of the current entity. This field will not be set after a
@@ -1581,6 +1665,7 @@ module Google
1581
1665
  @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
1582
1666
  @create_time = args[:create_time] if args.key?(:create_time)
1583
1667
  @key = args[:key] if args.key?(:key)
1668
+ @transform_results = args[:transform_results] if args.key?(:transform_results)
1584
1669
  @update_time = args[:update_time] if args.key?(:update_time)
1585
1670
  @version = args[:version] if args.key?(:version)
1586
1671
  end
@@ -1801,7 +1886,71 @@ module Google
1801
1886
  end
1802
1887
  end
1803
1888
 
1804
- # A query for entities.
1889
+ # A transformation of an entity property.
1890
+ class PropertyTransform
1891
+ include Google::Apis::Core::Hashable
1892
+
1893
+ # An array value.
1894
+ # Corresponds to the JSON property `appendMissingElements`
1895
+ # @return [Google::Apis::DatastoreV1beta3::ArrayValue]
1896
+ attr_accessor :append_missing_elements
1897
+
1898
+ # A message that can hold any of the supported value types and associated
1899
+ # metadata.
1900
+ # Corresponds to the JSON property `increment`
1901
+ # @return [Google::Apis::DatastoreV1beta3::Value]
1902
+ attr_accessor :increment
1903
+
1904
+ # A message that can hold any of the supported value types and associated
1905
+ # metadata.
1906
+ # Corresponds to the JSON property `maximum`
1907
+ # @return [Google::Apis::DatastoreV1beta3::Value]
1908
+ attr_accessor :maximum
1909
+
1910
+ # A message that can hold any of the supported value types and associated
1911
+ # metadata.
1912
+ # Corresponds to the JSON property `minimum`
1913
+ # @return [Google::Apis::DatastoreV1beta3::Value]
1914
+ attr_accessor :minimum
1915
+
1916
+ # Optional. The name of the property. Property paths (a list of property names
1917
+ # separated by dots (`.`)) may be used to refer to properties inside entity
1918
+ # values. For example `foo.bar` means the property `bar` inside the entity
1919
+ # property `foo`. If a property name contains a dot `.` or a backlslash `\`,
1920
+ # then that name must be escaped.
1921
+ # Corresponds to the JSON property `property`
1922
+ # @return [String]
1923
+ attr_accessor :property
1924
+
1925
+ # An array value.
1926
+ # Corresponds to the JSON property `removeAllFromArray`
1927
+ # @return [Google::Apis::DatastoreV1beta3::ArrayValue]
1928
+ attr_accessor :remove_all_from_array
1929
+
1930
+ # Sets the property to the given server value.
1931
+ # Corresponds to the JSON property `setToServerValue`
1932
+ # @return [String]
1933
+ attr_accessor :set_to_server_value
1934
+
1935
+ def initialize(**args)
1936
+ update!(**args)
1937
+ end
1938
+
1939
+ # Update properties of this object
1940
+ def update!(**args)
1941
+ @append_missing_elements = args[:append_missing_elements] if args.key?(:append_missing_elements)
1942
+ @increment = args[:increment] if args.key?(:increment)
1943
+ @maximum = args[:maximum] if args.key?(:maximum)
1944
+ @minimum = args[:minimum] if args.key?(:minimum)
1945
+ @property = args[:property] if args.key?(:property)
1946
+ @remove_all_from_array = args[:remove_all_from_array] if args.key?(:remove_all_from_array)
1947
+ @set_to_server_value = args[:set_to_server_value] if args.key?(:set_to_server_value)
1948
+ end
1949
+ end
1950
+
1951
+ # A query for entities. The query stages are executed in the following order: 1.
1952
+ # kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
1953
+ # limit 7. find_nearest
1805
1954
  class Query
1806
1955
  include Google::Apis::Core::Hashable
1807
1956
 
@@ -1827,6 +1976,14 @@ module Google
1827
1976
  # @return [Google::Apis::DatastoreV1beta3::Filter]
1828
1977
  attr_accessor :filter
1829
1978
 
1979
+ # Nearest Neighbors search config. The ordering provided by FindNearest
1980
+ # supersedes the order_by stage. If multiple documents have the same vector
1981
+ # distance, the returned document order is not guaranteed to be stable between
1982
+ # queries.
1983
+ # Corresponds to the JSON property `findNearest`
1984
+ # @return [Google::Apis::DatastoreV1beta3::FindNearest]
1985
+ attr_accessor :find_nearest
1986
+
1830
1987
  # The kinds to query (if empty, returns entities of all kinds). Currently at
1831
1988
  # most 1 kind may be specified.
1832
1989
  # Corresponds to the JSON property `kind`
@@ -1872,6 +2029,7 @@ module Google
1872
2029
  @distinct_on = args[:distinct_on] if args.key?(:distinct_on)
1873
2030
  @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
1874
2031
  @filter = args[:filter] if args.key?(:filter)
2032
+ @find_nearest = args[:find_nearest] if args.key?(:find_nearest)
1875
2033
  @kind = args[:kind] if args.key?(:kind)
1876
2034
  @limit = args[:limit] if args.key?(:limit)
1877
2035
  @offset = args[:offset] if args.key?(:offset)
@@ -2225,7 +2383,9 @@ module Google
2225
2383
  # @return [Google::Apis::DatastoreV1beta3::PropertyMask]
2226
2384
  attr_accessor :property_mask
2227
2385
 
2228
- # A query for entities.
2386
+ # A query for entities. The query stages are executed in the following order: 1.
2387
+ # kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
2388
+ # limit 7. find_nearest
2229
2389
  # Corresponds to the JSON property `query`
2230
2390
  # @return [Google::Apis::DatastoreV1beta3::Query]
2231
2391
  attr_accessor :query
@@ -2264,7 +2424,9 @@ module Google
2264
2424
  # @return [Google::Apis::DatastoreV1beta3::ExplainMetrics]
2265
2425
  attr_accessor :explain_metrics
2266
2426
 
2267
- # A query for entities.
2427
+ # A query for entities. The query stages are executed in the following order: 1.
2428
+ # kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
2429
+ # limit 7. find_nearest
2268
2430
  # Corresponds to the JSON property `query`
2269
2431
  # @return [Google::Apis::DatastoreV1beta3::Query]
2270
2432
  attr_accessor :query
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatastoreV1beta3
18
18
  # Version of the google-apis-datastore_v1beta3 gem
19
- GEM_VERSION = "0.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240317"
25
+ REVISION = "20241018"
26
26
  end
27
27
  end
28
28
  end
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class FindNearest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class GoogleDatastoreAdminV1CommonMetadata
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -352,6 +358,12 @@ module Google
352
358
  include Google::Apis::Core::JsonObjectSupport
353
359
  end
354
360
 
361
+ class PropertyTransform
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
355
367
  class Query
356
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
369
 
@@ -631,6 +643,20 @@ module Google
631
643
  end
632
644
  end
633
645
 
646
+ class FindNearest
647
+ # @private
648
+ class Representation < Google::Apis::Core::JsonRepresentation
649
+ property :distance_measure, as: 'distanceMeasure'
650
+ property :distance_result_property, as: 'distanceResultProperty'
651
+ property :distance_threshold, as: 'distanceThreshold'
652
+ property :limit, as: 'limit'
653
+ property :query_vector, as: 'queryVector', class: Google::Apis::DatastoreV1beta3::Value, decorator: Google::Apis::DatastoreV1beta3::Value::Representation
654
+
655
+ property :vector_property, as: 'vectorProperty', class: Google::Apis::DatastoreV1beta3::PropertyReference, decorator: Google::Apis::DatastoreV1beta3::PropertyReference::Representation
656
+
657
+ end
658
+ end
659
+
634
660
  class GoogleDatastoreAdminV1CommonMetadata
635
661
  # @private
636
662
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -885,12 +911,15 @@ module Google
885
911
  # @private
886
912
  class Representation < Google::Apis::Core::JsonRepresentation
887
913
  property :base_version, :numeric_string => true, as: 'baseVersion'
914
+ property :conflict_resolution_strategy, as: 'conflictResolutionStrategy'
888
915
  property :delete, as: 'delete', class: Google::Apis::DatastoreV1beta3::Key, decorator: Google::Apis::DatastoreV1beta3::Key::Representation
889
916
 
890
917
  property :insert, as: 'insert', class: Google::Apis::DatastoreV1beta3::Entity, decorator: Google::Apis::DatastoreV1beta3::Entity::Representation
891
918
 
892
919
  property :property_mask, as: 'propertyMask', class: Google::Apis::DatastoreV1beta3::PropertyMask, decorator: Google::Apis::DatastoreV1beta3::PropertyMask::Representation
893
920
 
921
+ collection :property_transforms, as: 'propertyTransforms', class: Google::Apis::DatastoreV1beta3::PropertyTransform, decorator: Google::Apis::DatastoreV1beta3::PropertyTransform::Representation
922
+
894
923
  property :update, as: 'update', class: Google::Apis::DatastoreV1beta3::Entity, decorator: Google::Apis::DatastoreV1beta3::Entity::Representation
895
924
 
896
925
  property :update_time, as: 'updateTime'
@@ -906,6 +935,8 @@ module Google
906
935
  property :create_time, as: 'createTime'
907
936
  property :key, as: 'key', class: Google::Apis::DatastoreV1beta3::Key, decorator: Google::Apis::DatastoreV1beta3::Key::Representation
908
937
 
938
+ collection :transform_results, as: 'transformResults', class: Google::Apis::DatastoreV1beta3::Value, decorator: Google::Apis::DatastoreV1beta3::Value::Representation
939
+
909
940
  property :update_time, as: 'updateTime'
910
941
  property :version, :numeric_string => true, as: 'version'
911
942
  end
@@ -977,6 +1008,24 @@ module Google
977
1008
  end
978
1009
  end
979
1010
 
1011
+ class PropertyTransform
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ property :append_missing_elements, as: 'appendMissingElements', class: Google::Apis::DatastoreV1beta3::ArrayValue, decorator: Google::Apis::DatastoreV1beta3::ArrayValue::Representation
1015
+
1016
+ property :increment, as: 'increment', class: Google::Apis::DatastoreV1beta3::Value, decorator: Google::Apis::DatastoreV1beta3::Value::Representation
1017
+
1018
+ property :maximum, as: 'maximum', class: Google::Apis::DatastoreV1beta3::Value, decorator: Google::Apis::DatastoreV1beta3::Value::Representation
1019
+
1020
+ property :minimum, as: 'minimum', class: Google::Apis::DatastoreV1beta3::Value, decorator: Google::Apis::DatastoreV1beta3::Value::Representation
1021
+
1022
+ property :property, as: 'property'
1023
+ property :remove_all_from_array, as: 'removeAllFromArray', class: Google::Apis::DatastoreV1beta3::ArrayValue, decorator: Google::Apis::DatastoreV1beta3::ArrayValue::Representation
1024
+
1025
+ property :set_to_server_value, as: 'setToServerValue'
1026
+ end
1027
+ end
1028
+
980
1029
  class Query
981
1030
  # @private
982
1031
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -985,6 +1034,8 @@ module Google
985
1034
  property :end_cursor, :base64 => true, as: 'endCursor'
986
1035
  property :filter, as: 'filter', class: Google::Apis::DatastoreV1beta3::Filter, decorator: Google::Apis::DatastoreV1beta3::Filter::Representation
987
1036
 
1037
+ property :find_nearest, as: 'findNearest', class: Google::Apis::DatastoreV1beta3::FindNearest, decorator: Google::Apis::DatastoreV1beta3::FindNearest::Representation
1038
+
988
1039
  collection :kind, as: 'kind', class: Google::Apis::DatastoreV1beta3::KindExpression, decorator: Google::Apis::DatastoreV1beta3::KindExpression::Representation
989
1040
 
990
1041
  property :limit, as: 'limit'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datastore_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.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: 2024-05-19 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1beta3/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1beta3/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1beta3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Datastore API V1beta3