google-apis-firestore_v1 0.20.0 → 0.21.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: 548967240acf5b9c9ed46e1bcf08d963c23466e4bd12c889b82023e2a06fc035
|
4
|
+
data.tar.gz: 58295b8bff2bb4f3f32624f44ec721eb48247d8e639e489529c870cafbcbcfa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78c8c0e0addddb18f1645ad4804ed8b833152ad3e6d42c431e89b203c0ad19170eb22b627dc2e90f19bddc8f13f72b0e5bfc10c2019da00a90e23c28d231cae5
|
7
|
+
data.tar.gz: 3b608f656c9a5ada6c1397efe6e09c374a5881b80bfe607d36ef8eb2d437b08b4549e54b3eaf4b052b97b951c7b025cae06b31dc0c41f612aad904d065b9e020
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-firestore_v1
|
2
2
|
|
3
|
+
### v0.21.0 (2022-06-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220604
|
6
|
+
* Regenerated using generator version 0.6.0
|
7
|
+
|
3
8
|
### v0.20.0 (2022-05-07)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20220428
|
@@ -982,6 +982,14 @@ module Google
|
|
982
982
|
# @return [String]
|
983
983
|
attr_accessor :name
|
984
984
|
|
985
|
+
# The TTL (time-to-live) configuration for documents that have this `Field` set.
|
986
|
+
# Storing a timestamp value into a TTL-enabled field will be treated as the
|
987
|
+
# document's absolute expiration time. Using any other data type or leaving the
|
988
|
+
# field absent will disable the TTL for the individual document.
|
989
|
+
# Corresponds to the JSON property `ttlConfig`
|
990
|
+
# @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfig]
|
991
|
+
attr_accessor :ttl_config
|
992
|
+
|
985
993
|
def initialize(**args)
|
986
994
|
update!(**args)
|
987
995
|
end
|
@@ -990,6 +998,7 @@ module Google
|
|
990
998
|
def update!(**args)
|
991
999
|
@index_config = args[:index_config] if args.key?(:index_config)
|
992
1000
|
@name = args[:name] if args.key?(:name)
|
1001
|
+
@ttl_config = args[:ttl_config] if args.key?(:ttl_config)
|
993
1002
|
end
|
994
1003
|
end
|
995
1004
|
|
@@ -1038,6 +1047,11 @@ module Google
|
|
1038
1047
|
# @return [String]
|
1039
1048
|
attr_accessor :state
|
1040
1049
|
|
1050
|
+
# Information about an TTL configuration change.
|
1051
|
+
# Corresponds to the JSON property `ttlConfigDelta`
|
1052
|
+
# @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfigDelta]
|
1053
|
+
attr_accessor :ttl_config_delta
|
1054
|
+
|
1041
1055
|
def initialize(**args)
|
1042
1056
|
update!(**args)
|
1043
1057
|
end
|
@@ -1051,6 +1065,7 @@ module Google
|
|
1051
1065
|
@progress_documents = args[:progress_documents] if args.key?(:progress_documents)
|
1052
1066
|
@start_time = args[:start_time] if args.key?(:start_time)
|
1053
1067
|
@state = args[:state] if args.key?(:state)
|
1068
|
+
@ttl_config_delta = args[:ttl_config_delta] if args.key?(:ttl_config_delta)
|
1054
1069
|
end
|
1055
1070
|
end
|
1056
1071
|
|
@@ -1466,6 +1481,47 @@ module Google
|
|
1466
1481
|
end
|
1467
1482
|
end
|
1468
1483
|
|
1484
|
+
# The TTL (time-to-live) configuration for documents that have this `Field` set.
|
1485
|
+
# Storing a timestamp value into a TTL-enabled field will be treated as the
|
1486
|
+
# document's absolute expiration time. Using any other data type or leaving the
|
1487
|
+
# field absent will disable the TTL for the individual document.
|
1488
|
+
class GoogleFirestoreAdminV1TtlConfig
|
1489
|
+
include Google::Apis::Core::Hashable
|
1490
|
+
|
1491
|
+
# Output only. The state of the TTL configuration.
|
1492
|
+
# Corresponds to the JSON property `state`
|
1493
|
+
# @return [String]
|
1494
|
+
attr_accessor :state
|
1495
|
+
|
1496
|
+
def initialize(**args)
|
1497
|
+
update!(**args)
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
# Update properties of this object
|
1501
|
+
def update!(**args)
|
1502
|
+
@state = args[:state] if args.key?(:state)
|
1503
|
+
end
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# Information about an TTL configuration change.
|
1507
|
+
class GoogleFirestoreAdminV1TtlConfigDelta
|
1508
|
+
include Google::Apis::Core::Hashable
|
1509
|
+
|
1510
|
+
# Specifies how the TTL configuration is changing.
|
1511
|
+
# Corresponds to the JSON property `changeType`
|
1512
|
+
# @return [String]
|
1513
|
+
attr_accessor :change_type
|
1514
|
+
|
1515
|
+
def initialize(**args)
|
1516
|
+
update!(**args)
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# Update properties of this object
|
1520
|
+
def update!(**args)
|
1521
|
+
@change_type = args[:change_type] if args.key?(:change_type)
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
|
1469
1525
|
# Metadata related to the update database operation.
|
1470
1526
|
class GoogleFirestoreAdminV1UpdateDatabaseMetadata
|
1471
1527
|
include Google::Apis::Core::Hashable
|
@@ -1621,6 +1677,12 @@ module Google
|
|
1621
1677
|
# @return [String]
|
1622
1678
|
attr_accessor :page_token
|
1623
1679
|
|
1680
|
+
# Reads documents as they were at the given time. This may not be older than 270
|
1681
|
+
# seconds.
|
1682
|
+
# Corresponds to the JSON property `readTime`
|
1683
|
+
# @return [String]
|
1684
|
+
attr_accessor :read_time
|
1685
|
+
|
1624
1686
|
def initialize(**args)
|
1625
1687
|
update!(**args)
|
1626
1688
|
end
|
@@ -1629,6 +1691,7 @@ module Google
|
|
1629
1691
|
def update!(**args)
|
1630
1692
|
@page_size = args[:page_size] if args.key?(:page_size)
|
1631
1693
|
@page_token = args[:page_token] if args.key?(:page_token)
|
1694
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1632
1695
|
end
|
1633
1696
|
end
|
1634
1697
|
|
@@ -1921,6 +1984,12 @@ module Google
|
|
1921
1984
|
# @return [Fixnum]
|
1922
1985
|
attr_accessor :partition_count
|
1923
1986
|
|
1987
|
+
# Reads documents as they were at the given time. This may not be older than 270
|
1988
|
+
# seconds.
|
1989
|
+
# Corresponds to the JSON property `readTime`
|
1990
|
+
# @return [String]
|
1991
|
+
attr_accessor :read_time
|
1992
|
+
|
1924
1993
|
# A Firestore query.
|
1925
1994
|
# Corresponds to the JSON property `structuredQuery`
|
1926
1995
|
# @return [Google::Apis::FirestoreV1::StructuredQuery]
|
@@ -1935,6 +2004,7 @@ module Google
|
|
1935
2004
|
@page_size = args[:page_size] if args.key?(:page_size)
|
1936
2005
|
@page_token = args[:page_token] if args.key?(:page_token)
|
1937
2006
|
@partition_count = args[:partition_count] if args.key?(:partition_count)
|
2007
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1938
2008
|
@structured_query = args[:structured_query] if args.key?(:structured_query)
|
1939
2009
|
end
|
1940
2010
|
end
|
@@ -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.21.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.6.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220604"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -280,6 +280,18 @@ module Google
|
|
280
280
|
include Google::Apis::Core::JsonObjectSupport
|
281
281
|
end
|
282
282
|
|
283
|
+
class GoogleFirestoreAdminV1TtlConfig
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class GoogleFirestoreAdminV1TtlConfigDelta
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
283
295
|
class GoogleFirestoreAdminV1UpdateDatabaseMetadata
|
284
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
297
|
|
@@ -773,6 +785,8 @@ module Google
|
|
773
785
|
property :index_config, as: 'indexConfig', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1IndexConfig, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1IndexConfig::Representation
|
774
786
|
|
775
787
|
property :name, as: 'name'
|
788
|
+
property :ttl_config, as: 'ttlConfig', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfig, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfig::Representation
|
789
|
+
|
776
790
|
end
|
777
791
|
end
|
778
792
|
|
@@ -789,6 +803,8 @@ module Google
|
|
789
803
|
|
790
804
|
property :start_time, as: 'startTime'
|
791
805
|
property :state, as: 'state'
|
806
|
+
property :ttl_config_delta, as: 'ttlConfigDelta', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfigDelta, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1TtlConfigDelta::Representation
|
807
|
+
|
792
808
|
end
|
793
809
|
end
|
794
810
|
|
@@ -909,6 +925,20 @@ module Google
|
|
909
925
|
end
|
910
926
|
end
|
911
927
|
|
928
|
+
class GoogleFirestoreAdminV1TtlConfig
|
929
|
+
# @private
|
930
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
931
|
+
property :state, as: 'state'
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
935
|
+
class GoogleFirestoreAdminV1TtlConfigDelta
|
936
|
+
# @private
|
937
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
938
|
+
property :change_type, as: 'changeType'
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
912
942
|
class GoogleFirestoreAdminV1UpdateDatabaseMetadata
|
913
943
|
# @private
|
914
944
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -955,6 +985,7 @@ module Google
|
|
955
985
|
class Representation < Google::Apis::Core::JsonRepresentation
|
956
986
|
property :page_size, as: 'pageSize'
|
957
987
|
property :page_token, as: 'pageToken'
|
988
|
+
property :read_time, as: 'readTime'
|
958
989
|
end
|
959
990
|
end
|
960
991
|
|
@@ -1044,6 +1075,7 @@ module Google
|
|
1044
1075
|
property :page_size, as: 'pageSize'
|
1045
1076
|
property :page_token, as: 'pageToken'
|
1046
1077
|
property :partition_count, :numeric_string => true, as: 'partitionCount'
|
1078
|
+
property :read_time, as: 'readTime'
|
1047
1079
|
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1::StructuredQuery, decorator: Google::Apis::FirestoreV1::StructuredQuery::Representation
|
1048
1080
|
|
1049
1081
|
end
|
@@ -50,6 +50,50 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
+
# Create a database.
|
54
|
+
# @param [String] parent
|
55
|
+
# Required. A parent name of the form `projects/`project_id``
|
56
|
+
# @param [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Database] google_firestore_admin_v1_database_object
|
57
|
+
# @param [String] database_id
|
58
|
+
# Required. The ID to use for the database, which will become the final
|
59
|
+
# component of the database's resource name. This value should be 4-63
|
60
|
+
# characters. Valid characters are /a-z-/ with first character a letter and the
|
61
|
+
# last a letter or a number. Must not be UUID-like /[0-9a-f]`8`(-[0-9a-f]`4`)`3`-
|
62
|
+
# [0-9a-f]`12`/. "(default)" database id is also valid.
|
63
|
+
# @param [Boolean] validate_only
|
64
|
+
# If set, validate the request and preview the response, but do not actually
|
65
|
+
# create the database.
|
66
|
+
# @param [String] fields
|
67
|
+
# Selector specifying which fields to include in a partial response.
|
68
|
+
# @param [String] quota_user
|
69
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
70
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
71
|
+
# @param [Google::Apis::RequestOptions] options
|
72
|
+
# Request-specific options
|
73
|
+
#
|
74
|
+
# @yield [result, err] Result & error if block supplied
|
75
|
+
# @yieldparam result [Google::Apis::FirestoreV1::GoogleLongrunningOperation] parsed result object
|
76
|
+
# @yieldparam err [StandardError] error object if request failed
|
77
|
+
#
|
78
|
+
# @return [Google::Apis::FirestoreV1::GoogleLongrunningOperation]
|
79
|
+
#
|
80
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
81
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
82
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
83
|
+
def create_project_database(parent, google_firestore_admin_v1_database_object = nil, database_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
84
|
+
command = make_simple_command(:post, 'v1/{+parent}/databases', options)
|
85
|
+
command.request_representation = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Database::Representation
|
86
|
+
command.request_object = google_firestore_admin_v1_database_object
|
87
|
+
command.response_representation = Google::Apis::FirestoreV1::GoogleLongrunningOperation::Representation
|
88
|
+
command.response_class = Google::Apis::FirestoreV1::GoogleLongrunningOperation
|
89
|
+
command.params['parent'] = parent unless parent.nil?
|
90
|
+
command.query['databaseId'] = database_id unless database_id.nil?
|
91
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
92
|
+
command.query['fields'] = fields unless fields.nil?
|
93
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
94
|
+
execute_or_queue_command(command, &block)
|
95
|
+
end
|
96
|
+
|
53
97
|
# Exports a copy of all or a subset of documents from Google Cloud Firestore to
|
54
98
|
# another storage system, such as Google Cloud Storage. Recent updates to
|
55
99
|
# documents may not be reflected in the export. The export occurs in the
|
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.21.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-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
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.6'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.21.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: []
|
@@ -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.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Firestore API V1
|