google-apis-datastore_v1 0.38.0 → 0.39.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: 8e3e24d9ab67d083ae2b294ce049c40f1d017b0019cf750771876132af95fcc4
4
- data.tar.gz: 49069a3e3c143b52ec6524ea4fb947061ef0ed2cae511a93e8bdc5d586bc5af4
3
+ metadata.gz: c12944d37d3dae0f4ac6ec15fc8e8523fa9ca71c8f6c8ed339e58fd167239a0f
4
+ data.tar.gz: 8ede35762e72497512a9839638fccbad62f378dba956ef35a238a2c25df03919
5
5
  SHA512:
6
- metadata.gz: 57ad4d171ead6e441457c88827d4b87e8e38a0f782ecc01c5b1fe7b8a56b5a775208be073d2a68c33be91702a4d2a6a06a5c26d9559f574662212b0e6be5e4cf
7
- data.tar.gz: 1eaeb92ba96fb9a99e0b1b87a641cde5a02ffb17bccf0bedf113fc2e7be36d19f8a487d99c39deaa4243d5d58941d01dc2780237dd889fd2945430178de59d98
6
+ metadata.gz: 881375be204138f9f33e3f5620c977f1dda5fb0710f22ab1aaafb13afc06ac29ed2fabe0ec73234b4a41106c0939f94576e7e5f8f7b0d06f941e921be37e03f2
7
+ data.tar.gz: e028c28a23891b73f5c07d562c96accaeaef298c00b064cc03c7972e512ae5a9b4a9b4e3c3fb0e59a654efd718f214d6683eb5248efeb3f736383be84abb7cc9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-datastore_v1
2
2
 
3
+ ### v0.39.0 (2024-10-20)
4
+
5
+ * Regenerated from discovery document revision 20241008
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.38.0 (2024-05-19)
4
9
 
5
10
  * Regenerated using generator version 0.15.0
@@ -1827,6 +1827,12 @@ module Google
1827
1827
  # @return [Fixnum]
1828
1828
  attr_accessor :base_version
1829
1829
 
1830
+ # The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`.
1831
+ # If this is set, then `conflict_detection_strategy` must also be set.
1832
+ # Corresponds to the JSON property `conflictResolutionStrategy`
1833
+ # @return [String]
1834
+ attr_accessor :conflict_resolution_strategy
1835
+
1830
1836
  # A unique identifier for an entity. If a key's partition ID or any of its path
1831
1837
  # kinds or names are reserved/read-only, the key is reserved/read-only. A
1832
1838
  # reserved/read-only key is forbidden in certain documented contexts.
@@ -1845,6 +1851,14 @@ module Google
1845
1851
  # @return [Google::Apis::DatastoreV1::PropertyMask]
1846
1852
  attr_accessor :property_mask
1847
1853
 
1854
+ # Optional. The transforms to perform on the entity. This field can be set only
1855
+ # when the operation is `insert`, `update`, or `upsert`. If present, the
1856
+ # transforms are be applied to the entity regardless of the property mask, in
1857
+ # order, after the operation.
1858
+ # Corresponds to the JSON property `propertyTransforms`
1859
+ # @return [Array<Google::Apis::DatastoreV1::PropertyTransform>]
1860
+ attr_accessor :property_transforms
1861
+
1848
1862
  # A Datastore data object. Must not exceed 1 MiB - 4 bytes.
1849
1863
  # Corresponds to the JSON property `update`
1850
1864
  # @return [Google::Apis::DatastoreV1::Entity]
@@ -1868,9 +1882,11 @@ module Google
1868
1882
  # Update properties of this object
1869
1883
  def update!(**args)
1870
1884
  @base_version = args[:base_version] if args.key?(:base_version)
1885
+ @conflict_resolution_strategy = args[:conflict_resolution_strategy] if args.key?(:conflict_resolution_strategy)
1871
1886
  @delete = args[:delete] if args.key?(:delete)
1872
1887
  @insert = args[:insert] if args.key?(:insert)
1873
1888
  @property_mask = args[:property_mask] if args.key?(:property_mask)
1889
+ @property_transforms = args[:property_transforms] if args.key?(:property_transforms)
1874
1890
  @update = args[:update] if args.key?(:update)
1875
1891
  @update_time = args[:update_time] if args.key?(:update_time)
1876
1892
  @upsert = args[:upsert] if args.key?(:upsert)
@@ -1900,6 +1916,12 @@ module Google
1900
1916
  # @return [Google::Apis::DatastoreV1::Key]
1901
1917
  attr_accessor :key
1902
1918
 
1919
+ # The results of applying each PropertyTransform, in the same order of the
1920
+ # request.
1921
+ # Corresponds to the JSON property `transformResults`
1922
+ # @return [Array<Google::Apis::DatastoreV1::Value>]
1923
+ attr_accessor :transform_results
1924
+
1903
1925
  # The update time of the entity on the server after processing the mutation. If
1904
1926
  # the mutation doesn't change anything on the server, then the timestamp will be
1905
1927
  # the update timestamp of the current entity. This field will not be set after a
@@ -1926,6 +1948,7 @@ module Google
1926
1948
  @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
1927
1949
  @create_time = args[:create_time] if args.key?(:create_time)
1928
1950
  @key = args[:key] if args.key?(:key)
1951
+ @transform_results = args[:transform_results] if args.key?(:transform_results)
1929
1952
  @update_time = args[:update_time] if args.key?(:update_time)
1930
1953
  @version = args[:version] if args.key?(:version)
1931
1954
  end
@@ -2152,6 +2175,68 @@ module Google
2152
2175
  end
2153
2176
  end
2154
2177
 
2178
+ # A transformation of an entity property.
2179
+ class PropertyTransform
2180
+ include Google::Apis::Core::Hashable
2181
+
2182
+ # An array value.
2183
+ # Corresponds to the JSON property `appendMissingElements`
2184
+ # @return [Google::Apis::DatastoreV1::ArrayValue]
2185
+ attr_accessor :append_missing_elements
2186
+
2187
+ # A message that can hold any of the supported value types and associated
2188
+ # metadata.
2189
+ # Corresponds to the JSON property `increment`
2190
+ # @return [Google::Apis::DatastoreV1::Value]
2191
+ attr_accessor :increment
2192
+
2193
+ # A message that can hold any of the supported value types and associated
2194
+ # metadata.
2195
+ # Corresponds to the JSON property `maximum`
2196
+ # @return [Google::Apis::DatastoreV1::Value]
2197
+ attr_accessor :maximum
2198
+
2199
+ # A message that can hold any of the supported value types and associated
2200
+ # metadata.
2201
+ # Corresponds to the JSON property `minimum`
2202
+ # @return [Google::Apis::DatastoreV1::Value]
2203
+ attr_accessor :minimum
2204
+
2205
+ # Optional. The name of the property. Property paths (a list of property names
2206
+ # separated by dots (`.`)) may be used to refer to properties inside entity
2207
+ # values. For example `foo.bar` means the property `bar` inside the entity
2208
+ # property `foo`. If a property name contains a dot `.` or a backlslash `\`,
2209
+ # then that name must be escaped.
2210
+ # Corresponds to the JSON property `property`
2211
+ # @return [String]
2212
+ attr_accessor :property
2213
+
2214
+ # An array value.
2215
+ # Corresponds to the JSON property `removeAllFromArray`
2216
+ # @return [Google::Apis::DatastoreV1::ArrayValue]
2217
+ attr_accessor :remove_all_from_array
2218
+
2219
+ # Sets the property to the given server value.
2220
+ # Corresponds to the JSON property `setToServerValue`
2221
+ # @return [String]
2222
+ attr_accessor :set_to_server_value
2223
+
2224
+ def initialize(**args)
2225
+ update!(**args)
2226
+ end
2227
+
2228
+ # Update properties of this object
2229
+ def update!(**args)
2230
+ @append_missing_elements = args[:append_missing_elements] if args.key?(:append_missing_elements)
2231
+ @increment = args[:increment] if args.key?(:increment)
2232
+ @maximum = args[:maximum] if args.key?(:maximum)
2233
+ @minimum = args[:minimum] if args.key?(:minimum)
2234
+ @property = args[:property] if args.key?(:property)
2235
+ @remove_all_from_array = args[:remove_all_from_array] if args.key?(:remove_all_from_array)
2236
+ @set_to_server_value = args[:set_to_server_value] if args.key?(:set_to_server_value)
2237
+ end
2238
+ end
2239
+
2155
2240
  # A query for entities.
2156
2241
  class Query
2157
2242
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatastoreV1
18
18
  # Version of the google-apis-datastore_v1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.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 = "20241008"
26
26
  end
27
27
  end
28
28
  end
@@ -400,6 +400,12 @@ module Google
400
400
  include Google::Apis::Core::JsonObjectSupport
401
401
  end
402
402
 
403
+ class PropertyTransform
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
403
409
  class Query
404
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
411
 
@@ -1023,12 +1029,15 @@ module Google
1023
1029
  # @private
1024
1030
  class Representation < Google::Apis::Core::JsonRepresentation
1025
1031
  property :base_version, :numeric_string => true, as: 'baseVersion'
1032
+ property :conflict_resolution_strategy, as: 'conflictResolutionStrategy'
1026
1033
  property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
1027
1034
 
1028
1035
  property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
1029
1036
 
1030
1037
  property :property_mask, as: 'propertyMask', class: Google::Apis::DatastoreV1::PropertyMask, decorator: Google::Apis::DatastoreV1::PropertyMask::Representation
1031
1038
 
1039
+ collection :property_transforms, as: 'propertyTransforms', class: Google::Apis::DatastoreV1::PropertyTransform, decorator: Google::Apis::DatastoreV1::PropertyTransform::Representation
1040
+
1032
1041
  property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
1033
1042
 
1034
1043
  property :update_time, as: 'updateTime'
@@ -1044,6 +1053,8 @@ module Google
1044
1053
  property :create_time, as: 'createTime'
1045
1054
  property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
1046
1055
 
1056
+ collection :transform_results, as: 'transformResults', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
1057
+
1047
1058
  property :update_time, as: 'updateTime'
1048
1059
  property :version, :numeric_string => true, as: 'version'
1049
1060
  end
@@ -1116,6 +1127,24 @@ module Google
1116
1127
  end
1117
1128
  end
1118
1129
 
1130
+ class PropertyTransform
1131
+ # @private
1132
+ class Representation < Google::Apis::Core::JsonRepresentation
1133
+ property :append_missing_elements, as: 'appendMissingElements', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
1134
+
1135
+ property :increment, as: 'increment', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
1136
+
1137
+ property :maximum, as: 'maximum', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
1138
+
1139
+ property :minimum, as: 'minimum', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
1140
+
1141
+ property :property, as: 'property'
1142
+ property :remove_all_from_array, as: 'removeAllFromArray', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
1143
+
1144
+ property :set_to_server_value, as: 'setToServerValue'
1145
+ end
1146
+ end
1147
+
1119
1148
  class Query
1120
1149
  # @private
1121
1150
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datastore_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.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-26 00:00:00.000000000 Z
11
+ date: 2024-10-27 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1
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.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Datastore API V1