google-cloud-firestore-v1 0.5.0 → 0.7.1

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: 71aac6d64371cbc93df74926ccbd1fb316289ea293b4ecc46000429562cfaf95
4
- data.tar.gz: fef852d8d1d8d5c9d42edefd86f7fd0df4c8306bf7c0950bf835a506455bf89e
3
+ metadata.gz: f7922ef0b53adb9cf8c05dea972dc77df76ca049be8d888ebb3070f86520eeba
4
+ data.tar.gz: aafccc0aa33cc527e926d2b16696bb2f8d24551e8871d7d604873646d2bd060d
5
5
  SHA512:
6
- metadata.gz: 7ca80a0c3118b395384b831ceb3c8f2b01dd4d445716a50bb07a0adf57b45a34bc03d04f38d386a9a25d4884205f5f1b1bd3bf1dda1688645333256ef13ddefe
7
- data.tar.gz: fbdad77e2109c7990bfa8780f8d465e851c0400426ac1d7d4995d23f5828fc0f5b0a240672053744d62467f9f9b136c90d8f9b4335ea1924bb5cd02dd5ce77b8
6
+ metadata.gz: ae9b1fb54e5792c92296df31b1e1184e2f83a390761ee4f5b6476984e95a2c1c19141e097cefc778c6ab0169bbd3e02ffa89f93f85793f047a65bad7e17d21bc
7
+ data.tar.gz: f37cc1e8425e89cfac0569fbf52146ff9e8b1ef36d778ca439a14ba13c564bd2de7886b975cf629de4cd8df52ab3cb847138404aefc5ff7e59afaa4599665943
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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Firestore
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
@@ -124,6 +124,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
124
  oneof :query_type do
125
125
  optional :structured_query, :message, 2, "google.firestore.v1.StructuredQuery"
126
126
  end
127
+ oneof :consistency_selector do
128
+ optional :read_time, :message, 6, "google.protobuf.Timestamp"
129
+ end
127
130
  end
128
131
  add_message "google.firestore.v1.PartitionQueryResponse" do
129
132
  repeated :partitions, :message, 1, "google.firestore.v1.Cursor"
@@ -198,6 +201,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
198
201
  optional :parent, :string, 1
199
202
  optional :page_size, :int32, 2
200
203
  optional :page_token, :string, 3
204
+ oneof :consistency_selector do
205
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
206
+ end
201
207
  end
202
208
  add_message "google.firestore.v1.ListCollectionIdsResponse" do
203
209
  repeated :collection_ids, :string, 1
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/field_behavior_pb'
7
6
  require 'google/firestore/v1/document_pb'
8
7
  require 'google/protobuf/wrappers_pb'
9
8
 
@@ -416,6 +416,10 @@ module Google
416
416
  # to PartitionQuery will return up to 8 partitions and a `next_page_token`
417
417
  # if more results exist. A second call to PartitionQuery will return up to
418
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.
419
423
  class PartitionQueryRequest
420
424
  include ::Google::Protobuf::MessageExts
421
425
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -730,6 +734,10 @@ module Google
730
734
  # @return [::String]
731
735
  # A page token. Must be a value from
732
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.
733
741
  class ListCollectionIdsRequest
734
742
  include ::Google::Protobuf::MessageExts
735
743
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -35,22 +35,24 @@ module Google
35
35
  # @return [::Array<::Google::Cloud::Firestore::V1::StructuredQuery::Order>]
36
36
  # The order to apply to the query results.
37
37
  #
38
- # Firestore guarantees a stable ordering through the following rules:
38
+ # Firestore allows callers to provide a full ordering, a partial ordering, or
39
+ # no ordering at all. In all cases, Firestore guarantees a stable ordering
40
+ # through the following rules:
39
41
  #
40
- # * Any field required to appear in `order_by`, that is not already
41
- # specified in `order_by`, is appended to the order in field name order
42
- # by default.
42
+ # * The `order_by` is required to reference all fields used with an
43
+ # inequality filter.
44
+ # * All fields that are required to be in the `order_by` but are not already
45
+ # present are appended in lexicographical ordering of the field name.
43
46
  # * If an order on `__name__` is not specified, it is appended by default.
44
47
  #
45
48
  # Fields are appended with the same sort direction as the last order
46
49
  # specified, or 'ASCENDING' if no order was specified. For example:
47
50
  #
48
- # * `SELECT * FROM Foo ORDER BY A` becomes
49
- # `SELECT * FROM Foo ORDER BY A, __name__`
50
- # * `SELECT * FROM Foo ORDER BY A DESC` becomes
51
- # `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
52
- # * `SELECT * FROM Foo WHERE A > 1` becomes
53
- # `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
51
+ # * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
52
+ # * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
53
+ # * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
54
+ # * `WHERE __name__ > ... AND a > 1` becomes
55
+ # `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
54
56
  # @!attribute [rw] start_at
55
57
  # @return [::Google::Cloud::Firestore::V1::Cursor]
56
58
  # A starting point for the query results.
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.5.0
4
+ version: 0.7.1
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-04-28 00:00:00.000000000 Z
11
+ date: 2022-08-24 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.7'
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.7'
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.25.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.25.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.14'
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.14'
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: '12.0'
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: '12.0'
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.5'
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.5
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