google-cloud-storage_transfer-v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40ca77c02f4a6e403441548a57d2b36cf900798b38104168c38523a31b5c8c48
4
- data.tar.gz: 979478a9632e396f100c6c3baae7dcee3f66cfc5d8bd0f798b868089d5a3cbcf
3
+ metadata.gz: d082cb15d9669c1bb4a18633141a5dd569dcab740075396ad9092ad689f6e4db
4
+ data.tar.gz: a445a078f7f51d8ff050876ff0f82a534d7bb65104b238b9bce5ca09f012d6df
5
5
  SHA512:
6
- metadata.gz: 5cc2ee55f3a694c9adeb843b4faea81709760989df0b9c2898ea751fee1d1f99c4e2ba6b560c875497d5f1d7ddc40f91dd2230b2910d5b9d2604a27f1128f185
7
- data.tar.gz: ff5dfdfeb9851fd8cf177f9162c1b5dbe5eef038ca8e8fc37957f5c6b6a0aac96fc4e45fbf8f00472101862da32bb5a73ecf620ad3f45970108e2a8044991b2f
6
+ metadata.gz: 7aa91d27442401c1a4129d8a94f08624c7f21a6a09f9402e098aebd106b28b059031b41cf677a0bbfc646defd154c7a7d9d4facd18aa24127b93c6446a225c76
7
+ data.tar.gz: 5d6340e368c2551d93faf0269bade410aff705a123e0586c5d43f16e3ae10ed9fd5eb2ca3bde0f1084f2cd224cef254da087db4127fb4b3436ae3dfe236b6062
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
@@ -66,7 +66,12 @@ module Google
66
66
  end
67
67
  default_config = Client::Configuration.new parent_config
68
68
 
69
- default_config.timeout = 30.0
69
+ default_config.timeout = 60.0
70
+ default_config.retry_policy = {
71
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14]
72
+ }
73
+
74
+ default_config.rpcs.create_transfer_job.timeout = 60.0
70
75
 
71
76
  default_config
72
77
  end
@@ -371,7 +376,7 @@ module Google
371
376
  # other fields are rejected with the error
372
377
  # {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a job status
373
378
  # to {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
374
- # `storagetransfer.jobs.delete` permissions.
379
+ # `storagetransfer.jobs.delete` permission.
375
380
  # @param update_transfer_job_field_mask [::Google::Protobuf::FieldMask, ::Hash]
376
381
  # The field mask of the fields in `transferJob` that are to be updated in
377
382
  # this request. Fields in `transferJob` that can be updated are:
@@ -903,6 +908,95 @@ module Google
903
908
  raise ::Google::Cloud::Error.from_error(e)
904
909
  end
905
910
 
911
+ ##
912
+ # Deletes a transfer job. Deleting a transfer job sets its status to
913
+ # {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED}.
914
+ #
915
+ # @overload delete_transfer_job(request, options = nil)
916
+ # Pass arguments to `delete_transfer_job` via a request object, either of type
917
+ # {::Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest} or an equivalent Hash.
918
+ #
919
+ # @param request [::Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest, ::Hash]
920
+ # A request object representing the call parameters. Required. To specify no
921
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
922
+ # @param options [::Gapic::CallOptions, ::Hash]
923
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
924
+ #
925
+ # @overload delete_transfer_job(job_name: nil, project_id: nil)
926
+ # Pass arguments to `delete_transfer_job` via keyword arguments. Note that at
927
+ # least one keyword argument is required. To specify no parameters, or to keep all
928
+ # the default parameter values, pass an empty Hash as a request object (see above).
929
+ #
930
+ # @param job_name [::String]
931
+ # Required. The job to delete.
932
+ # @param project_id [::String]
933
+ # Required. The ID of the Google Cloud project that owns the
934
+ # job.
935
+ #
936
+ # @yield [response, operation] Access the result along with the RPC operation
937
+ # @yieldparam response [::Google::Protobuf::Empty]
938
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
939
+ #
940
+ # @return [::Google::Protobuf::Empty]
941
+ #
942
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
943
+ #
944
+ # @example Basic example
945
+ # require "google/cloud/storage_transfer/v1"
946
+ #
947
+ # # Create a client object. The client can be reused for multiple calls.
948
+ # client = Google::Cloud::StorageTransfer::V1::StorageTransferService::Client.new
949
+ #
950
+ # # Create a request. To set request fields, pass in keyword arguments.
951
+ # request = Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest.new
952
+ #
953
+ # # Call the delete_transfer_job method.
954
+ # result = client.delete_transfer_job request
955
+ #
956
+ # # The returned object is of type Google::Protobuf::Empty.
957
+ # p result
958
+ #
959
+ def delete_transfer_job request, options = nil
960
+ raise ::ArgumentError, "request must be provided" if request.nil?
961
+
962
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest
963
+
964
+ # Converts hash and nil to an options object
965
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
966
+
967
+ # Customize the options with defaults
968
+ metadata = @config.rpcs.delete_transfer_job.metadata.to_h
969
+
970
+ # Set x-goog-api-client and x-goog-user-project headers
971
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
972
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
973
+ gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
974
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
975
+
976
+ header_params = {}
977
+ if request.job_name
978
+ header_params["job_name"] = request.job_name
979
+ end
980
+
981
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
982
+ metadata[:"x-goog-request-params"] ||= request_params_header
983
+
984
+ options.apply_defaults timeout: @config.rpcs.delete_transfer_job.timeout,
985
+ metadata: metadata,
986
+ retry_policy: @config.rpcs.delete_transfer_job.retry_policy
987
+
988
+ options.apply_defaults timeout: @config.timeout,
989
+ metadata: @config.metadata,
990
+ retry_policy: @config.retry_policy
991
+
992
+ @storage_transfer_service_stub.call_rpc :delete_transfer_job, request, options: options do |response, operation|
993
+ yield response, operation if block_given?
994
+ return response
995
+ end
996
+ rescue ::GRPC::BadStatus => e
997
+ raise ::Google::Cloud::Error.from_error(e)
998
+ end
999
+
906
1000
  ##
907
1001
  # Creates an agent pool resource.
908
1002
  #
@@ -1559,6 +1653,11 @@ module Google
1559
1653
  #
1560
1654
  attr_reader :run_transfer_job
1561
1655
  ##
1656
+ # RPC-specific configuration for `delete_transfer_job`
1657
+ # @return [::Gapic::Config::Method]
1658
+ #
1659
+ attr_reader :delete_transfer_job
1660
+ ##
1562
1661
  # RPC-specific configuration for `create_agent_pool`
1563
1662
  # @return [::Gapic::Config::Method]
1564
1663
  #
@@ -1602,6 +1701,8 @@ module Google
1602
1701
  @resume_transfer_operation = ::Gapic::Config::Method.new resume_transfer_operation_config
1603
1702
  run_transfer_job_config = parent_rpcs.run_transfer_job if parent_rpcs.respond_to? :run_transfer_job
1604
1703
  @run_transfer_job = ::Gapic::Config::Method.new run_transfer_job_config
1704
+ delete_transfer_job_config = parent_rpcs.delete_transfer_job if parent_rpcs.respond_to? :delete_transfer_job
1705
+ @delete_transfer_job = ::Gapic::Config::Method.new delete_transfer_job_config
1605
1706
  create_agent_pool_config = parent_rpcs.create_agent_pool if parent_rpcs.respond_to? :create_agent_pool
1606
1707
  @create_agent_pool = ::Gapic::Config::Method.new create_agent_pool_config
1607
1708
  update_agent_pool_config = parent_rpcs.update_agent_pool if parent_rpcs.respond_to? :update_agent_pool
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module StorageTransfer
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -29,6 +29,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
29
29
  optional :job_name, :string, 1
30
30
  optional :project_id, :string, 2
31
31
  end
32
+ add_message "google.storagetransfer.v1.DeleteTransferJobRequest" do
33
+ optional :job_name, :string, 1
34
+ optional :project_id, :string, 2
35
+ end
32
36
  add_message "google.storagetransfer.v1.ListTransferJobsRequest" do
33
37
  optional :filter, :string, 1
34
38
  optional :page_size, :int32, 4
@@ -84,6 +88,7 @@ module Google
84
88
  CreateTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.CreateTransferJobRequest").msgclass
85
89
  UpdateTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.UpdateTransferJobRequest").msgclass
86
90
  GetTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GetTransferJobRequest").msgclass
91
+ DeleteTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.DeleteTransferJobRequest").msgclass
87
92
  ListTransferJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListTransferJobsRequest").msgclass
88
93
  ListTransferJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListTransferJobsResponse").msgclass
89
94
  PauseTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PauseTransferOperationRequest").msgclass
@@ -67,6 +67,9 @@ module Google
67
67
  # TransferJob has a maximum of one active TransferOperation. If this method
68
68
  # is called while a TransferOperation is active, an error will be returned.
69
69
  rpc :RunTransferJob, ::Google::Cloud::StorageTransfer::V1::RunTransferJobRequest, ::Google::Longrunning::Operation
