google-cloud-storage_transfer-v1 0.6.1 → 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 +30 -17
- 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 +259 -16
- 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/lib/google/storagetransfer/v1/transfer_services_pb.rb +6 -5
- data/lib/google/storagetransfer/v1/transfer_types_pb.rb +2 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/storagetransfer/v1/transfer.rb +14 -11
- data/proto_docs/google/storagetransfer/v1/transfer_types.rb +164 -49
- 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
|
|
@@ -340,8 +341,8 @@ module Google
|
|
340
341
|
# Updates a transfer job. Updating a job's transfer spec does not affect
|
341
342
|
# transfer operations that are running already.
|
342
343
|
#
|
343
|
-
# **Note:** The job's {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}
|
344
|
-
# using this RPC (for example, to set a job's status to
|
344
|
+
# **Note:** The job's {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}
|
345
|
+
# field can be modified using this RPC (for example, to set a job's status to
|
345
346
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED},
|
346
347
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DISABLED DISABLED}, or
|
347
348
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::ENABLED ENABLED}).
|
@@ -367,15 +368,17 @@ module Google
|
|
367
368
|
# Required. The ID of the Google Cloud project that owns the
|
368
369
|
# job.
|
369
370
|
# @param transfer_job [::Google::Cloud::StorageTransfer::V1::TransferJob, ::Hash]
|
370
|
-
# Required. The job to update. `transferJob` is expected to specify one or
|
371
|
-
# five fields:
|
371
|
+
# Required. The job to update. `transferJob` is expected to specify one or
|
372
|
+
# more of five fields:
|
373
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#description description},
|
372
374
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
373
375
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
374
376
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
375
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An
|
376
|
-
# other fields are rejected with
|
377
|
-
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a
|
378
|
-
#
|
377
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An
|
378
|
+
# `UpdateTransferJobRequest` that specifies other fields are rejected with
|
379
|
+
# the error {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a
|
380
|
+
# job status to
|
381
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
|
379
382
|
# `storagetransfer.jobs.delete` permission.
|
380
383
|
# @param update_transfer_job_field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
381
384
|
# The field mask of the fields in `transferJob` that are to be updated in
|
@@ -384,9 +387,10 @@ module Google
|
|
384
387
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
385
388
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
386
389
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
387
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the
|
388
|
-
# complete transfer specification must be
|
389
|
-
# specification missing any required fields is
|
390
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the
|
391
|
+
# `transfer_spec` of the job, a complete transfer specification must be
|
392
|
+
# provided. An incomplete specification missing any required fields is
|
393
|
+
# rejected with the error
|
390
394
|
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}.
|
391
395
|
#
|
392
396
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -809,9 +813,10 @@ module Google
|
|
809
813
|
end
|
810
814
|
|
811
815
|
##
|
812
|
-
#
|
813
|
-
# TransferJob has a maximum of one active TransferOperation
|
814
|
-
# is called while a TransferOperation is active, an error
|
816
|
+
# Starts a new operation for the specified transfer job.
|
817
|
+
# A `TransferJob` has a maximum of one active `TransferOperation`. If this
|
818
|
+
# method is called while a `TransferOperation` is active, an error is
|
819
|
+
# returned.
|
815
820
|
#
|
816
821
|
# @overload run_transfer_job(request, options = nil)
|
817
822
|
# Pass arguments to `run_transfer_job` via a request object, either of type
|
@@ -1116,8 +1121,8 @@ module Google
|
|
1116
1121
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1117
1122
|
#
|
1118
1123
|
# @param agent_pool [::Google::Cloud::StorageTransfer::V1::AgentPool, ::Hash]
|
1119
|
-
# Required. The agent pool to update. `agent_pool` is expected to specify
|
1120
|
-
# fields:
|
1124
|
+
# Required. The agent pool to update. `agent_pool` is expected to specify
|
1125
|
+
# following fields:
|
1121
1126
|
#
|
1122
1127
|
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#name name}
|
1123
1128
|
#
|
@@ -1592,6 +1597,14 @@ module Google
|
|
1592
1597
|
end
|
1593
1598
|
end
|
1594
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
|
+
|
1595
1608
|
##
|
1596
1609
|
# Configuration RPC class for the StorageTransferService API.
|
1597
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
|
|
@@ -293,8 +325,8 @@ module Google
|
|
293
325
|
# Updates a transfer job. Updating a job's transfer spec does not affect
|
294
326
|
# transfer operations that are running already.
|
295
327
|
#
|
296
|
-
# **Note:** The job's {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}
|
297
|
-
# using this RPC (for example, to set a job's status to
|
328
|
+
# **Note:** The job's {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}
|
329
|
+
# field can be modified using this RPC (for example, to set a job's status to
|
298
330
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED},
|
299
331
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DISABLED DISABLED}, or
|
300
332
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::ENABLED ENABLED}).
|
@@ -320,15 +352,17 @@ module Google
|
|
320
352
|
# Required. The ID of the Google Cloud project that owns the
|
321
353
|
# job.
|
322
354
|
# @param transfer_job [::Google::Cloud::StorageTransfer::V1::TransferJob, ::Hash]
|
323
|
-
# Required. The job to update. `transferJob` is expected to specify one or
|
324
|
-
# five fields:
|
355
|
+
# Required. The job to update. `transferJob` is expected to specify one or
|
356
|
+
# more of five fields:
|
357
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#description description},
|
325
358
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
326
359
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
327
360
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
328
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An
|
329
|
-
# other fields are rejected with
|
330
|
-
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a
|
331
|
-
#
|
361
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An
|
362
|
+
# `UpdateTransferJobRequest` that specifies other fields are rejected with
|
363
|
+
# the error {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a
|
364
|
+
# job status to
|
365
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
|
332
366
|
# `storagetransfer.jobs.delete` permission.
|
333
367
|
# @param update_transfer_job_field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
334
368
|
# The field mask of the fields in `transferJob` that are to be updated in
|
@@ -337,9 +371,10 @@ module Google
|
|
337
371
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
338
372
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
339
373
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
340
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the
|
341
|
-
# complete transfer specification must be
|
342
|
-
# specification missing any required fields is
|
374
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the
|
375
|
+
# `transfer_spec` of the job, a complete transfer specification must be
|
376
|
+
# provided. An incomplete specification missing any required fields is
|
377
|
+
# rejected with the error
|
343
378
|
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}.
|
344
379
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
345
380
|
# @yieldparam result [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
@@ -348,6 +383,22 @@ module Google
|
|
348
383
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
349
384
|
#
|
350
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
|
+
#
|
351
402
|
def update_transfer_job request, options = nil
|
352
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
353
404
|
|
@@ -413,6 +464,22 @@ module Google
|
|
413
464
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
414
465
|
#
|
415
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
|
+
#
|
416
483
|
def get_transfer_job request, options = nil
|
417
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
418
485
|
|
@@ -490,6 +557,26 @@ module Google
|
|
490
557
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageTransfer::V1::TransferJob>]
|
491
558
|
#
|
492
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
|
+
#
|
493
580
|
def list_transfer_jobs request, options = nil
|
494
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
495
582
|
|
@@ -553,6 +640,22 @@ module Google
|
|
553
640
|
# @return [::Google::Protobuf::Empty]
|
554
641
|
#
|
555
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
|
+
#
|
556
659
|
def pause_transfer_operation request, options = nil
|
557
660
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
558
661
|
|
@@ -615,6 +718,22 @@ module Google
|
|
615
718
|
# @return [::Google::Protobuf::Empty]
|
616
719
|
#
|
617
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
|
+
#
|
618
737
|
def resume_transfer_operation request, options = nil
|
619
738
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
620
739
|
|
@@ -651,9 +770,10 @@ module Google
|
|
651
770
|
end
|
652
771
|
|
653
772
|
##
|
654
|
-
#
|
655
|
-
# TransferJob has a maximum of one active TransferOperation
|
656
|
-
# is called while a TransferOperation is active, an error
|
773
|
+
# Starts a new operation for the specified transfer job.
|
774
|
+
# A `TransferJob` has a maximum of one active `TransferOperation`. If this
|
775
|
+
# method is called while a `TransferOperation` is active, an error is
|
776
|
+
# returned.
|
657
777
|
#
|
658
778
|
# @overload run_transfer_job(request, options = nil)
|
659
779
|
# Pass arguments to `run_transfer_job` via a request object, either of type
|
@@ -682,6 +802,29 @@ module Google
|
|
682
802
|
# @return [::Gapic::Operation]
|
683
803
|
#
|
684
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
|
+
#
|
685
828
|
def run_transfer_job request, options = nil
|
686
829
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
687
830
|
|
@@ -749,6 +892,22 @@ module Google
|
|
749
892
|
# @return [::Google::Protobuf::Empty]
|
750
893
|
#
|
751
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
|
+
#
|
752
911
|
def delete_transfer_job request, options = nil
|
753
912
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
754
913
|
|
@@ -828,6 +987,22 @@ module Google
|
|
828
987
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
829
988
|
#
|
830
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
|
+
#
|
831
1006
|
def create_agent_pool request, options = nil
|
832
1007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
833
1008
|
|
@@ -882,8 +1057,8 @@ module Google
|
|
882
1057
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
883
1058
|
#
|
884
1059
|
# @param agent_pool [::Google::Cloud::StorageTransfer::V1::AgentPool, ::Hash]
|
885
|
-
# Required. The agent pool to update. `agent_pool` is expected to specify
|
886
|
-
# fields:
|
1060
|
+
# Required. The agent pool to update. `agent_pool` is expected to specify
|
1061
|
+
# following fields:
|
887
1062
|
#
|
888
1063
|
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#name name}
|
889
1064
|
#
|
@@ -908,6 +1083,22 @@ module Google
|
|
908
1083
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
909
1084
|
#
|
910
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
|
+
#
|
911
1102
|
def update_agent_pool request, options = nil
|
912
1103
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
913
1104
|
|
@@ -970,6 +1161,22 @@ module Google
|
|
970
1161
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
971
1162
|
#
|
972
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
|
+
#
|
973
1180
|
def get_agent_pool request, options = nil
|
974
1181
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
975
1182
|
|
@@ -1045,6 +1252,26 @@ module Google
|
|
1045
1252
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageTransfer::V1::AgentPool>]
|
1046
1253
|
#
|
1047
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
|
+
#
|
1048
1275
|
def list_agent_pools request, options = nil
|
1049
1276
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1050
1277
|
|
@@ -1108,6 +1335,22 @@ module Google
|
|
1108
1335
|
# @return [::Google::Protobuf::Empty]
|
1109
1336
|
#
|
1110
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
|
+
#
|
1111
1354
|
def delete_agent_pool request, options = nil
|
1112
1355
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1113
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
|
|
@@ -49,8 +49,8 @@ module Google
|
|
49
49
|
# Updates a transfer job. Updating a job's transfer spec does not affect
|
50
50
|
# transfer operations that are running already.
|
51
51
|
#
|
52
|
-
# **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
|
53
|
-
# using this RPC (for example, to set a job's status to
|
52
|
+
# **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
|
53
|
+
# field can be modified using this RPC (for example, to set a job's status to
|
54
54
|
# [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
|
55
55
|
# [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
|
56
56
|
# [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
|
@@ -63,9 +63,10 @@ module Google
|
|
63
63
|
rpc :PauseTransferOperation, ::Google::Cloud::StorageTransfer::V1::PauseTransferOperationRequest, ::Google::Protobuf::Empty
|
64
64
|
# Resumes a transfer operation that is paused.
|
65
65
|
rpc :ResumeTransferOperation, ::Google::Cloud::StorageTransfer::V1::ResumeTransferOperationRequest, ::Google::Protobuf::Empty
|
66
|
-
#
|
67
|
-
# TransferJob has a maximum of one active TransferOperation
|
68
|
-
# is called while a TransferOperation is active, an error
|
66
|
+
# Starts a new operation for the specified transfer job.
|
67
|
+
# A `TransferJob` has a maximum of one active `TransferOperation`. If this
|
68
|
+
# method is called while a `TransferOperation` is active, an error is
|
69
|
+
# returned.
|
69
70
|
rpc :RunTransferJob, ::Google::Cloud::StorageTransfer::V1::RunTransferJobRequest, ::Google::Longrunning::Operation
|
70
71
|
# Deletes a transfer job. Deleting a transfer job sets its status to
|
71
72
|
# [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
|
@@ -13,7 +13,7 @@ require 'google/type/date_pb'
|
|
13
13
|
require 'google/type/timeofday_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n.google/storagetransfer/v1/transfer_types.proto\x12\x19google.storagetransfer.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/timeofday.proto\"A\n\x14GoogleServiceAccount\x12\x15\n\raccount_email\x18\x01 \x01(\t\x12\x12\n\nsubject_id\x18\x02 \x01(\t\"J\n\x0c\x41wsAccessKey\x12\x1a\n\raccess_key_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11secret_access_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"*\n\x10\x41zureCredentials\x12\x16\n\tsas_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xd3\x02\n\x10ObjectConditions\x12K\n(min_time_elapsed_since_last_modification\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12K\n(max_time_elapsed_since_last_modification\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10include_prefixes\x18\x03 \x03(\t\x12\x18\n\x10\x65xclude_prefixes\x18\x04 \x03(\t\x12\x37\n\x13last_modified_since\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14last_modified_before\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"1\n\x07GcsData\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04path\x18\x03 \x01(\t\"\x8b\x01\n\tAwsS3Data\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0e\x61ws_access_key\x18\x02 \x01(\x0b\x32\'.google.storagetransfer.v1.AwsAccessKeyB\x03\xe0\x41\x04\x12\x0c\n\x04path\x18\x03 \x01(\t\x12\x10\n\x08role_arn\x18\x04 \x01(\t\"\xaa\x01\n\x14\x41zureBlobStorageData\x12\x1c\n\x0fstorage_account\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\x11\x61zure_credentials\x18\x02 \x01(\x0b\x32+.google.storagetransfer.v1.AzureCredentialsB\x06\xe0\x41\x02\xe0\x41\x04\x12\x16\n\tcontainer\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04path\x18\x05 \x01(\t\"!\n\x08HttpData\x12\x15\n\x08list_url\x18\x01 \x01(\tB\x03\xe0\x41\x02\")\n\x0fPosixFilesystem\x12\x16\n\x0eroot_directory\x18\x01 \x01(\t\"\xbd\x01\n\x13\x41wsS3CompatibleData\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x15\n\x08\x65ndpoint\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x46\n\x0bs3_metadata\x18\x04 \x01(\x0b\x32/.google.storagetransfer.v1.S3CompatibleMetadataH\x00\x42\x0f\n\rdata_provider\"\xf6\x05\n\x14S3CompatibleMetadata\x12O\n\x0b\x61uth_method\x18\x01 \x01(\x0e\x32:.google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod\x12S\n\rrequest_model\x18\x02 \x01(\x0e\x32<.google.storagetransfer.v1.S3CompatibleMetadata.RequestModel\x12Q\n\x08protocol\x18\x03 \x01(\x0e\x32?.google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol\x12I\n\x08list_api\x18\x04 \x01(\x0e\x32\x37.google.storagetransfer.v1.S3CompatibleMetadata.ListApi\"m\n\nAuthMethod\x12\x1b\n\x17\x41UTH_METHOD_UNSPECIFIED\x10\x00\x12 \n\x1c\x41UTH_METHOD_AWS_SIGNATURE_V4\x10\x01\x12 \n\x1c\x41UTH_METHOD_AWS_SIGNATURE_V2\x10\x02\"s\n\x0cRequestModel\x12\x1d\n\x19REQUEST_MODEL_UNSPECIFIED\x10\x00\x12&\n\"REQUEST_MODEL_VIRTUAL_HOSTED_STYLE\x10\x01\x12\x1c\n\x18REQUEST_MODEL_PATH_STYLE\x10\x02\"j\n\x0fNetworkProtocol\x12 \n\x1cNETWORK_PROTOCOL_UNSPECIFIED\x10\x00\x12\x1a\n\x16NETWORK_PROTOCOL_HTTPS\x10\x01\x12\x19\n\x15NETWORK_PROTOCOL_HTTP\x10\x02\"J\n\x07ListApi\x12\x18\n\x14LIST_API_UNSPECIFIED\x10\x00\x12\x13\n\x0fLIST_OBJECTS_V2\x10\x01\x12\x10\n\x0cLIST_OBJECTS\x10\x02\"\x93\x03\n\tAgentPool\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12>\n\x05state\x18\x04 \x01(\x0e\x32*.google.storagetransfer.v1.AgentPool.StateB\x03\xe0\x41\x03\x12L\n\x0f\x62\x61ndwidth_limit\x18\x05 \x01(\x0b\x32\x33.google.storagetransfer.v1.AgentPool.BandwidthLimit\x1a$\n\x0e\x42\x61ndwidthLimit\x12\x12\n\nlimit_mbps\x18\x01 \x01(\x03\"G\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07\x43REATED\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:`\xea\x41]\n)storagetransfer.googleapis.com/agentPools\x12\x30projects/{project_id}/agentPools/{agent_pool_id}\"\x8e\x03\n\x0fTransferOptions\x12\x32\n*overwrite_objects_already_existing_in_sink\x18\x01 \x01(\x08\x12%\n\x1d\x64\x65lete_objects_unique_in_sink\x18\x02 \x01(\x08\x12\x31\n)delete_objects_from_source_after_transfer\x18\x03 \x01(\x08\x12P\n\x0eoverwrite_when\x18\x04 \x01(\x0e\x32\x38.google.storagetransfer.v1.TransferOptions.OverwriteWhen\x12\x44\n\x10metadata_options\x18\x05 \x01(\x0b\x32*.google.storagetransfer.v1.MetadataOptions\"U\n\rOverwriteWhen\x12\x1e\n\x1aOVERWRITE_WHEN_UNSPECIFIED\x10\x00\x12\r\n\tDIFFERENT\x10\x01\x12\t\n\x05NEVER\x10\x02\x12\n\n\x06\x41LWAYS\x10\x03\"\xef\x07\n\x0cTransferSpec\x12;\n\rgcs_data_sink\x18\x04 \x01(\x0b\x32\".google.storagetransfer.v1.GcsDataH\x00\x12\x45\n\x0fposix_data_sink\x18\r \x01(\x0b\x32*.google.storagetransfer.v1.PosixFilesystemH\x00\x12=\n\x0fgcs_data_source\x18\x01 \x01(\x0b\x32\".google.storagetransfer.v1.GcsDataH\x01\x12\x42\n\x12\x61ws_s3_data_source\x18\x02 \x01(\x0b\x32$.google.storagetransfer.v1.AwsS3DataH\x01\x12?\n\x10http_data_source\x18\x03 \x01(\x0b\x32#.google.storagetransfer.v1.HttpDataH\x01\x12G\n\x11posix_data_source\x18\x0e \x01(\x0b\x32*.google.storagetransfer.v1.PosixFilesystemH\x01\x12Y\n\x1e\x61zure_blob_storage_data_source\x18\x08 \x01(\x0b\x32/.google.storagetransfer.v1.AzureBlobStorageDataH\x01\x12W\n\x1d\x61ws_s3_compatible_data_source\x18\x13 \x01(\x0b\x32..google.storagetransfer.v1.AwsS3CompatibleDataH\x01\x12L\n\x1egcs_intermediate_data_location\x18\x10 \x01(\x0b\x32\".google.storagetransfer.v1.GcsDataH\x02\x12\x46\n\x11object_conditions\x18\x05 \x01(\x0b\x32+.google.storagetransfer.v1.ObjectConditions\x12\x44\n\x10transfer_options\x18\x06 \x01(\x0b\x32*.google.storagetransfer.v1.TransferOptions\x12\x46\n\x11transfer_manifest\x18\x0f \x01(\x0b\x32+.google.storagetransfer.v1.TransferManifest\x12\x1e\n\x16source_agent_pool_name\x18\x11 \x01(\t\x12\x1c\n\x14sink_agent_pool_name\x18\x12 \x01(\tB\x0b\n\tdata_sinkB\r\n\x0b\x64\x61ta_sourceB\x1c\n\x1aintermediate_data_location\"\xf1\x0b\n\x0fMetadataOptions\x12\x43\n\x07symlink\x18\x01 \x01(\x0e\x32\x32.google.storagetransfer.v1.MetadataOptions.Symlink\x12=\n\x04mode\x18\x02 \x01(\x0e\x32/.google.storagetransfer.v1.MetadataOptions.Mode\x12;\n\x03gid\x18\x03 \x01(\x0e\x32..google.storagetransfer.v1.MetadataOptions.GID\x12;\n\x03uid\x18\x04 \x01(\x0e\x32..google.storagetransfer.v1.MetadataOptions.UID\x12;\n\x03\x61\x63l\x18\x05 \x01(\x0e\x32..google.storagetransfer.v1.MetadataOptions.Acl\x12N\n\rstorage_class\x18\x06 \x01(\x0e\x32\x37.google.storagetransfer.v1.MetadataOptions.StorageClass\x12P\n\x0etemporary_hold\x18\x07 \x01(\x0e\x32\x38.google.storagetransfer.v1.MetadataOptions.TemporaryHold\x12\x42\n\x07kms_key\x18\x08 \x01(\x0e\x32\x31.google.storagetransfer.v1.MetadataOptions.KmsKey\x12L\n\x0ctime_created\x18\t \x01(\x0e\x32\x36.google.storagetransfer.v1.MetadataOptions.TimeCreated\"J\n\x07Symlink\x12\x17\n\x13SYMLINK_UNSPECIFIED\x10\x00\x12\x10\n\x0cSYMLINK_SKIP\x10\x01\x12\x14\n\x10SYMLINK_PRESERVE\x10\x02\">\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\r\n\tMODE_SKIP\x10\x01\x12\x11\n\rMODE_PRESERVE\x10\x02\"8\n\x03GID\x12\x13\n\x0fGID_UNSPECIFIED\x10\x00\x12\x0c\n\x08GID_SKIP\x10\x01\x12\x0e\n\nGID_NUMBER\x10\x02\"8\n\x03UID\x12\x13\n\x0fUID_UNSPECIFIED\x10\x00\x12\x0c\n\x08UID_SKIP\x10\x01\x12\x0e\n\nUID_NUMBER\x10\x02\"P\n\x03\x41\x63l\x12\x13\n\x0f\x41\x43L_UNSPECIFIED\x10\x00\x12\"\n\x1e\x41\x43L_DESTINATION_BUCKET_DEFAULT\x10\x01\x12\x10\n\x0c\x41\x43L_PRESERVE\x10\x02\"\xe6\x01\n\x0cStorageClass\x12\x1d\n\x19STORAGE_CLASS_UNSPECIFIED\x10\x00\x12,\n(STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT\x10\x01\x12\x1a\n\x16STORAGE_CLASS_PRESERVE\x10\x02\x12\x1a\n\x16STORAGE_CLASS_STANDARD\x10\x03\x12\x1a\n\x16STORAGE_CLASS_NEARLINE\x10\x04\x12\x1a\n\x16STORAGE_CLASS_COLDLINE\x10\x05\x12\x19\n\x15STORAGE_CLASS_ARCHIVE\x10\x06\"e\n\rTemporaryHold\x12\x1e\n\x1aTEMPORARY_HOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13TEMPORARY_HOLD_SKIP\x10\x01\x12\x1b\n\x17TEMPORARY_HOLD_PRESERVE\x10\x02\"_\n\x06KmsKey\x12\x17\n\x13KMS_KEY_UNSPECIFIED\x10\x00\x12&\n\"KMS_KEY_DESTINATION_BUCKET_DEFAULT\x10\x01\x12\x14\n\x10KMS_KEY_PRESERVE\x10\x02\"l\n\x0bTimeCreated\x12\x1c\n\x18TIME_CREATED_UNSPECIFIED\x10\x00\x12\x15\n\x11TIME_CREATED_SKIP\x10\x01\x12(\n$TIME_CREATED_PRESERVE_AS_CUSTOM_TIME\x10\x02\"$\n\x10TransferManifest\x12\x10\n\x08location\x18\x01 \x01(\t\"\x85\x02\n\x08Schedule\x12\x33\n\x13schedule_start_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12,\n\x11schedule_end_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x31\n\x11start_time_of_day\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12/\n\x0f\x65nd_time_of_day\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12\x32\n\x0frepeat_interval\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xa2\x05\n\x0bTransferJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12>\n\rtransfer_spec\x18\x04 \x01(\x0b\x32\'.google.storagetransfer.v1.TransferSpec\x12J\n\x13notification_config\x18\x0b \x01(\x0b\x32-.google.storagetransfer.v1.NotificationConfig\x12@\n\x0elogging_config\x18\x0e \x01(\x0b\x32(.google.storagetransfer.v1.LoggingConfig\x12\x35\n\x08schedule\x18\x05 \x01(\x0b\x32#.google.storagetransfer.v1.Schedule\x12=\n\x06status\x18\x06 \x01(\x0e\x32-.google.storagetransfer.v1.TransferJob.Status\x12\x36\n\rcreation_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16last_modification_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rdeletion_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1d\n\x15latest_operation_name\x18\x0c \x01(\t\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03\"8\n\rErrorLogEntry\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rerror_details\x18\x03 \x03(\t\"\x98\x01\n\x0c\x45rrorSummary\x12)\n\nerror_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.CodeB\x03\xe0\x41\x02\x12\x18\n\x0b\x65rror_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x43\n\x11\x65rror_log_entries\x18\x03 \x03(\x0b\x32(.google.storagetransfer.v1.ErrorLogEntry\"\xc3\x06\n\x10TransferCounters\x12!\n\x19objects_found_from_source\x18\x01 \x01(\x03\x12\x1f\n\x17\x62ytes_found_from_source\x18\x02 \x01(\x03\x12$\n\x1cobjects_found_only_from_sink\x18\x03 \x01(\x03\x12\"\n\x1a\x62ytes_found_only_from_sink\x18\x04 \x01(\x03\x12+\n#objects_from_source_skipped_by_sync\x18\x05 \x01(\x03\x12)\n!bytes_from_source_skipped_by_sync\x18\x06 \x01(\x03\x12\x1e\n\x16objects_copied_to_sink\x18\x07 \x01(\x03\x12\x1c\n\x14\x62ytes_copied_to_sink\x18\x08 \x01(\x03\x12#\n\x1bobjects_deleted_from_source\x18\t \x01(\x03\x12!\n\x19\x62ytes_deleted_from_source\x18\n \x01(\x03\x12!\n\x19objects_deleted_from_sink\x18\x0b \x01(\x03\x12\x1f\n\x17\x62ytes_deleted_from_sink\x18\x0c \x01(\x03\x12\"\n\x1aobjects_from_source_failed\x18\r \x01(\x03\x12 \n\x18\x62ytes_from_source_failed\x18\x0e \x01(\x03\x12*\n\"objects_failed_to_delete_from_sink\x18\x0f \x01(\x03\x12(\n bytes_failed_to_delete_from_sink\x18\x10 \x01(\x03\x12%\n\x1d\x64irectories_found_from_source\x18\x11 \x01(\x03\x12.\n&directories_failed_to_list_from_source\x18\x12 \x01(\x03\x12\x33\n+directories_successfully_listed_from_source\x18\x13 \x01(\x03\x12\'\n\x1fintermediate_objects_cleaned_up\x18\x16 \x01(\x03\x12.\n&intermediate_objects_failed_cleaned_up\x18\x17 \x01(\x03\"\xa5\x03\n\x12NotificationConfig\x12\x19\n\x0cpubsub_topic\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x0b\x65vent_types\x18\x02 \x03(\x0e\x32\x37.google.storagetransfer.v1.NotificationConfig.EventType\x12X\n\x0epayload_format\x18\x03 \x01(\x0e\x32;.google.storagetransfer.v1.NotificationConfig.PayloadFormatB\x03\xe0\x41\x02\"\x86\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aTRANSFER_OPERATION_SUCCESS\x10\x01\x12\x1d\n\x19TRANSFER_OPERATION_FAILED\x10\x02\x12\x1e\n\x1aTRANSFER_OPERATION_ABORTED\x10\x03\"C\n\rPayloadFormat\x12\x1e\n\x1aPAYLOAD_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x08\n\x04JSON\x10\x02\"\x8b\x03\n\rLoggingConfig\x12L\n\x0blog_actions\x18\x01 \x03(\x0e\x32\x37.google.storagetransfer.v1.LoggingConfig.LoggableAction\x12W\n\x11log_action_states\x18\x02 \x03(\x0e\x32<.google.storagetransfer.v1.LoggingConfig.LoggableActionState\x12\'\n\x1f\x65nable_onprem_gcs_transfer_logs\x18\x03 \x01(\x08\"Q\n\x0eLoggableAction\x12\x1f\n\x1bLOGGABLE_ACTION_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46IND\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x08\n\x04\x43OPY\x10\x03\"W\n\x13LoggableActionState\x12%\n!LOGGABLE_ACTION_STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\xf2\x04\n\x11TransferOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12>\n\rtransfer_spec\x18\x03 \x01(\x0b\x32\'.google.storagetransfer.v1.TransferSpec\x12J\n\x13notification_config\x18\n \x01(\x0b\x32-.google.storagetransfer.v1.NotificationConfig\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06status\x18\x06 \x01(\x0e\x32\x33.google.storagetransfer.v1.TransferOperation.Status\x12=\n\x08\x63ounters\x18\x07 \x01(\x0b\x32+.google.storagetransfer.v1.TransferCounters\x12\x41\n\x10\x65rror_breakdowns\x18\x08 \x03(\x0b\x32\'.google.storagetransfer.v1.ErrorSummary\x12\x19\n\x11transfer_job_name\x18\t \x01(\t\"o\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x41\x42ORTED\x10\x05\x12\n\n\x06QUEUED\x10\x06\x42\xef\x01\n#com.google.storagetransfer.v1.protoB\rTransferTypesZMcloud.google.com/go/storagetransfer/apiv1/storagetransferpb;storagetransferpb\xf8\x01\x01\xaa\x02\x1fGoogle.Cloud.StorageTransfer.V1\xca\x02\x1fGoogle\\Cloud\\StorageTransfer\\V1\xea\x02\"Google::Cloud::StorageTransfer::V1b\x06proto3"
|
16
|
+
descriptor_data = "\n.google/storagetransfer/v1/transfer_types.proto\x12\x19google.storagetransfer.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/timeofday.proto\"A\n\x14GoogleServiceAccount\x12\x15\n\raccount_email\x18\x01 \x01(\t\x12\x12\n\nsubject_id\x18\x02 \x01(\t\"J\n\x0c\x41wsAccessKey\x12\x1a\n\raccess_key_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11secret_access_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"*\n\x10\x41zureCredentials\x12\x16\n\tsas_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xd3\x02\n\x10ObjectConditions\x12K\n(min_time_elapsed_since_last_modification\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12K\n(max_time_elapsed_since_last_modification\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10include_prefixes\x18\x03 \x03(\t\x12\x18\n\x10\x65xclude_prefixes\x18\x04 \x03(\t\x12\x37\n\x13last_modified_since\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14last_modified_before\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"1\n\x07GcsData\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04path\x18\x03 \x01(\t\"\xac\x01\n\tAwsS3Data\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0e\x61ws_access_key\x18\x02 \x01(\x0b\x32\'.google.storagetransfer.v1.AwsAccessKeyB\x03\xe0\x41\x04\x12\x0c\n\x04path\x18\x03 \x01(\t\x12\x10\n\x08role_arn\x18\x04 \x01(\t\x12\x1f\n\x12\x63redentials_secret\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xcb\x01\n\x14\x41zureBlobStorageData\x12\x1c\n\x0fstorage_account\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\x11\x61zure_credentials\x18\x02 \x01(\x0b\x32+.google.storagetransfer.v1.AzureCredentialsB\x06\xe0\x41\x02\xe0\x41\x04\x12\x16\n\tcontainer\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04path\x18\x05 \x01(\t\x12\x1f\n\x12\x63redentials_secret\x18\x07 \x01(\tB\x03\xe0\x41\x01\"!\n\x08HttpData\x12\x15\n\x08list_url\x18\x01 \x01(\tB\x03\xe0\x41\x02\")\n\x0fPosixFilesystem\x12\x16\n\x0eroot_directory\x18\x01 \x01(\t\"\xbd\x01\n\x13\x41wsS3CompatibleData\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x15\n\x08\x65ndpoint\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x46\n\x0bs3_metadata\x18\x04 \x01(\x0b\x32/.google.storagetransfer.v1.S3CompatibleMetadataH\x00\x42\x0f\n\rdata_provider\"\xf6\x05\n\x14S3CompatibleMetadata\x12O\n\x0b\x61uth_method\x18\x01 \x01(\x0e\x32:.google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod\x12S\n\rrequest_model\x18\x02 \x01(\x0e\x32<.google.storagetransfer.v1.S3CompatibleMetadata.RequestModel\x12Q\n\x08protocol\x18\x03 \x01(\x0e\x32?.google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol\x12I\n\x08list_api\x18\x04 \x01(\x0e\x32\x37.google.storagetransfer.v1.S3CompatibleMetadata.ListApi\"m\n\nAuthMethod\x12\x1b\n\x17\x41UTH_METHOD_UNSPECIFIED\x10\x00\x12 \n\x1c\x41UTH_METHOD_AWS_SIGNATURE_V4\x10\x01\x12 \n\x1c\x41UTH_METHOD_AWS_SIGNATURE_V2\x10\x02\"s\n\x0cRequestModel\x12\x1d\n\x19REQUEST_MODEL_UNSPECIFIED\x10\x00\x12&\n\"REQUEST_MODEL_VIRTUAL_HOSTED_STYLE\x10\x01\x12\x1c\n\x18REQUEST_MODEL_PATH_STYLE\x10\x02\"j\n\x0fNetworkProtocol\x12 \n\x1cNETWORK_PROTOCOL_UNSPECIFIED\x10\x00\x12\x1a\n\x16NETWORK_PROTOCOL_HTTPS\x10\x01\x12\x19\n\x15NETWORK_PROTOCOL_HTTP\x10\x02\"J\n\x07ListApi\x12\x18\n\x14LIST_API_UNSPECIFIED\x10\x00\x12\x13\n\x0fLIST_OBJECTS_V2\x10\x01\x12\x10\n\x0cLIST_OBJECTS\x10\x02\"\x93\x03\n\tAgentPool\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12>\n\x05state\x18\x04 \x01(\x0e\x32*.google.storagetransfer.v1.AgentPool.StateB\x03\xe0\x41\x03\x12L\n\x0f\x62\x61ndwidth_limit\x18\x05 \x01(\x0b\x32\x33.google.storagetransfer.v1.AgentPool.BandwidthLimit\x1a$\n\x0e\x42\x61ndwidthLimit\x12\x12\n\nlimit_mbps\x18\x01 \x01(\x03\"G\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07\x43REATED\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:`\xea\x41]\n)storagetransfer.googleapis.com/agentPools\x12\x30projects/{project_id}/agentPools/{agent_pool_id}\"\x8e\x03\n\x0fTransferOptions\x12\x32\n*overwrite_objects_already_existing_in_sink\x18\x01 \x01(\x08\x12%\n\x1d\x64\x65lete_objects_unique_in_sink\x18\x02 \x01(\x08\x12\x31\n)delete_objects_from_source_after_transfer\x18\x03 \x01(\x08\x12P\n\x0eoverwrite_when\x18\x04 \x01(\x0e\x32\x38.google.storagetransfer.v1.TransferOptions.OverwriteWhen\x12\x44\n\x10metadata_options\x18\x05 \x01(\x0b\x32*.google.storagetransfer.v1.MetadataOptions\"U\n\rOverwriteWhen\x12\x1e\n\x1aOVERWRITE_WHEN_UNSPECIFIED\x10\x00\x12\r\n\tDIFFERENT\x10\x01\x12\t\n\x05NEVER\x10\x02\x12\n\n\x06\x41LWAYS\x10\x03\"\xef\x07\n\x0cTransferSpec\x12;\n\rgcs_data_sink\x18\x04 \x01(\x0b\x32\".google.storagetransfer.v1.GcsDataH\x00\x12\x45\n\x0fposix_data_sink\x18\r \x01(\x0b\x32*.google.storagetransfer.v1.PosixFilesystemH\x00\x12=\n\x0fgcs_data_source\x18\x01 \x01(\x0b\x32\".google.storagetransfer.v1.GcsDataH\x01\x12\x42\n\x12\x61ws_s3_data_source\x18\x02 \x01(\x0b\x32$.google.storagetransfer.v1.AwsS3DataH\x01\x12?\n\x10http_data_source\x18\x03 \x01(\x0b\x32#.google.storagetransfer.v1.HttpDataH\x01\x12G\n\x11posix_data_source\x18\x0e \x01(\x0b\x32*.google.storagetransfer.v1.PosixFilesystemH\x01\x12Y\n\x1e\x61zure_blob_storage_data_source\x18\x08 \x01(\x0b\x32/.google.storagetransfer.v1.AzureBlobStorageDataH\x01\x12W\n\x1d\x61ws_s3_compatible_data_source\x18\x13 \x01(\x0b\x32..google.storagetransfer.v1.AwsS3CompatibleDataH\x01\x12L\n\x1egcs_intermediate_data_location\x18\x10 \x01(\x0b\x32\".google.storagetransfer.v1.GcsDataH\x02\x12\x46\n\x11object_conditions\x18\x05 \x01(\x0b\x32+.google.storagetransfer.v1.ObjectConditions\x12\x44\n\x10transfer_options\x18\x06 \x01(\x0b\x32*.google.storagetransfer.v1.TransferOptions\x12\x46\n\x11transfer_manifest\x18\x0f \x01(\x0b\x32+.google.storagetransfer.v1.TransferManifest\x12\x1e\n\x16source_agent_pool_name\x18\x11 \x01(\t\x12\x1c\n\x14sink_agent_pool_name\x18\x12 \x01(\tB\x0b\n\tdata_sinkB\r\n\x0b\x64\x61ta_sourceB\x1c\n\x1aintermediate_data_location\"\xf1\x0b\n\x0fMetadataOptions\x12\x43\n\x07symlink\x18\x01 \x01(\x0e\x32\x32.google.storagetransfer.v1.MetadataOptions.Symlink\x12=\n\x04mode\x18\x02 \x01(\x0e\x32/.google.storagetransfer.v1.MetadataOptions.Mode\x12;\n\x03gid\x18\x03 \x01(\x0e\x32..google.storagetransfer.v1.MetadataOptions.GID\x12;\n\x03uid\x18\x04 \x01(\x0e\x32..google.storagetransfer.v1.MetadataOptions.UID\x12;\n\x03\x61\x63l\x18\x05 \x01(\x0e\x32..google.storagetransfer.v1.MetadataOptions.Acl\x12N\n\rstorage_class\x18\x06 \x01(\x0e\x32\x37.google.storagetransfer.v1.MetadataOptions.StorageClass\x12P\n\x0etemporary_hold\x18\x07 \x01(\x0e\x32\x38.google.storagetransfer.v1.MetadataOptions.TemporaryHold\x12\x42\n\x07kms_key\x18\x08 \x01(\x0e\x32\x31.google.storagetransfer.v1.MetadataOptions.KmsKey\x12L\n\x0ctime_created\x18\t \x01(\x0e\x32\x36.google.storagetransfer.v1.MetadataOptions.TimeCreated\"J\n\x07Symlink\x12\x17\n\x13SYMLINK_UNSPECIFIED\x10\x00\x12\x10\n\x0cSYMLINK_SKIP\x10\x01\x12\x14\n\x10SYMLINK_PRESERVE\x10\x02\">\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\r\n\tMODE_SKIP\x10\x01\x12\x11\n\rMODE_PRESERVE\x10\x02\"8\n\x03GID\x12\x13\n\x0fGID_UNSPECIFIED\x10\x00\x12\x0c\n\x08GID_SKIP\x10\x01\x12\x0e\n\nGID_NUMBER\x10\x02\"8\n\x03UID\x12\x13\n\x0fUID_UNSPECIFIED\x10\x00\x12\x0c\n\x08UID_SKIP\x10\x01\x12\x0e\n\nUID_NUMBER\x10\x02\"P\n\x03\x41\x63l\x12\x13\n\x0f\x41\x43L_UNSPECIFIED\x10\x00\x12\"\n\x1e\x41\x43L_DESTINATION_BUCKET_DEFAULT\x10\x01\x12\x10\n\x0c\x41\x43L_PRESERVE\x10\x02\"\xe6\x01\n\x0cStorageClass\x12\x1d\n\x19STORAGE_CLASS_UNSPECIFIED\x10\x00\x12,\n(STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT\x10\x01\x12\x1a\n\x16STORAGE_CLASS_PRESERVE\x10\x02\x12\x1a\n\x16STORAGE_CLASS_STANDARD\x10\x03\x12\x1a\n\x16STORAGE_CLASS_NEARLINE\x10\x04\x12\x1a\n\x16STORAGE_CLASS_COLDLINE\x10\x05\x12\x19\n\x15STORAGE_CLASS_ARCHIVE\x10\x06\"e\n\rTemporaryHold\x12\x1e\n\x1aTEMPORARY_HOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13TEMPORARY_HOLD_SKIP\x10\x01\x12\x1b\n\x17TEMPORARY_HOLD_PRESERVE\x10\x02\"_\n\x06KmsKey\x12\x17\n\x13KMS_KEY_UNSPECIFIED\x10\x00\x12&\n\"KMS_KEY_DESTINATION_BUCKET_DEFAULT\x10\x01\x12\x14\n\x10KMS_KEY_PRESERVE\x10\x02\"l\n\x0bTimeCreated\x12\x1c\n\x18TIME_CREATED_UNSPECIFIED\x10\x00\x12\x15\n\x11TIME_CREATED_SKIP\x10\x01\x12(\n$TIME_CREATED_PRESERVE_AS_CUSTOM_TIME\x10\x02\"$\n\x10TransferManifest\x12\x10\n\x08location\x18\x01 \x01(\t\"\x85\x02\n\x08Schedule\x12\x33\n\x13schedule_start_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12,\n\x11schedule_end_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x31\n\x11start_time_of_day\x18\x03 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12/\n\x0f\x65nd_time_of_day\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12\x32\n\x0frepeat_interval\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9f\x01\n\x0b\x45ventStream\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12;\n\x17\x65vent_stream_start_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x1c\x65vent_stream_expiration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe0\x05\n\x0bTransferJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12>\n\rtransfer_spec\x18\x04 \x01(\x0b\x32\'.google.storagetransfer.v1.TransferSpec\x12J\n\x13notification_config\x18\x0b \x01(\x0b\x32-.google.storagetransfer.v1.NotificationConfig\x12@\n\x0elogging_config\x18\x0e \x01(\x0b\x32(.google.storagetransfer.v1.LoggingConfig\x12\x35\n\x08schedule\x18\x05 \x01(\x0b\x32#.google.storagetransfer.v1.Schedule\x12<\n\x0c\x65vent_stream\x18\x0f \x01(\x0b\x32&.google.storagetransfer.v1.EventStream\x12=\n\x06status\x18\x06 \x01(\x0e\x32-.google.storagetransfer.v1.TransferJob.Status\x12\x36\n\rcreation_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16last_modification_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rdeletion_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1d\n\x15latest_operation_name\x18\x0c \x01(\t\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03\"8\n\rErrorLogEntry\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rerror_details\x18\x03 \x03(\t\"\x98\x01\n\x0c\x45rrorSummary\x12)\n\nerror_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.CodeB\x03\xe0\x41\x02\x12\x18\n\x0b\x65rror_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x43\n\x11\x65rror_log_entries\x18\x03 \x03(\x0b\x32(.google.storagetransfer.v1.ErrorLogEntry\"\xc3\x06\n\x10TransferCounters\x12!\n\x19objects_found_from_source\x18\x01 \x01(\x03\x12\x1f\n\x17\x62ytes_found_from_source\x18\x02 \x01(\x03\x12$\n\x1cobjects_found_only_from_sink\x18\x03 \x01(\x03\x12\"\n\x1a\x62ytes_found_only_from_sink\x18\x04 \x01(\x03\x12+\n#objects_from_source_skipped_by_sync\x18\x05 \x01(\x03\x12)\n!bytes_from_source_skipped_by_sync\x18\x06 \x01(\x03\x12\x1e\n\x16objects_copied_to_sink\x18\x07 \x01(\x03\x12\x1c\n\x14\x62ytes_copied_to_sink\x18\x08 \x01(\x03\x12#\n\x1bobjects_deleted_from_source\x18\t \x01(\x03\x12!\n\x19\x62ytes_deleted_from_source\x18\n \x01(\x03\x12!\n\x19objects_deleted_from_sink\x18\x0b \x01(\x03\x12\x1f\n\x17\x62ytes_deleted_from_sink\x18\x0c \x01(\x03\x12\"\n\x1aobjects_from_source_failed\x18\r \x01(\x03\x12 \n\x18\x62ytes_from_source_failed\x18\x0e \x01(\x03\x12*\n\"objects_failed_to_delete_from_sink\x18\x0f \x01(\x03\x12(\n bytes_failed_to_delete_from_sink\x18\x10 \x01(\x03\x12%\n\x1d\x64irectories_found_from_source\x18\x11 \x01(\x03\x12.\n&directories_failed_to_list_from_source\x18\x12 \x01(\x03\x12\x33\n+directories_successfully_listed_from_source\x18\x13 \x01(\x03\x12\'\n\x1fintermediate_objects_cleaned_up\x18\x16 \x01(\x03\x12.\n&intermediate_objects_failed_cleaned_up\x18\x17 \x01(\x03\"\xa5\x03\n\x12NotificationConfig\x12\x19\n\x0cpubsub_topic\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x0b\x65vent_types\x18\x02 \x03(\x0e\x32\x37.google.storagetransfer.v1.NotificationConfig.EventType\x12X\n\x0epayload_format\x18\x03 \x01(\x0e\x32;.google.storagetransfer.v1.NotificationConfig.PayloadFormatB\x03\xe0\x41\x02\"\x86\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aTRANSFER_OPERATION_SUCCESS\x10\x01\x12\x1d\n\x19TRANSFER_OPERATION_FAILED\x10\x02\x12\x1e\n\x1aTRANSFER_OPERATION_ABORTED\x10\x03\"C\n\rPayloadFormat\x12\x1e\n\x1aPAYLOAD_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x08\n\x04JSON\x10\x02\"\x8b\x03\n\rLoggingConfig\x12L\n\x0blog_actions\x18\x01 \x03(\x0e\x32\x37.google.storagetransfer.v1.LoggingConfig.LoggableAction\x12W\n\x11log_action_states\x18\x02 \x03(\x0e\x32<.google.storagetransfer.v1.LoggingConfig.LoggableActionState\x12\'\n\x1f\x65nable_onprem_gcs_transfer_logs\x18\x03 \x01(\x08\"Q\n\x0eLoggableAction\x12\x1f\n\x1bLOGGABLE_ACTION_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46IND\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x08\n\x04\x43OPY\x10\x03\"W\n\x13LoggableActionState\x12%\n!LOGGABLE_ACTION_STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\xc4\x05\n\x11TransferOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12>\n\rtransfer_spec\x18\x03 \x01(\x0b\x32\'.google.storagetransfer.v1.TransferSpec\x12J\n\x13notification_config\x18\n \x01(\x0b\x32-.google.storagetransfer.v1.NotificationConfig\x12@\n\x0elogging_config\x18\x0c \x01(\x0b\x32(.google.storagetransfer.v1.LoggingConfig\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06status\x18\x06 \x01(\x0e\x32\x33.google.storagetransfer.v1.TransferOperation.Status\x12=\n\x08\x63ounters\x18\x07 \x01(\x0b\x32+.google.storagetransfer.v1.TransferCounters\x12\x41\n\x10\x65rror_breakdowns\x18\x08 \x03(\x0b\x32\'.google.storagetransfer.v1.ErrorSummary\x12\x19\n\x11transfer_job_name\x18\t \x01(\t\"\x7f\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x41\x42ORTED\x10\x05\x12\n\n\x06QUEUED\x10\x06\x12\x0e\n\nSUSPENDING\x10\x07\x42\xef\x01\n#com.google.storagetransfer.v1.protoB\rTransferTypesZMcloud.google.com/go/storagetransfer/apiv1/storagetransferpb;storagetransferpb\xf8\x01\x01\xaa\x02\x1fGoogle.Cloud.StorageTransfer.V1\xca\x02\x1fGoogle\\Cloud\\StorageTransfer\\V1\xea\x02\"Google::Cloud::StorageTransfer::V1b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -80,6 +80,7 @@ module Google
|
|
80
80
|
MetadataOptions::TimeCreated = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.TimeCreated").enummodule
|
81
81
|
TransferManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferManifest").msgclass
|
82
82
|
Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.Schedule").msgclass
|
83
|
+
EventStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.EventStream").msgclass
|
83
84
|
TransferJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob").msgclass
|
84
85
|
TransferJob::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob.Status").enummodule
|
85
86
|
ErrorLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ErrorLogEntry").msgclass
|
@@ -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
|
@@ -50,15 +50,17 @@ module Google
|
|
50
50
|
# job.
|
51
51
|
# @!attribute [rw] transfer_job
|
52
52
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob]
|
53
|
-
# Required. The job to update. `transferJob` is expected to specify one or
|
54
|
-
# five fields:
|
53
|
+
# Required. The job to update. `transferJob` is expected to specify one or
|
54
|
+
# more of five fields:
|
55
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#description description},
|
55
56
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
56
57
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
57
58
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
58
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An
|
59
|
-
# other fields are rejected with
|
60
|
-
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a
|
61
|
-
#
|
59
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. An
|
60
|
+
# `UpdateTransferJobRequest` that specifies other fields are rejected with
|
61
|
+
# the error {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a
|
62
|
+
# job status to
|
63
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
|
62
64
|
# `storagetransfer.jobs.delete` permission.
|
63
65
|
# @!attribute [rw] update_transfer_job_field_mask
|
64
66
|
# @return [::Google::Protobuf::FieldMask]
|
@@ -68,9 +70,10 @@ module Google
|
|
68
70
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#transfer_spec transfer_spec},
|
69
71
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#notification_config notification_config},
|
70
72
|
# {::Google::Cloud::StorageTransfer::V1::TransferJob#logging_config logging_config}, and
|
71
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the
|
72
|
-
# complete transfer specification must be
|
73
|
-
# specification missing any required fields is
|
73
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob#status status}. To update the
|
74
|
+
# `transfer_spec` of the job, a complete transfer specification must be
|
75
|
+
# provided. An incomplete specification missing any required fields is
|
76
|
+
# rejected with the error
|
74
77
|
# {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}.
|
75
78
|
class UpdateTransferJobRequest
|
76
79
|
include ::Google::Protobuf::MessageExts
|
@@ -204,8 +207,8 @@ module Google
|
|
204
207
|
# Specifies the request passed to UpdateAgentPool.
|
205
208
|
# @!attribute [rw] agent_pool
|
206
209
|
# @return [::Google::Cloud::StorageTransfer::V1::AgentPool]
|
207
|
-
# Required. The agent pool to update. `agent_pool` is expected to specify
|
208
|
-
# fields:
|
210
|
+
# Required. The agent pool to update. `agent_pool` is expected to specify
|
211
|
+
# following fields:
|
209
212
|
#
|
210
213
|
# * {::Google::Cloud::StorageTransfer::V1::AgentPool#name name}
|
211
214
|
#
|
@@ -76,25 +76,27 @@ module Google
|
|
76
76
|
# the `updated` property of Cloud Storage objects, the `LastModified` field
|
77
77
|
# of S3 objects, and the `Last-Modified` header of Azure blobs.
|
78
78
|
#
|
79
|
-
# Transfers with a {::Google::Cloud::StorageTransfer::V1::PosixFilesystem PosixFilesystem}
|
80
|
-
# `ObjectConditions`.
|
79
|
+
# Transfers with a {::Google::Cloud::StorageTransfer::V1::PosixFilesystem PosixFilesystem}
|
80
|
+
# source or destination don't support `ObjectConditions`.
|
81
81
|
# @!attribute [rw] min_time_elapsed_since_last_modification
|
82
82
|
# @return [::Google::Protobuf::Duration]
|
83
83
|
# Ensures that objects are not transferred until a specific minimum time
|
84
84
|
# has elapsed after the "last modification time". When a
|
85
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation} begins,
|
86
|
-
# transferred only if the elapsed
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
85
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation} begins,
|
86
|
+
# objects with a "last modification time" are transferred only if the elapsed
|
87
|
+
# time between the
|
88
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation#start_time start_time} of the
|
89
|
+
# `TransferOperation` and the "last modification time" of the object is equal
|
90
|
+
# to or greater than the value of min_time_elapsed_since_last_modification`.
|
90
91
|
# Objects that do not have a "last modification time" are also transferred.
|
91
92
|
# @!attribute [rw] max_time_elapsed_since_last_modification
|
92
93
|
# @return [::Google::Protobuf::Duration]
|
93
94
|
# Ensures that objects are not transferred if a specific maximum time
|
94
95
|
# has elapsed since the "last modification time".
|
95
|
-
# When a {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation}
|
96
|
-
# "last modification time" are transferred only if the
|
97
|
-
#
|
96
|
+
# When a {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation}
|
97
|
+
# begins, objects with a "last modification time" are transferred only if the
|
98
|
+
# elapsed time between the
|
99
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation#start_time start_time} of the
|
98
100
|
# `TransferOperation`and the "last modification time" of the object
|
99
101
|
# is less than the value of max_time_elapsed_since_last_modification`.
|
100
102
|
# Objects that do not have a "last modification time" are also transferred.
|
@@ -103,9 +105,10 @@ module Google
|
|
103
105
|
# If you specify `include_prefixes`, Storage Transfer Service uses the items
|
104
106
|
# in the `include_prefixes` array to determine which objects to include in a
|
105
107
|
# transfer. Objects must start with one of the matching `include_prefixes`
|
106
|
-
# for inclusion in the transfer. If
|
107
|
-
#
|
108
|
-
#
|
108
|
+
# for inclusion in the transfer. If
|
109
|
+
# {::Google::Cloud::StorageTransfer::V1::ObjectConditions#exclude_prefixes exclude_prefixes}
|
110
|
+
# is specified, objects must not start with any of the `exclude_prefixes`
|
111
|
+
# specified for inclusion in the transfer.
|
109
112
|
#
|
110
113
|
# The following are requirements of `include_prefixes`:
|
111
114
|
#
|
@@ -152,8 +155,10 @@ module Google
|
|
152
155
|
# namespace. No exclude-prefix may be a prefix of another
|
153
156
|
# exclude-prefix.
|
154
157
|
#
|
155
|
-
# * If
|
156
|
-
#
|
158
|
+
# * If
|
159
|
+
# {::Google::Cloud::StorageTransfer::V1::ObjectConditions#include_prefixes include_prefixes}
|
160
|
+
# is specified, then each exclude-prefix must start with the value of a
|
161
|
+
# path explicitly included by `include_prefixes`.
|
157
162
|
#
|
158
163
|
# The max size of `exclude_prefixes` is 1000.
|
159
164
|
#
|
@@ -215,9 +220,9 @@ module Google
|
|
215
220
|
# bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
|
216
221
|
# @!attribute [rw] aws_access_key
|
217
222
|
# @return [::Google::Cloud::StorageTransfer::V1::AwsAccessKey]
|
218
|
-
# Input only. AWS access key used to sign the API requests to the AWS S3
|
219
|
-
# Permissions on the bucket must be granted to the access ID of the
|
220
|
-
# access key.
|
223
|
+
# Input only. AWS access key used to sign the API requests to the AWS S3
|
224
|
+
# bucket. Permissions on the bucket must be granted to the access ID of the
|
225
|
+
# AWS access key.
|
221
226
|
#
|
222
227
|
# For information on our data retention policy for user credentials, see
|
223
228
|
# [User credentials](/storage-transfer/docs/data-retention#user-credentials).
|
@@ -237,7 +242,30 @@ module Google
|
|
237
242
|
#
|
238
243
|
# When a role ARN is provided, Transfer Service fetches temporary
|
239
244
|
# credentials for the session using a `AssumeRoleWithWebIdentity` call for
|
240
|
-
# the provided role using the
|
245
|
+
# the provided role using the
|
246
|
+
# {::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount GoogleServiceAccount} for
|
247
|
+
# this project.
|
248
|
+
# @!attribute [rw] credentials_secret
|
249
|
+
# @return [::String]
|
250
|
+
# Optional. The Resource name of a secret in Secret Manager.
|
251
|
+
#
|
252
|
+
# The Azure SAS token must be stored in Secret Manager in JSON format:
|
253
|
+
# <pre>{
|
254
|
+
# "sas_token" : "<var>SAS_TOKEN</var>"
|
255
|
+
# }</pre>
|
256
|
+
# {::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount GoogleServiceAccount} must
|
257
|
+
# be granted `roles/secretmanager.secretAccessor` for the resource.
|
258
|
+
#
|
259
|
+
# See [Configure access to a source: Microsoft Azure Blob Storage]
|
260
|
+
# (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
|
261
|
+
# for more information.
|
262
|
+
#
|
263
|
+
# If `credentials_secret` is specified, do not specify [azure_credentials][].
|
264
|
+
#
|
265
|
+
# This feature is in
|
266
|
+
# [preview](https://cloud.google.com/terms/service-terms#1).
|
267
|
+
#
|
268
|
+
# Format: `projects/{project_number}/secrets/{secret_name}`
|
241
269
|
class AwsS3Data
|
242
270
|
include ::Google::Protobuf::MessageExts
|
243
271
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -255,7 +283,8 @@ module Google
|
|
255
283
|
# Required. The name of the Azure Storage account.
|
256
284
|
# @!attribute [rw] azure_credentials
|
257
285
|
# @return [::Google::Cloud::StorageTransfer::V1::AzureCredentials]
|
258
|
-
# Required. Input only. Credentials used to authenticate API requests to
|
286
|
+
# Required. Input only. Credentials used to authenticate API requests to
|
287
|
+
# Azure.
|
259
288
|
#
|
260
289
|
# For information on our data retention policy for user credentials, see
|
261
290
|
# [User credentials](/storage-transfer/docs/data-retention#user-credentials).
|
@@ -269,6 +298,28 @@ module Google
|
|
269
298
|
# Must be an empty string or full path name that ends with a '/'. This field
|
270
299
|
# is treated as an object prefix. As such, it should generally not begin with
|
271
300
|
# a '/'.
|
301
|
+
# @!attribute [rw] credentials_secret
|
302
|
+
# @return [::String]
|
303
|
+
# Optional. The Resource name of a secret in Secret Manager.
|
304
|
+
#
|
305
|
+
# The Azure SAS token must be stored in Secret Manager in JSON format:
|
306
|
+
# <pre>{
|
307
|
+
# "sas_token" : "<var>SAS_TOKEN</var>"
|
308
|
+
# }</pre>
|
309
|
+
# {::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount GoogleServiceAccount} must
|
310
|
+
# be granted `roles/secretmanager.secretAccessor` for the resource.
|
311
|
+
#
|
312
|
+
# See [Configure access to a source: Microsoft Azure Blob Storage]
|
313
|
+
# (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
|
314
|
+
# for more information.
|
315
|
+
#
|
316
|
+
# If `credentials_secret` is specified, do not specify
|
317
|
+
# {::Google::Cloud::StorageTransfer::V1::AzureBlobStorageData#azure_credentials azure_credentials}.
|
318
|
+
#
|
319
|
+
# This feature is in
|
320
|
+
# [preview](https://cloud.google.com/terms/service-terms#1).
|
321
|
+
#
|
322
|
+
# Format: `projects/{project_number}/secrets/{secret_name}`
|
272
323
|
class AzureBlobStorageData
|
273
324
|
include ::Google::Protobuf::MessageExts
|
274
325
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -312,7 +363,8 @@ module Google
|
|
312
363
|
# HTTP server to support `Range` requests and to return a `Content-Length`
|
313
364
|
# header in each response.
|
314
365
|
#
|
315
|
-
# * {::Google::Cloud::StorageTransfer::V1::ObjectConditions ObjectConditions} have no
|
366
|
+
# * {::Google::Cloud::StorageTransfer::V1::ObjectConditions ObjectConditions} have no
|
367
|
+
# effect when filtering objects to transfer.
|
316
368
|
# @!attribute [rw] list_url
|
317
369
|
# @return [::String]
|
318
370
|
# Required. The URL that points to the file that stores the object list
|
@@ -495,15 +547,17 @@ module Google
|
|
495
547
|
# @return [::Boolean]
|
496
548
|
# Whether objects that exist only in the sink should be deleted.
|
497
549
|
#
|
498
|
-
# **Note:** This option and
|
499
|
-
#
|
550
|
+
# **Note:** This option and
|
551
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOptions#delete_objects_from_source_after_transfer delete_objects_from_source_after_transfer}
|
552
|
+
# are mutually exclusive.
|
500
553
|
# @!attribute [rw] delete_objects_from_source_after_transfer
|
501
554
|
# @return [::Boolean]
|
502
555
|
# Whether objects should be deleted from the source after they are
|
503
556
|
# transferred to the sink.
|
504
557
|
#
|
505
|
-
# **Note:** This option and
|
506
|
-
#
|
558
|
+
# **Note:** This option and
|
559
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOptions#delete_objects_unique_in_sink delete_objects_unique_in_sink}
|
560
|
+
# are mutually exclusive.
|
507
561
|
# @!attribute [rw] overwrite_when
|
508
562
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferOptions::OverwriteWhen]
|
509
563
|
# When to overwrite objects that already exist in the sink. If not set,
|
@@ -563,7 +617,12 @@ module Google
|
|
563
617
|
# An AWS S3 compatible data source.
|
564
618
|
# @!attribute [rw] gcs_intermediate_data_location
|
565
619
|
# @return [::Google::Cloud::StorageTransfer::V1::GcsData]
|
566
|
-
# Cloud Storage
|
620
|
+
# For transfers between file systems, specifies a Cloud Storage bucket
|
621
|
+
# to be used as an intermediate location through which to transfer data.
|
622
|
+
#
|
623
|
+
# See [Transfer data between file
|
624
|
+
# systems](https://cloud.google.com/storage-transfer/docs/file-to-file) for
|
625
|
+
# more information.
|
567
626
|
# @!attribute [rw] object_conditions
|
568
627
|
# @return [::Google::Cloud::StorageTransfer::V1::ObjectConditions]
|
569
628
|
# Only objects that satisfy these object conditions are included in the set
|
@@ -720,7 +779,9 @@ module Google
|
|
720
779
|
STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT = 1
|
721
780
|
|
722
781
|
# Preserve the object's original storage class. This is only supported for
|
723
|
-
# transfers from Google Cloud Storage buckets.
|
782
|
+
# transfers from Google Cloud Storage buckets. REGIONAL and MULTI_REGIONAL
|
783
|
+
# storage classes will be mapped to STANDARD to ensure they can be written
|
784
|
+
# to the destination bucket.
|
724
785
|
STORAGE_CLASS_PRESERVE = 2
|
725
786
|
|
726
787
|
# Set the storage class to STANDARD.
|
@@ -795,7 +856,8 @@ module Google
|
|
795
856
|
# @!attribute [rw] schedule_start_date
|
796
857
|
# @return [::Google::Type::Date]
|
797
858
|
# Required. The start date of a transfer. Date boundaries are determined
|
798
|
-
# relative to UTC time. If `schedule_start_date` and
|
859
|
+
# relative to UTC time. If `schedule_start_date` and
|
860
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#start_time_of_day start_time_of_day}
|
799
861
|
# are in the past relative to the job's creation time, the transfer starts
|
800
862
|
# the day after you schedule the transfer request.
|
801
863
|
#
|
@@ -805,17 +867,22 @@ module Google
|
|
805
867
|
# Transfer Service server receives the request on June 2, then it creates
|
806
868
|
# a TransferJob with `schedule_start_date` set to June 2 and a
|
807
869
|
# `start_time_of_day` set to midnight UTC. The first scheduled
|
808
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation} takes
|
870
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation} takes
|
871
|
+
# place on June 3 at midnight UTC.
|
809
872
|
# @!attribute [rw] schedule_end_date
|
810
873
|
# @return [::Google::Type::Date]
|
811
874
|
# The last day a transfer runs. Date boundaries are determined relative to
|
812
875
|
# UTC time. A job runs once per 24 hours within the following guidelines:
|
813
876
|
#
|
814
|
-
# * If `schedule_end_date` and
|
877
|
+
# * If `schedule_end_date` and
|
878
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#schedule_start_date schedule_start_date}
|
879
|
+
# are the same and in
|
815
880
|
# the future relative to UTC, the transfer is executed only one time.
|
816
881
|
# * If `schedule_end_date` is later than `schedule_start_date` and
|
817
882
|
# `schedule_end_date` is in the future relative to UTC, the job runs each
|
818
|
-
# day at
|
883
|
+
# day at
|
884
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#start_time_of_day start_time_of_day}
|
885
|
+
# through `schedule_end_date`.
|
819
886
|
# @!attribute [rw] start_time_of_day
|
820
887
|
# @return [::Google::Type::TimeOfDay]
|
821
888
|
# The time in UTC that a transfer job is scheduled to run. Transfers may
|
@@ -825,7 +892,8 @@ module Google
|
|
825
892
|
#
|
826
893
|
# * One-time transfers run immediately.
|
827
894
|
# * Recurring transfers run immediately, and each day at midnight UTC,
|
828
|
-
# through
|
895
|
+
# through
|
896
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#schedule_end_date schedule_end_date}.
|
829
897
|
#
|
830
898
|
# If `start_time_of_day` is specified:
|
831
899
|
#
|
@@ -835,11 +903,15 @@ module Google
|
|
835
903
|
# @!attribute [rw] end_time_of_day
|
836
904
|
# @return [::Google::Type::TimeOfDay]
|
837
905
|
# The time in UTC that no further transfer operations are scheduled. Combined
|
838
|
-
# with
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
906
|
+
# with
|
907
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#schedule_end_date schedule_end_date},
|
908
|
+
# `end_time_of_day` specifies the end date and time for starting new transfer
|
909
|
+
# operations. This field must be greater than or equal to the timestamp
|
910
|
+
# corresponding to the combintation of
|
911
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#schedule_start_date schedule_start_date}
|
912
|
+
# and
|
913
|
+
# {::Google::Cloud::StorageTransfer::V1::Schedule#start_time_of_day start_time_of_day},
|
914
|
+
# and is subject to the following:
|
843
915
|
#
|
844
916
|
# * If `end_time_of_day` is not set and `schedule_end_date` is set, then
|
845
917
|
# a default value of `23:59:59` is used for `end_time_of_day`.
|
@@ -856,6 +928,30 @@ module Google
|
|
856
928
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
857
929
|
end
|
858
930
|
|
931
|
+
# Specifies the Event-driven transfer options. Event-driven transfers listen to
|
932
|
+
# an event stream to transfer updated files.
|
933
|
+
# @!attribute [rw] name
|
934
|
+
# @return [::String]
|
935
|
+
# Required. Specifies a unique name of the resource such as AWS SQS
|
936
|
+
# ARN in the form 'arn:aws:sqs:region:account_id:queue_name',
|
937
|
+
# or Pub/Sub subscription resource name in the form
|
938
|
+
# 'projects/\\{project}/subscriptions/\\{sub}'.
|
939
|
+
# @!attribute [rw] event_stream_start_time
|
940
|
+
# @return [::Google::Protobuf::Timestamp]
|
941
|
+
# Specifies the date and time that Storage Transfer Service starts
|
942
|
+
# listening for events from this stream. If no start time is specified or
|
943
|
+
# start time is in the past, Storage Transfer Service starts listening
|
944
|
+
# immediately.
|
945
|
+
# @!attribute [rw] event_stream_expiration_time
|
946
|
+
# @return [::Google::Protobuf::Timestamp]
|
947
|
+
# Specifies the data and time at which Storage Transfer Service stops
|
948
|
+
# listening for events from this stream. After this time, any transfers in
|
949
|
+
# progress will complete, but no new transfers are initiated.
|
950
|
+
class EventStream
|
951
|
+
include ::Google::Protobuf::MessageExts
|
952
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
953
|
+
end
|
954
|
+
|
859
955
|
# This resource represents the configuration of a transfer job that runs
|
860
956
|
# periodically.
|
861
957
|
# @!attribute [rw] name
|
@@ -908,6 +1004,10 @@ module Google
|
|
908
1004
|
# This is an optional field. When the field is not set, the job never
|
909
1005
|
# executes a transfer, unless you invoke RunTransferJob or update the job to
|
910
1006
|
# have a non-empty schedule.
|
1007
|
+
# @!attribute [rw] event_stream
|
1008
|
+
# @return [::Google::Cloud::StorageTransfer::V1::EventStream]
|
1009
|
+
# Specifies the event stream for the transfer job for event-driven transfers.
|
1010
|
+
# When EventStream is specified, the Schedule fields are ignored.
|
911
1011
|
# @!attribute [rw] status
|
912
1012
|
# @return [::Google::Cloud::StorageTransfer::V1::TransferJob::Status]
|
913
1013
|
# Status of the job. This value MUST be specified for
|
@@ -915,9 +1015,10 @@ module Google
|
|
915
1015
|
#
|
916
1016
|
# **Note:** The effect of the new job status takes place during a subsequent
|
917
1017
|
# job run. For example, if you change the job status from
|
918
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::ENABLED ENABLED} to
|
919
|
-
#
|
920
|
-
#
|
1018
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::ENABLED ENABLED} to
|
1019
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DISABLED DISABLED}, and an
|
1020
|
+
# operation spawned by the transfer is running, the status change would not
|
1021
|
+
# affect the current operation.
|
921
1022
|
# @!attribute [r] creation_time
|
922
1023
|
# @return [::Google::Protobuf::Timestamp]
|
923
1024
|
# Output only. The time that the transfer job was created.
|
@@ -1079,17 +1180,23 @@ module Google
|
|
1079
1180
|
# Notifications are published to the customer-provided topic using the
|
1080
1181
|
# following `PubsubMessage.attributes`:
|
1081
1182
|
#
|
1082
|
-
# * `"eventType"`: one of the
|
1083
|
-
#
|
1084
|
-
# * `"
|
1183
|
+
# * `"eventType"`: one of the
|
1184
|
+
# {::Google::Cloud::StorageTransfer::V1::NotificationConfig::EventType EventType} values
|
1185
|
+
# * `"payloadFormat"`: one of the
|
1186
|
+
# {::Google::Cloud::StorageTransfer::V1::NotificationConfig::PayloadFormat PayloadFormat}
|
1187
|
+
# values
|
1188
|
+
# * `"projectId"`: the
|
1189
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation#project_id project_id} of the
|
1085
1190
|
# `TransferOperation`
|
1086
1191
|
# * `"transferJobName"`: the
|
1087
|
-
# {::Google::Cloud::StorageTransfer::V1::TransferOperation#transfer_job_name transfer_job_name}
|
1088
|
-
# `TransferOperation`
|
1089
|
-
# * `"transferOperationName"`: the
|
1192
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation#transfer_job_name transfer_job_name}
|
1193
|
+
# of the `TransferOperation`
|
1194
|
+
# * `"transferOperationName"`: the
|
1195
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation#name name} of the
|
1090
1196
|
# `TransferOperation`
|
1091
1197
|
#
|
1092
|
-
# The `PubsubMessage.data` contains a
|
1198
|
+
# The `PubsubMessage.data` contains a
|
1199
|
+
# {::Google::Cloud::StorageTransfer::V1::TransferOperation TransferOperation} resource
|
1093
1200
|
# formatted according to the specified `PayloadFormat`.
|
1094
1201
|
# @!attribute [rw] pubsub_topic
|
1095
1202
|
# @return [::String]
|
@@ -1162,12 +1269,14 @@ module Google
|
|
1162
1269
|
# @return [::Array<::Google::Cloud::StorageTransfer::V1::LoggingConfig::LoggableAction>]
|
1163
1270
|
# Specifies the actions to be logged. If empty, no logs are generated.
|
1164
1271
|
# Not supported for transfers with PosixFilesystem data sources; use
|
1165
|
-
# {::Google::Cloud::StorageTransfer::V1::LoggingConfig#enable_onprem_gcs_transfer_logs enable_onprem_gcs_transfer_logs}
|
1272
|
+
# {::Google::Cloud::StorageTransfer::V1::LoggingConfig#enable_onprem_gcs_transfer_logs enable_onprem_gcs_transfer_logs}
|
1273
|
+
# instead.
|
1166
1274
|
# @!attribute [rw] log_action_states
|
1167
1275
|
# @return [::Array<::Google::Cloud::StorageTransfer::V1::LoggingConfig::LoggableActionState>]
|
1168
1276
|
# States in which `log_actions` are logged. If empty, no logs are generated.
|
1169
1277
|
# Not supported for transfers with PosixFilesystem data sources; use
|
1170
|
-
# {::Google::Cloud::StorageTransfer::V1::LoggingConfig#enable_onprem_gcs_transfer_logs enable_onprem_gcs_transfer_logs}
|
1278
|
+
# {::Google::Cloud::StorageTransfer::V1::LoggingConfig#enable_onprem_gcs_transfer_logs enable_onprem_gcs_transfer_logs}
|
1279
|
+
# instead.
|
1171
1280
|
# @!attribute [rw] enable_onprem_gcs_transfer_logs
|
1172
1281
|
# @return [::Boolean]
|
1173
1282
|
# For transfers with a PosixFilesystem source, this option enables the Cloud
|
@@ -1219,6 +1328,9 @@ module Google
|
|
1219
1328
|
# @!attribute [rw] notification_config
|
1220
1329
|
# @return [::Google::Cloud::StorageTransfer::V1::NotificationConfig]
|
1221
1330
|
# Notification configuration.
|
1331
|
+
# @!attribute [rw] logging_config
|
1332
|
+
# @return [::Google::Cloud::StorageTransfer::V1::LoggingConfig]
|
1333
|
+
# Cloud Logging configuration.
|
1222
1334
|
# @!attribute [rw] start_time
|
1223
1335
|
# @return [::Google::Protobuf::Timestamp]
|
1224
1336
|
# Start time of this transfer execution.
|
@@ -1263,6 +1375,9 @@ module Google
|
|
1263
1375
|
|
1264
1376
|
# Temporarily delayed by the system. No user action is required.
|
1265
1377
|
QUEUED = 6
|
1378
|
+
|
1379
|
+
# The operation is suspending and draining the ongoing work to completion.
|
1380
|
+
SUSPENDING = 7
|
1266
1381
|
end
|
1267
1382
|
end
|
1268
1383
|
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
|