google-cloud-firestore-admin-v1 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb +10 -1
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +10 -1
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/client.rb +258 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/operations.rb +75 -0
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81e47ddb5eaa9fce2c1f17357eb5cce975f86d1041f1f2910b407fe66b937c55
|
4
|
+
data.tar.gz: 36a1477f52a561c65e965f3bd597938b602c10eeca69ede784a88a07b1b0bc53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54ba9fd6346f66b503cb909dd60bd6a879447062aee3fde3ae49c3128e1f52199db397f0e96c2d61640088764140c978d7780e85577c08422eb94f83a4869290
|
7
|
+
data.tar.gz: 825bc0b0b720326721587904c36c1dfff45814f57b0c371b1c683fadddae718730128566359309d5659e61700d9fe629ed90c0041a4f6fd4e3e183551d910deb
|
@@ -212,7 +212,8 @@ module Google
|
|
212
212
|
credentials: credentials,
|
213
213
|
endpoint: @config.endpoint,
|
214
214
|
channel_args: @config.channel_args,
|
215
|
-
interceptors: @config.interceptors
|
215
|
+
interceptors: @config.interceptors,
|
216
|
+
channel_pool_config: @config.channel_pool
|
216
217
|
)
|
217
218
|
end
|
218
219
|
|
@@ -1620,6 +1621,14 @@ module Google
|
|
1620
1621
|
end
|
1621
1622
|
end
|
1622
1623
|
|
1624
|
+
##
|
1625
|
+
# Configuration for the channel pool
|
1626
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1627
|
+
#
|
1628
|
+
def channel_pool
|
1629
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1630
|
+
end
|
1631
|
+
|
1623
1632
|
##
|
1624
1633
|
# Configuration RPC class for the FirestoreAdmin API.
|
1625
1634
|
#
|
@@ -94,7 +94,8 @@ module Google
|
|
94
94
|
credentials: credentials,
|
95
95
|
endpoint: @config.endpoint,
|
96
96
|
channel_args: @config.channel_args,
|
97
|
-
interceptors: @config.interceptors
|
97
|
+
interceptors: @config.interceptors,
|
98
|
+
channel_pool_config: @config.channel_pool
|
98
99
|
)
|
99
100
|
|
100
101
|
# Used by an LRO wrapper for some methods of this service
|
@@ -702,6 +703,14 @@ module Google
|
|
702
703
|
end
|
703
704
|
end
|
704
705
|
|
706
|
+
##
|
707
|
+
# Configuration for the channel pool
|
708
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
709
|
+
#
|
710
|
+
def channel_pool
|
711
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
712
|
+
end
|
713
|
+
|
705
714
|
##
|
706
715
|
# Configuration RPC class for the Operations API.
|
707
716
|
#
|
@@ -257,6 +257,29 @@ module Google
|
|
257
257
|
# @return [::Gapic::Operation]
|
258
258
|
#
|
259
259
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
260
|
+
#
|
261
|
+
# @example Basic example
|
262
|
+
# require "google/cloud/firestore/admin/v1"
|
263
|
+
#
|
264
|
+
# # Create a client object. The client can be reused for multiple calls.
|
265
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
266
|
+
#
|
267
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
268
|
+
# request = Google::Cloud::Firestore::Admin::V1::CreateIndexRequest.new
|
269
|
+
#
|
270
|
+
# # Call the create_index method.
|
271
|
+
# result = client.create_index request
|
272
|
+
#
|
273
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
274
|
+
# # check the status of an operation, cancel it, or wait for results.
|
275
|
+
# # Here is how to wait for a response.
|
276
|
+
# result.wait_until_done! timeout: 60
|
277
|
+
# if result.response?
|
278
|
+
# p result.response
|
279
|
+
# else
|
280
|
+
# puts "No response received."
|
281
|
+
# end
|
282
|
+
#
|
260
283
|
def create_index request, options = nil
|
261
284
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
262
285
|
|
@@ -329,6 +352,26 @@ module Google
|
|
329
352
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Firestore::Admin::V1::Index>]
|
330
353
|
#
|
331
354
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
355
|
+
#
|
356
|
+
# @example Basic example
|
357
|
+
# require "google/cloud/firestore/admin/v1"
|
358
|
+
#
|
359
|
+
# # Create a client object. The client can be reused for multiple calls.
|
360
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
361
|
+
#
|
362
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
363
|
+
# request = Google::Cloud::Firestore::Admin::V1::ListIndexesRequest.new
|
364
|
+
#
|
365
|
+
# # Call the list_indexes method.
|
366
|
+
# result = client.list_indexes request
|
367
|
+
#
|
368
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
369
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
370
|
+
# result.each do |item|
|
371
|
+
# # Each element is of type ::Google::Cloud::Firestore::Admin::V1::Index.
|
372
|
+
# p item
|
373
|
+
# end
|
374
|
+
#
|
332
375
|
def list_indexes request, options = nil
|
333
376
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
334
377
|
|
@@ -393,6 +436,22 @@ module Google
|
|
393
436
|
# @return [::Google::Cloud::Firestore::Admin::V1::Index]
|
394
437
|
#
|
395
438
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
439
|
+
#
|
440
|
+
# @example Basic example
|
441
|
+
# require "google/cloud/firestore/admin/v1"
|
442
|
+
#
|
443
|
+
# # Create a client object. The client can be reused for multiple calls.
|
444
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
445
|
+
#
|
446
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
447
|
+
# request = Google::Cloud::Firestore::Admin::V1::GetIndexRequest.new
|
448
|
+
#
|
449
|
+
# # Call the get_index method.
|
450
|
+
# result = client.get_index request
|
451
|
+
#
|
452
|
+
# # The returned object is of type Google::Cloud::Firestore::Admin::V1::Index.
|
453
|
+
# p result
|
454
|
+
#
|
396
455
|
def get_index request, options = nil
|
397
456
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
398
457
|
|
@@ -456,6 +515,22 @@ module Google
|
|
456
515
|
# @return [::Google::Protobuf::Empty]
|
457
516
|
#
|
458
517
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
518
|
+
#
|
519
|
+
# @example Basic example
|
520
|
+
# require "google/cloud/firestore/admin/v1"
|
521
|
+
#
|
522
|
+
# # Create a client object. The client can be reused for multiple calls.
|
523
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
524
|
+
#
|
525
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
526
|
+
# request = Google::Cloud::Firestore::Admin::V1::DeleteIndexRequest.new
|
527
|
+
#
|
528
|
+
# # Call the delete_index method.
|
529
|
+
# result = client.delete_index request
|
530
|
+
#
|
531
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
532
|
+
# p result
|
533
|
+
#
|
459
534
|
def delete_index request, options = nil
|
460
535
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
461
536
|
|
@@ -519,6 +594,22 @@ module Google
|
|
519
594
|
# @return [::Google::Cloud::Firestore::Admin::V1::Field]
|
520
595
|
#
|
521
596
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
597
|
+
#
|
598
|
+
# @example Basic example
|
599
|
+
# require "google/cloud/firestore/admin/v1"
|
600
|
+
#
|
601
|
+
# # Create a client object. The client can be reused for multiple calls.
|
602
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
603
|
+
#
|
604
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
605
|
+
# request = Google::Cloud::Firestore::Admin::V1::GetFieldRequest.new
|
606
|
+
#
|
607
|
+
# # Call the get_field method.
|
608
|
+
# result = client.get_field request
|
609
|
+
#
|
610
|
+
# # The returned object is of type Google::Cloud::Firestore::Admin::V1::Field.
|
611
|
+
# p result
|
612
|
+
#
|
522
613
|
def get_field request, options = nil
|
523
614
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
524
615
|
|
@@ -599,6 +690,29 @@ module Google
|
|
599
690
|
# @return [::Gapic::Operation]
|
600
691
|
#
|
601
692
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
693
|
+
#
|
694
|
+
# @example Basic example
|
695
|
+
# require "google/cloud/firestore/admin/v1"
|
696
|
+
#
|
697
|
+
# # Create a client object. The client can be reused for multiple calls.
|
698
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
699
|
+
#
|
700
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
701
|
+
# request = Google::Cloud::Firestore::Admin::V1::UpdateFieldRequest.new
|
702
|
+
#
|
703
|
+
# # Call the update_field method.
|
704
|
+
# result = client.update_field request
|
705
|
+
#
|
706
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
707
|
+
# # check the status of an operation, cancel it, or wait for results.
|
708
|
+
# # Here is how to wait for a response.
|
709
|
+
# result.wait_until_done! timeout: 60
|
710
|
+
# if result.response?
|
711
|
+
# p result.response
|
712
|
+
# else
|
713
|
+
# puts "No response received."
|
714
|
+
# end
|
715
|
+
#
|
602
716
|
def update_field request, options = nil
|
603
717
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
604
718
|
|
@@ -683,6 +797,26 @@ module Google
|
|
683
797
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Firestore::Admin::V1::Field>]
|
684
798
|
#
|
685
799
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
800
|
+
#
|
801
|
+
# @example Basic example
|
802
|
+
# require "google/cloud/firestore/admin/v1"
|
803
|
+
#
|
804
|
+
# # Create a client object. The client can be reused for multiple calls.
|
805
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
806
|
+
#
|
807
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
808
|
+
# request = Google::Cloud::Firestore::Admin::V1::ListFieldsRequest.new
|
809
|
+
#
|
810
|
+
# # Call the list_fields method.
|
811
|
+
# result = client.list_fields request
|
812
|
+
#
|
813
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
814
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
815
|
+
# result.each do |item|
|
816
|
+
# # Each element is of type ::Google::Cloud::Firestore::Admin::V1::Field.
|
817
|
+
# p item
|
818
|
+
# end
|
819
|
+
#
|
686
820
|
def list_fields request, options = nil
|
687
821
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
688
822
|
|
@@ -768,6 +902,29 @@ module Google
|
|
768
902
|
# @return [::Gapic::Operation]
|
769
903
|
#
|
770
904
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
905
|
+
#
|
906
|
+
# @example Basic example
|
907
|
+
# require "google/cloud/firestore/admin/v1"
|
908
|
+
#
|
909
|
+
# # Create a client object. The client can be reused for multiple calls.
|
910
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
911
|
+
#
|
912
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
913
|
+
# request = Google::Cloud::Firestore::Admin::V1::ExportDocumentsRequest.new
|
914
|
+
#
|
915
|
+
# # Call the export_documents method.
|
916
|
+
# result = client.export_documents request
|
917
|
+
#
|
918
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
919
|
+
# # check the status of an operation, cancel it, or wait for results.
|
920
|
+
# # Here is how to wait for a response.
|
921
|
+
# result.wait_until_done! timeout: 60
|
922
|
+
# if result.response?
|
923
|
+
# p result.response
|
924
|
+
# else
|
925
|
+
# puts "No response received."
|
926
|
+
# end
|
927
|
+
#
|
771
928
|
def export_documents request, options = nil
|
772
929
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
773
930
|
|
@@ -845,6 +1002,29 @@ module Google
|
|
845
1002
|
# @return [::Gapic::Operation]
|
846
1003
|
#
|
847
1004
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1005
|
+
#
|
1006
|
+
# @example Basic example
|
1007
|
+
# require "google/cloud/firestore/admin/v1"
|
1008
|
+
#
|
1009
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1010
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
1011
|
+
#
|
1012
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1013
|
+
# request = Google::Cloud::Firestore::Admin::V1::ImportDocumentsRequest.new
|
1014
|
+
#
|
1015
|
+
# # Call the import_documents method.
|
1016
|
+
# result = client.import_documents request
|
1017
|
+
#
|
1018
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1019
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1020
|
+
# # Here is how to wait for a response.
|
1021
|
+
# result.wait_until_done! timeout: 60
|
1022
|
+
# if result.response?
|
1023
|
+
# p result.response
|
1024
|
+
# else
|
1025
|
+
# puts "No response received."
|
1026
|
+
# end
|
1027
|
+
#
|
848
1028
|
def import_documents request, options = nil
|
849
1029
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
850
1030
|
|
@@ -916,6 +1096,29 @@ module Google
|
|
916
1096
|
# @return [::Gapic::Operation]
|
917
1097
|
#
|
918
1098
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1099
|
+
#
|
1100
|
+
# @example Basic example
|
1101
|
+
# require "google/cloud/firestore/admin/v1"
|
1102
|
+
#
|
1103
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1104
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
1105
|
+
#
|
1106
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1107
|
+
# request = Google::Cloud::Firestore::Admin::V1::CreateDatabaseRequest.new
|
1108
|
+
#
|
1109
|
+
# # Call the create_database method.
|
1110
|
+
# result = client.create_database request
|
1111
|
+
#
|
1112
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1113
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1114
|
+
# # Here is how to wait for a response.
|
1115
|
+
# result.wait_until_done! timeout: 60
|
1116
|
+
# if result.response?
|
1117
|
+
# p result.response
|
1118
|
+
# else
|
1119
|
+
# puts "No response received."
|
1120
|
+
# end
|
1121
|
+
#
|
919
1122
|
def create_database request, options = nil
|
920
1123
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
921
1124
|
|
@@ -980,6 +1183,22 @@ module Google
|
|
980
1183
|
# @return [::Google::Cloud::Firestore::Admin::V1::Database]
|
981
1184
|
#
|
982
1185
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1186
|
+
#
|
1187
|
+
# @example Basic example
|
1188
|
+
# require "google/cloud/firestore/admin/v1"
|
1189
|
+
#
|
1190
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1191
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
1192
|
+
#
|
1193
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1194
|
+
# request = Google::Cloud::Firestore::Admin::V1::GetDatabaseRequest.new
|
1195
|
+
#
|
1196
|
+
# # Call the get_database method.
|
1197
|
+
# result = client.get_database request
|
1198
|
+
#
|
1199
|
+
# # The returned object is of type Google::Cloud::Firestore::Admin::V1::Database.
|
1200
|
+
# p result
|
1201
|
+
#
|
983
1202
|
def get_database request, options = nil
|
984
1203
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
985
1204
|
|
@@ -1043,6 +1262,22 @@ module Google
|
|
1043
1262
|
# @return [::Google::Cloud::Firestore::Admin::V1::ListDatabasesResponse]
|
1044
1263
|
#
|
1045
1264
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1265
|
+
#
|
1266
|
+
# @example Basic example
|
1267
|
+
# require "google/cloud/firestore/admin/v1"
|
1268
|
+
#
|
1269
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1270
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
1271
|
+
#
|
1272
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1273
|
+
# request = Google::Cloud::Firestore::Admin::V1::ListDatabasesRequest.new
|
1274
|
+
#
|
1275
|
+
# # Call the list_databases method.
|
1276
|
+
# result = client.list_databases request
|
1277
|
+
#
|
1278
|
+
# # The returned object is of type Google::Cloud::Firestore::Admin::V1::ListDatabasesResponse.
|
1279
|
+
# p result
|
1280
|
+
#
|
1046
1281
|
def list_databases request, options = nil
|
1047
1282
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1048
1283
|
|
@@ -1107,6 +1342,29 @@ module Google
|
|
1107
1342
|
# @return [::Gapic::Operation]
|
1108
1343
|
#
|
1109
1344
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1345
|
+
#
|
1346
|
+
# @example Basic example
|
1347
|
+
# require "google/cloud/firestore/admin/v1"
|
1348
|
+
#
|
1349
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1350
|
+
# client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
|
1351
|
+
#
|
1352
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1353
|
+
# request = Google::Cloud::Firestore::Admin::V1::UpdateDatabaseRequest.new
|
1354
|
+
#
|
1355
|
+
# # Call the update_database method.
|
1356
|
+
# result = client.update_database request
|
1357
|
+
#
|
1358
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1359
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1360
|
+
# # Here is how to wait for a response.
|
1361
|
+
# result.wait_until_done! timeout: 60
|
1362
|
+
# if result.response?
|
1363
|
+
# p result.response
|
1364
|
+
# else
|
1365
|
+
# puts "No response received."
|
1366
|
+
# end
|
1367
|
+
#
|
1110
1368
|
def update_database request, options = nil
|
1111
1369
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1112
1370
|
|
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -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
|
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,
|