aws-sdk-datasync 1.49.0 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-datasync/client.rb +114 -52
- data/lib/aws-sdk-datasync/client_api.rb +5 -0
- data/lib/aws-sdk-datasync/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-datasync/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-datasync/endpoints.rb +631 -0
- data/lib/aws-sdk-datasync/plugins/endpoints.rb +156 -0
- data/lib/aws-sdk-datasync/types.rb +63 -29
- data/lib/aws-sdk-datasync.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,156 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::DataSync
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::DataSync::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::DataSync::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::DataSync::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :cancel_task_execution
|
60
|
+
Aws::DataSync::Endpoints::CancelTaskExecution.build(context)
|
61
|
+
when :create_agent
|
62
|
+
Aws::DataSync::Endpoints::CreateAgent.build(context)
|
63
|
+
when :create_location_efs
|
64
|
+
Aws::DataSync::Endpoints::CreateLocationEfs.build(context)
|
65
|
+
when :create_location_fsx_lustre
|
66
|
+
Aws::DataSync::Endpoints::CreateLocationFsxLustre.build(context)
|
67
|
+
when :create_location_fsx_ontap
|
68
|
+
Aws::DataSync::Endpoints::CreateLocationFsxOntap.build(context)
|
69
|
+
when :create_location_fsx_open_zfs
|
70
|
+
Aws::DataSync::Endpoints::CreateLocationFsxOpenZfs.build(context)
|
71
|
+
when :create_location_fsx_windows
|
72
|
+
Aws::DataSync::Endpoints::CreateLocationFsxWindows.build(context)
|
73
|
+
when :create_location_hdfs
|
74
|
+
Aws::DataSync::Endpoints::CreateLocationHdfs.build(context)
|
75
|
+
when :create_location_nfs
|
76
|
+
Aws::DataSync::Endpoints::CreateLocationNfs.build(context)
|
77
|
+
when :create_location_object_storage
|
78
|
+
Aws::DataSync::Endpoints::CreateLocationObjectStorage.build(context)
|
79
|
+
when :create_location_s3
|
80
|
+
Aws::DataSync::Endpoints::CreateLocationS3.build(context)
|
81
|
+
when :create_location_smb
|
82
|
+
Aws::DataSync::Endpoints::CreateLocationSmb.build(context)
|
83
|
+
when :create_task
|
84
|
+
Aws::DataSync::Endpoints::CreateTask.build(context)
|
85
|
+
when :delete_agent
|
86
|
+
Aws::DataSync::Endpoints::DeleteAgent.build(context)
|
87
|
+
when :delete_location
|
88
|
+
Aws::DataSync::Endpoints::DeleteLocation.build(context)
|
89
|
+
when :delete_task
|
90
|
+
Aws::DataSync::Endpoints::DeleteTask.build(context)
|
91
|
+
when :describe_agent
|
92
|
+
Aws::DataSync::Endpoints::DescribeAgent.build(context)
|
93
|
+
when :describe_location_efs
|
94
|
+
Aws::DataSync::Endpoints::DescribeLocationEfs.build(context)
|
95
|
+
when :describe_location_fsx_lustre
|
96
|
+
Aws::DataSync::Endpoints::DescribeLocationFsxLustre.build(context)
|
97
|
+
when :describe_location_fsx_ontap
|
98
|
+
Aws::DataSync::Endpoints::DescribeLocationFsxOntap.build(context)
|
99
|
+
when :describe_location_fsx_open_zfs
|
100
|
+
Aws::DataSync::Endpoints::DescribeLocationFsxOpenZfs.build(context)
|
101
|
+
when :describe_location_fsx_windows
|
102
|
+
Aws::DataSync::Endpoints::DescribeLocationFsxWindows.build(context)
|
103
|
+
when :describe_location_hdfs
|
104
|
+
Aws::DataSync::Endpoints::DescribeLocationHdfs.build(context)
|
105
|
+
when :describe_location_nfs
|
106
|
+
Aws::DataSync::Endpoints::DescribeLocationNfs.build(context)
|
107
|
+
when :describe_location_object_storage
|
108
|
+
Aws::DataSync::Endpoints::DescribeLocationObjectStorage.build(context)
|
109
|
+
when :describe_location_s3
|
110
|
+
Aws::DataSync::Endpoints::DescribeLocationS3.build(context)
|
111
|
+
when :describe_location_smb
|
112
|
+
Aws::DataSync::Endpoints::DescribeLocationSmb.build(context)
|
113
|
+
when :describe_task
|
114
|
+
Aws::DataSync::Endpoints::DescribeTask.build(context)
|
115
|
+
when :describe_task_execution
|
116
|
+
Aws::DataSync::Endpoints::DescribeTaskExecution.build(context)
|
117
|
+
when :list_agents
|
118
|
+
Aws::DataSync::Endpoints::ListAgents.build(context)
|
119
|
+
when :list_locations
|
120
|
+
Aws::DataSync::Endpoints::ListLocations.build(context)
|
121
|
+
when :list_tags_for_resource
|
122
|
+
Aws::DataSync::Endpoints::ListTagsForResource.build(context)
|
123
|
+
when :list_task_executions
|
124
|
+
Aws::DataSync::Endpoints::ListTaskExecutions.build(context)
|
125
|
+
when :list_tasks
|
126
|
+
Aws::DataSync::Endpoints::ListTasks.build(context)
|
127
|
+
when :start_task_execution
|
128
|
+
Aws::DataSync::Endpoints::StartTaskExecution.build(context)
|
129
|
+
when :tag_resource
|
130
|
+
Aws::DataSync::Endpoints::TagResource.build(context)
|
131
|
+
when :untag_resource
|
132
|
+
Aws::DataSync::Endpoints::UntagResource.build(context)
|
133
|
+
when :update_agent
|
134
|
+
Aws::DataSync::Endpoints::UpdateAgent.build(context)
|
135
|
+
when :update_location_hdfs
|
136
|
+
Aws::DataSync::Endpoints::UpdateLocationHdfs.build(context)
|
137
|
+
when :update_location_nfs
|
138
|
+
Aws::DataSync::Endpoints::UpdateLocationNfs.build(context)
|
139
|
+
when :update_location_object_storage
|
140
|
+
Aws::DataSync::Endpoints::UpdateLocationObjectStorage.build(context)
|
141
|
+
when :update_location_smb
|
142
|
+
Aws::DataSync::Endpoints::UpdateLocationSmb.build(context)
|
143
|
+
when :update_task
|
144
|
+
Aws::DataSync::Endpoints::UpdateTask.build(context)
|
145
|
+
when :update_task_execution
|
146
|
+
Aws::DataSync::Endpoints::UpdateTaskExecution.build(context)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
def add_handlers(handlers, _config)
|
152
|
+
handlers.add(Handler, step: :build, priority: 75)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -50,7 +50,7 @@ module Aws::DataSync
|
|
50
50
|
# }
|
51
51
|
#
|
52
52
|
# @!attribute [rw] task_execution_arn
|
53
|
-
# The Amazon Resource Name (ARN) of the task execution to
|
53
|
+
# The Amazon Resource Name (ARN) of the task execution to stop.
|
54
54
|
# @return [String]
|
55
55
|
#
|
56
56
|
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CancelTaskExecutionRequest AWS API Documentation
|
@@ -927,6 +927,7 @@ module Aws::DataSync
|
|
927
927
|
# value: "TagValue",
|
928
928
|
# },
|
929
929
|
# ],
|
930
|
+
# server_certificate: "data",
|
930
931
|
# }
|
931
932
|
#
|
932
933
|
# @!attribute [rw] server_hostname
|
@@ -979,6 +980,16 @@ module Aws::DataSync
|
|
979
980
|
# location.
|
980
981
|
# @return [Array<Types::TagListEntry>]
|
981
982
|
#
|
983
|
+
# @!attribute [rw] server_certificate
|
984
|
+
# Specifies a certificate to authenticate with an object storage
|
985
|
+
# system that uses a private or self-signed certificate authority
|
986
|
+
# (CA). You must specify a Base64-encoded `.pem` file (for example,
|
987
|
+
# `file:///home/user/.ssh/storage_sys_certificate.pem`). The
|
988
|
+
# certificate can be up to 32768 bytes (before Base64 encoding).
|
989
|
+
#
|
990
|
+
# To use this parameter, configure `ServerProtocol` to `HTTPS`.
|
991
|
+
# @return [String]
|
992
|
+
#
|
982
993
|
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationObjectStorageRequest AWS API Documentation
|
983
994
|
#
|
984
995
|
class CreateLocationObjectStorageRequest < Struct.new(
|
@@ -990,7 +1001,8 @@ module Aws::DataSync
|
|
990
1001
|
:access_key,
|
991
1002
|
:secret_key,
|
992
1003
|
:agent_arns,
|
993
|
-
:tags
|
1004
|
+
:tags,
|
1005
|
+
:server_certificate)
|
994
1006
|
SENSITIVE = [:secret_key]
|
995
1007
|
include Aws::Structure
|
996
1008
|
end
|
@@ -2021,7 +2033,7 @@ module Aws::DataSync
|
|
2021
2033
|
#
|
2022
2034
|
# @!attribute [rw] access_key
|
2023
2035
|
# The access key (for example, a user name) required to authenticate
|
2024
|
-
# with the object storage
|
2036
|
+
# with the object storage system.
|
2025
2037
|
# @return [String]
|
2026
2038
|
#
|
2027
2039
|
# @!attribute [rw] server_port
|
@@ -2030,7 +2042,7 @@ module Aws::DataSync
|
|
2030
2042
|
# @return [Integer]
|
2031
2043
|
#
|
2032
2044
|
# @!attribute [rw] server_protocol
|
2033
|
-
# The protocol that your object storage
|
2045
|
+
# The protocol that your object storage system uses to communicate.
|
2034
2046
|
# @return [String]
|
2035
2047
|
#
|
2036
2048
|
# @!attribute [rw] agent_arns
|
@@ -2042,6 +2054,11 @@ module Aws::DataSync
|
|
2042
2054
|
# The time that the location was created.
|
2043
2055
|
# @return [Time]
|
2044
2056
|
#
|
2057
|
+
# @!attribute [rw] server_certificate
|
2058
|
+
# The self-signed certificate that DataSync uses to securely
|
2059
|
+
# authenticate with your object storage system.
|
2060
|
+
# @return [String]
|
2061
|
+
#
|
2045
2062
|
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationObjectStorageResponse AWS API Documentation
|
2046
2063
|
#
|
2047
2064
|
class DescribeLocationObjectStorageResponse < Struct.new(
|
@@ -2051,7 +2068,8 @@ module Aws::DataSync
|
|
2051
2068
|
:server_port,
|
2052
2069
|
:server_protocol,
|
2053
2070
|
:agent_arns,
|
2054
|
-
:creation_time
|
2071
|
+
:creation_time,
|
2072
|
+
:server_certificate)
|
2055
2073
|
SENSITIVE = []
|
2056
2074
|
include Aws::Structure
|
2057
2075
|
end
|
@@ -2327,6 +2345,12 @@ module Aws::DataSync
|
|
2327
2345
|
# The result of the task execution.
|
2328
2346
|
# @return [Types::TaskExecutionResultDetail]
|
2329
2347
|
#
|
2348
|
+
# @!attribute [rw] bytes_compressed
|
2349
|
+
# The physical number of bytes transferred over the network after
|
2350
|
+
# compression was applied. In most cases, this number is less than
|
2351
|
+
# `BytesTransferred`.
|
2352
|
+
# @return [Integer]
|
2353
|
+
#
|
2330
2354
|
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskExecutionResponse AWS API Documentation
|
2331
2355
|
#
|
2332
2356
|
class DescribeTaskExecutionResponse < Struct.new(
|
@@ -2341,7 +2365,8 @@ module Aws::DataSync
|
|
2341
2365
|
:files_transferred,
|
2342
2366
|
:bytes_written,
|
2343
2367
|
:bytes_transferred,
|
2344
|
-
:result
|
2368
|
+
:result,
|
2369
|
+
:bytes_compressed)
|
2345
2370
|
SENSITIVE = []
|
2346
2371
|
include Aws::Structure
|
2347
2372
|
end
|
@@ -4339,51 +4364,59 @@ module Aws::DataSync
|
|
4339
4364
|
# access_key: "ObjectStorageAccessKey",
|
4340
4365
|
# secret_key: "ObjectStorageSecretKey",
|
4341
4366
|
# agent_arns: ["AgentArn"],
|
4367
|
+
# server_certificate: "data",
|
4342
4368
|
# }
|
4343
4369
|
#
|
4344
4370
|
# @!attribute [rw] location_arn
|
4345
|
-
#
|
4346
|
-
#
|
4371
|
+
# Specifies the ARN of the object storage system location that you're
|
4372
|
+
# updating.
|
4347
4373
|
# @return [String]
|
4348
4374
|
#
|
4349
4375
|
# @!attribute [rw] server_port
|
4350
|
-
#
|
4351
|
-
#
|
4352
|
-
# 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your
|
4353
|
-
# self-managed object storage server requires one.
|
4376
|
+
# Specifies the port that your object storage server accepts inbound
|
4377
|
+
# network traffic on (for example, port 443).
|
4354
4378
|
# @return [Integer]
|
4355
4379
|
#
|
4356
4380
|
# @!attribute [rw] server_protocol
|
4357
|
-
#
|
4358
|
-
#
|
4381
|
+
# Specifies the protocol that your object storage server uses to
|
4382
|
+
# communicate.
|
4359
4383
|
# @return [String]
|
4360
4384
|
#
|
4361
4385
|
# @!attribute [rw] subdirectory
|
4362
|
-
#
|
4363
|
-
#
|
4386
|
+
# Specifies the object prefix for your object storage server. If this
|
4387
|
+
# is a source location, DataSync only copies objects with this prefix.
|
4388
|
+
# If this is a destination location, DataSync writes all objects with
|
4389
|
+
# this prefix.
|
4364
4390
|
# @return [String]
|
4365
4391
|
#
|
4366
4392
|
# @!attribute [rw] access_key
|
4367
|
-
#
|
4368
|
-
#
|
4369
|
-
# storage requires a user name and password to authenticate, use
|
4370
|
-
# `AccessKey` and `SecretKey` to provide the user name and password,
|
4371
|
-
# respectively.
|
4393
|
+
# Specifies the access key (for example, a user name) if credentials
|
4394
|
+
# are required to authenticate with the object storage server.
|
4372
4395
|
# @return [String]
|
4373
4396
|
#
|
4374
4397
|
# @!attribute [rw] secret_key
|
4375
|
-
#
|
4376
|
-
#
|
4377
|
-
# storage requires a user name and password to authenticate, use
|
4378
|
-
# `AccessKey` and `SecretKey` to provide the user name and password,
|
4379
|
-
# respectively.
|
4398
|
+
# Specifies the secret key (for example, a password) if credentials
|
4399
|
+
# are required to authenticate with the object storage server.
|
4380
4400
|
# @return [String]
|
4381
4401
|
#
|
4382
4402
|
# @!attribute [rw] agent_arns
|
4383
|
-
#
|
4384
|
-
#
|
4403
|
+
# Specifies the Amazon Resource Names (ARNs) of the DataSync agents
|
4404
|
+
# that can securely connect with your location.
|
4385
4405
|
# @return [Array<String>]
|
4386
4406
|
#
|
4407
|
+
# @!attribute [rw] server_certificate
|
4408
|
+
# Specifies a certificate to authenticate with an object storage
|
4409
|
+
# system that uses a private or self-signed certificate authority
|
4410
|
+
# (CA). You must specify a Base64-encoded `.pem` file (for example,
|
4411
|
+
# `file:///home/user/.ssh/storage_sys_certificate.pem`). The
|
4412
|
+
# certificate can be up to 32768 bytes (before Base64 encoding).
|
4413
|
+
#
|
4414
|
+
# To use this parameter, configure `ServerProtocol` to `HTTPS`.
|
4415
|
+
#
|
4416
|
+
# Updating the certificate doesn't interfere with tasks that you have
|
4417
|
+
# in progress.
|
4418
|
+
# @return [String]
|
4419
|
+
#
|
4387
4420
|
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateLocationObjectStorageRequest AWS API Documentation
|
4388
4421
|
#
|
4389
4422
|
class UpdateLocationObjectStorageRequest < Struct.new(
|
@@ -4393,7 +4426,8 @@ module Aws::DataSync
|
|
4393
4426
|
:subdirectory,
|
4394
4427
|
:access_key,
|
4395
4428
|
:secret_key,
|
4396
|
-
:agent_arns
|
4429
|
+
:agent_arns,
|
4430
|
+
:server_certificate)
|
4397
4431
|
SENSITIVE = [:secret_key]
|
4398
4432
|
include Aws::Structure
|
4399
4433
|
end
|
data/lib/aws-sdk-datasync.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-datasync/types'
|
15
15
|
require_relative 'aws-sdk-datasync/client_api'
|
16
|
+
require_relative 'aws-sdk-datasync/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-datasync/client'
|
17
18
|
require_relative 'aws-sdk-datasync/errors'
|
18
19
|
require_relative 'aws-sdk-datasync/resource'
|
20
|
+
require_relative 'aws-sdk-datasync/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-datasync/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-datasync/endpoints'
|
19
23
|
require_relative 'aws-sdk-datasync/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS DataSync. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-datasync/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::DataSync
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.51.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-datasync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.51.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-datasync/client.rb
|
60
60
|
- lib/aws-sdk-datasync/client_api.rb
|
61
61
|
- lib/aws-sdk-datasync/customizations.rb
|
62
|
+
- lib/aws-sdk-datasync/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-datasync/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-datasync/endpoints.rb
|
62
65
|
- lib/aws-sdk-datasync/errors.rb
|
66
|
+
- lib/aws-sdk-datasync/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-datasync/resource.rb
|
64
68
|
- lib/aws-sdk-datasync/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|