google-apis-firestore_v1beta1 0.10.0 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4883f7b025b8f6621073dabf1df6ec289c714836323b821b94d5e62e55a1b887
|
4
|
+
data.tar.gz: 38a7239b4b5113d51be7e713139e79e4d01b052a9a6eb5cfd53e4ec7f6c7b8f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ab6e3f5120b1be23b683506ee12b5a8370852103fce63c46439a9cd2ed0160ef85a36653423dbbff6c6ef514338a968b708e8c8938cd46b3f05cdbee3a3f4e
|
7
|
+
data.tar.gz: acf076581cd85e2b13318abb65a21c07c6db82ac170f5954bd6b5103755a323277cf6e84303d0b9c8a40ebba7c93b40c8cd9121864e2ec654d1fb4929ffad43e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-firestore_v1beta1
|
2
2
|
|
3
|
+
### v0.13.0 (2022-03-30)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220319
|
6
|
+
|
7
|
+
### v0.12.0 (2022-03-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220305
|
10
|
+
|
11
|
+
### v0.11.0 (2022-03-04)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220221
|
14
|
+
|
3
15
|
### v0.10.0 (2022-01-21)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220110
|
@@ -598,8 +598,7 @@ module Google
|
|
598
598
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
599
599
|
# messages in your APIs. A typical example is to use it as the request or the
|
600
600
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
601
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
602
|
-
# `Empty` is empty JSON object ````.
|
601
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
603
602
|
class Empty
|
604
603
|
include Google::Apis::Core::Hashable
|
605
604
|
|
@@ -1269,6 +1268,12 @@ module Google
|
|
1269
1268
|
# @return [String]
|
1270
1269
|
attr_accessor :page_token
|
1271
1270
|
|
1271
|
+
# Reads documents as they were at the given time. This may not be older than 270
|
1272
|
+
# seconds.
|
1273
|
+
# Corresponds to the JSON property `readTime`
|
1274
|
+
# @return [String]
|
1275
|
+
attr_accessor :read_time
|
1276
|
+
|
1272
1277
|
def initialize(**args)
|
1273
1278
|
update!(**args)
|
1274
1279
|
end
|
@@ -1277,6 +1282,7 @@ module Google
|
|
1277
1282
|
def update!(**args)
|
1278
1283
|
@page_size = args[:page_size] if args.key?(:page_size)
|
1279
1284
|
@page_token = args[:page_token] if args.key?(:page_token)
|
1285
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1280
1286
|
end
|
1281
1287
|
end
|
1282
1288
|
|
@@ -1497,6 +1503,12 @@ module Google
|
|
1497
1503
|
# @return [Fixnum]
|
1498
1504
|
attr_accessor :partition_count
|
1499
1505
|
|
1506
|
+
# Reads documents as they were at the given time. This may not be older than 270
|
1507
|
+
# seconds.
|
1508
|
+
# Corresponds to the JSON property `readTime`
|
1509
|
+
# @return [String]
|
1510
|
+
attr_accessor :read_time
|
1511
|
+
|
1500
1512
|
# A Firestore query.
|
1501
1513
|
# Corresponds to the JSON property `structuredQuery`
|
1502
1514
|
# @return [Google::Apis::FirestoreV1beta1::StructuredQuery]
|
@@ -1511,6 +1523,7 @@ module Google
|
|
1511
1523
|
@page_size = args[:page_size] if args.key?(:page_size)
|
1512
1524
|
@page_token = args[:page_token] if args.key?(:page_token)
|
1513
1525
|
@partition_count = args[:partition_count] if args.key?(:partition_count)
|
1526
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1514
1527
|
@structured_query = args[:structured_query] if args.key?(:structured_query)
|
1515
1528
|
end
|
1516
1529
|
end
|
@@ -1706,7 +1719,8 @@ module Google
|
|
1706
1719
|
# @return [Google::Apis::FirestoreV1beta1::StructuredQuery]
|
1707
1720
|
attr_accessor :structured_query
|
1708
1721
|
|
1709
|
-
#
|
1722
|
+
# Run the query within an already active transaction. The value here is the
|
1723
|
+
# opaque transaction ID to execute the query in.
|
1710
1724
|
# Corresponds to the JSON property `transaction`
|
1711
1725
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1712
1726
|
# @return [String]
|
@@ -1734,6 +1748,13 @@ module Google
|
|
1734
1748
|
# @return [Google::Apis::FirestoreV1beta1::Document]
|
1735
1749
|
attr_accessor :document
|
1736
1750
|
|
1751
|
+
# If present, Firestore has completely finished the request and no more
|
1752
|
+
# documents will be returned.
|
1753
|
+
# Corresponds to the JSON property `done`
|
1754
|
+
# @return [Boolean]
|
1755
|
+
attr_accessor :done
|
1756
|
+
alias_method :done?, :done
|
1757
|
+
|
1737
1758
|
# The time at which the document was read. This may be monotonically increasing;
|
1738
1759
|
# in this case, the previous documents in the result stream are guaranteed not
|
1739
1760
|
# to have changed between their `read_time` and this one. If the query returns
|
@@ -1764,6 +1785,7 @@ module Google
|
|
1764
1785
|
# Update properties of this object
|
1765
1786
|
def update!(**args)
|
1766
1787
|
@document = args[:document] if args.key?(:document)
|
1788
|
+
@done = args[:done] if args.key?(:done)
|
1767
1789
|
@read_time = args[:read_time] if args.key?(:read_time)
|
1768
1790
|
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
1769
1791
|
@transaction = args[:transaction] if args.key?(:transaction)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220319"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -797,6 +797,7 @@ module Google
|
|
797
797
|
class Representation < Google::Apis::Core::JsonRepresentation
|
798
798
|
property :page_size, as: 'pageSize'
|
799
799
|
property :page_token, as: 'pageToken'
|
800
|
+
property :read_time, as: 'readTime'
|
800
801
|
end
|
801
802
|
end
|
802
803
|
|
@@ -866,6 +867,7 @@ module Google
|
|
866
867
|
property :page_size, as: 'pageSize'
|
867
868
|
property :page_token, as: 'pageToken'
|
868
869
|
property :partition_count, :numeric_string => true, as: 'partitionCount'
|
870
|
+
property :read_time, as: 'readTime'
|
869
871
|
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1beta1::StructuredQuery, decorator: Google::Apis::FirestoreV1beta1::StructuredQuery::Representation
|
870
872
|
|
871
873
|
end
|
@@ -943,6 +945,7 @@ module Google
|
|
943
945
|
class Representation < Google::Apis::Core::JsonRepresentation
|
944
946
|
property :document, as: 'document', class: Google::Apis::FirestoreV1beta1::Document, decorator: Google::Apis::FirestoreV1beta1::Document::Representation
|
945
947
|
|
948
|
+
property :done, as: 'done'
|
946
949
|
property :read_time, as: 'readTime'
|
947
950
|
property :skipped_results, as: 'skippedResults'
|
948
951
|
property :transaction, :base64 => true, as: 'transaction'
|
@@ -497,6 +497,71 @@ module Google
|
|
497
497
|
execute_or_queue_command(command, &block)
|
498
498
|
end
|
499
499
|
|
500
|
+
# Lists documents.
|
501
|
+
# @param [String] parent
|
502
|
+
# Required. The parent resource name. In the format: `projects/`project_id`/
|
503
|
+
# databases/`database_id`/documents` or `projects/`project_id`/databases/`
|
504
|
+
# database_id`/documents/`document_path``. For example: `projects/my-project/
|
505
|
+
# databases/my-database/documents` or `projects/my-project/databases/my-database/
|
506
|
+
# documents/chatrooms/my-chatroom`
|
507
|
+
# @param [String] collection_id
|
508
|
+
# Required. The collection ID, relative to `parent`, to list. For example: `
|
509
|
+
# chatrooms` or `messages`.
|
510
|
+
# @param [Array<String>, String] mask_field_paths
|
511
|
+
# The list of field paths in the mask. See Document.fields for a field path
|
512
|
+
# syntax reference.
|
513
|
+
# @param [String] order_by
|
514
|
+
# The order to sort results by. For example: `priority desc, name`.
|
515
|
+
# @param [Fixnum] page_size
|
516
|
+
# The maximum number of documents to return.
|
517
|
+
# @param [String] page_token
|
518
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
519
|
+
# @param [String] read_time
|
520
|
+
# Reads documents as they were at the given time. This may not be older than 270
|
521
|
+
# seconds.
|
522
|
+
# @param [Boolean] show_missing
|
523
|
+
# If the list should show missing documents. A missing document is a document
|
524
|
+
# that does not exist but has sub-documents. These documents will be returned
|
525
|
+
# with a key but will not have fields, Document.create_time, or Document.
|
526
|
+
# update_time set. Requests with `show_missing` may not specify `where` or `
|
527
|
+
# order_by`.
|
528
|
+
# @param [String] transaction
|
529
|
+
# Reads documents in a transaction.
|
530
|
+
# @param [String] fields
|
531
|
+
# Selector specifying which fields to include in a partial response.
|
532
|
+
# @param [String] quota_user
|
533
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
534
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
535
|
+
# @param [Google::Apis::RequestOptions] options
|
536
|
+
# Request-specific options
|
537
|
+
#
|
538
|
+
# @yield [result, err] Result & error if block supplied
|
539
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta1::ListDocumentsResponse] parsed result object
|
540
|
+
# @yieldparam err [StandardError] error object if request failed
|
541
|
+
#
|
542
|
+
# @return [Google::Apis::FirestoreV1beta1::ListDocumentsResponse]
|
543
|
+
#
|
544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
547
|
+
def list_project_database_document_documents(parent, collection_id, mask_field_paths: nil, order_by: nil, page_size: nil, page_token: nil, read_time: nil, show_missing: nil, transaction: nil, fields: nil, quota_user: nil, options: nil, &block)
|
548
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/{collectionId}', options)
|
549
|
+
command.response_representation = Google::Apis::FirestoreV1beta1::ListDocumentsResponse::Representation
|
550
|
+
command.response_class = Google::Apis::FirestoreV1beta1::ListDocumentsResponse
|
551
|
+
command.params['parent'] = parent unless parent.nil?
|
552
|
+
command.params['collectionId'] = collection_id unless collection_id.nil?
|
553
|
+
command.query['mask.fieldPaths'] = mask_field_paths unless mask_field_paths.nil?
|
554
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
555
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
556
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
557
|
+
command.query['readTime'] = read_time unless read_time.nil?
|
558
|
+
command.query['showMissing'] = show_missing unless show_missing.nil?
|
559
|
+
command.query['transaction'] = transaction unless transaction.nil?
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
|
+
execute_or_queue_command(command, &block)
|
563
|
+
end
|
564
|
+
|
500
565
|
# Listens to changes.
|
501
566
|
# @param [String] database
|
502
567
|
# Required. The database name. In the format: `projects/`project_id`/databases/`
|
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.
|
4
|
+
version: 0.13.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-04-04 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.13.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: []
|