google-cloud-storage_transfer-v1 0.7.0 → 0.8.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/storage_transfer/v1/storage_transfer_service/client.rb +10 -1
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/operations.rb +10 -1
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/client.rb +239 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/operations.rb +75 -0
- data/lib/google/cloud/storage_transfer/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: a776cdb6f238f03940db687371e80d5a4e15f6f14038ec7b57259076440e576f
|
4
|
+
data.tar.gz: df1886914fd19b4aa27ac0589f2a3abc2a834084863fb46a819ff06215fa625f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f7d9c12b27a1e7ead3dab96a41cb47b38d851934c56cc35dae2428de887b33ebd80b94580cf6f4acf302dac5d6dac9eaef0666182fafb249c1045f796bdd65
|
7
|
+
data.tar.gz: 3b4ffb9e40e3bae55731f29054fd616e4d25764e86ddd56efb9e6c10e30cdd7d6a92f35fa4a554302d36fc73504b1b0147cfc0180ebec1b350a7b2444fff18b6
|
@@ -153,7 +153,8 @@ module Google
|
|
153
153
|
credentials: credentials,
|
154
154
|
endpoint: @config.endpoint,
|
155
155
|
channel_args: @config.channel_args,
|
156
|
-
interceptors: @config.interceptors
|
156
|
+
interceptors: @config.interceptors,
|
157
|
+
channel_pool_config: @config.channel_pool
|
157
158
|
)
|
158
159
|
end
|
159
160
|
|
@@ -1596,6 +1597,14 @@ module Google
|
|
1596
1597
|
end
|
1597
1598
|
end
|
1598
1599
|
|
1600
|
+
##
|
1601
|
+
# Configuration for the channel pool
|
1602
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1603
|
+
#
|
1604
|
+
def channel_pool
|
1605
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1606
|
+
end
|
1607
|
+
|
1599
1608
|
##
|
1600
1609
|
# Configuration RPC class for the StorageTransferService API.
|
1601
1610
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -192,6 +192,22 @@ module Google
|
|
192
192
|
# @return [::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount]
|
193
193
|
#
|
194
194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
195
|
+
#
|
196
|
+
# @example Basic example
|
197
|
+
# require "google/cloud/storage_transfer/v1"
|
198
|
+
#
|
199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
200
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
201
|
+
#
|
202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
203
|
+
# request = Google::Cloud::StorageTransfer::V1::GetGoogleServiceAccountRequest.new
|
204
|
+
#
|
205
|
+
# # Call the get_google_service_account method.
|
206
|
+
# result = client.get_google_service_account request
|
207
|
+
#
|
208
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::GoogleServiceAccount.
|
209
|
+
# p result
|
210
|
+
#
|
195
211
|
def get_google_service_account request, options = nil
|
196
212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
197
213
|
|
@@ -254,6 +270,22 @@ module Google
|
|
254
270
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
255
271
|
#
|
256
272
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
273
|
+
#
|
274
|
+
# @example Basic example
|
275
|
+
# require "google/cloud/storage_transfer/v1"
|
276
|
+
#
|
277
|
+
# # Create a client object. The client can be reused for multiple calls.
|
278
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
279
|
+
#
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
281
|
+
# request = Google::Cloud::StorageTransfer::V1::CreateTransferJobRequest.new
|
282
|
+
#
|
283
|
+
# # Call the create_transfer_job method.
|
284
|
+
# result = client.create_transfer_job request
|
285
|
+
#
|
286
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::TransferJob.
|
287
|
+
# p result
|
288
|
+
#
|
257
289
|
def create_transfer_job request, options = nil
|
258
290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
259
291
|
|
@@ -351,6 +383,22 @@ module Google
|
|
351
383
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
352
384
|
#
|
353
385
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
386
|
+
#
|
387
|
+
# @example Basic example
|
388
|
+
# require "google/cloud/storage_transfer/v1"
|
389
|
+
#
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
391
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
392
|
+
#
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
394
|
+
# request = Google::Cloud::StorageTransfer::V1::UpdateTransferJobRequest.new
|
395
|
+
#
|
396
|
+
# # Call the update_transfer_job method.
|
397
|
+
# result = client.update_transfer_job request
|
398
|
+
#
|
399
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::TransferJob.
|
400
|
+
# p result
|
401
|
+
#
|
354
402
|
def update_transfer_job request, options = nil
|
355
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
356
404
|
|
@@ -416,6 +464,22 @@ module Google
|
|
416
464
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
417
465
|
#
|
418
466
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
467
|
+
#
|
468
|
+
# @example Basic example
|
469
|
+
# require "google/cloud/storage_transfer/v1"
|
470
|
+
#
|
471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
472
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
473
|
+
#
|
474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
475
|
+
# request = Google::Cloud::StorageTransfer::V1::GetTransferJobRequest.new
|
476
|
+
#
|
477
|
+
# # Call the get_transfer_job method.
|
478
|
+
# result = client.get_transfer_job request
|
479
|
+
#
|
480
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::TransferJob.
|
481
|
+
# p result
|
482
|
+
#
|
419
483
|
def get_transfer_job request, options = nil
|
420
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
421
485
|
|
@@ -493,6 +557,26 @@ module Google
|
|
493
557
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageTransfer::V1::TransferJob>]
|
494
558
|
#
|
495
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
560
|
+
#
|
561
|
+
# @example Basic example
|
562
|
+
# require "google/cloud/storage_transfer/v1"
|
563
|
+
#
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
565
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
566
|
+
#
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
568
|
+
# request = Google::Cloud::StorageTransfer::V1::ListTransferJobsRequest.new
|
569
|
+
#
|
570
|
+
# # Call the list_transfer_jobs method.
|
571
|
+
# result = client.list_transfer_jobs request
|
572
|
+
#
|
573
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
574
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
575
|
+
# result.each do |item|
|
576
|
+
# # Each element is of type ::Google::Cloud::StorageTransfer::V1::TransferJob.
|
577
|
+
# p item
|
578
|
+
# end
|
579
|
+
#
|
496
580
|
def list_transfer_jobs request, options = nil
|
497
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
498
582
|
|
@@ -556,6 +640,22 @@ module Google
|
|
556
640
|
# @return [::Google::Protobuf::Empty]
|
557
641
|
#
|
558
642
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
643
|
+
#
|
644
|
+
# @example Basic example
|
645
|
+
# require "google/cloud/storage_transfer/v1"
|
646
|
+
#
|
647
|
+
# # Create a client object. The client can be reused for multiple calls.
|
648
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
649
|
+
#
|
650
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
651
|
+
# request = Google::Cloud::StorageTransfer::V1::PauseTransferOperationRequest.new
|
652
|
+
#
|
653
|
+
# # Call the pause_transfer_operation method.
|
654
|
+
# result = client.pause_transfer_operation request
|
655
|
+
#
|
656
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
657
|
+
# p result
|
658
|
+
#
|
559
659
|
def pause_transfer_operation request, options = nil
|
560
660
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
561
661
|
|
@@ -618,6 +718,22 @@ module Google
|
|
618
718
|
# @return [::Google::Protobuf::Empty]
|
619
719
|
#
|
620
720
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
721
|
+
#
|
722
|
+
# @example Basic example
|
723
|
+
# require "google/cloud/storage_transfer/v1"
|
724
|
+
#
|
725
|
+
# # Create a client object. The client can be reused for multiple calls.
|
726
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
727
|
+
#
|
728
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
729
|
+
# request = Google::Cloud::StorageTransfer::V1::ResumeTransferOperationRequest.new
|
730
|
+
#
|
731
|
+
# # Call the resume_transfer_operation method.
|
732
|
+
# result = client.resume_transfer_operation request
|
733
|
+
#
|
734
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
735
|
+
# p result
|
736
|
+
#
|
621
737
|
def resume_transfer_operation request, options = nil
|
622
738
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
623
739
|
|
@@ -686,6 +802,29 @@ module Google
|
|
686
802
|
# @return [::Gapic::Operation]
|
687
803
|
#
|
688
804
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
805
|
+
#
|
806
|
+
# @example Basic example
|
807
|
+
# require "google/cloud/storage_transfer/v1"
|
808
|
+
#
|
809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
810
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
811
|
+
#
|
812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
813
|
+
# request = Google::Cloud::StorageTransfer::V1::RunTransferJobRequest.new
|
814
|
+
#
|
815
|
+
# # Call the run_transfer_job method.
|
816
|
+
# result = client.run_transfer_job request
|
817
|
+
#
|
818
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
819
|
+
# # check the status of an operation, cancel it, or wait for results.
|
820
|
+
# # Here is how to wait for a response.
|
821
|
+
# result.wait_until_done! timeout: 60
|
822
|
+
# if result.response?
|
823
|
+
# p result.response
|
824
|
+
# else
|
825
|
+
# puts "No response received."
|
826
|
+
# end
|
827
|
+
#
|
689
828
|
def run_transfer_job request, options = nil
|
690
829
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
691
830
|
|
@@ -753,6 +892,22 @@ module Google
|
|
753
892
|
# @return [::Google::Protobuf::Empty]
|
754
893
|
#
|
755
894
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
895
|
+
#
|
896
|
+
# @example Basic example
|
897
|
+
# require "google/cloud/storage_transfer/v1"
|
898
|
+
#
|
899
|
+
# # Create a client object. The client can be reused for multiple calls.
|
900
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
901
|
+
#
|
902
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
903
|
+
# request = Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest.new
|
904
|
+
#
|
905
|
+
# # Call the delete_transfer_job method.
|
906
|
+
# result = client.delete_transfer_job request
|
907
|
+
#
|
908
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
909
|
+
# p result
|
910
|
+
#
|
756
911
|
def delete_transfer_job request, options = nil
|
757
912
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
758
913
|
|
@@ -832,6 +987,22 @@ module Google
|
|
832
987
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
833
988
|
#
|
834
989
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
990
|
+
#
|
991
|
+
# @example Basic example
|
992
|
+
# require "google/cloud/storage_transfer/v1"
|
993
|
+
#
|
994
|
+
# # Create a client object. The client can be reused for multiple calls.
|
995
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
996
|
+
#
|
997
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
998
|
+
# request = Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest.new
|
999
|
+
#
|
1000
|
+
# # Call the create_agent_pool method.
|
1001
|
+
# result = client.create_agent_pool request
|
1002
|
+
#
|
1003
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::AgentPool.
|
1004
|
+
# p result
|
1005
|
+
#
|
835
1006
|
def create_agent_pool request, options = nil
|
836
1007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
837
1008
|
|
@@ -912,6 +1083,22 @@ module Google
|
|
912
1083
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
913
1084
|
#
|
914
1085
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1086
|
+
#
|
1087
|
+
# @example Basic example
|
1088
|
+
# require "google/cloud/storage_transfer/v1"
|
1089
|
+
#
|
1090
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1091
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
1092
|
+
#
|
1093
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1094
|
+
# request = Google::Cloud::StorageTransfer::V1::UpdateAgentPoolRequest.new
|
1095
|
+
#
|
1096
|
+
# # Call the update_agent_pool method.
|
1097
|
+
# result = client.update_agent_pool request
|
1098
|
+
#
|
1099
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::AgentPool.
|
1100
|
+
# p result
|
1101
|
+
#
|
915
1102
|
def update_agent_pool request, options = nil
|
916
1103
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
917
1104
|
|
@@ -974,6 +1161,22 @@ module Google
|
|
974
1161
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
975
1162
|
#
|
976
1163
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1164
|
+
#
|
1165
|
+
# @example Basic example
|
1166
|
+
# require "google/cloud/storage_transfer/v1"
|
1167
|
+
#
|
1168
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1169
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
1170
|
+
#
|
1171
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1172
|
+
# request = Google::Cloud::StorageTransfer::V1::GetAgentPoolRequest.new
|
1173
|
+
#
|
1174
|
+
# # Call the get_agent_pool method.
|
1175
|
+
# result = client.get_agent_pool request
|
1176
|
+
#
|
1177
|
+
# # The returned object is of type Google::Cloud::StorageTransfer::V1::AgentPool.
|
1178
|
+
# p result
|
1179
|
+
#
|
977
1180
|
def get_agent_pool request, options = nil
|
978
1181
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
979
1182
|
|
@@ -1049,6 +1252,26 @@ module Google
|
|
1049
1252
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageTransfer::V1::AgentPool>]
|
1050
1253
|
#
|
1051
1254
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1255
|
+
#
|
1256
|
+
# @example Basic example
|
1257
|
+
# require "google/cloud/storage_transfer/v1"
|
1258
|
+
#
|
1259
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1260
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
1261
|
+
#
|
1262
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1263
|
+
# request = Google::Cloud::StorageTransfer::V1::ListAgentPoolsRequest.new
|
1264
|
+
#
|
1265
|
+
# # Call the list_agent_pools method.
|
1266
|
+
# result = client.list_agent_pools request
|
1267
|
+
#
|
1268
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1269
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1270
|
+
# result.each do |item|
|
1271
|
+
# # Each element is of type ::Google::Cloud::StorageTransfer::V1::AgentPool.
|
1272
|
+
# p item
|
1273
|
+
# end
|
1274
|
+
#
|
1052
1275
|
def list_agent_pools request, options = nil
|
1053
1276
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1054
1277
|
|
@@ -1112,6 +1335,22 @@ module Google
|
|
1112
1335
|
# @return [::Google::Protobuf::Empty]
|
1113
1336
|
#
|
1114
1337
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1338
|
+
#
|
1339
|
+
# @example Basic example
|
1340
|
+
# require "google/cloud/storage_transfer/v1"
|
1341
|
+
#
|
1342
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1343
|
+
# client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
1344
|
+
#
|
1345
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1346
|
+
# request = Google::Cloud::StorageTransfer::V1::DeleteAgentPoolRequest.new
|
1347
|
+
#
|
1348
|
+
# # Call the delete_agent_pool method.
|
1349
|
+
# result = client.delete_agent_pool request
|
1350
|
+
#
|
1351
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1352
|
+
# p result
|
1353
|
+
#
|
1115
1354
|
def delete_agent_pool request, options = nil
|
1116
1355
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1117
1356
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -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-storage_transfer-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
|
-
rubygems_version: 3.4.
|
226
|
+
rubygems_version: 3.4.19
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: Transfers data from external data sources to a Google Cloud Storage bucket
|