70
+ # Deletes a transfer job. Deleting a transfer job sets its status to
71
+ # [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
72
+ rpc :DeleteTransferJob, ::Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest, ::Google::Protobuf::Empty
70
73
  # Creates an agent pool resource.
71
74
  rpc :CreateAgentPool, ::Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
72
75
  # Updates an existing agent pool resource.
@@ -54,6 +54,41 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
54
54
  add_message "google.storagetransfer.v1.PosixFilesystem" do
55
55
  optional :root_directory, :string, 1
56
56
  end
57
+ add_message "google.storagetransfer.v1.AwsS3CompatibleData" do
58
+ optional :bucket_name, :string, 1
59
+ optional :path, :string, 2
60
+ optional :endpoint, :string, 3
61
+ optional :region, :string, 5
62
+ oneof :data_provider do
63
+ optional :s3_metadata, :message, 4, "google.storagetransfer.v1.S3CompatibleMetadata"
64
+ end
65
+ end
66
+ add_message "google.storagetransfer.v1.S3CompatibleMetadata" do
67
+ optional :auth_method, :enum, 1, "google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod"
68
+ optional :request_model, :enum, 2, "google.storagetransfer.v1.S3CompatibleMetadata.RequestModel"
69
+ optional :protocol, :enum, 3, "google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol"
70
+ optional :list_api, :enum, 4, "google.storagetransfer.v1.S3CompatibleMetadata.ListApi"
71
+ end
72
+ add_enum "google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod" do
73
+ value :AUTH_METHOD_UNSPECIFIED, 0
74
+ value :AUTH_METHOD_AWS_SIGNATURE_V4, 1
75
+ value :AUTH_METHOD_AWS_SIGNATURE_V2, 2
76
+ end
77
+ add_enum "google.storagetransfer.v1.S3CompatibleMetadata.RequestModel" do
78
+ value :REQUEST_MODEL_UNSPECIFIED, 0
79
+ value :REQUEST_MODEL_VIRTUAL_HOSTED_STYLE, 1
80
+ value :REQUEST_MODEL_PATH_STYLE, 2
81
+ end
82
+ add_enum "google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol" do
83
+ value :NETWORK_PROTOCOL_UNSPECIFIED, 0
84
+ value :NETWORK_PROTOCOL_HTTPS, 1
85
+ value :NETWORK_PROTOCOL_HTTP, 2
86
+ end
87
+ add_enum "google.storagetransfer.v1.S3CompatibleMetadata.ListApi" do
88
+ value :LIST_API_UNSPECIFIED, 0
89
+ value :LIST_OBJECTS_V2, 1
90
+ value :LIST_OBJECTS, 2
91
+ end
57
92
  add_message "google.storagetransfer.v1.AgentPool" do
58
93
  optional :name, :string, 2
59
94
  optional :display_name, :string, 3
@@ -98,6 +133,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
98
133
  optional :http_data_source, :message, 3, "google.storagetransfer.v1.HttpData"
99
134
  optional :posix_data_source, :message, 14, "google.storagetransfer.v1.PosixFilesystem"
100
135
  optional :azure_blob_storage_data_source, :message, 8, "google.storagetransfer.v1.AzureBlobStorageData"
136
+ optional :aws_s3_compatible_data_source, :message, 19, "google.storagetransfer.v1.AwsS3CompatibleData"
101
137
  end
102
138
  oneof :intermediate_data_location do
103
139
  optional :gcs_intermediate_data_location, :message, 16, "google.storagetransfer.v1.GcsData"
@@ -294,6 +330,12 @@ module Google
294
330
  AzureBlobStorageData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AzureBlobStorageData").msgclass
295
331
  HttpData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.HttpData").msgclass
296
332
  PosixFilesystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PosixFilesystem").msgclass
333
+ AwsS3CompatibleData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AwsS3CompatibleData").msgclass
334
+ S3CompatibleMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.S3CompatibleMetadata").msgclass
335
+ S3CompatibleMetadata::AuthMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod").enummodule
336
+ S3CompatibleMetadata::RequestModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.S3CompatibleMetadata.RequestModel").enummodule
337
+ S3CompatibleMetadata::NetworkProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol").enummodule
338
+ S3CompatibleMetadata::ListApi = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.S3CompatibleMetadata.ListApi").enummodule
297
339
  AgentPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool").msgclass
298
340
  AgentPool::BandwidthLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool.BandwidthLimit").msgclass
299
341
  AgentPool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool.State").enummodule
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -59,7 +59,7 @@ module Google
59
59
  # other fields are rejected with the error
