google-apis-firestore_v1beta1 0.39.0 → 0.41.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: 0e9525f9b0c306b65b524f4cb6300a292e1eda4bc54c869d1244a03b06aeb2b2
4
- data.tar.gz: 5c9b35cc8aaf6f2591f7153112489ad2452d532f656010f99f4bbbf3e9eda3d0
3
+ metadata.gz: d401c7fc2f4693f8488b418a5817a9130e9fd60ade25f16e50331a68844c7f5a
4
+ data.tar.gz: 45ac9d9c6c5824965c28d932b15230c47755de96e5710774aff76ff0aed51ed4
5
5
  SHA512:
6
- metadata.gz: 4fc374212db090399b4c524bf3cd0f30da6c7f88e0a0d8bf19c40c01593c09274006fb5785f77e68893698e0ffccfa14629e512f36a38f510b6ce1d6e2d5d95b
7
- data.tar.gz: 10076803fa1f90623e58b48723a968dba313e2c5aa6e49202dad12d61a0b7fcb2421abe6f53199a94ed2199545215ca181ea34cb6c2a12faf3b14af6dd59712b
6
+ metadata.gz: 78e0e92691c20dd5bdbbdee3ca3e7ad13c1036c2e0d35fe08a0199ee4a7fe18c3222717634848cfb4c49100c0b255f15ba36beb5010c0c5ded40b61a0f1e02a4
7
+ data.tar.gz: 58efe7686f995ade7e6c614da240848d70b65a67bbdb8374ddc95f9870212fe9c570d6f98572b54f659da6c75601af683c3c0e12ec2b9e0ca952b05d8ba48ec9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firestore_v1beta1
2
2
 
3
+ ### v0.41.0 (2024-04-28)
4
+
5
+ * Regenerated from discovery document revision 20240420
6
+
7
+ ### v0.40.0 (2024-03-31)
8
+
9
+ * Regenerated from discovery document revision 20240324
10
+
3
11
  ### v0.39.0 (2024-03-24)
4
12
 
5
13
  * Regenerated from discovery document revision 20240317
@@ -637,7 +637,10 @@ module Google
637
637
  # A Document has changed. May be the result of multiple writes, including
638
638
  # deletes, that ultimately resulted in a new value for the Document. Multiple
639
639
  # DocumentChange messages may be returned for the same logical change, if
640
- # multiple targets are affected.
640
+ # multiple targets are affected. For PipelineQueryTargets, `document` will be in
641
+ # the new pipeline format, For a Listen stream with both QueryTargets and
642
+ # PipelineQueryTargets present, if a document matches both types of queries,
643
+ # then a separate DocumentChange messages will be sent out one for each set.
641
644
  class DocumentChange
642
645
  include Google::Apis::Core::Hashable
643
646
 
@@ -1097,6 +1100,44 @@ module Google
1097
1100
  end
1098
1101
  end
1099
1102
 
1103
+ # Nearest Neighbors search config.
1104
+ class FindNearest
1105
+ include Google::Apis::Core::Hashable
1106
+
1107
+ # Required. The distance measure to use, required.
1108
+ # Corresponds to the JSON property `distanceMeasure`
1109
+ # @return [String]
1110
+ attr_accessor :distance_measure
1111
+
1112
+ # Required. The number of nearest neighbors to return. Must be a positive
1113
+ # integer of no more than 1000.
1114
+ # Corresponds to the JSON property `limit`
1115
+ # @return [Fixnum]
1116
+ attr_accessor :limit
1117
+
1118
+ # A message that can hold any of the supported value types.
1119
+ # Corresponds to the JSON property `queryVector`
1120
+ # @return [Google::Apis::FirestoreV1beta1::Value]
1121
+ attr_accessor :query_vector
1122
+
1123
+ # A reference to a field in a document, ex: `stats.operations`.
1124
+ # Corresponds to the JSON property `vectorField`
1125
+ # @return [Google::Apis::FirestoreV1beta1::FieldReference]
1126
+ attr_accessor :vector_field
1127
+
1128
+ def initialize(**args)
1129
+ update!(**args)
1130
+ end
1131
+
1132
+ # Update properties of this object
1133
+ def update!(**args)
1134
+ @distance_measure = args[:distance_measure] if args.key?(:distance_measure)
1135
+ @limit = args[:limit] if args.key?(:limit)
1136
+ @query_vector = args[:query_vector] if args.key?(:query_vector)
1137
+ @vector_field = args[:vector_field] if args.key?(:vector_field)
1138
+ end
1139
+ end
1140
+
1100
1141
  # Metadata related to the create database operation.
