google-apis-storagetransfer_v1 0.29.0 → 0.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/google/apis/storagetransfer_v1/classes.rb +97 -0
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +3 -3
- data/lib/google/apis/storagetransfer_v1/representations.rb +36 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +33 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd5db80d8ae22e70559083241fe944c22e47a4d909c8d3d134add1e2e8f994a3
|
4
|
+
data.tar.gz: 7c0e1806755d7a1a42b250e09304f059c01b9c90145486f21ab98cab76f88cbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16e42f8210975edae356f0dcfa89bf5fe980f66bbbcb6999bea00305d037df1baca09ca2891039a8029656f20985f7bb4ac4af55834bdae7909238501cb1f268
|
7
|
+
data.tar.gz: 9248ff2240c20e3abc4162aada0141a806822a06a749b4a6dc7257622c9ce46234542e3424b7a6ca225aac1eb6e956c2bac9d18b079cb7adb149de192ef0afd1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-storagetransfer_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2022-09-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220901
|
6
|
+
|
7
|
+
### v0.31.0 (2022-07-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220714
|
10
|
+
* Regenerated using generator version 0.9.0
|
11
|
+
|
12
|
+
### v0.30.0 (2022-06-30)
|
13
|
+
|
14
|
+
* Regenerated using generator version 0.8.0
|
15
|
+
|
3
16
|
### v0.29.0 (2022-06-20)
|
4
17
|
|
5
18
|
* Regenerated using generator version 0.7.0
|
@@ -88,6 +88,53 @@ module Google
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
# An AwsS3CompatibleData resource.
|
92
|
+
class AwsS3CompatibleData
|
93
|
+
include Google::Apis::Core::Hashable
|
94
|
+
|
95
|
+
# Required. Specifies the name of the bucket.
|
96
|
+
# Corresponds to the JSON property `bucketName`
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :bucket_name
|
99
|
+
|
100
|
+
# Required. Specifies the endpoint of the storage service.
|
101
|
+
# Corresponds to the JSON property `endpoint`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :endpoint
|
104
|
+
|
105
|
+
# Specifies the root path to transfer objects. Must be an empty string or full
|
106
|
+
# path name that ends with a '/'. This field is treated as an object prefix. As
|
107
|
+
# such, it should generally not begin with a '/'.
|
108
|
+
# Corresponds to the JSON property `path`
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :path
|
111
|
+
|
112
|
+
# Specifies the region to sign requests with. This can be left blank if requests
|
113
|
+
# should be signed with an empty region.
|
114
|
+
# Corresponds to the JSON property `region`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :region
|
117
|
+
|
118
|
+
# S3CompatibleMetadata contains the metadata fields that apply to the basic
|
119
|
+
# types of S3-compatible data providers.
|
120
|
+
# Corresponds to the JSON property `s3Metadata`
|
121
|
+
# @return [Google::Apis::StoragetransferV1::S3CompatibleMetadata]
|
122
|
+
attr_accessor :s3_metadata
|
123
|
+
|
124
|
+
def initialize(**args)
|
125
|
+
update!(**args)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Update properties of this object
|
129
|
+
def update!(**args)
|
130
|
+
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
131
|
+
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
132
|
+
@path = args[:path] if args.key?(:path)
|
133
|
+
@region = args[:region] if args.key?(:region)
|
134
|
+
@s3_metadata = args[:s3_metadata] if args.key?(:s3_metadata)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
91
138
|
# An AwsS3Data resource can be a data source, but not a data sink. In an
|
92
139
|
# AwsS3Data resource, an object's name is the S3 object's key name.
|
93
140
|
class AwsS3Data
|
@@ -930,6 +977,50 @@ module Google
|
|
930
977
|
end
|
931
978
|
end
|
932
979
|
|
980
|
+
# S3CompatibleMetadata contains the metadata fields that apply to the basic
|
981
|
+
# types of S3-compatible data providers.
|
982
|
+
class S3CompatibleMetadata
|
983
|
+
include Google::Apis::Core::Hashable
|
984
|
+
|
985
|
+
# Specifies the authentication and authorization method used by the storage
|
986
|
+
# service. When not specified, Transfer Service will attempt to determine right
|
987
|
+
# auth method to use.
|
988
|
+
# Corresponds to the JSON property `authMethod`
|
989
|
+
# @return [String]
|
990
|
+
attr_accessor :auth_method
|
991
|
+
|
992
|
+
# The Listing API to use for discovering objects. When not specified, Transfer
|
993
|
+
# Service will attempt to determine the right API to use.
|
994
|
+
# Corresponds to the JSON property `listApi`
|
995
|
+
# @return [String]
|
996
|
+
attr_accessor :list_api
|
997
|
+
|
998
|
+
# Specifies the network protocol of the agent. When not specified, the default
|
999
|
+
# value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
|
1000
|
+
# Corresponds to the JSON property `protocol`
|
1001
|
+
# @return [String]
|
1002
|
+
attr_accessor :protocol
|
1003
|
+
|
1004
|
+
# Specifies the API request model used to call the storage service. When not
|
1005
|
+
# specified, the default value of RequestModel
|
1006
|
+
# REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
|
1007
|
+
# Corresponds to the JSON property `requestModel`
|
1008
|
+
# @return [String]
|
1009
|
+
attr_accessor :request_model
|
1010
|
+
|
1011
|
+
def initialize(**args)
|
1012
|
+
update!(**args)
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# Update properties of this object
|
1016
|
+
def update!(**args)
|
1017
|
+
@auth_method = args[:auth_method] if args.key?(:auth_method)
|
1018
|
+
@list_api = args[:list_api] if args.key?(:list_api)
|
1019
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
1020
|
+
@request_model = args[:request_model] if args.key?(:request_model)
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
933
1024
|
# Transfers can be scheduled to recur or to run just once.
|
934
1025
|
class Schedule
|
935
1026
|
include Google::Apis::Core::Hashable
|
@@ -1502,6 +1593,11 @@ module Google
|
|
1502
1593
|
class TransferSpec
|
1503
1594
|
include Google::Apis::Core::Hashable
|
1504
1595
|
|
1596
|
+
# An AwsS3CompatibleData resource.
|
1597
|
+
# Corresponds to the JSON property `awsS3CompatibleDataSource`
|
1598
|
+
# @return [Google::Apis::StoragetransferV1::AwsS3CompatibleData]
|
1599
|
+
attr_accessor :aws_s3_compatible_data_source
|
1600
|
+
|
1505
1601
|
# An AwsS3Data resource can be a data source, but not a data sink. In an
|
1506
1602
|
# AwsS3Data resource, an object's name is the S3 object's key name.
|
1507
1603
|
# Corresponds to the JSON property `awsS3DataSource`
|
@@ -1617,6 +1713,7 @@ module Google
|
|
1617
1713
|
|
1618
1714
|
# Update properties of this object
|
1619
1715
|
def update!(**args)
|
1716
|
+
@aws_s3_compatible_data_source = args[:aws_s3_compatible_data_source] if args.key?(:aws_s3_compatible_data_source)
|
1620
1717
|
@aws_s3_data_source = args[:aws_s3_data_source] if args.key?(:aws_s3_data_source)
|
1621
1718
|
@azure_blob_storage_data_source = args[:azure_blob_storage_data_source] if args.key?(:azure_blob_storage_data_source)
|
1622
1719
|
@gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module StoragetransferV1
|
18
18
|
# Version of the google-apis-storagetransfer_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.32.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220901"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AwsS3CompatibleData
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class AwsS3Data
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -178,6 +184,12 @@ module Google
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
179
185
|
end
|
180
186
|
|
187
|
+
class S3CompatibleMetadata
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
181
193
|
class Schedule
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
195
|
|
@@ -257,6 +269,18 @@ module Google
|
|
257
269
|
end
|
258
270
|
end
|
259
271
|
|
272
|
+
class AwsS3CompatibleData
|
273
|
+
# @private
|
274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
+
property :bucket_name, as: 'bucketName'
|
276
|
+
property :endpoint, as: 'endpoint'
|
277
|
+
property :path, as: 'path'
|
278
|
+
property :region, as: 'region'
|
279
|
+
property :s3_metadata, as: 's3Metadata', class: Google::Apis::StoragetransferV1::S3CompatibleMetadata, decorator: Google::Apis::StoragetransferV1::S3CompatibleMetadata::Representation
|
280
|
+
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
260
284
|
class AwsS3Data
|
261
285
|
# @private
|
262
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -465,6 +489,16 @@ module Google
|
|
465
489
|
end
|
466
490
|
end
|
467
491
|
|
492
|
+
class S3CompatibleMetadata
|
493
|
+
# @private
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
495
|
+
property :auth_method, as: 'authMethod'
|
496
|
+
property :list_api, as: 'listApi'
|
497
|
+
property :protocol, as: 'protocol'
|
498
|
+
property :request_model, as: 'requestModel'
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
468
502
|
class Schedule
|
469
503
|
# @private
|
470
504
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -590,6 +624,8 @@ module Google
|
|
590
624
|
class TransferSpec
|
591
625
|
# @private
|
592
626
|
class Representation < Google::Apis::Core::JsonRepresentation
|
627
|
+
property :aws_s3_compatible_data_source, as: 'awsS3CompatibleDataSource', class: Google::Apis::StoragetransferV1::AwsS3CompatibleData, decorator: Google::Apis::StoragetransferV1::AwsS3CompatibleData::Representation
|
628
|
+
|
593
629
|
property :aws_s3_data_source, as: 'awsS3DataSource', class: Google::Apis::StoragetransferV1::AwsS3Data, decorator: Google::Apis::StoragetransferV1::AwsS3Data::Representation
|
594
630
|
|
595
631
|
property :azure_blob_storage_data_source, as: 'azureBlobStorageDataSource', class: Google::Apis::StoragetransferV1::AzureBlobStorageData, decorator: Google::Apis::StoragetransferV1::AzureBlobStorageData::Representation
|
@@ -302,6 +302,39 @@ module Google
|
|
302
302
|
execute_or_queue_command(command, &block)
|
303
303
|
end
|
304
304
|
|
305
|
+
# Deletes a transfer job. Deleting a transfer job sets its status to DELETED.
|
306
|
+
# @param [String] job_name
|
307
|
+
# Required. The job to delete.
|
308
|
+
# @param [String] project_id
|
309
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
310
|
+
# @param [String] fields
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
312
|
+
# @param [String] quota_user
|
313
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
314
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
315
|
+
# @param [Google::Apis::RequestOptions] options
|
316
|
+
# Request-specific options
|
317
|
+
#
|
318
|
+
# @yield [result, err] Result & error if block supplied
|
319
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
|
320
|
+
# @yieldparam err [StandardError] error object if request failed
|
321
|
+
#
|
322
|
+
# @return [Google::Apis::StoragetransferV1::Empty]
|
323
|
+
#
|
324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
+
def delete_transfer_job(job_name, project_id, fields: nil, quota_user: nil, options: nil, &block)
|
328
|
+
command = make_simple_command(:delete, 'v1/{+jobName}', options)
|
329
|
+
command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
|
330
|
+
command.response_class = Google::Apis::StoragetransferV1::Empty
|
331
|
+
command.params['jobName'] = job_name unless job_name.nil?
|
332
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
333
|
+
command.query['fields'] = fields unless fields.nil?
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
execute_or_queue_command(command, &block)
|
336
|
+
end
|
337
|
+
|
305
338
|
# Gets a transfer job.
|
306
339
|
# @param [String] job_name
|
307
340
|
# Required. The job to get.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-storagetransfer_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.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-
|
11
|
+
date: 2022-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
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.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagetransfer_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.32.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagetransfer_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|