aws-sdk-storagegateway 1.68.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,248 @@
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::StorageGateway
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::StorageGateway::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::StorageGateway::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::StorageGateway::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 :activate_gateway
60
+ Aws::StorageGateway::Endpoints::ActivateGateway.build(context)
61
+ when :add_cache
62
+ Aws::StorageGateway::Endpoints::AddCache.build(context)
63
+ when :add_tags_to_resource
64
+ Aws::StorageGateway::Endpoints::AddTagsToResource.build(context)
65
+ when :add_upload_buffer
66
+ Aws::StorageGateway::Endpoints::AddUploadBuffer.build(context)
67
+ when :add_working_storage
68
+ Aws::StorageGateway::Endpoints::AddWorkingStorage.build(context)
69
+ when :assign_tape_pool
70
+ Aws::StorageGateway::Endpoints::AssignTapePool.build(context)
71
+ when :associate_file_system
72
+ Aws::StorageGateway::Endpoints::AssociateFileSystem.build(context)
73
+ when :attach_volume
74
+ Aws::StorageGateway::Endpoints::AttachVolume.build(context)
75
+ when :cancel_archival
76
+ Aws::StorageGateway::Endpoints::CancelArchival.build(context)
77
+ when :cancel_retrieval
78
+ Aws::StorageGateway::Endpoints::CancelRetrieval.build(context)
79
+ when :create_cached_iscsi_volume
80
+ Aws::StorageGateway::Endpoints::CreateCachediSCSIVolume.build(context)
81
+ when :create_nfs_file_share
82
+ Aws::StorageGateway::Endpoints::CreateNFSFileShare.build(context)
83
+ when :create_smb_file_share
84
+ Aws::StorageGateway::Endpoints::CreateSMBFileShare.build(context)
85
+ when :create_snapshot
86
+ Aws::StorageGateway::Endpoints::CreateSnapshot.build(context)
87
+ when :create_snapshot_from_volume_recovery_point
88
+ Aws::StorageGateway::Endpoints::CreateSnapshotFromVolumeRecoveryPoint.build(context)
89
+ when :create_stored_iscsi_volume
90
+ Aws::StorageGateway::Endpoints::CreateStorediSCSIVolume.build(context)
91
+ when :create_tape_pool
92
+ Aws::StorageGateway::Endpoints::CreateTapePool.build(context)
93
+ when :create_tape_with_barcode
94
+ Aws::StorageGateway::Endpoints::CreateTapeWithBarcode.build(context)
95
+ when :create_tapes
96
+ Aws::StorageGateway::Endpoints::CreateTapes.build(context)
97
+ when :delete_automatic_tape_creation_policy
98
+ Aws::StorageGateway::Endpoints::DeleteAutomaticTapeCreationPolicy.build(context)
99
+ when :delete_bandwidth_rate_limit
100
+ Aws::StorageGateway::Endpoints::DeleteBandwidthRateLimit.build(context)
101
+ when :delete_chap_credentials
102
+ Aws::StorageGateway::Endpoints::DeleteChapCredentials.build(context)
103
+ when :delete_file_share
104
+ Aws::StorageGateway::Endpoints::DeleteFileShare.build(context)
105
+ when :delete_gateway
106
+ Aws::StorageGateway::Endpoints::DeleteGateway.build(context)
107
+ when :delete_snapshot_schedule
108
+ Aws::StorageGateway::Endpoints::DeleteSnapshotSchedule.build(context)
109
+ when :delete_tape
110
+ Aws::StorageGateway::Endpoints::DeleteTape.build(context)
111
+ when :delete_tape_archive
112
+ Aws::StorageGateway::Endpoints::DeleteTapeArchive.build(context)
113
+ when :delete_tape_pool
114
+ Aws::StorageGateway::Endpoints::DeleteTapePool.build(context)
115
+ when :delete_volume
116
+ Aws::StorageGateway::Endpoints::DeleteVolume.build(context)
117
+ when :describe_availability_monitor_test
118
+ Aws::StorageGateway::Endpoints::DescribeAvailabilityMonitorTest.build(context)
119
+ when :describe_bandwidth_rate_limit
120
+ Aws::StorageGateway::Endpoints::DescribeBandwidthRateLimit.build(context)
121
+ when :describe_bandwidth_rate_limit_schedule
122
+ Aws::StorageGateway::Endpoints::DescribeBandwidthRateLimitSchedule.build(context)
123
+ when :describe_cache
124
+ Aws::StorageGateway::Endpoints::DescribeCache.build(context)
125
+ when :describe_cached_iscsi_volumes
126
+ Aws::StorageGateway::Endpoints::DescribeCachediSCSIVolumes.build(context)
127
+ when :describe_chap_credentials
128
+ Aws::StorageGateway::Endpoints::DescribeChapCredentials.build(context)
129
+ when :describe_file_system_associations
130
+ Aws::StorageGateway::Endpoints::DescribeFileSystemAssociations.build(context)
131
+ when :describe_gateway_information
132
+ Aws::StorageGateway::Endpoints::DescribeGatewayInformation.build(context)
133
+ when :describe_maintenance_start_time
134
+ Aws::StorageGateway::Endpoints::DescribeMaintenanceStartTime.build(context)
135
+ when :describe_nfs_file_shares
136
+ Aws::StorageGateway::Endpoints::DescribeNFSFileShares.build(context)
137
+ when :describe_smb_file_shares
138
+ Aws::StorageGateway::Endpoints::DescribeSMBFileShares.build(context)
139
+ when :describe_smb_settings
140
+ Aws::StorageGateway::Endpoints::DescribeSMBSettings.build(context)
141
+ when :describe_snapshot_schedule
142
+ Aws::StorageGateway::Endpoints::DescribeSnapshotSchedule.build(context)
143
+ when :describe_stored_iscsi_volumes
144
+ Aws::StorageGateway::Endpoints::DescribeStorediSCSIVolumes.build(context)
145
+ when :describe_tape_archives
146
+ Aws::StorageGateway::Endpoints::DescribeTapeArchives.build(context)
147
+ when :describe_tape_recovery_points
148
+ Aws::StorageGateway::Endpoints::DescribeTapeRecoveryPoints.build(context)
149
+ when :describe_tapes
150
+ Aws::StorageGateway::Endpoints::DescribeTapes.build(context)
151
+ when :describe_upload_buffer
152
+ Aws::StorageGateway::Endpoints::DescribeUploadBuffer.build(context)
153
+ when :describe_vtl_devices
154
+ Aws::StorageGateway::Endpoints::DescribeVTLDevices.build(context)
155
+ when :describe_working_storage
156
+ Aws::StorageGateway::Endpoints::DescribeWorkingStorage.build(context)
157
+ when :detach_volume
158
+ Aws::StorageGateway::Endpoints::DetachVolume.build(context)
159
+ when :disable_gateway
160
+ Aws::StorageGateway::Endpoints::DisableGateway.build(context)
161
+ when :disassociate_file_system
162
+ Aws::StorageGateway::Endpoints::DisassociateFileSystem.build(context)
163
+ when :join_domain
164
+ Aws::StorageGateway::Endpoints::JoinDomain.build(context)
165
+ when :list_automatic_tape_creation_policies
166
+ Aws::StorageGateway::Endpoints::ListAutomaticTapeCreationPolicies.build(context)
167
+ when :list_file_shares
168
+ Aws::StorageGateway::Endpoints::ListFileShares.build(context)
169
+ when :list_file_system_associations
170
+ Aws::StorageGateway::Endpoints::ListFileSystemAssociations.build(context)
171
+ when :list_gateways
172
+ Aws::StorageGateway::Endpoints::ListGateways.build(context)
173
+ when :list_local_disks
174
+ Aws::StorageGateway::Endpoints::ListLocalDisks.build(context)
175
+ when :list_tags_for_resource
176
+ Aws::StorageGateway::Endpoints::ListTagsForResource.build(context)
177
+ when :list_tape_pools
178
+ Aws::StorageGateway::Endpoints::ListTapePools.build(context)
179
+ when :list_tapes
180
+ Aws::StorageGateway::Endpoints::ListTapes.build(context)
181
+ when :list_volume_initiators
182
+ Aws::StorageGateway::Endpoints::ListVolumeInitiators.build(context)
183
+ when :list_volume_recovery_points
184
+ Aws::StorageGateway::Endpoints::ListVolumeRecoveryPoints.build(context)
185
+ when :list_volumes
186
+ Aws::StorageGateway::Endpoints::ListVolumes.build(context)
187
+ when :notify_when_uploaded
188
+ Aws::StorageGateway::Endpoints::NotifyWhenUploaded.build(context)
189
+ when :refresh_cache
190
+ Aws::StorageGateway::Endpoints::RefreshCache.build(context)
191
+ when :remove_tags_from_resource
192
+ Aws::StorageGateway::Endpoints::RemoveTagsFromResource.build(context)
193
+ when :reset_cache
194
+ Aws::StorageGateway::Endpoints::ResetCache.build(context)
195
+ when :retrieve_tape_archive
196
+ Aws::StorageGateway::Endpoints::RetrieveTapeArchive.build(context)
197
+ when :retrieve_tape_recovery_point
198
+ Aws::StorageGateway::Endpoints::RetrieveTapeRecoveryPoint.build(context)
199
+ when :set_local_console_password
200
+ Aws::StorageGateway::Endpoints::SetLocalConsolePassword.build(context)
201
+ when :set_smb_guest_password
202
+ Aws::StorageGateway::Endpoints::SetSMBGuestPassword.build(context)
203
+ when :shutdown_gateway
204
+ Aws::StorageGateway::Endpoints::ShutdownGateway.build(context)
205
+ when :start_availability_monitor_test
206
+ Aws::StorageGateway::Endpoints::StartAvailabilityMonitorTest.build(context)
207
+ when :start_gateway
208
+ Aws::StorageGateway::Endpoints::StartGateway.build(context)
209
+ when :update_automatic_tape_creation_policy
210
+ Aws::StorageGateway::Endpoints::UpdateAutomaticTapeCreationPolicy.build(context)
211
+ when :update_bandwidth_rate_limit
212
+ Aws::StorageGateway::Endpoints::UpdateBandwidthRateLimit.build(context)
213
+ when :update_bandwidth_rate_limit_schedule
214
+ Aws::StorageGateway::Endpoints::UpdateBandwidthRateLimitSchedule.build(context)
215
+ when :update_chap_credentials
216
+ Aws::StorageGateway::Endpoints::UpdateChapCredentials.build(context)
217
+ when :update_file_system_association
218
+ Aws::StorageGateway::Endpoints::UpdateFileSystemAssociation.build(context)
219
+ when :update_gateway_information
220
+ Aws::StorageGateway::Endpoints::UpdateGatewayInformation.build(context)
221
+ when :update_gateway_software_now
222
+ Aws::StorageGateway::Endpoints::UpdateGatewaySoftwareNow.build(context)
223
+ when :update_maintenance_start_time
224
+ Aws::StorageGateway::Endpoints::UpdateMaintenanceStartTime.build(context)
225
+ when :update_nfs_file_share
226
+ Aws::StorageGateway::Endpoints::UpdateNFSFileShare.build(context)
227
+ when :update_smb_file_share
228
+ Aws::StorageGateway::Endpoints::UpdateSMBFileShare.build(context)
229
+ when :update_smb_file_share_visibility
230
+ Aws::StorageGateway::Endpoints::UpdateSMBFileShareVisibility.build(context)
231
+ when :update_smb_local_groups
232
+ Aws::StorageGateway::Endpoints::UpdateSMBLocalGroups.build(context)
233
+ when :update_smb_security_strategy
234
+ Aws::StorageGateway::Endpoints::UpdateSMBSecurityStrategy.build(context)
235
+ when :update_snapshot_schedule
236
+ Aws::StorageGateway::Endpoints::UpdateSnapshotSchedule.build(context)
237
+ when :update_vtl_device_type
238
+ Aws::StorageGateway::Endpoints::UpdateVTLDeviceType.build(context)
239
+ end
240
+ end
241
+ end
242
+
243
+ def add_handlers(handlers, _config)
244
+ handlers.add(Handler, step: :build, priority: 75)
245
+ end
246
+ end
247
+ end
248
+ end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-storagegateway/types'
15
15
  require_relative 'aws-sdk-storagegateway/client_api'
