aws-sdk-devicefarm 1.52.0 → 1.53.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,222 @@
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::DeviceFarm
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::DeviceFarm::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::DeviceFarm::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::DeviceFarm::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 :create_device_pool
60
+ Aws::DeviceFarm::Endpoints::CreateDevicePool.build(context)
61
+ when :create_instance_profile
62
+ Aws::DeviceFarm::Endpoints::CreateInstanceProfile.build(context)
63
+ when :create_network_profile
64
+ Aws::DeviceFarm::Endpoints::CreateNetworkProfile.build(context)
65
+ when :create_project
66
+ Aws::DeviceFarm::Endpoints::CreateProject.build(context)
67
+ when :create_remote_access_session
68
+ Aws::DeviceFarm::Endpoints::CreateRemoteAccessSession.build(context)
69
+ when :create_test_grid_project
70
+ Aws::DeviceFarm::Endpoints::CreateTestGridProject.build(context)
71
+ when :create_test_grid_url
72
+ Aws::DeviceFarm::Endpoints::CreateTestGridUrl.build(context)
73
+ when :create_upload
74
+ Aws::DeviceFarm::Endpoints::CreateUpload.build(context)
75
+ when :create_vpce_configuration
76
+ Aws::DeviceFarm::Endpoints::CreateVPCEConfiguration.build(context)
77
+ when :delete_device_pool
78
+ Aws::DeviceFarm::Endpoints::DeleteDevicePool.build(context)
79
+ when :delete_instance_profile
80
+ Aws::DeviceFarm::Endpoints::DeleteInstanceProfile.build(context)
81
+ when :delete_network_profile
82
+ Aws::DeviceFarm::Endpoints::DeleteNetworkProfile.build(context)
83
+ when :delete_project
84
+ Aws::DeviceFarm::Endpoints::DeleteProject.build(context)
85
+ when :delete_remote_access_session
86
+ Aws::DeviceFarm::Endpoints::DeleteRemoteAccessSession.build(context)
87
+ when :delete_run
88
+ Aws::DeviceFarm::Endpoints::DeleteRun.build(context)
89
+ when :delete_test_grid_project
90
+ Aws::DeviceFarm::Endpoints::DeleteTestGridProject.build(context)
91
+ when :delete_upload
92
+ Aws::DeviceFarm::Endpoints::DeleteUpload.build(context)
93
+ when :delete_vpce_configuration
94
+ Aws::DeviceFarm::Endpoints::DeleteVPCEConfiguration.build(context)
95
+ when :get_account_settings
96
+ Aws::DeviceFarm::Endpoints::GetAccountSettings.build(context)
97
+ when :get_device
98
+ Aws::DeviceFarm::Endpoints::GetDevice.build(context)
99
+ when :get_device_instance
100
+ Aws::DeviceFarm::Endpoints::GetDeviceInstance.build(context)
101
+ when :get_device_pool
102
+ Aws::DeviceFarm::Endpoints::GetDevicePool.build(context)
103
+ when :get_device_pool_compatibility
104
+ Aws::DeviceFarm::Endpoints::GetDevicePoolCompatibility.build(context)
105
+ when :get_instance_profile
106
+ Aws::DeviceFarm::Endpoints::GetInstanceProfile.build(context)
107
+ when :get_job
108
+ Aws::DeviceFarm::Endpoints::GetJob.build(context)
109
+ when :get_network_profile
110
+ Aws::DeviceFarm::Endpoints::GetNetworkProfile.build(context)
111
+ when :get_offering_status
112
+ Aws::DeviceFarm::Endpoints::GetOfferingStatus.build(context)
113
+ when :get_project
114
+ Aws::DeviceFarm::Endpoints::GetProject.build(context)
115
+ when :get_remote_access_session
116
+ Aws::DeviceFarm::Endpoints::GetRemoteAccessSession.build(context)
117
+ when :get_run
118
+ Aws::DeviceFarm::Endpoints::GetRun.build(context)
119
+ when :get_suite
120
+ Aws::DeviceFarm::Endpoints::GetSuite.build(context)
121
+ when :get_test
122
+ Aws::DeviceFarm::Endpoints::GetTest.build(context)
123
+ when :get_test_grid_project
124
+ Aws::DeviceFarm::Endpoints::GetTestGridProject.build(context)
125
+ when :get_test_grid_session
126
+ Aws::DeviceFarm::Endpoints::GetTestGridSession.build(context)
127
+ when :get_upload
128
+ Aws::DeviceFarm::Endpoints::GetUpload.build(context)
129
+ when :get_vpce_configuration
130
+ Aws::DeviceFarm::Endpoints::GetVPCEConfiguration.build(context)
131
+ when :install_to_remote_access_session
132
+ Aws::DeviceFarm::Endpoints::InstallToRemoteAccessSession.build(context)
133
+ when :list_artifacts
134
+ Aws::DeviceFarm::Endpoints::ListArtifacts.build(context)
135
+ when :list_device_instances
136
+ Aws::DeviceFarm::Endpoints::ListDeviceInstances.build(context)
137
+ when :list_device_pools
138
+ Aws::DeviceFarm::Endpoints::ListDevicePools.build(context)
139
+ when :list_devices
140
+ Aws::DeviceFarm::Endpoints::ListDevices.build(context)
141
+ when :list_instance_profiles
142
+ Aws::DeviceFarm::Endpoints::ListInstanceProfiles.build(context)
143
+ when :list_jobs
144
+ Aws::DeviceFarm::Endpoints::ListJobs.build(context)
145
+ when :list_network_profiles
146
+ Aws::DeviceFarm::Endpoints::ListNetworkProfiles.build(context)
147
+ when :list_offering_promotions
148
+ Aws::DeviceFarm::Endpoints::ListOfferingPromotions.build(context)
149
+ when :list_offering_transactions
150
+ Aws::DeviceFarm::Endpoints::ListOfferingTransactions.build(context)
151
+ when :list_offerings
152
+ Aws::DeviceFarm::Endpoints::ListOfferings.build(context)
153
+ when :list_projects
154
+ Aws::DeviceFarm::Endpoints::ListProjects.build(context)
155
+ when :list_remote_access_sessions
156
+ Aws::DeviceFarm::Endpoints::ListRemoteAccessSessions.build(context)
157
+ when :list_runs
158
+ Aws::DeviceFarm::Endpoints::ListRuns.build(context)
159
+ when :list_samples
160
+ Aws::DeviceFarm::Endpoints::ListSamples.build(context)
161
+ when :list_suites
162
+ Aws::DeviceFarm::Endpoints::ListSuites.build(context)
163
+ when :list_tags_for_resource
164
+ Aws::DeviceFarm::Endpoints::ListTagsForResource.build(context)
165
+ when :list_test_grid_projects
166
+ Aws::DeviceFarm::Endpoints::ListTestGridProjects.build(context)
167
+ when :list_test_grid_session_actions
168
+ Aws::DeviceFarm::Endpoints::ListTestGridSessionActions.build(context)
169
+ when :list_test_grid_session_artifacts
170
+ Aws::DeviceFarm::Endpoints::ListTestGridSessionArtifacts.build(context)
171
+ when :list_test_grid_sessions
172
+ Aws::DeviceFarm::Endpoints::ListTestGridSessions.build(context)
173
+ when :list_tests
174
+ Aws::DeviceFarm::Endpoints::ListTests.build(context)
175
+ when :list_unique_problems
176
+ Aws::DeviceFarm::Endpoints::ListUniqueProblems.build(context)
177
+ when :list_uploads
178
+ Aws::DeviceFarm::Endpoints::ListUploads.build(context)
179
+ when :list_vpce_configurations
180
+ Aws::DeviceFarm::Endpoints::ListVPCEConfigurations.build(context)
181
+ when :purchase_offering
182
+ Aws::DeviceFarm::Endpoints::PurchaseOffering.build(context)
183
+ when :renew_offering
184
+ Aws::DeviceFarm::Endpoints::RenewOffering.build(context)
185
+ when :schedule_run
186
+ Aws::DeviceFarm::Endpoints::ScheduleRun.build(context)
187
+ when :stop_job
188
+ Aws::DeviceFarm::Endpoints::StopJob.build(context)
189
+ when :stop_remote_access_session
190
+ Aws::DeviceFarm::Endpoints::StopRemoteAccessSession.build(context)
191
+ when :stop_run
192
+ Aws::DeviceFarm::Endpoints::StopRun.build(context)
193
+ when :tag_resource
194
+ Aws::DeviceFarm::Endpoints::TagResource.build(context)
195
+ when :untag_resource
196
+ Aws::DeviceFarm::Endpoints::UntagResource.build(context)
197
+ when :update_device_instance
198
+ Aws::DeviceFarm::Endpoints::UpdateDeviceInstance.build(context)
199
+ when :update_device_pool
200
+ Aws::DeviceFarm::Endpoints::UpdateDevicePool.build(context)
201
+ when :update_instance_profile
202
+ Aws::DeviceFarm::Endpoints::UpdateInstanceProfile.build(context)
203
+ when :update_network_profile
204
+ Aws::DeviceFarm::Endpoints::UpdateNetworkProfile.build(context)
205
+ when :update_project
206
+ Aws::DeviceFarm::Endpoints::UpdateProject.build(context)
207
+ when :update_test_grid_project
208
+ Aws::DeviceFarm::Endpoints::UpdateTestGridProject.build(context)
209
+ when :update_upload
210
+ Aws::DeviceFarm::Endpoints::UpdateUpload.build(context)
211
+ when :update_vpce_configuration
212
+ Aws::DeviceFarm::Endpoints::UpdateVPCEConfiguration.build(context)
213
+ end
214
+ end
215
+ end
216
+
217
+ def add_handlers(handlers, _config)
218
+ handlers.add(Handler, step: :build, priority: 75)
219
+ end
220
+ end
221
+ end
222
+ end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-devicefarm/types'
15
15
  require_relative 'aws-sdk-devicefarm/client_api'
