google-apis-datastore_v1 0.39.0 → 0.41.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: f513dc3dc6dc9d373a0a9de18f62f191c8507bf9ab1f78a0dfd3b125daa75f27
|
4
|
+
data.tar.gz: 1fc4587db83cda715fb5b2b88708cfec759283f8e19c16dd8856eaf25f310170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a219f62f8d86b3da93617fe5426dcc043e3b4031179d7ce40bc83ba44478aaacaf92fc66ae81f6b52efc54f973fefec04d22f6476062fbb2f3a2c7e49c7521a
|
7
|
+
data.tar.gz: 96af73574b21afe12b8b3678bed34e685294f84c7e20ffd97f776de22e742d3a070d2da5f2106337ab63f1f7033de0085319210f5f24f1d143c13c4cda892eae
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-datastore_v1
|
2
2
|
|
3
|
+
### v0.41.0 (2024-12-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241204
|
6
|
+
|
7
|
+
### v0.40.0 (2024-11-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241018
|
10
|
+
|
3
11
|
### v0.39.0 (2024-10-20)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241008
|
@@ -94,7 +94,9 @@ module Google
|
|
94
94
|
# @return [Array<Google::Apis::DatastoreV1::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::DatastoreV1::Query]
|
100
102
|
attr_accessor :nested_query
|
@@ -654,6 +656,66 @@ module Google
|
|
654
656
|
end
|
655
657
|
end
|
656
658
|
|
659
|
+
# Nearest Neighbors search config. The ordering provided by FindNearest
|
660
|
+
# supersedes the order_by stage. If multiple documents have the same vector
|
661
|
+
# distance, the returned document order is not guaranteed to be stable between
|
662
|
+
# queries.
|
663
|
+
class FindNearest
|
664
|
+
include Google::Apis::Core::Hashable
|
665
|
+
|
666
|
+
# Required. The Distance Measure to use, required.
|
667
|
+
# Corresponds to the JSON property `distanceMeasure`
|
668
|
+
# @return [String]
|
669
|
+
attr_accessor :distance_measure
|
670
|
+
|
671
|
+
# Optional. Optional name of the field to output the result of the vector
|
672
|
+
# distance calculation. Must conform to entity property limitations.
|
673
|
+
# Corresponds to the JSON property `distanceResultProperty`
|
674
|
+
# @return [String]
|
675
|
+
attr_accessor :distance_result_property
|
676
|
+
|
677
|
+
# Optional. Option to specify a threshold for which no less similar documents
|
678
|
+
# will be returned. The behavior of the specified `distance_measure` will affect
|
679
|
+
# the meaning of the distance threshold. Since DOT_PRODUCT distances increase
|
680
|
+
# when the vectors are more similar, the comparison is inverted. * For EUCLIDEAN,
|
681
|
+
# COSINE: WHERE distance <= distance_threshold * For DOT_PRODUCT: WHERE
|
682
|
+
# distance >= distance_threshold
|
683
|
+
# Corresponds to the JSON property `distanceThreshold`
|
684
|
+
# @return [Float]
|
685
|
+
attr_accessor :distance_threshold
|
686
|
+
|
687
|
+
# Required. The number of nearest neighbors to return. Must be a positive
|
688
|
+
# integer of no more than 100.
|
689
|
+
# Corresponds to the JSON property `limit`
|
690
|
+
# @return [Fixnum]
|
691
|
+
attr_accessor :limit
|
692
|
+
|
693
|
+
# A message that can hold any of the supported value types and associated
|
694
|
+
# metadata.
|
695
|
+
# Corresponds to the JSON property `queryVector`
|
696
|
+
# @return [Google::Apis::DatastoreV1::Value]
|
697
|
+
attr_accessor :query_vector
|
698
|
+
|
699
|
+
# A reference to a property relative to the kind expressions.
|
700
|
+
# Corresponds to the JSON property `vectorProperty`
|
701
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
702
|
+
attr_accessor :vector_property
|
703
|
+
|
704
|
+
def initialize(**args)
|
705
|
+
update!(**args)
|
706
|
+
end
|
707
|
+
|
708
|
+
# Update properties of this object
|
709
|
+
def update!(**args)
|
710
|
+
@distance_measure = args[:distance_measure] if args.key?(:distance_measure)
|
711
|
+
@distance_result_property = args[:distance_result_property] if args.key?(:distance_result_property)
|
712
|
+
@distance_threshold = args[:distance_threshold] if args.key?(:distance_threshold)
|
713
|
+
@limit = args[:limit] if args.key?(:limit)
|
714
|
+
@query_vector = args[:query_vector] if args.key?(:query_vector)
|
715
|
+
@vector_property = args[:vector_property] if args.key?(:vector_property)
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
657
719
|
# Metadata common to all Datastore Admin operations.
|
658
720
|
class GoogleDatastoreAdminV1CommonMetadata
|
659
721
|
include Google::Apis::Core::Hashable
|
@@ -2237,7 +2299,9 @@ module Google
|
|
2237
2299
|
end
|
2238
2300
|
end
|
2239
2301
|
|
2240
|
-
# A query for entities.
|
2302
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
2303
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
2304
|
+
# limit 7. find_nearest
|
2241
2305
|
class Query
|
2242
2306
|
include Google::Apis::Core::Hashable
|
2243
2307
|
|
@@ -2263,6 +2327,14 @@ module Google
|
|
2263
2327
|
# @return [Google::Apis::DatastoreV1::Filter]
|
2264
2328
|
attr_accessor :filter
|
2265
2329
|
|
2330
|
+
# Nearest Neighbors search config. The ordering provided by FindNearest
|
2331
|
+
# supersedes the order_by stage. If multiple documents have the same vector
|
2332
|
+
# distance, the returned document order is not guaranteed to be stable between
|
2333
|
+
# queries.
|
2334
|
+
# Corresponds to the JSON property `findNearest`
|
2335
|
+
# @return [Google::Apis::DatastoreV1::FindNearest]
|
2336
|
+
attr_accessor :find_nearest
|
2337
|
+
|
2266
2338
|
# The kinds to query (if empty, returns entities of all kinds). Currently at
|
2267
2339
|
# most 1 kind may be specified.
|
2268
2340
|
# Corresponds to the JSON property `kind`
|
@@ -2308,6 +2380,7 @@ module Google
|
|
2308
2380
|
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
2309
2381
|
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
2310
2382
|
@filter = args[:filter] if args.key?(:filter)
|
2383
|
+
@find_nearest = args[:find_nearest] if args.key?(:find_nearest)
|
2311
2384
|
@kind = args[:kind] if args.key?(:kind)
|
2312
2385
|
@limit = args[:limit] if args.key?(:limit)
|
2313
2386
|
@offset = args[:offset] if args.key?(:offset)
|
@@ -2698,7 +2771,9 @@ module Google
|
|
2698
2771
|
# @return [Google::Apis::DatastoreV1::PropertyMask]
|
2699
2772
|
attr_accessor :property_mask
|
2700
2773
|
|
2701
|
-
# A query for entities.
|
2774
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
2775
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
2776
|
+
# limit 7. find_nearest
|
2702
2777
|
# Corresponds to the JSON property `query`
|
2703
2778
|
# @return [Google::Apis::DatastoreV1::Query]
|
2704
2779
|
attr_accessor :query
|
@@ -2738,7 +2813,9 @@ module Google
|
|
2738
2813
|
# @return [Google::Apis::DatastoreV1::ExplainMetrics]
|
2739
2814
|
attr_accessor :explain_metrics
|
2740
2815
|
|
2741
|
-
# A query for entities.
|
2816
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
2817
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
2818
|
+
# limit 7. find_nearest
|
2742
2819
|
# Corresponds to the JSON property `query`
|
2743
2820
|
# @return [Google::Apis::DatastoreV1::Query]
|
2744
2821
|
attr_accessor :query
|
@@ -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.
|
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.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241204"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -148,6 +148,12 @@ module Google
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
+
class FindNearest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
151
157
|
class GoogleDatastoreAdminV1CommonMetadata
|
152
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
159
|
|
@@ -702,6 +708,20 @@ module Google
|
|
702
708
|
end
|
703
709
|
end
|
704
710
|
|
711
|
+
class FindNearest
|
712
|
+
# @private
|
713
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
714
|
+
property :distance_measure, as: 'distanceMeasure'
|
715
|
+
property :distance_result_property, as: 'distanceResultProperty'
|
716
|
+
property :distance_threshold, as: 'distanceThreshold'
|
717
|
+
property :limit, as: 'limit'
|
718
|
+
property :query_vector, as: 'queryVector', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
719
|
+
|
720
|
+
property :vector_property, as: 'vectorProperty', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
721
|
+
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
705
725
|
class GoogleDatastoreAdminV1CommonMetadata
|
706
726
|
# @private
|
707
727
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1153,6 +1173,8 @@ module Google
|
|
1153
1173
|
property :end_cursor, :base64 => true, as: 'endCursor'
|
1154
1174
|
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
1155
1175
|
|
1176
|
+
property :find_nearest, as: 'findNearest', class: Google::Apis::DatastoreV1::FindNearest, decorator: Google::Apis::DatastoreV1::FindNearest::Representation
|
1177
|
+
|
1156
1178
|
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
|
1157
1179
|
|
1158
1180
|
property :limit, as: 'limit'
|
@@ -553,8 +553,8 @@ module Google
|
|
553
553
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
554
554
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
555
555
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
556
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
557
|
-
# corresponding to `Code.CANCELLED`.
|
556
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
557
|
+
# , corresponding to `Code.CANCELLED`.
|
558
558
|
# @param [String] name
|
559
559
|
# The name of the operation resource to be cancelled.
|
560
560
|
# @param [String] fields
|
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.
|
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-
|
11
|
+
date: 2024-12-15 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.41.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.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Datastore API V1
|