60
60
  # {::Google::Rpc::Code::INVALID_ARGUMENT INVALID_ARGUMENT}. Updating a job status
61
61
  # to {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED} requires
62
- # `storagetransfer.jobs.delete` permissions.
62
+ # `storagetransfer.jobs.delete` permission.
63
63
  # @!attribute [rw] update_transfer_job_field_mask
64
64
  # @return [::Google::Protobuf::FieldMask]
65
65
  # The field mask of the fields in `transferJob` that are to be updated in
@@ -90,6 +90,19 @@ module Google
90
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
91
91
  end
92
92
 
93
+ # Request passed to DeleteTransferJob.
94
+ # @!attribute [rw] job_name
95
+ # @return [::String]
96
+ # Required. The job to delete.
97
+ # @!attribute [rw] project_id
98
+ # @return [::String]
99
+ # Required. The ID of the Google Cloud project that owns the
100
+ # job.
101
+ class DeleteTransferJobRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
93
106
  # `projectId`, `jobNames`, and `jobStatuses` are query parameters that can
94
107
  # be specified when listing transfer jobs.
95
108
  # @!attribute [rw] filter
@@ -332,6 +332,109 @@ module Google
332
332
  extend ::Google::Protobuf::MessageExts::ClassMethods
333
333
  end
334
334
 
335
+ # An AwsS3CompatibleData resource.
336
+ # @!attribute [rw] bucket_name
337
+ # @return [::String]
338
+ # Required. Specifies the name of the bucket.
339
+ # @!attribute [rw] path
340
+ # @return [::String]
341
+ # Specifies the root path to transfer objects.
342
+ #
343
+ # Must be an empty string or full path name that ends with a '/'. This
344
+ # field is treated as an object prefix. As such, it should generally not
345
+ # begin with a '/'.
346
+ # @!attribute [rw] endpoint
347
+ # @return [::String]
348
+ # Required. Specifies the endpoint of the storage service.
349
+ # @!attribute [rw] region
350
+ # @return [::String]
351
+ # Specifies the region to sign requests with. This can be left blank if
352
+ # requests should be signed with an empty region.
353
+ # @!attribute [rw] s3_metadata
354
+ # @return [::Google::Cloud::StorageTransfer::V1::S3CompatibleMetadata]
355
+ # A S3 compatible metadata.
356
+ class AwsS3CompatibleData
357
+ include ::Google::Protobuf::MessageExts
358
+ extend ::Google::Protobuf::MessageExts::ClassMethods
359
+ end
360
+
361
+ # S3CompatibleMetadata contains the metadata fields that apply to the basic
362
+ # types of S3-compatible data providers.
363
+ # @!attribute [rw] auth_method
364
+ # @return [::Google::Cloud::StorageTransfer::V1::S3CompatibleMetadata::AuthMethod]
365
+ # Specifies the authentication and authorization method used by the storage
366
+ # service. When not specified, Transfer Service will attempt to determine
367
+ # right auth method to use.
368
+ # @!attribute [rw] request_model
369
+ # @return [::Google::Cloud::StorageTransfer::V1::S3CompatibleMetadata::RequestModel]
370
+ # Specifies the API request model used to call the storage service. When not
371
+ # specified, the default value of RequestModel
372
+ # REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
373
+ # @!attribute [rw] protocol
374
+ # @return [::Google::Cloud::StorageTransfer::V1::S3CompatibleMetadata::NetworkProtocol]
375
+ # Specifies the network protocol of the agent. When not specified, the
376
+ # default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
377
+ # @!attribute [rw] list_api
378
+ # @return [::Google::Cloud::StorageTransfer::V1::S3CompatibleMetadata::ListApi]
379
+ # The Listing API to use for discovering objects. When not specified,
380
+ # Transfer Service will attempt to determine the right API to use.
381
+ class S3CompatibleMetadata
382
+ include ::Google::Protobuf::MessageExts
383
+ extend ::Google::Protobuf::MessageExts::ClassMethods
384
+
385
+ # The authentication and authorization method used by the storage service.
386
+ module AuthMethod
387
+ # AuthMethod is not specified.
388
+ AUTH_METHOD_UNSPECIFIED = 0
389
+
390
+ # Auth requests with AWS SigV4.
391
+ AUTH_METHOD_AWS_SIGNATURE_V4 = 1
392
+
393
+ # Auth requests with AWS SigV2.
394
+ AUTH_METHOD_AWS_SIGNATURE_V2 = 2
395
+ end
396
+
397
+ # The request model of the API.
398
+ module RequestModel
399
+ # RequestModel is not specified.
400
+ REQUEST_MODEL_UNSPECIFIED = 0
401
+
402
+ # Perform requests using Virtual Hosted Style.
403
+ # Example: https://bucket-name.s3.region.amazonaws.com/key-name
404
+ REQUEST_MODEL_VIRTUAL_HOSTED_STYLE = 1
405
+
406
+ # Perform requests using Path Style.
407
+ # Example: https://s3.region.amazonaws.com/bucket-name/key-name
408
+ REQUEST_MODEL_PATH_STYLE = 2
409
+ end
410
+
411
+ # The agent network protocol to access the storage service.
412
+ module NetworkProtocol
413
+ # NetworkProtocol is not specified.
414
+ NETWORK_PROTOCOL_UNSPECIFIED = 0
415
+
416
+ # Perform requests using HTTPS.
417
+ NETWORK_PROTOCOL_HTTPS = 1
418
+
419
+ # Not recommended: This sends data in clear-text. This is only
420
+ # appropriate within a closed network or for publicly available data.
421
+ # Perform requests using HTTP.
422
+ NETWORK_PROTOCOL_HTTP = 2
423
+ end
424
+
425
+ # The Listing API to use for discovering objects.
426
+ module ListApi
427
+ # ListApi is not specified.
428
+ LIST_API_UNSPECIFIED = 0
429
+
430
+ # Perform listing using ListObjectsV2 API.
431
+ LIST_OBJECTS_V2 = 1
432
+
433
+ # Legacy ListObjects API.
434
+ LIST_OBJECTS = 2
435
+ end
436
+ end
437
+
335
438
  # Represents an On-Premises Agent pool.
336
439
  # @!attribute [rw] name
337
440
  # @return [::String]
@@ -403,13 +506,12 @@ module Google
403
506
  # exclusive.
404
507
  # @!attribute [rw] overwrite_when
405
508
  # @return [::Google::Cloud::StorageTransfer::V1::TransferOptions::OverwriteWhen]
406
- # When to overwrite objects that already exist in the sink. If not set
509
+ # When to overwrite objects that already exist in the sink. If not set,
407
510
  # overwrite behavior is determined by
408
511
  # {::Google::Cloud::StorageTransfer::V1::TransferOptions#overwrite_objects_already_existing_in_sink overwrite_objects_already_existing_in_sink}.
409
512
  # @!attribute [rw] metadata_options
410
513
  # @return [::Google::Cloud::StorageTransfer::V1::MetadataOptions]
411
- # Represents the selected metadata options for a transfer job. This feature
412
- # is in Preview.
514
+ # Represents the selected metadata options for a transfer job.
413
515
  class TransferOptions
414
516
  include ::Google::Protobuf::MessageExts
415
517
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -417,17 +519,19 @@ module Google
417
519
  # Specifies when to overwrite an object in the sink when an object with
418
520
  # matching name is found in the source.
419
521
  module OverwriteWhen
420
- # Indicate the option is not set.
522
+ # Overwrite behavior is unspecified.
421
523
  OVERWRITE_WHEN_UNSPECIFIED = 0
422
524
 
423
- # Overwrite destination object with source if the two objects are
424
- # different.
525
+ # Overwrites destination objects with the source objects, only if the
526
+ # objects have the same name but different HTTP ETags or checksum values.
425
527
  DIFFERENT = 1
426
528
 
427
- # Never overwrite destination object.
529
+ # Never overwrites a destination object if a source object has the
530
+ # same name. In this case, the source object is not transferred.
428
531
  NEVER = 2
429
532
 
430
- # Always overwrite destination object.
533
+ # Always overwrite the destination object with the source object, even if
534
+ # the HTTP Etags or checksum values are the same.
431
535
  ALWAYS = 3
432
536
  end
433
537
  end
@@ -454,6 +558,9 @@ module Google
454
558
  # @!attribute [rw] azure_blob_storage_data_source
455
559
  # @return [::Google::Cloud::StorageTransfer::V1::AzureBlobStorageData]
456
560
  # An Azure Blob Storage data source.
561
+ # @!attribute [rw] aws_s3_compatible_data_source
562
+ # @return [::Google::Cloud::StorageTransfer::V1::AwsS3CompatibleData]
563
+ # An AWS S3 compatible data source.
457
564
  # @!attribute [rw] gcs_intermediate_data_location
458
565
  # @return [::Google::Cloud::StorageTransfer::V1::GcsData]
459
566
  # Cloud Storage intermediate data location.
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.3.0
4
+ version: 0.4.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: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common