aws-sdk-devicefarm 1.51.0 → 1.53.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.
@@ -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
@@ -58,7 +58,7 @@ module Aws::DeviceFarm
58
58
  #
59
59
  #
60
60
  #
61
- # [1]: https://aws.amazon.com/device-farm/faq/
61
+ # [1]: http://aws.amazon.com/device-farm/faqs/
62
62
  # @return [Boolean]
63
63
  #
64
64
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/AccountSettings AWS API Documentation
@@ -516,6 +516,11 @@ module Aws::DeviceFarm
516
516
  # {
517
517
  # name: "Name", # required
518
518
  # default_job_timeout_minutes: 1,
519
+ # vpc_config: {
520
+ # security_group_ids: ["SecurityGroupId"], # required
521
+ # subnet_ids: ["SubnetId"], # required
522
+ # vpc_id: "NonEmptyString", # required
523
+ # },
519
524
  # }
520
525
  #
521
526
  # @!attribute [rw] name
@@ -528,11 +533,16 @@ module Aws::DeviceFarm
528
533
  # unless overridden when scheduling a run.
529
534
  # @return [Integer]
530
535
  #
536
+ # @!attribute [rw] vpc_config
537
+ # The VPC security groups and subnets that are attached to a project.
538
+ # @return [Types::VpcConfig]
539
+ #
531
540
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProjectRequest AWS API Documentation
532
541
  #
533
542
  class CreateProjectRequest < Struct.new(
534
543
  :name,
535
- :default_job_timeout_minutes)
544
+ :default_job_timeout_minutes,
545
+ :vpc_config)
536
546
  SENSITIVE = []
537
547
  include Aws::Structure
538
548
  end
@@ -698,7 +708,7 @@ module Aws::DeviceFarm
698
708
  #
699
709
  #
700
710
  #
701
- # [1]: https://aws.amazon.com/device-farm/faq/
711
+ # [1]: http://aws.amazon.com/device-farm/faqs/
702
712
  # @return [Boolean]
703
713
  #
704
714
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSessionRequest AWS API Documentation
@@ -1906,7 +1916,7 @@ module Aws::DeviceFarm
1906
1916
  #
1907
1917
  #
1908
1918
  #
1909
- # [1]: https://aws.amazon.com/device-farm/faq/
1919
+ # [1]: http://aws.amazon.com/device-farm/faqs/
1910
1920
  # @return [Boolean]
1911
1921
  #
1912
1922
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ExecutionConfiguration AWS API Documentation
@@ -4767,13 +4777,18 @@ module Aws::DeviceFarm
4767
4777
  # When the project was created.
4768
4778
  # @return [Time]
4769
4779
  #
4780
+ # @!attribute [rw] vpc_config
4781
+ # The VPC security groups and subnets that are attached to a project.
4782
+ # @return [Types::VpcConfig]
4783
+ #
4770
4784
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Project AWS API Documentation
4771
4785
  #
4772
4786
  class Project < Struct.new(
4773
4787
  :arn,
4774
4788
  :name,
4775
4789
  :default_job_timeout_minutes,
4776
- :created)
4790
+ :created,
4791
+ :vpc_config)
4777
4792
  SENSITIVE = []
4778
4793
  include Aws::Structure
4779
4794
  end
@@ -5065,9 +5080,13 @@ module Aws::DeviceFarm
5065
5080
  #
5066
5081
  #
5067
5082
  #
5068
- # [1]: https://aws.amazon.com/device-farm/faq/
5083
+ # [1]: http://aws.amazon.com/device-farm/faqs/
5069
5084
  # @return [Boolean]
5070
5085
  #
5086
+ # @!attribute [rw] vpc_config
5087
+ # The VPC security groups and subnets that are attached to a project.
5088
+ # @return [Types::VpcConfig]
5089
+ #
5071
5090
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RemoteAccessSession AWS API Documentation
5072
5091
  #
5073
5092
  class RemoteAccessSession < Struct.new(
@@ -5091,7 +5110,8 @@ module Aws::DeviceFarm
5091
5110
  :endpoint,
5092
5111
  :device_udid,
5093
5112
  :interaction_mode,
5094
- :skip_app_resign)
5113
+ :skip_app_resign,
5114
+ :vpc_config)
5095
5115
  SENSITIVE = []
5096
5116
  include Aws::Structure
5097
5117
  end
@@ -5514,7 +5534,7 @@ module Aws::DeviceFarm
5514
5534
  #
5515
5535
  #
5516
5536
  #
5517
- # [1]: https://aws.amazon.com/device-farm/faq/
5537
+ # [1]: http://aws.amazon.com/device-farm/faqs/
5518
5538
  # @return [Boolean]
5519
5539
  #
5520
5540
  # @!attribute [rw] test_spec_arn
@@ -5526,6 +5546,10 @@ module Aws::DeviceFarm
5526
5546
  # run.
5527
5547
  # @return [Types::DeviceSelectionResult]
5528
5548
  #
5549
+ # @!attribute [rw] vpc_config
5550
+ # The VPC security groups and subnets that are attached to a project.
5551
+ # @return [Types::VpcConfig]
5552
+ #
5529
5553
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Run AWS API Documentation
5530
5554
  #
5531
5555
  class Run < Struct.new(
@@ -5559,7 +5583,8 @@ module Aws::DeviceFarm
5559
5583
  :web_url,
5560
5584
  :skip_app_resign,
5561
5585
  :test_spec_arn,
5562
- :device_selection_result)
5586
+ :device_selection_result,
5587
+ :vpc_config)
5563
5588
  SENSITIVE = []
5564
5589
  include Aws::Structure
5565
5590
  end
@@ -7132,6 +7157,11 @@ module Aws::DeviceFarm
7132
7157
  # arn: "AmazonResourceName", # required
7133
7158
  # name: "Name",
7134
7159
  # default_job_timeout_minutes: 1,
7160
+ # vpc_config: {
7161
+ # security_group_ids: ["SecurityGroupId"], # required
7162
+ # subnet_ids: ["SubnetId"], # required
7163
+ # vpc_id: "NonEmptyString", # required
7164
+ # },
7135
7165
  # }
7136
7166
  #
7137
7167
  # @!attribute [rw] arn
@@ -7148,12 +7178,17 @@ module Aws::DeviceFarm
7148
7178
  # times out.
7149
7179
  # @return [Integer]
7150
7180
  #
7181
+ # @!attribute [rw] vpc_config
7182
+ # The VPC security groups and subnets that are attached to a project.
7183
+ # @return [Types::VpcConfig]
7184
+ #
7151
7185
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProjectRequest AWS API Documentation
7152
7186
  #
7153
7187
  class UpdateProjectRequest < Struct.new(
7154
7188
  :arn,
7155
7189
  :name,
7156
- :default_job_timeout_minutes)
7190
+ :default_job_timeout_minutes,
7191
+ :vpc_config)
7157
7192
  SENSITIVE = []
7158
7193
  include Aws::Structure
7159
7194
  end
@@ -7521,5 +7556,39 @@ module Aws::DeviceFarm
7521
7556
  include Aws::Structure
7522
7557
  end
7523
7558
 
7559
+ # Contains the VPC configuration data necessary to interface with AWS
7560
+ # Device Farm's services.
7561
+ #
7562
+ # @note When making an API call, you may pass VpcConfig
7563
+ # data as a hash:
7564
+ #
7565
+ # {
7566
+ # security_group_ids: ["SecurityGroupId"], # required
7567
+ # subnet_ids: ["SubnetId"], # required
7568
+ # vpc_id: "NonEmptyString", # required
7569
+ # }
7570
+ #
7571
+ # @!attribute [rw] security_group_ids
7572
+ # An array of one or more security groups IDs in your Amazon VPC.
7573
+ # @return [Array<String>]
7574
+ #
7575
+ # @!attribute [rw] subnet_ids
7576
+ # An array of one or more subnet IDs in your Amazon VPC.
7577
+ # @return [Array<String>]
7578
+ #
7579
+ # @!attribute [rw] vpc_id
7580
+ # The ID of the Amazon VPC.
7581
+ # @return [String]
7582
+ #
7583
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/VpcConfig AWS API Documentation
7584
+ #
7585
+ class VpcConfig < Struct.new(
7586
+ :security_group_ids,
7587
+ :subnet_ids,
7588
+ :vpc_id)
7589
+ SENSITIVE = []
7590
+ include Aws::Structure
7591
+ end
7592
+
7524
7593
  end
7525
7594
  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.51.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.51.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-02-24 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