16
+ require_relative 'aws-sdk-storagegateway/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-storagegateway/client'
17
18
  require_relative 'aws-sdk-storagegateway/errors'
18
19
  require_relative 'aws-sdk-storagegateway/resource'
20
+ require_relative 'aws-sdk-storagegateway/endpoint_parameters'
21
+ require_relative 'aws-sdk-storagegateway/endpoint_provider'
22
+ require_relative 'aws-sdk-storagegateway/endpoints'
19
23
  require_relative 'aws-sdk-storagegateway/customizations'
20
24
 
21
25
  # This module provides support for AWS Storage Gateway. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-storagegateway/customizations'
48
52
  # @!group service
49
53
  module Aws::StorageGateway
50
54
 
51
- GEM_VERSION = '1.68.0'
55
+ GEM_VERSION = '1.69.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-storagegateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.68.0
4
+ version: 1.69.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-04-21 00:00:00.000000000 Z
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.127.0
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.127.0
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-storagegateway/client.rb
60
60
  - lib/aws-sdk-storagegateway/client_api.rb
61
61
  - lib/aws-sdk-storagegateway/customizations.rb
62
+ - lib/aws-sdk-storagegateway/endpoint_parameters.rb
63
+ - lib/aws-sdk-storagegateway/endpoint_provider.rb
64
+ - lib/aws-sdk-storagegateway/endpoints.rb
62
65
  - lib/aws-sdk-storagegateway/errors.rb
66
+ - lib/aws-sdk-storagegateway/plugins/endpoints.rb
63
67
  - lib/aws-sdk-storagegateway/resource.rb
64
68
  - lib/aws-sdk-storagegateway/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby