google-cloud-firestore-admin-v1 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb +151 -24
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +13 -2
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/client.rb +369 -23
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/operations.rb +82 -5
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/service_stub.rb +72 -12
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/lib/google/firestore/admin/v1/database_pb.rb +24 -26
- data/lib/google/firestore/admin/v1/field_pb.rb +25 -21
- data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +30 -63
- data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +22 -13
- data/lib/google/firestore/admin/v1/index_pb.rb +24 -40
- data/lib/google/firestore/admin/v1/location_pb.rb +24 -3
- data/lib/google/firestore/admin/v1/operation_pb.rb +26 -71
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/firestore/admin/v1/firestore_admin.rb +61 -21
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
@@ -61,9 +61,11 @@ module Google
|
|
61
61
|
self.unmarshal_class_method = :decode
|
62
62
|
self.service_name = 'google.firestore.admin.v1.FirestoreAdmin'
|
63
63
|
|
64
|
-
# Creates a composite index. This returns a
|
65
|
-
# which may be
|
66
|
-
# the
|
64
|
+
# Creates a composite index. This returns a
|
65
|
+
# [google.longrunning.Operation][google.longrunning.Operation] which may be
|
66
|
+
# used to track the status of the creation. The metadata for the operation
|
67
|
+
# will be the type
|
68
|
+
# [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
|
67
69
|
rpc :CreateIndex, ::Google::Cloud::Firestore::Admin::V1::CreateIndexRequest, ::Google::Longrunning::Operation
|
68
70
|
# Lists composite indexes.
|
69
71
|
rpc :ListIndexes, ::Google::Cloud::Firestore::Admin::V1::ListIndexesRequest, ::Google::Cloud::Firestore::Admin::V1::ListIndexesResponse
|
@@ -75,13 +77,16 @@ module Google
|
|
75
77
|
rpc :GetField, ::Google::Cloud::Firestore::Admin::V1::GetFieldRequest, ::Google::Cloud::Firestore::Admin::V1::Field
|
76
78
|
# Updates a field configuration. Currently, field updates apply only to
|
77
79
|
# single field index configuration. However, calls to
|
78
|
-
# [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
|
79
|
-
#
|
80
|
-
# should be specified as: `{ paths:
|
80
|
+
# [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
|
81
|
+
# should provide a field mask to avoid changing any configuration that the
|
82
|
+
# caller isn't aware of. The field mask should be specified as: `{ paths:
|
83
|
+
# "index_config" }`.
|
81
84
|
#
|
82
|
-
# This call returns a
|
83
|
-
#
|
84
|
-
# the
|
85
|
+
# This call returns a
|
86
|
+
# [google.longrunning.Operation][google.longrunning.Operation] which may be
|
87
|
+
# used to track the status of the field update. The metadata for the
|
88
|
+
# operation will be the type
|
89
|
+
# [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
|
85
90
|
#
|
86
91
|
# To configure the default field settings for the database, use
|
87
92
|
# the special `Field` with resource name:
|
@@ -89,10 +94,12 @@ module Google
|
|
89
94
|
rpc :UpdateField, ::Google::Cloud::Firestore::Admin::V1::UpdateFieldRequest, ::Google::Longrunning::Operation
|
90
95
|
# Lists the field configuration and metadata for this database.
|
91
96
|
#
|
92
|
-
# Currently,
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
97
|
+
# Currently,
|
98
|
+
# [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
|
99
|
+
# only supports listing fields that have been explicitly overridden. To issue
|
100
|
+
# this query, call
|
101
|
+
# [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
|
102
|
+
# with the filter set to `indexConfig.usesAncestorConfig:false` .
|
96
103
|
rpc :ListFields, ::Google::Cloud::Firestore::Admin::V1::ListFieldsRequest, ::Google::Cloud::Firestore::Admin::V1::ListFieldsResponse
|
97
104
|
# Exports a copy of all or a subset of documents from Google Cloud Firestore
|
98
105
|
# to another storage system, such as Google Cloud Storage. Recent updates to
|
@@ -112,6 +119,8 @@ module Google
|
|
112
119
|
# created. If an ImportDocuments operation is cancelled, it is possible
|
113
120
|
# that a subset of the data has already been imported to Cloud Firestore.
|
114
121
|
rpc :ImportDocuments, ::Google::Cloud::Firestore::Admin::V1::ImportDocumentsRequest, ::Google::Longrunning::Operation
|
122
|
+
# Create a database.
|
123
|
+
rpc :CreateDatabase, ::Google::Cloud::Firestore::Admin::V1::CreateDatabaseRequest, ::Google::Longrunning::Operation
|
115
124
|
# Gets information about a database.
|
116
125
|
rpc :GetDatabase, ::Google::Cloud::Firestore::Admin::V1::GetDatabaseRequest, ::Google::Cloud::Firestore::Admin::V1::Database
|
117
126
|
# List all the databases in the project.
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/firestore/admin/v1/index.proto
|
3
4
|
|
@@ -5,48 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
add_enum "google.firestore.admin.v1.Index.IndexField.ArrayConfig" do
|
30
|
-
value :ARRAY_CONFIG_UNSPECIFIED, 0
|
31
|
-
value :CONTAINS, 1
|
32
|
-
end
|
33
|
-
add_enum "google.firestore.admin.v1.Index.QueryScope" do
|
34
|
-
value :QUERY_SCOPE_UNSPECIFIED, 0
|
35
|
-
value :COLLECTION, 1
|
36
|
-
value :COLLECTION_GROUP, 2
|
37
|
-
value :COLLECTION_RECURSIVE, 3
|
38
|
-
end
|
39
|
-
add_enum "google.firestore.admin.v1.Index.ApiScope" do
|
40
|
-
value :ANY_API, 0
|
41
|
-
value :DATASTORE_MODE_API, 1
|
42
|
-
end
|
43
|
-
add_enum "google.firestore.admin.v1.Index.State" do
|
44
|
-
value :STATE_UNSPECIFIED, 0
|
45
|
-
value :CREATING, 1
|
46
|
-
value :READY, 2
|
47
|
-
value :NEEDS_REPAIR, 3
|
9
|
+
|
10
|
+
descriptor_data = "\n%google/firestore/admin/v1/index.proto\x12\x19google.firestore.admin.v1\x1a\x19google/api/resource.proto\"\xac\x07\n\x05Index\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bquery_scope\x18\x02 \x01(\x0e\x32+.google.firestore.admin.v1.Index.QueryScope\x12<\n\tapi_scope\x18\x05 \x01(\x0e\x32).google.firestore.admin.v1.Index.ApiScope\x12;\n\x06\x66ields\x18\x03 \x03(\x0b\x32+.google.firestore.admin.v1.Index.IndexField\x12\x35\n\x05state\x18\x04 \x01(\x0e\x32&.google.firestore.admin.v1.Index.State\x1a\xbd\x02\n\nIndexField\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12\x42\n\x05order\x18\x02 \x01(\x0e\x32\x31.google.firestore.admin.v1.Index.IndexField.OrderH\x00\x12O\n\x0c\x61rray_config\x18\x03 \x01(\x0e\x32\x37.google.firestore.admin.v1.Index.IndexField.ArrayConfigH\x00\"=\n\x05Order\x12\x15\n\x11ORDER_UNSPECIFIED\x10\x00\x12\r\n\tASCENDING\x10\x01\x12\x0e\n\nDESCENDING\x10\x02\"9\n\x0b\x41rrayConfig\x12\x1c\n\x18\x41RRAY_CONFIG_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONTAINS\x10\x01\x42\x0c\n\nvalue_mode\"i\n\nQueryScope\x12\x1b\n\x17QUERY_SCOPE_UNSPECIFIED\x10\x00\x12\x0e\n\nCOLLECTION\x10\x01\x12\x14\n\x10\x43OLLECTION_GROUP\x10\x02\x12\x18\n\x14\x43OLLECTION_RECURSIVE\x10\x03\"/\n\x08\x41piScope\x12\x0b\n\x07\x41NY_API\x10\x00\x12\x16\n\x12\x44\x41TASTORE_MODE_API\x10\x01\"I\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x10\n\x0cNEEDS_REPAIR\x10\x03:z\xea\x41w\n\x1e\x66irestore.googleapis.com/Index\x12Uprojects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}B\xd9\x01\n\x1d\x63om.google.firestore.admin.v1B\nIndexProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
48
30
|
end
|
49
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
50
34
|
end
|
51
35
|
|
52
36
|
module Google
|
@@ -1,13 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/firestore/admin/v1/location.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n(google/firestore/admin/v1/location.proto\x12\x19google.firestore.admin.v1\"\x12\n\x10LocationMetadataB\xdc\x01\n\x1d\x63om.google.firestore.admin.v1B\rLocationProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
9
28
|
end
|
10
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
11
32
|
end
|
12
33
|
|
13
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/firestore/admin/v1/operation.proto
|
3
4
|
|
@@ -6,79 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/firestore/admin/v1/index_pb'
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
add_enum "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType" do
|
34
|
-
value :CHANGE_TYPE_UNSPECIFIED, 0
|
35
|
-
value :ADD, 1
|
36
|
-
value :REMOVE, 2
|
37
|
-
end
|
38
|
-
add_message "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta" do
|
39
|
-
optional :change_type, :enum, 1, "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType"
|
40
|
-
end
|
41
|
-
add_enum "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType" do
|
42
|
-
value :CHANGE_TYPE_UNSPECIFIED, 0
|
43
|
-
value :ADD, 1
|
44
|
-
value :REMOVE, 2
|
45
|
-
end
|
46
|
-
add_message "google.firestore.admin.v1.ExportDocumentsMetadata" do
|
47
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
48
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
49
|
-
optional :operation_state, :enum, 3, "google.firestore.admin.v1.OperationState"
|
50
|
-
optional :progress_documents, :message, 4, "google.firestore.admin.v1.Progress"
|
51
|
-
optional :progress_bytes, :message, 5, "google.firestore.admin.v1.Progress"
|
52
|
-
repeated :collection_ids, :string, 6
|
53
|
-
optional :output_uri_prefix, :string, 7
|
54
|
-
end
|
55
|
-
add_message "google.firestore.admin.v1.ImportDocumentsMetadata" do
|
56
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
57
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
58
|
-
optional :operation_state, :enum, 3, "google.firestore.admin.v1.OperationState"
|
59
|
-
optional :progress_documents, :message, 4, "google.firestore.admin.v1.Progress"
|
60
|
-
optional :progress_bytes, :message, 5, "google.firestore.admin.v1.Progress"
|
61
|
-
repeated :collection_ids, :string, 6
|
62
|
-
optional :input_uri_prefix, :string, 7
|
63
|
-
end
|
64
|
-
add_message "google.firestore.admin.v1.ExportDocumentsResponse" do
|
65
|
-
optional :output_uri_prefix, :string, 1
|
66
|
-
end
|
67
|
-
add_message "google.firestore.admin.v1.Progress" do
|
68
|
-
optional :estimated_work, :int64, 1
|
69
|
-
optional :completed_work, :int64, 2
|
70
|
-
end
|
71
|
-
add_enum "google.firestore.admin.v1.OperationState" do
|
72
|
-
value :OPERATION_STATE_UNSPECIFIED, 0
|
73
|
-
value :INITIALIZING, 1
|
74
|
-
value :PROCESSING, 2
|
75
|
-
value :CANCELLING, 3
|
76
|
-
value :FINALIZING, 4
|
77
|
-
value :SUCCESSFUL, 5
|
78
|
-
value :FAILED, 6
|
79
|
-
value :CANCELLED, 7
|
10
|
+
|
11
|
+
descriptor_data = "\n)google/firestore/admin/v1/operation.proto\x12\x19google.firestore.admin.v1\x1a%google/firestore/admin/v1/index.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x02\n\x16IndexOperationMetadata\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05index\x18\x03 \x01(\t\x12\x38\n\x05state\x18\x04 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x05 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x06 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\"\x99\x07\n\x16\x46ieldOperationMetadata\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05\x66ield\x18\x03 \x01(\t\x12_\n\x13index_config_deltas\x18\x04 \x03(\x0b\x32\x42.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta\x12\x38\n\x05state\x18\x05 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x06 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x07 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12Z\n\x10ttl_config_delta\x18\x08 \x01(\x0b\x32@.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta\x1a\xe7\x01\n\x10IndexConfigDelta\x12\x62\n\x0b\x63hange_type\x18\x01 \x01(\x0e\x32M.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType\x12/\n\x05index\x18\x02 \x01(\x0b\x32 .google.firestore.admin.v1.Index\">\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x1a\xb2\x01\n\x0eTtlConfigDelta\x12`\n\x0b\x63hange_type\x18\x01 \x01(\x0e\x32K.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType\">\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\"\xec\x02\n\x17\x45xportDocumentsMetadata\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x0foperation_state\x18\x03 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x04 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x05 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12\x16\n\x0e\x63ollection_ids\x18\x06 \x03(\t\x12\x19\n\x11output_uri_prefix\x18\x07 \x01(\t\"\xeb\x02\n\x17ImportDocumentsMetadata\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x0foperation_state\x18\x03 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x04 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x05 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12\x16\n\x0e\x63ollection_ids\x18\x06 \x03(\t\x12\x18\n\x10input_uri_prefix\x18\x07 \x01(\t\"4\n\x17\x45xportDocumentsResponse\x12\x19\n\x11output_uri_prefix\x18\x01 \x01(\t\":\n\x08Progress\x12\x16\n\x0e\x65stimated_work\x18\x01 \x01(\x03\x12\x16\n\x0e\x63ompleted_work\x18\x02 \x01(\x03*\x9e\x01\n\x0eOperationState\x12\x1f\n\x1bOPERATION_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\x0e\n\nFINALIZING\x10\x04\x12\x0e\n\nSUCCESSFUL\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\r\n\tCANCELLED\x10\x07\x42\xdd\x01\n\x1d\x63om.google.firestore.admin.v1B\x0eOperationProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
27
|
+
["google.firestore.admin.v1.Index", "google/firestore/admin/v1/index.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
80
33
|
end
|
81
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
82
37
|
end
|
83
38
|
|
84
39
|
module Google
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -32,6 +32,32 @@ module Google
|
|
32
32
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
33
|
end
|
34
34
|
|
35
|
+
# The request for
|
36
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#create_database FirestoreAdmin.CreateDatabase}.
|
37
|
+
# @!attribute [rw] parent
|
38
|
+
# @return [::String]
|
39
|
+
# Required. A parent name of the form
|
40
|
+
# `projects/{project_id}`
|
41
|
+
# @!attribute [rw] database
|
42
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Database]
|
43
|
+
# Required. The Database to create.
|
44
|
+
# @!attribute [rw] database_id
|
45
|
+
# @return [::String]
|
46
|
+
# Required. The ID to use for the database, which will become the final
|
47
|
+
# component of the database's resource name.
|
48
|
+
#
|
49
|
+
# The value must be set to "(default)".
|
50
|
+
class CreateDatabaseRequest
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
|
55
|
+
# Metadata related to the create database operation.
|
56
|
+
class CreateDatabaseMetadata
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
end
|
60
|
+
|
35
61
|
# The list of databases for a project.
|
36
62
|
# @!attribute [rw] databases
|
37
63
|
# @return [::Array<::Google::Cloud::Firestore::Admin::V1::Database>]
|
@@ -41,7 +67,8 @@ module Google
|
|
41
67
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
68
|
end
|
43
69
|
|
44
|
-
# The request for
|
70
|
+
# The request for
|
71
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_database FirestoreAdmin.GetDatabase}.
|
45
72
|
# @!attribute [rw] name
|
46
73
|
# @return [::String]
|
47
74
|
# Required. A name of the form
|
@@ -51,7 +78,8 @@ module Google
|
|
51
78
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
79
|
end
|
53
80
|
|
54
|
-
# The request for
|
81
|
+
# The request for
|
82
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#update_database FirestoreAdmin.UpdateDatabase}.
|
55
83
|
# @!attribute [rw] database
|
56
84
|
# @return [::Google::Cloud::Firestore::Admin::V1::Database]
|
57
85
|
# Required. The database to update.
|
@@ -69,7 +97,8 @@ module Google
|
|
69
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
98
|
end
|
71
99
|
|
72
|
-
# The request for
|
100
|
+
# The request for
|
101
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#create_index FirestoreAdmin.CreateIndex}.
|
73
102
|
# @!attribute [rw] parent
|
74
103
|
# @return [::String]
|
75
104
|
# Required. A parent name of the form
|
@@ -82,7 +111,8 @@ module Google
|
|
82
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
112
|
end
|
84
113
|
|
85
|
-
# The request for
|
114
|
+
# The request for
|
115
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}.
|
86
116
|
# @!attribute [rw] parent
|
87
117
|
# @return [::String]
|
88
118
|
# Required. A parent name of the form
|
@@ -96,14 +126,15 @@ module Google
|
|
96
126
|
# @!attribute [rw] page_token
|
97
127
|
# @return [::String]
|
98
128
|
# A page token, returned from a previous call to
|
99
|
-
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes},
|
100
|
-
# page of results.
|
129
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes},
|
130
|
+
# that may be used to get the next page of results.
|
101
131
|
class ListIndexesRequest
|
102
132
|
include ::Google::Protobuf::MessageExts
|
103
133
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
134
|
end
|
105
135
|
|
106
|
-
# The response for
|
136
|
+
# The response for
|
137
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}.
|
107
138
|
# @!attribute [rw] indexes
|
108
139
|
# @return [::Array<::Google::Cloud::Firestore::Admin::V1::Index>]
|
109
140
|
# The requested indexes.
|
@@ -116,7 +147,8 @@ module Google
|
|
116
147
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
148
|
end
|
118
149
|
|
119
|
-
# The request for
|
150
|
+
# The request for
|
151
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_index FirestoreAdmin.GetIndex}.
|
120
152
|
# @!attribute [rw] name
|
121
153
|
# @return [::String]
|
122
154
|
# Required. A name of the form
|
@@ -126,7 +158,8 @@ module Google
|
|
126
158
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
159
|
end
|
128
160
|
|
129
|
-
# The request for
|
161
|
+
# The request for
|
162
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#delete_index FirestoreAdmin.DeleteIndex}.
|
130
163
|
# @!attribute [rw] name
|
131
164
|
# @return [::String]
|
132
165
|
# Required. A name of the form
|
@@ -136,7 +169,8 @@ module Google
|
|
136
169
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
137
170
|
end
|
138
171
|
|
139
|
-
# The request for
|
172
|
+
# The request for
|
173
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#update_field FirestoreAdmin.UpdateField}.
|
140
174
|
# @!attribute [rw] field
|
141
175
|
# @return [::Google::Cloud::Firestore::Admin::V1::Field]
|
142
176
|
# Required. The field to be updated.
|
@@ -149,7 +183,8 @@ module Google
|
|
149
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
150
184
|
end
|
151
185
|
|
152
|
-
# The request for
|
186
|
+
# The request for
|
187
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_field FirestoreAdmin.GetField}.
|
153
188
|
# @!attribute [rw] name
|
154
189
|
# @return [::String]
|
155
190
|
# Required. A name of the form
|
@@ -159,7 +194,8 @@ module Google
|
|
159
194
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
160
195
|
end
|
161
196
|
|
162
|
-
# The request for
|
197
|
+
# The request for
|
198
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}.
|
163
199
|
# @!attribute [rw] parent
|
164
200
|
# @return [::String]
|
165
201
|
# Required. A parent name of the form
|
@@ -167,24 +203,26 @@ module Google
|
|
167
203
|
# @!attribute [rw] filter
|
168
204
|
# @return [::String]
|
169
205
|
# The filter to apply to list results. Currently,
|
170
|
-
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}
|
171
|
-
# that have been explicitly overridden. To issue
|
172
|
-
#
|
173
|
-
#
|
206
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}
|
207
|
+
# only supports listing fields that have been explicitly overridden. To issue
|
208
|
+
# this query, call
|
209
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}
|
210
|
+
# with a filter that includes `indexConfig.usesAncestorConfig:false` .
|
174
211
|
# @!attribute [rw] page_size
|
175
212
|
# @return [::Integer]
|
176
213
|
# The number of results to return.
|
177
214
|
# @!attribute [rw] page_token
|
178
215
|
# @return [::String]
|
179
216
|
# A page token, returned from a previous call to
|
180
|
-
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields},
|
181
|
-
# page of results.
|
217
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields},
|
218
|
+
# that may be used to get the next page of results.
|
182
219
|
class ListFieldsRequest
|
183
220
|
include ::Google::Protobuf::MessageExts
|
184
221
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
185
222
|
end
|
186
223
|
|
187
|
-
# The response for
|
224
|
+
# The response for
|
225
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}.
|
188
226
|
# @!attribute [rw] fields
|
189
227
|
# @return [::Array<::Google::Cloud::Firestore::Admin::V1::Field>]
|
190
228
|
# The requested fields.
|
@@ -197,7 +235,8 @@ module Google
|
|
197
235
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
236
|
end
|
199
237
|
|
200
|
-
# The request for
|
238
|
+
# The request for
|
239
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#export_documents FirestoreAdmin.ExportDocuments}.
|
201
240
|
# @!attribute [rw] name
|
202
241
|
# @return [::String]
|
203
242
|
# Required. Database to export. Should be of the form:
|
@@ -220,7 +259,8 @@ module Google
|
|
220
259
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
221
260
|
end
|
222
261
|
|
223
|
-
# The request for
|
262
|
+
# The request for
|
263
|
+
# {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#import_documents FirestoreAdmin.ImportDocuments}.
|
224
264
|
# @!attribute [rw] name
|
225
265
|
# @return [::String]
|
226
266
|
# Required. Database to import into. Should be of the form:
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-firestore-admin-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
- !ruby/object:Gem::Version
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
|
-
rubygems_version: 3.4.
|
250
|
+
rubygems_version: 3.4.19
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Accesses the NoSQL document database built for automatic scaling, high performance,
|