16
+ require_relative 'aws-sdk-devicefarm/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-devicefarm/client'
17
18
  require_relative 'aws-sdk-devicefarm/errors'
18
19
  require_relative 'aws-sdk-devicefarm/resource'
20
+ require_relative 'aws-sdk-devicefarm/endpoint_parameters'
21
+ require_relative 'aws-sdk-devicefarm/endpoint_provider'
22
+ require_relative 'aws-sdk-devicefarm/endpoints'
19
23
  require_relative 'aws-sdk-devicefarm/customizations'
20
24
 
21
25
  # This module provides support for AWS Device Farm. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-devicefarm/customizations'
48
52
  # @!group service
49
53
  module Aws::DeviceFarm
50
54
 
51
- GEM_VERSION = '1.52.0'
55
+ GEM_VERSION = '1.53.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-devicefarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.52.0
4
+ version: 1.53.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-09-22 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-devicefarm/client.rb
60
60
  - lib/aws-sdk-devicefarm/client_api.rb
61
61
  - lib/aws-sdk-devicefarm/customizations.rb
62
+ - lib/aws-sdk-devicefarm/endpoint_parameters.rb
63
+ - lib/aws-sdk-devicefarm/endpoint_provider.rb
64
+ - lib/aws-sdk-devicefarm/endpoints.rb
62
65
  - lib/aws-sdk-devicefarm/errors.rb
66
+ - lib/aws-sdk-devicefarm/plugins/endpoints.rb
63
67
  - lib/aws-sdk-devicefarm/resource.rb
64
68
  - lib/aws-sdk-devicefarm/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby