google-apis-firestore_v1 0.16.0 → 0.17.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: 30df2136b7f0ba850511529d6d7ca84e4eed7a1e28a4a0468e82989f811a196b
|
4
|
+
data.tar.gz: ccb786ca708df82e438115d72816b8ab4a865e2da813becd01d4e8ed34fdfdec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4669a85f20327eb3e29333c10c95a9ba5890bdd22e9c4cb97f85a0d272c7b47a5919e86fe11cc2d5e432468e1b702d872c190b6f2d3e73408f7a65c94accffc
|
7
|
+
data.tar.gz: 29dfbaf5dee03ed335364a1040bf538b04167221c7c54ddaf9ca44e916ac6ead3f466aff0f077df08ad7f4797c3e382d1fa1866a7a91d80e24ba52e6d4eb58fd
|
data/CHANGELOG.md
CHANGED
@@ -780,6 +780,11 @@ module Google
|
|
780
780
|
class GoogleFirestoreAdminV1Database
|
781
781
|
include Google::Apis::Core::Hashable
|
782
782
|
|
783
|
+
# The App Engine integration mode to use for this database.
|
784
|
+
# Corresponds to the JSON property `appEngineIntegrationMode`
|
785
|
+
# @return [String]
|
786
|
+
attr_accessor :app_engine_integration_mode
|
787
|
+
|
783
788
|
# The concurrency control mode to use for this database.
|
784
789
|
# Corresponds to the JSON property `concurrencyMode`
|
785
790
|
# @return [String]
|
@@ -792,6 +797,15 @@ module Google
|
|
792
797
|
# @return [String]
|
793
798
|
attr_accessor :etag
|
794
799
|
|
800
|
+
# Output only. The key_prefix for this database. This key_prefix is used, in
|
801
|
+
# combination with the project id ("~") to construct the application id that is
|
802
|
+
# returned from the Cloud Datastore APIs in Google App Engine first generation
|
803
|
+
# runtimes. This value may be empty in which case the appid to use for URL-
|
804
|
+
# encoded keys is the project_id (eg: foo instead of v~foo).
|
805
|
+
# Corresponds to the JSON property `keyPrefix`
|
806
|
+
# @return [String]
|
807
|
+
attr_accessor :key_prefix
|
808
|
+
|
795
809
|
# The location of the database. Available databases are listed at https://cloud.
|
796
810
|
# google.com/firestore/docs/locations.
|
797
811
|
# Corresponds to the JSON property `locationId`
|
@@ -816,8 +830,10 @@ module Google
|
|
816
830
|
|
817
831
|
# Update properties of this object
|
818
832
|
def update!(**args)
|
833
|
+
@app_engine_integration_mode = args[:app_engine_integration_mode] if args.key?(:app_engine_integration_mode)
|
819
834
|
@concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
|
820
835
|
@etag = args[:etag] if args.key?(:etag)
|
836
|
+
@key_prefix = args[:key_prefix] if args.key?(:key_prefix)
|
821
837
|
@location_id = args[:location_id] if args.key?(:location_id)
|
822
838
|
@name = args[:name] if args.key?(:name)
|
823
839
|
@type = args[:type] if args.key?(:type)
|
@@ -2144,6 +2160,13 @@ module Google
|
|
2144
2160
|
# @return [Google::Apis::FirestoreV1::Document]
|
2145
2161
|
attr_accessor :document
|
2146
2162
|
|
2163
|
+
# If present, Firestore has completely finished the request and no more
|
2164
|
+
# documents will be returned.
|
2165
|
+
# Corresponds to the JSON property `done`
|
2166
|
+
# @return [Boolean]
|
2167
|
+
attr_accessor :done
|
2168
|
+
alias_method :done?, :done
|
2169
|
+
|
2147
2170
|
# The time at which the document was read. This may be monotonically increasing;
|
2148
2171
|
# in this case, the previous documents in the result stream are guaranteed not
|
2149
2172
|
# to have changed between their `read_time` and this one. If the query returns
|
@@ -2174,6 +2197,7 @@ module Google
|
|
2174
2197
|
# Update properties of this object
|
2175
2198
|
def update!(**args)
|
2176
2199
|
@document = args[:document] if args.key?(:document)
|
2200
|
+
@done = args[:done] if args.key?(:done)
|
2177
2201
|
@read_time = args[:read_time] if args.key?(:read_time)
|
2178
2202
|
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
2179
2203
|
@transaction = args[:transaction] if args.key?(:transaction)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module FirestoreV1
|
18
18
|
# Version of the google-apis-firestore_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.17.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 = "20220305"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -727,8 +727,10 @@ module Google
|
|
727
727
|
class GoogleFirestoreAdminV1Database
|
728
728
|
# @private
|
729
729
|
class Representation < Google::Apis::Core::JsonRepresentation
|
730
|
+
property :app_engine_integration_mode, as: 'appEngineIntegrationMode'
|
730
731
|
property :concurrency_mode, as: 'concurrencyMode'
|
731
732
|
property :etag, as: 'etag'
|
733
|
+
property :key_prefix, as: 'keyPrefix'
|
732
734
|
property :location_id, as: 'locationId'
|
733
735
|
property :name, as: 'name'
|
734
736
|
property :type, as: 'type'
|
@@ -1119,6 +1121,7 @@ module Google
|
|
1119
1121
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1120
1122
|
property :document, as: 'document', class: Google::Apis::FirestoreV1::Document, decorator: Google::Apis::FirestoreV1::Document::Representation
|
1121
1123
|
|
1124
|
+
property :done, as: 'done'
|
1122
1125
|
property :read_time, as: 'readTime'
|
1123
1126
|
property :skipped_results, as: 'skippedResults'
|
1124
1127
|
property :transaction, :base64 => true, as: 'transaction'
|
@@ -874,6 +874,71 @@ module Google
|
|
874
874
|
execute_or_queue_command(command, &block)
|
875
875
|
end
|
876
876
|
|
877
|
+
# Lists documents.
|
878
|
+
# @param [String] parent
|
879
|
+
# Required. The parent resource name. In the format: `projects/`project_id`/
|
880
|
+
# databases/`database_id`/documents` or `projects/`project_id`/databases/`
|
881
|
+
# database_id`/documents/`document_path``. For example: `projects/my-project/
|
882
|
+
# databases/my-database/documents` or `projects/my-project/databases/my-database/
|
883
|
+
# documents/chatrooms/my-chatroom`
|
884
|
+
# @param [String] collection_id
|
885
|
+
# Required. The collection ID, relative to `parent`, to list. For example: `
|
886
|
+
# chatrooms` or `messages`.
|
887
|
+
# @param [Array<String>, String] mask_field_paths
|
888
|
+
# The list of field paths in the mask. See Document.fields for a field path
|
889
|
+
# syntax reference.
|
890
|
+
# @param [String] order_by
|
891
|
+
# The order to sort results by. For example: `priority desc, name`.
|
892
|
+
# @param [Fixnum] page_size
|
893
|
+
# The maximum number of documents to return.
|
894
|
+
# @param [String] page_token
|
895
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
896
|
+
# @param [String] read_time
|
897
|
+
# Reads documents as they were at the given time. This may not be older than 270
|
898
|
+
# seconds.
|
899
|
+
# @param [Boolean] show_missing
|
900
|
+
# If the list should show missing documents. A missing document is a document
|
901
|
+
# that does not exist but has sub-documents. These documents will be returned
|
902
|
+
# with a key but will not have fields, Document.create_time, or Document.
|
903
|
+
# update_time set. Requests with `show_missing` may not specify `where` or `
|
904
|
+
# order_by`.
|
905
|
+
# @param [String] transaction
|
906
|
+
# Reads documents in a transaction.
|
907
|
+
# @param [String] fields
|
908
|
+
# Selector specifying which fields to include in a partial response.
|
909
|
+
# @param [String] quota_user
|
910
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
911
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
912
|
+
# @param [Google::Apis::RequestOptions] options
|
913
|
+
# Request-specific options
|
914
|
+
#
|
915
|
+
# @yield [result, err] Result & error if block supplied
|
916
|
+
# @yieldparam result [Google::Apis::FirestoreV1::ListDocumentsResponse] parsed result object
|
917
|
+
# @yieldparam err [StandardError] error object if request failed
|
918
|
+
#
|
919
|
+
# @return [Google::Apis::FirestoreV1::ListDocumentsResponse]
|
920
|
+
#
|
921
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
922
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
923
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
924
|
+
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)
|
925
|
+
command = make_simple_command(:get, 'v1/{+parent}/{collectionId}', options)
|
926
|
+
command.response_representation = Google::Apis::FirestoreV1::ListDocumentsResponse::Representation
|
927
|
+
command.response_class = Google::Apis::FirestoreV1::ListDocumentsResponse
|
928
|
+
command.params['parent'] = parent unless parent.nil?
|
929
|
+
command.params['collectionId'] = collection_id unless collection_id.nil?
|
930
|
+
command.query['mask.fieldPaths'] = mask_field_paths unless mask_field_paths.nil?
|
931
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
932
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
933
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
934
|
+
command.query['readTime'] = read_time unless read_time.nil?
|
935
|
+
command.query['showMissing'] = show_missing unless show_missing.nil?
|
936
|
+
command.query['transaction'] = transaction unless transaction.nil?
|
937
|
+
command.query['fields'] = fields unless fields.nil?
|
938
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
939
|
+
execute_or_queue_command(command, &block)
|
940
|
+
end
|
941
|
+
|
877
942
|
# Listens to changes.
|
878
943
|
# @param [String] database
|
879
944
|
# 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_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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-03-
|
11
|
+
date: 2022-03-21 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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|