google-cloud-firestore-v1 0.4.8 → 0.7.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 +10 -5
- data/lib/google/cloud/firestore/v1/firestore/client.rb +8 -2
- data/lib/google/cloud/firestore/v1/version.rb +1 -1
- data/lib/google/firestore/v1/common_pb.rb +2 -1
- data/lib/google/firestore/v1/document_pb.rb +2 -1
- data/lib/google/firestore/v1/firestore_pb.rb +11 -1
- data/lib/google/firestore/v1/query_pb.rb +2 -1
- data/lib/google/firestore/v1/write_pb.rb +2 -1
- data/proto_docs/google/firestore/v1/firestore.rb +12 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa7a3a05d20f035e538491503f205b0a3f615dba137d0deec1154581d7c27a8b
|
4
|
+
data.tar.gz: 13549cd8a54e0c0c9981b63e5acf2d8058b42c543cd551d705c4af1ffe53a069
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f345b6be6955df190af0e0e272917495d95d9deed05c0363c88a3a5cc6211b91474456755225c3143b78cc59f1dabd288e5ade2e3ef41097fa68d85f9b585257
|
7
|
+
data.tar.gz: 1742819230867bea83eb93de132c7035100c1957e3dea8f25a82d94459a835e975ebe519d953c70b8c6e8ea0658d381ac0b48c2445b711762b57912ba5008eca
|
data/README.md
CHANGED
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -1138,7 +1138,7 @@ module Google
|
|
1138
1138
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1139
1139
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1140
1140
|
#
|
1141
|
-
# @overload partition_query(parent: nil, structured_query: nil, partition_count: nil, page_token: nil, page_size: nil)
|
1141
|
+
# @overload partition_query(parent: nil, structured_query: nil, partition_count: nil, page_token: nil, page_size: nil, read_time: nil)
|
1142
1142
|
# Pass arguments to `partition_query` via keyword arguments. Note that at
|
1143
1143
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1144
1144
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1184,6 +1184,9 @@ module Google
|
|
1184
1184
|
# to PartitionQuery will return up to 8 partitions and a `next_page_token`
|
1185
1185
|
# if more results exist. A second call to PartitionQuery will return up to
|
1186
1186
|
# 2 partitions, to complete the total of 10 specified in `partition_count`.
|
1187
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1188
|
+
# Reads documents as they were at the given time.
|
1189
|
+
# This may not be older than 270 seconds.
|
1187
1190
|
#
|
1188
1191
|
# @yield [response, operation] Access the result along with the RPC operation
|
1189
1192
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Firestore::V1::Cursor>]
|
@@ -1425,7 +1428,7 @@ module Google
|
|
1425
1428
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1426
1429
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1427
1430
|
#
|
1428
|
-
# @overload list_collection_ids(parent: nil, page_size: nil, page_token: nil)
|
1431
|
+
# @overload list_collection_ids(parent: nil, page_size: nil, page_token: nil, read_time: nil)
|
1429
1432
|
# Pass arguments to `list_collection_ids` via keyword arguments. Note that at
|
1430
1433
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1431
1434
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1440,6 +1443,9 @@ module Google
|
|
1440
1443
|
# @param page_token [::String]
|
1441
1444
|
# A page token. Must be a value from
|
1442
1445
|
# {::Google::Cloud::Firestore::V1::ListCollectionIdsResponse ListCollectionIdsResponse}.
|
1446
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1447
|
+
# Reads documents as they were at the given time.
|
1448
|
+
# This may not be older than 270 seconds.
|
1443
1449
|
#
|
1444
1450
|
# @yield [response, operation] Access the result along with the RPC operation
|
1445
1451
|
# @yieldparam response [::Google::Cloud::Firestore::V1::ListCollectionIdsResponse]
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/v1/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf/timestamp_pb'
|
5
4
|
require 'google/protobuf'
|
6
5
|
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/firestore/v1/common.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.firestore.v1.DocumentMask" do
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/v1/document.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/protobuf/struct_pb'
|
5
7
|
require 'google/protobuf/timestamp_pb'
|
6
8
|
require 'google/type/latlng_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/firestore/v1/document.proto", :syntax => :proto3) do
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/v1/firestore.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -11,7 +13,6 @@ require 'google/firestore/v1/write_pb'
|
|
11
13
|
require 'google/protobuf/empty_pb'
|
12
14
|
require 'google/protobuf/timestamp_pb'
|
13
15
|
require 'google/rpc/status_pb'
|
14
|
-
require 'google/protobuf'
|
15
16
|
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
18
|
add_file("google/firestore/v1/firestore.proto", :syntax => :proto3) do
|
@@ -111,6 +112,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
111
112
|
optional :document, :message, 1, "google.firestore.v1.Document"
|
112
113
|
optional :read_time, :message, 3, "google.protobuf.Timestamp"
|
113
114
|
optional :skipped_results, :int32, 4
|
115
|
+
oneof :continuation_selector do
|
116
|
+
optional :done, :bool, 6
|
117
|
+
end
|
114
118
|
end
|
115
119
|
add_message "google.firestore.v1.PartitionQueryRequest" do
|
116
120
|
optional :parent, :string, 1
|
@@ -120,6 +124,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
120
124
|
oneof :query_type do
|
121
125
|
optional :structured_query, :message, 2, "google.firestore.v1.StructuredQuery"
|
122
126
|
end
|
127
|
+
oneof :consistency_selector do
|
128
|
+
optional :read_time, :message, 6, "google.protobuf.Timestamp"
|
129
|
+
end
|
123
130
|
end
|
124
131
|
add_message "google.firestore.v1.PartitionQueryResponse" do
|
125
132
|
repeated :partitions, :message, 1, "google.firestore.v1.Cursor"
|
@@ -194,6 +201,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
194
201
|
optional :parent, :string, 1
|
195
202
|
optional :page_size, :int32, 2
|
196
203
|
optional :page_token, :string, 3
|
204
|
+
oneof :consistency_selector do
|
205
|
+
optional :read_time, :message, 4, "google.protobuf.Timestamp"
|
206
|
+
end
|
197
207
|
end
|
198
208
|
add_message "google.firestore.v1.ListCollectionIdsResponse" do
|
199
209
|
repeated :collection_ids, :string, 1
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/v1/query.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/firestore/v1/document_pb'
|
6
8
|
require 'google/protobuf/wrappers_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/firestore/v1/query.proto", :syntax => :proto3) do
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/v1/write.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/firestore/v1/common_pb'
|
5
7
|
require 'google/firestore/v1/document_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/firestore/v1/write.proto", :syntax => :proto3) do
|
@@ -360,6 +360,10 @@ module Google
|
|
360
360
|
# @return [::Integer]
|
361
361
|
# The number of results that have been skipped due to an offset between
|
362
362
|
# the last response and the current response.
|
363
|
+
# @!attribute [rw] done
|
364
|
+
# @return [::Boolean]
|
365
|
+
# If present, Firestore has completely finished the request and no more
|
366
|
+
# documents will be returned.
|
363
367
|
class RunQueryResponse
|
364
368
|
include ::Google::Protobuf::MessageExts
|
365
369
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -412,6 +416,10 @@ module Google
|
|
412
416
|
# to PartitionQuery will return up to 8 partitions and a `next_page_token`
|
413
417
|
# if more results exist. A second call to PartitionQuery will return up to
|
414
418
|
# 2 partitions, to complete the total of 10 specified in `partition_count`.
|
419
|
+
# @!attribute [rw] read_time
|
420
|
+
# @return [::Google::Protobuf::Timestamp]
|
421
|
+
# Reads documents as they were at the given time.
|
422
|
+
# This may not be older than 270 seconds.
|
415
423
|
class PartitionQueryRequest
|
416
424
|
include ::Google::Protobuf::MessageExts
|
417
425
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -726,6 +734,10 @@ module Google
|
|
726
734
|
# @return [::String]
|
727
735
|
# A page token. Must be a value from
|
728
736
|
# {::Google::Cloud::Firestore::V1::ListCollectionIdsResponse ListCollectionIdsResponse}.
|
737
|
+
# @!attribute [rw] read_time
|
738
|
+
# @return [::Google::Protobuf::Timestamp]
|
739
|
+
# Reads documents as they were at the given time.
|
740
|
+
# This may not be older than 270 seconds.
|
729
741
|
class ListCollectionIdsRequest
|
730
742
|
include ::Google::Protobuf::MessageExts
|
731
743
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
@@ -46,8 +46,8 @@ module Google
|
|
46
46
|
|
47
47
|
# `Value` represents a dynamically typed value which can be either
|
48
48
|
# null, a number, a string, a boolean, a recursive struct value, or a
|
49
|
-
# list of values. A producer of value is expected to set one of
|
50
|
-
# variants
|
49
|
+
# list of values. A producer of value is expected to set one of these
|
50
|
+
# variants. Absence of any variant indicates an error.
|
51
51
|
#
|
52
52
|
# The JSON representation for `Value` is JSON value.
|
53
53
|
# @!attribute [rw] null_value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-firestore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2022-
|
11
|
+
date: 2022-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,14 +208,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
version: '2.
|
211
|
+
version: '2.6'
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
rubygems_version: 3.3.
|
218
|
+
rubygems_version: 3.3.14
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: API Client library for the Cloud Firestore V1 API
|