google-cloud-firestore-admin-v1 0.3.4 → 0.3.5
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 +220 -27
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +115 -12
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/lib/google/firestore/admin/v1/field_pb.rb +2 -2
- data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +2 -2
- data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +1 -1
- data/lib/google/firestore/admin/v1/index_pb.rb +2 -2
- data/lib/google/firestore/admin/v1/location_pb.rb +2 -2
- data/lib/google/firestore/admin/v1/operation_pb.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e576925bd653ff87f65db14f1a1727775a42bf509afbbb4e27ac6793b5111dd6
|
4
|
+
data.tar.gz: 015c2e510cb1c8b64602c3d95fa781e5111d10b3af7183f2499e6428e194d663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 377663b172b3593969409b7ad3280eb8e04eebec7a7425ac85ad67b8e634d3fcca6361b45798fcb9fc92f97b5b01d68dfee555dbf7e7a8b04dc0f1f3feca94c2
|
7
|
+
data.tar.gz: 3ba5cedc5b07b6f52c693a3f1a09387475e4bda2b2b7a232bf1a043c166ce3d9fe37ecba2278de35f24744e23df43795fbfc3e0042970188d02df946a8cf3a32
|
@@ -225,6 +225,28 @@ module Google
|
|
225
225
|
#
|
226
226
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
227
227
|
#
|
228
|
+
# @example Basic example
|
229
|
+
# require "google/cloud/firestore/admin/v1"
|
230
|
+
#
|
231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
232
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
233
|
+
#
|
234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
235
|
+
# request = Google::Cloud::Firestore::Admin::V1::CreateIndexRequest.new
|
236
|
+
#
|
237
|
+
# # Call the create_index method.
|
238
|
+
# result = client.create_index request
|
239
|
+
#
|
240
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
241
|
+
# # object to check the status of an operation, cancel it, or wait
|
242
|
+
# # for results. Here is how to block until completion:
|
243
|
+
# result.wait_until_done! timeout: 60
|
244
|
+
# if result.response?
|
245
|
+
# p result.response
|
246
|
+
# else
|
247
|
+
# puts "Error!"
|
248
|
+
# end
|
249
|
+
#
|
228
250
|
def create_index request, options = nil
|
229
251
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
230
252
|
|
@@ -242,9 +264,11 @@ module Google
|
|
242
264
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
243
265
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
244
266
|
|
245
|
-
header_params = {
|
246
|
-
|
247
|
-
|
267
|
+
header_params = {}
|
268
|
+
if request.parent
|
269
|
+
header_params["parent"] = request.parent
|
270
|
+
end
|
271
|
+
|
248
272
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
249
273
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
250
274
|
|
@@ -303,6 +327,27 @@ module Google
|
|
303
327
|
#
|
304
328
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
305
329
|
#
|
330
|
+
# @example Basic example
|
331
|
+
# require "google/cloud/firestore/admin/v1"
|
332
|
+
#
|
333
|
+
# # Create a client object. The client can be reused for multiple calls.
|
334
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
335
|
+
#
|
336
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
337
|
+
# request = Google::Cloud::Firestore::Admin::V1::ListIndexesRequest.new
|
338
|
+
#
|
339
|
+
# # Call the list_indexes method.
|
340
|
+
# result = client.list_indexes request
|
341
|
+
#
|
342
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
343
|
+
# # iterate over all elements by calling #each, and the enumerable
|
344
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
345
|
+
# # methods are also available for managing paging directly.
|
346
|
+
# result.each do |response|
|
347
|
+
# # Each element is of type ::Google::Cloud::Firestore::Admin::V1::Index.
|
348
|
+
# p response
|
349
|
+
# end
|
350
|
+
#
|
306
351
|
def list_indexes request, options = nil
|
307
352
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
308
353
|
|
@@ -320,9 +365,11 @@ module Google
|
|
320
365
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
321
366
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
322
367
|
|
323
|
-
header_params = {
|
324
|
-
|
325
|
-
|
368
|
+
header_params = {}
|
369
|
+
if request.parent
|
370
|
+
header_params["parent"] = request.parent
|
371
|
+
end
|
372
|
+
|
326
373
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
327
374
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
328
375
|
|
@@ -373,6 +420,21 @@ module Google
|
|
373
420
|
#
|
374
421
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
375
422
|
#
|
423
|
+
# @example Basic example
|
424
|
+
# require "google/cloud/firestore/admin/v1"
|
425
|
+
#
|
426
|
+
# # Create a client object. The client can be reused for multiple calls.
|
427
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
428
|
+
#
|
429
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
430
|
+
# request = Google::Cloud::Firestore::Admin::V1::GetIndexRequest.new
|
431
|
+
#
|
432
|
+
# # Call the get_index method.
|
433
|
+
# result = client.get_index request
|
434
|
+
#
|
435
|
+
# # The returned object is of type Google::Cloud::Firestore::Admin::V1::Index.
|
436
|
+
# p result
|
437
|
+
#
|
376
438
|
def get_index request, options = nil
|
377
439
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
378
440
|
|
@@ -390,9 +452,11 @@ module Google
|
|
390
452
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
391
453
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
392
454
|
|
393
|
-
header_params = {
|
394
|
-
|
395
|
-
|
455
|
+
header_params = {}
|
456
|
+
if request.name
|
457
|
+
header_params["name"] = request.name
|
458
|
+
end
|
459
|
+
|
396
460
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
397
461
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
398
462
|
|
@@ -442,6 +506,21 @@ module Google
|
|
442
506
|
#
|
443
507
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
444
508
|
#
|
509
|
+
# @example Basic example
|
510
|
+
# require "google/cloud/firestore/admin/v1"
|
511
|
+
#
|
512
|
+
# # Create a client object. The client can be reused for multiple calls.
|
513
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
514
|
+
#
|
515
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
516
|
+
# request = Google::Cloud::Firestore::Admin::V1::DeleteIndexRequest.new
|
517
|
+
#
|
518
|
+
# # Call the delete_index method.
|
519
|
+
# result = client.delete_index request
|
520
|
+
#
|
521
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
522
|
+
# p result
|
523
|
+
#
|
445
524
|
def delete_index request, options = nil
|
446
525
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
447
526
|
|
@@ -459,9 +538,11 @@ module Google
|
|
459
538
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
460
539
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
461
540
|
|
462
|
-
header_params = {
|
463
|
-
|
464
|
-
|
541
|
+
header_params = {}
|
542
|
+
if request.name
|
543
|
+
header_params["name"] = request.name
|
544
|
+
end
|
545
|
+
|
465
546
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
466
547
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
467
548
|
|
@@ -511,6 +592,21 @@ module Google
|
|
511
592
|
#
|
512
593
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
513
594
|
#
|
595
|
+
# @example Basic example
|
596
|
+
# require "google/cloud/firestore/admin/v1"
|
597
|
+
#
|
598
|
+
# # Create a client object. The client can be reused for multiple calls.
|
599
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
600
|
+
#
|
601
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
602
|
+
# request = Google::Cloud::Firestore::Admin::V1::GetFieldRequest.new
|
603
|
+
#
|
604
|
+
# # Call the get_field method.
|
605
|
+
# result = client.get_field request
|
606
|
+
#
|
607
|
+
# # The returned object is of type Google::Cloud::Firestore::Admin::V1::Field.
|
608
|
+
# p result
|
609
|
+
#
|
514
610
|
def get_field request, options = nil
|
515
611
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
516
612
|
|
@@ -528,9 +624,11 @@ module Google
|
|
528
624
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
529
625
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
530
626
|
|
531
|
-
header_params = {
|
532
|
-
|
533
|
-
|
627
|
+
header_params = {}
|
628
|
+
if request.name
|
629
|
+
header_params["name"] = request.name
|
630
|
+
end
|
631
|
+
|
534
632
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
535
633
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
536
634
|
|
@@ -594,6 +692,28 @@ module Google
|
|
594
692
|
#
|
595
693
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
596
694
|
#
|
695
|
+
# @example Basic example
|
696
|
+
# require "google/cloud/firestore/admin/v1"
|
697
|
+
#
|
698
|
+
# # Create a client object. The client can be reused for multiple calls.
|
699
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
700
|
+
#
|
701
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
702
|
+
# request = Google::Cloud::Firestore::Admin::V1::UpdateFieldRequest.new
|
703
|
+
#
|
704
|
+
# # Call the update_field method.
|
705
|
+
# result = client.update_field request
|
706
|
+
#
|
707
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
708
|
+
# # object to check the status of an operation, cancel it, or wait
|
709
|
+
# # for results. Here is how to block until completion:
|
710
|
+
# result.wait_until_done! timeout: 60
|
711
|
+
# if result.response?
|
712
|
+
# p result.response
|
713
|
+
# else
|
714
|
+
# puts "Error!"
|
715
|
+
# end
|
716
|
+
#
|
597
717
|
def update_field request, options = nil
|
598
718
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
599
719
|
|
@@ -611,9 +731,11 @@ module Google
|
|
611
731
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
612
732
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
613
733
|
|
614
|
-
header_params = {
|
615
|
-
|
616
|
-
|
734
|
+
header_params = {}
|
735
|
+
if request.field&.name
|
736
|
+
header_params["field.name"] = request.field.name
|
737
|
+
end
|
738
|
+
|
617
739
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
618
740
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
619
741
|
|
@@ -681,6 +803,27 @@ module Google
|
|
681
803
|
#
|
682
804
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
683
805
|
#
|
806
|
+
# @example Basic example
|
807
|
+
# require "google/cloud/firestore/admin/v1"
|
808
|
+
#
|
809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
810
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
811
|
+
#
|
812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
813
|
+
# request = Google::Cloud::Firestore::Admin::V1::ListFieldsRequest.new
|
814
|
+
#
|
815
|
+
# # Call the list_fields method.
|
816
|
+
# result = client.list_fields request
|
817
|
+
#
|
818
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
819
|
+
# # iterate over all elements by calling #each, and the enumerable
|
820
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
821
|
+
# # methods are also available for managing paging directly.
|
822
|
+
# result.each do |response|
|
823
|
+
# # Each element is of type ::Google::Cloud::Firestore::Admin::V1::Field.
|
824
|
+
# p response
|
825
|
+
# end
|
826
|
+
#
|
684
827
|
def list_fields request, options = nil
|
685
828
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
686
829
|
|
@@ -698,9 +841,11 @@ module Google
|
|
698
841
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
699
842
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
700
843
|
|
701
|
-
header_params = {
|
702
|
-
|
703
|
-
|
844
|
+
header_params = {}
|
845
|
+
if request.parent
|
846
|
+
header_params["parent"] = request.parent
|
847
|
+
end
|
848
|
+
|
704
849
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
705
850
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
706
851
|
|
@@ -769,6 +914,28 @@ module Google
|
|
769
914
|
#
|
770
915
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
771
916
|
#
|
917
|
+
# @example Basic example
|
918
|
+
# require "google/cloud/firestore/admin/v1"
|
919
|
+
#
|
920
|
+
# # Create a client object. The client can be reused for multiple calls.
|
921
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
922
|
+
#
|
923
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
924
|
+
# request = Google::Cloud::Firestore::Admin::V1::ExportDocumentsRequest.new
|
925
|
+
#
|
926
|
+
# # Call the export_documents method.
|
927
|
+
# result = client.export_documents request
|
928
|
+
#
|
929
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
930
|
+
# # object to check the status of an operation, cancel it, or wait
|
931
|
+
# # for results. Here is how to block until completion:
|
932
|
+
# result.wait_until_done! timeout: 60
|
933
|
+
# if result.response?
|
934
|
+
# p result.response
|
935
|
+
# else
|
936
|
+
# puts "Error!"
|
937
|
+
# end
|
938
|
+
#
|
772
939
|
def export_documents request, options = nil
|
773
940
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
774
941
|
|
@@ -786,9 +953,11 @@ module Google
|
|
786
953
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
787
954
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
788
955
|
|
789
|
-
header_params = {
|
790
|
-
|
791
|
-
|
956
|
+
header_params = {}
|
957
|
+
if request.name
|
958
|
+
header_params["name"] = request.name
|
959
|
+
end
|
960
|
+
|
792
961
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
793
962
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
794
963
|
|
@@ -852,6 +1021,28 @@ module Google
|
|
852
1021
|
#
|
853
1022
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
854
1023
|
#
|
1024
|
+
# @example Basic example
|
1025
|
+
# require "google/cloud/firestore/admin/v1"
|
1026
|
+
#
|
1027
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1028
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
|
1029
|
+
#
|
1030
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1031
|
+
# request = Google::Cloud::Firestore::Admin::V1::ImportDocumentsRequest.new
|
1032
|
+
#
|
1033
|
+
# # Call the import_documents method.
|
1034
|
+
# result = client.import_documents request
|
1035
|
+
#
|
1036
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1037
|
+
# # object to check the status of an operation, cancel it, or wait
|
1038
|
+
# # for results. Here is how to block until completion:
|
1039
|
+
# result.wait_until_done! timeout: 60
|
1040
|
+
# if result.response?
|
1041
|
+
# p result.response
|
1042
|
+
# else
|
1043
|
+
# puts "Error!"
|
1044
|
+
# end
|
1045
|
+
#
|
855
1046
|
def import_documents request, options = nil
|
856
1047
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
857
1048
|
|
@@ -869,9 +1060,11 @@ module Google
|
|
869
1060
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
870
1061
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
871
1062
|
|
872
|
-
header_params = {
|
873
|
-
|
874
|
-
|
1063
|
+
header_params = {}
|
1064
|
+
if request.name
|
1065
|
+
header_params["name"] = request.name
|
1066
|
+
end
|
1067
|
+
|
875
1068
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
876
1069
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
877
1070
|
|
@@ -144,6 +144,27 @@ module Google
|
|
144
144
|
#
|
145
145
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
146
146
|
#
|
147
|
+
# @example Basic example
|
148
|
+
# require "google/longrunning"
|
149
|
+
#
|
150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
151
|
+
# client = Google::Longrunning::Operations::Client.new
|
152
|
+
#
|
153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
154
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
155
|
+
#
|
156
|
+
# # Call the list_operations method.
|
157
|
+
# result = client.list_operations request
|
158
|
+
#
|
159
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
160
|
+
# # iterate over all elements by calling #each, and the enumerable
|
161
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
162
|
+
# # methods are also available for managing paging directly.
|
163
|
+
# result.each do |response|
|
164
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
165
|
+
# p response
|
166
|
+
# end
|
167
|
+
#
|
147
168
|
def list_operations request, options = nil
|
148
169
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
149
170
|
|
@@ -161,9 +182,11 @@ module Google
|
|
161
182
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
162
183
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
163
184
|
|
164
|
-
header_params = {
|
165
|
-
|
166
|
-
|
185
|
+
header_params = {}
|
186
|
+
if request.name
|
187
|
+
header_params["name"] = request.name
|
188
|
+
end
|
189
|
+
|
167
190
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
168
191
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
169
192
|
|
@@ -216,6 +239,28 @@ module Google
|
|
216
239
|
#
|
217
240
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
241
|
#
|
242
|
+
# @example Basic example
|
243
|
+
# require "google/longrunning"
|
244
|
+
#
|
245
|
+
# # Create a client object. The client can be reused for multiple calls.
|
246
|
+
# client = Google::Longrunning::Operations::Client.new
|
247
|
+
#
|
248
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
249
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
250
|
+
#
|
251
|
+
# # Call the get_operation method.
|
252
|
+
# result = client.get_operation request
|
253
|
+
#
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
255
|
+
# # object to check the status of an operation, cancel it, or wait
|
256
|
+
# # for results. Here is how to block until completion:
|
257
|
+
# result.wait_until_done! timeout: 60
|
258
|
+
# if result.response?
|
259
|
+
# p result.response
|
260
|
+
# else
|
261
|
+
# puts "Error!"
|
262
|
+
# end
|
263
|
+
#
|
219
264
|
def get_operation request, options = nil
|
220
265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
266
|
|
@@ -233,9 +278,11 @@ module Google
|
|
233
278
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
234
279
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
235
280
|
|
236
|
-
header_params = {
|
237
|
-
|
238
|
-
|
281
|
+
header_params = {}
|
282
|
+
if request.name
|
283
|
+
header_params["name"] = request.name
|
284
|
+
end
|
285
|
+
|
239
286
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
240
287
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
241
288
|
|
@@ -288,6 +335,21 @@ module Google
|
|
288
335
|
#
|
289
336
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
290
337
|
#
|
338
|
+
# @example Basic example
|
339
|
+
# require "google/longrunning"
|
340
|
+
#
|
341
|
+
# # Create a client object. The client can be reused for multiple calls.
|
342
|
+
# client = Google::Longrunning::Operations::Client.new
|
343
|
+
#
|
344
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
345
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
346
|
+
#
|
347
|
+
# # Call the delete_operation method.
|
348
|
+
# result = client.delete_operation request
|
349
|
+
#
|
350
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
351
|
+
# p result
|
352
|
+
#
|
291
353
|
def delete_operation request, options = nil
|
292
354
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
293
355
|
|
@@ -305,9 +367,11 @@ module Google
|
|
305
367
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
306
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
307
369
|
|
308
|
-
header_params = {
|
309
|
-
|
310
|
-
|
370
|
+
header_params = {}
|
371
|
+
if request.name
|
372
|
+
header_params["name"] = request.name
|
373
|
+
end
|
374
|
+
|
311
375
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
312
376
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
313
377
|
|
@@ -365,6 +429,21 @@ module Google
|
|
365
429
|
#
|
366
430
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
367
431
|
#
|
432
|
+
# @example Basic example
|
433
|
+
# require "google/longrunning"
|
434
|
+
#
|
435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
436
|
+
# client = Google::Longrunning::Operations::Client.new
|
437
|
+
#
|
438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
439
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
440
|
+
#
|
441
|
+
# # Call the cancel_operation method.
|
442
|
+
# result = client.cancel_operation request
|
443
|
+
#
|
444
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
445
|
+
# p result
|
446
|
+
#
|
368
447
|
def cancel_operation request, options = nil
|
369
448
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
370
449
|
|
@@ -382,9 +461,11 @@ module Google
|
|
382
461
|
gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
|
383
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
463
|
|
385
|
-
header_params = {
|
386
|
-
|
387
|
-
|
464
|
+
header_params = {}
|
465
|
+
if request.name
|
466
|
+
header_params["name"] = request.name
|
467
|
+
end
|
468
|
+
|
388
469
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
389
470
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
390
471
|
|
@@ -445,6 +526,28 @@ module Google
|
|
445
526
|
#
|
446
527
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
447
528
|
#
|
529
|
+
# @example Basic example
|
530
|
+
# require "google/longrunning"
|
531
|
+
#
|
532
|
+
# # Create a client object. The client can be reused for multiple calls.
|
533
|
+
# client = Google::Longrunning::Operations::Client.new
|
534
|
+
#
|
535
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
536
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
537
|
+
#
|
538
|
+
# # Call the wait_operation method.
|
539
|
+
# result = client.wait_operation request
|
540
|
+
#
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
542
|
+
# # object to check the status of an operation, cancel it, or wait
|
543
|
+
# # for results. Here is how to block until completion:
|
544
|
+
# result.wait_until_done! timeout: 60
|
545
|
+
# if result.response?
|
546
|
+
# p result.response
|
547
|
+
# else
|
548
|
+
# puts "Error!"
|
549
|
+
# end
|
550
|
+
#
|
448
551
|
def wait_operation request, options = nil
|
449
552
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
450
553
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/admin/v1/field.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/firestore/admin/v1/index_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/firestore/admin/v1/field.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.firestore.admin.v1.Field" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/admin/v1/firestore_admin.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/firestore/admin/v1/index_pb'
|
|
12
10
|
require 'google/longrunning/operations_pb'
|
13
11
|
require 'google/protobuf/empty_pb'
|
14
12
|
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/firestore/admin/v1/firestore_admin.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.firestore.admin.v1.CreateIndexRequest" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/admin/v1/index.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/firestore/admin/v1/index.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.firestore.admin.v1.Index" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/admin/v1/location.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/type/latlng_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/firestore/admin/v1/location.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.firestore.admin.v1.LocationMetadata" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/firestore/admin/v1/operation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/firestore/admin/v1/index_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/firestore/admin/v1/operation.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.firestore.admin.v1.IndexOperationMetadata" do
|
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.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|