1101
1142
  class GoogleFirestoreAdminV1CreateDatabaseMetadata
1102
1143
  include Google::Apis::Core::Hashable
@@ -1801,7 +1842,10 @@ module Google
1801
1842
  # A Document has changed. May be the result of multiple writes, including
1802
1843
  # deletes, that ultimately resulted in a new value for the Document. Multiple
1803
1844
  # DocumentChange messages may be returned for the same logical change, if
1804
- # multiple targets are affected.
1845
+ # multiple targets are affected. For PipelineQueryTargets, `document` will be in
1846
+ # the new pipeline format, For a Listen stream with both QueryTargets and
1847
+ # PipelineQueryTargets present, if a document matches both types of queries,
1848
+ # then a separate DocumentChange messages will be sent out one for each set.
1805
1849
  # Corresponds to the JSON property `documentChange`
1806
1850
  # @return [Google::Apis::FirestoreV1beta1::DocumentChange]
1807
1851
  attr_accessor :document_change
@@ -2431,6 +2475,11 @@ module Google
2431
2475
  # @return [Google::Apis::FirestoreV1beta1::Cursor]
2432
2476
  attr_accessor :end_at
2433
2477
 
2478
+ # Nearest Neighbors search config.
2479
+ # Corresponds to the JSON property `findNearest`
2480
+ # @return [Google::Apis::FirestoreV1beta1::FindNearest]
2481
+ attr_accessor :find_nearest
2482
+
2434
2483
  # The collections to query.
2435
2484
  # Corresponds to the JSON property `from`
2436
2485
  # @return [Array<Google::Apis::FirestoreV1beta1::CollectionSelector>]
@@ -2489,6 +2538,7 @@ module Google
2489
2538
  # Update properties of this object
2490
2539
  def update!(**args)
2491
2540
  @end_at = args[:end_at] if args.key?(:end_at)
2541
+ @find_nearest = args[:find_nearest] if args.key?(:find_nearest)
2492
2542
  @from = args[:from] if args.key?(:from)
2493
2543
  @limit = args[:limit] if args.key?(:limit)
2494
2544
  @offset = args[:offset] if args.key?(:offset)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirestoreV1beta1
18
18
  # Version of the google-apis-firestore_v1beta1 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240317"
25
+ REVISION = "20240420"
26
26
  end
27
27
  end
28
28
  end
@@ -226,6 +226,12 @@ module Google
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
+ class FindNearest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
229
235
  class GoogleFirestoreAdminV1CreateDatabaseMetadata
230
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
237
 
@@ -848,6 +854,18 @@ module Google
848
854
  end
849
855
  end
850
856
 
857
+ class FindNearest
858
+ # @private
859
+ class Representation < Google::Apis::Core::JsonRepresentation
860
+ property :distance_measure, as: 'distanceMeasure'
861
+ property :limit, as: 'limit'
862
+ property :query_vector, as: 'queryVector', class: Google::Apis::FirestoreV1beta1::Value, decorator: Google::Apis::FirestoreV1beta1::Value::Representation
863
+
864
+ property :vector_field, as: 'vectorField', class: Google::Apis::FirestoreV1beta1::FieldReference, decorator: Google::Apis::FirestoreV1beta1::FieldReference::Representation
865
+
866
+ end
867
+ end
868
+
851
869
  class GoogleFirestoreAdminV1CreateDatabaseMetadata
852
870
  # @private
853
871
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1236,6 +1254,8 @@ module Google
1236
1254
  class Representation < Google::Apis::Core::JsonRepresentation
1237
1255
  property :end_at, as: 'endAt', class: Google::Apis::FirestoreV1beta1::Cursor, decorator: Google::Apis::FirestoreV1beta1::Cursor::Representation
1238
1256
 
1257
+ property :find_nearest, as: 'findNearest', class: Google::Apis::FirestoreV1beta1::FindNearest, decorator: Google::Apis::FirestoreV1beta1::FindNearest::Representation
1258
+
1239
1259
  collection :from, as: 'from', class: Google::Apis::FirestoreV1beta1::CollectionSelector, decorator: Google::Apis::FirestoreV1beta1::CollectionSelector::Representation
1240
1260
 
1241
1261
  property :limit, as: 'limit'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firestore_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.41.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-03-24 00:00:00.000000000 Z
11
+ date: 2024-04-28 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-firestore_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.41.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []