aws-sdk-devicefarm 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5feb25fbde49da0596e2fe38a4b1bb8e6527f8dd
4
- data.tar.gz: 2290fc0e963aec78842ebee3fc1d6b50683d2f3c
3
+ metadata.gz: 8fc6cd9e08561bb483afa1f6a87cb309f735c6a1
4
+ data.tar.gz: 98b6080abbb9f9d8b477c49f721c93fdb951e156
5
5
  SHA512:
6
- metadata.gz: bb650027b6acbbb1d617cee27eb55276f1c5917e521cbd849fcf79bd3efd257f0475501906c6dfd5e5d8fd98d47d44043c8d8bb2d52c7443ab1c60de19b28303
7
- data.tar.gz: 5b2e751101d6833b03e629f953e69d170100da63e5ad588ce5829ab369329b02377df1242eec8a9dbc12c2b42d395116c514a014a93afa9cdc01bc2165b3ab57
6
+ metadata.gz: 16e01b4eb28b279160da95231839ffe7d4ac7a6d866e6a5d92b057022b3fec0d4be9c355343e7c9ccccf28b2f84f3623734394c25e109ecfe9e41a8260da7e58
7
+ data.tar.gz: d65f3ec80a32120c4cebbecc39ef92ae6ee4c9b4d8ac05dea79e3826d9f4f2fe8e81b6424fd6efd1f9c0304e3d2525b07b6b02d9c74fc148431478a546f5783d
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-devicefarm/customizations'
42
42
  # @service
43
43
  module Aws::DeviceFarm
44
44
 
45
- GEM_VERSION = '1.15.0'
45
+ GEM_VERSION = '1.16.0'
46
46
 
47
47
  end
@@ -229,6 +229,16 @@ module Aws::DeviceFarm
229
229
  # @option params [required, Array<Types::Rule>] :rules
230
230
  # The device pool's rules.
231
231
  #
232
+ # @option params [Integer] :max_devices
233
+ # The number of devices that Device Farm can add to your device pool.
234
+ # Device Farm adds devices that are available and that meet the criteria
235
+ # that you assign for the `rules` parameter. Depending on how many
236
+ # devices meet these constraints, your device pool might contain fewer
237
+ # devices than the value for this parameter.
238
+ #
239
+ # By specifying the maximum number of devices, you can control the costs
240
+ # that you incur by running tests.
241
+ #
232
242
  # @return [Types::CreateDevicePoolResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
233
243
  #
234
244
  # * {Types::CreateDevicePoolResult#device_pool #device_pool} => Types::DevicePool
@@ -260,11 +270,12 @@ module Aws::DeviceFarm
260
270
  # description: "Message",
261
271
  # rules: [ # required
262
272
  # {
263
- # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE
264
- # operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
273
+ # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE, OS_VERSION, MODEL, AVAILABILITY
274
+ # operator: "EQUALS", # accepts EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUALS, IN, NOT_IN, CONTAINS
265
275
  # value: "String",
266
276
  # },
267
277
  # ],
278
+ # max_devices: 1,
268
279
  # })
269
280
  #
270
281
  # @example Response structure
@@ -274,9 +285,10 @@ module Aws::DeviceFarm
274
285
  # resp.device_pool.description #=> String
275
286
  # resp.device_pool.type #=> String, one of "CURATED", "PRIVATE"
276
287
  # resp.device_pool.rules #=> Array
277
- # resp.device_pool.rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE"
278
- # resp.device_pool.rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "GREATER_THAN", "IN", "NOT_IN", "CONTAINS"
288
+ # resp.device_pool.rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE", "OS_VERSION", "MODEL", "AVAILABILITY"
289
+ # resp.device_pool.rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "LESS_THAN_OR_EQUALS", "GREATER_THAN", "GREATER_THAN_OR_EQUALS", "IN", "NOT_IN", "CONTAINS"
279
290
  # resp.device_pool.rules[0].value #=> String
291
+ # resp.device_pool.max_devices #=> Integer
280
292
  #
281
293
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePool AWS API Documentation
282
294
  #
@@ -1368,9 +1380,10 @@ module Aws::DeviceFarm
1368
1380
  # resp.device_pool.description #=> String
1369
1381
  # resp.device_pool.type #=> String, one of "CURATED", "PRIVATE"
1370
1382
  # resp.device_pool.rules #=> Array
1371
- # resp.device_pool.rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE"
1372
- # resp.device_pool.rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "GREATER_THAN", "IN", "NOT_IN", "CONTAINS"
1383
+ # resp.device_pool.rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE", "OS_VERSION", "MODEL", "AVAILABILITY"
1384
+ # resp.device_pool.rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "LESS_THAN_OR_EQUALS", "GREATER_THAN", "GREATER_THAN_OR_EQUALS", "IN", "NOT_IN", "CONTAINS"
1373
1385
  # resp.device_pool.rules[0].value #=> String
1386
+ # resp.device_pool.max_devices #=> Integer
1374
1387
  #
1375
1388
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePool AWS API Documentation
1376
1389
  #
@@ -1545,7 +1558,7 @@ module Aws::DeviceFarm
1545
1558
  # resp.compatible_devices[0].compatible #=> Boolean
1546
1559
  # resp.compatible_devices[0].incompatibility_messages #=> Array
1547
1560
  # resp.compatible_devices[0].incompatibility_messages[0].message #=> String
1548
- # resp.compatible_devices[0].incompatibility_messages[0].type #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE"
1561
+ # resp.compatible_devices[0].incompatibility_messages[0].type #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE", "OS_VERSION", "MODEL", "AVAILABILITY"
1549
1562
  # resp.incompatible_devices #=> Array
1550
1563
  # resp.incompatible_devices[0].device.arn #=> String
1551
1564
  # resp.incompatible_devices[0].device.name #=> String
@@ -1587,7 +1600,7 @@ module Aws::DeviceFarm
1587
1600
  # resp.incompatible_devices[0].compatible #=> Boolean
1588
1601
  # resp.incompatible_devices[0].incompatibility_messages #=> Array
1589
1602
  # resp.incompatible_devices[0].incompatibility_messages[0].message #=> String
1590
- # resp.incompatible_devices[0].incompatibility_messages[0].type #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE"
1603
+ # resp.incompatible_devices[0].incompatibility_messages[0].type #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE", "OS_VERSION", "MODEL", "AVAILABILITY"
1591
1604
  #
1592
1605
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibility AWS API Documentation
1593
1606
  #
@@ -2618,9 +2631,10 @@ module Aws::DeviceFarm
2618
2631
  # resp.device_pools[0].description #=> String
2619
2632
  # resp.device_pools[0].type #=> String, one of "CURATED", "PRIVATE"
2620
2633
  # resp.device_pools[0].rules #=> Array
2621
- # resp.device_pools[0].rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE"
2622
- # resp.device_pools[0].rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "GREATER_THAN", "IN", "NOT_IN", "CONTAINS"
2634
+ # resp.device_pools[0].rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE", "OS_VERSION", "MODEL", "AVAILABILITY"
2635
+ # resp.device_pools[0].rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "LESS_THAN_OR_EQUALS", "GREATER_THAN", "GREATER_THAN_OR_EQUALS", "IN", "NOT_IN", "CONTAINS"
2623
2636
  # resp.device_pools[0].rules[0].value #=> String
2637
+ # resp.device_pools[0].max_devices #=> Integer
2624
2638
  # resp.next_token #=> String
2625
2639
  #
2626
2640
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePools AWS API Documentation
@@ -4300,10 +4314,6 @@ module Aws::DeviceFarm
4300
4314
  # @option params [String] :device_pool_arn
4301
4315
  # The ARN of the device pool for the run to be scheduled.
4302
4316
  #
4303
- # Either <b> <code>devicePoolArn</code> </b> or <b>
4304
- # <code>deviceSelectionConfiguration</code> </b> is required in a
4305
- # request.
4306
- #
4307
4317
  # @option params [Types::DeviceSelectionConfiguration] :device_selection_configuration
4308
4318
  # The filter criteria used to dynamically select a set of devices for a
4309
4319
  # test run, as well as the maximum number of devices to be included in
@@ -4849,6 +4859,30 @@ module Aws::DeviceFarm
4849
4859
  # rules is optional; however, if you choose to update rules for your
4850
4860
  # request, the update will replace the existing rules.
4851
4861
  #
4862
+ # @option params [Integer] :max_devices
4863
+ # The number of devices that Device Farm can add to your device pool.
4864
+ # Device Farm adds devices that are available and that meet the criteria
4865
+ # that you assign for the `rules` parameter. Depending on how many
4866
+ # devices meet these constraints, your device pool might contain fewer
4867
+ # devices than the value for this parameter.
4868
+ #
4869
+ # By specifying the maximum number of devices, you can control the costs
4870
+ # that you incur by running tests.
4871
+ #
4872
+ # If you use this parameter in your request, you cannot use the
4873
+ # `clearMaxDevices` parameter in the same request.
4874
+ #
4875
+ # @option params [Boolean] :clear_max_devices
4876
+ # Sets whether the `maxDevices` parameter applies to your device pool.
4877
+ # If you set this parameter to `true`, the `maxDevices` parameter does
4878
+ # not apply, and Device Farm does not limit the number of devices that
4879
+ # it adds to your device pool. In this case, Device Farm adds all
4880
+ # available devices that meet the criteria that are specified for the
4881
+ # `rules` parameter.
4882
+ #
4883
+ # If you use this parameter in your request, you cannot use the
4884
+ # `maxDevices` parameter in the same request.
4885
+ #
4852
4886
  # @return [Types::UpdateDevicePoolResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4853
4887
  #
4854
4888
  # * {Types::UpdateDevicePoolResult#device_pool #device_pool} => Types::DevicePool
@@ -4886,11 +4920,13 @@ module Aws::DeviceFarm
4886
4920
  # description: "Message",
4887
4921
  # rules: [
4888
4922
  # {
4889
- # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE
4890
- # operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
4923
+ # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE, OS_VERSION, MODEL, AVAILABILITY
4924
+ # operator: "EQUALS", # accepts EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUALS, IN, NOT_IN, CONTAINS
4891
4925
  # value: "String",
4892
4926
  # },
4893
4927
  # ],
4928
+ # max_devices: 1,
4929
+ # clear_max_devices: false,
4894
4930
  # })
4895
4931
  #
4896
4932
  # @example Response structure
@@ -4900,9 +4936,10 @@ module Aws::DeviceFarm
4900
4936
  # resp.device_pool.description #=> String
4901
4937
  # resp.device_pool.type #=> String, one of "CURATED", "PRIVATE"
4902
4938
  # resp.device_pool.rules #=> Array
4903
- # resp.device_pool.rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE"
4904
- # resp.device_pool.rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "GREATER_THAN", "IN", "NOT_IN", "CONTAINS"
4939
+ # resp.device_pool.rules[0].attribute #=> String, one of "ARN", "PLATFORM", "FORM_FACTOR", "MANUFACTURER", "REMOTE_ACCESS_ENABLED", "REMOTE_DEBUG_ENABLED", "APPIUM_VERSION", "INSTANCE_ARN", "INSTANCE_LABELS", "FLEET_TYPE", "OS_VERSION", "MODEL", "AVAILABILITY"
4940
+ # resp.device_pool.rules[0].operator #=> String, one of "EQUALS", "LESS_THAN", "LESS_THAN_OR_EQUALS", "GREATER_THAN", "GREATER_THAN_OR_EQUALS", "IN", "NOT_IN", "CONTAINS"
4905
4941
  # resp.device_pool.rules[0].value #=> String
4942
+ # resp.device_pool.max_devices #=> Integer
4906
4943
  #
4907
4944
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePool AWS API Documentation
4908
4945
  #
@@ -5249,7 +5286,7 @@ module Aws::DeviceFarm
5249
5286
  params: params,
5250
5287
  config: config)
5251
5288
  context[:gem_name] = 'aws-sdk-devicefarm'
5252
- context[:gem_version] = '1.15.0'
5289
+ context[:gem_version] = '1.16.0'
5253
5290
  Seahorse::Client::Request.new(handlers, context)
5254
5291
  end
5255
5292
 
@@ -68,7 +68,6 @@ module Aws::DeviceFarm
68
68
  DeviceAvailability = Shapes::StringShape.new(name: 'DeviceAvailability')
69
69
  DeviceFilter = Shapes::StructureShape.new(name: 'DeviceFilter')
70
70
  DeviceFilterAttribute = Shapes::StringShape.new(name: 'DeviceFilterAttribute')
71
- DeviceFilterOperator = Shapes::StringShape.new(name: 'DeviceFilterOperator')
72
71
  DeviceFilterValues = Shapes::ListShape.new(name: 'DeviceFilterValues')
73
72
  DeviceFilters = Shapes::ListShape.new(name: 'DeviceFilters')
74
73
  DeviceFormFactor = Shapes::StringShape.new(name: 'DeviceFormFactor')
@@ -325,6 +324,7 @@ module Aws::DeviceFarm
325
324
  CreateDevicePoolRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
326
325
  CreateDevicePoolRequest.add_member(:description, Shapes::ShapeRef.new(shape: Message, location_name: "description"))
327
326
  CreateDevicePoolRequest.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, required: true, location_name: "rules"))
327
+ CreateDevicePoolRequest.add_member(:max_devices, Shapes::ShapeRef.new(shape: Integer, location_name: "maxDevices"))
328
328
  CreateDevicePoolRequest.struct_class = Types::CreateDevicePoolRequest
329
329
 
330
330
  CreateDevicePoolResult.add_member(:device_pool, Shapes::ShapeRef.new(shape: DevicePool, location_name: "devicePool"))
@@ -472,7 +472,7 @@ module Aws::DeviceFarm
472
472
  Device.struct_class = Types::Device
473
473
 
474
474
  DeviceFilter.add_member(:attribute, Shapes::ShapeRef.new(shape: DeviceFilterAttribute, location_name: "attribute"))
475
- DeviceFilter.add_member(:operator, Shapes::ShapeRef.new(shape: DeviceFilterOperator, location_name: "operator"))
475
+ DeviceFilter.add_member(:operator, Shapes::ShapeRef.new(shape: RuleOperator, location_name: "operator"))
476
476
  DeviceFilter.add_member(:values, Shapes::ShapeRef.new(shape: DeviceFilterValues, location_name: "values"))
477
477
  DeviceFilter.struct_class = Types::DeviceFilter
478
478
 
@@ -502,6 +502,7 @@ module Aws::DeviceFarm
502
502
  DevicePool.add_member(:description, Shapes::ShapeRef.new(shape: Message, location_name: "description"))
503
503
  DevicePool.add_member(:type, Shapes::ShapeRef.new(shape: DevicePoolType, location_name: "type"))
504
504
  DevicePool.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, location_name: "rules"))
505
+ DevicePool.add_member(:max_devices, Shapes::ShapeRef.new(shape: Integer, location_name: "maxDevices"))
505
506
  DevicePool.struct_class = Types::DevicePool
506
507
 
507
508
  DevicePoolCompatibilityResult.add_member(:device, Shapes::ShapeRef.new(shape: Device, location_name: "device"))
@@ -1133,6 +1134,8 @@ module Aws::DeviceFarm
1133
1134
  UpdateDevicePoolRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
1134
1135
  UpdateDevicePoolRequest.add_member(:description, Shapes::ShapeRef.new(shape: Message, location_name: "description"))
1135
1136
  UpdateDevicePoolRequest.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, location_name: "rules"))
1137
+ UpdateDevicePoolRequest.add_member(:max_devices, Shapes::ShapeRef.new(shape: Integer, location_name: "maxDevices"))
1138
+ UpdateDevicePoolRequest.add_member(:clear_max_devices, Shapes::ShapeRef.new(shape: Boolean, location_name: "clearMaxDevices"))
1136
1139
  UpdateDevicePoolRequest.struct_class = Types::UpdateDevicePoolRequest
1137
1140
 
1138
1141
  UpdateDevicePoolResult.add_member(:device_pool, Shapes::ShapeRef.new(shape: DevicePool, location_name: "devicePool"))
@@ -249,11 +249,12 @@ module Aws::DeviceFarm
249
249
  # description: "Message",
250
250
  # rules: [ # required
251
251
  # {
252
- # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE
253
- # operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
252
+ # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE, OS_VERSION, MODEL, AVAILABILITY
253
+ # operator: "EQUALS", # accepts EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUALS, IN, NOT_IN, CONTAINS
254
254
  # value: "String",
255
255
  # },
256
256
  # ],
257
+ # max_devices: 1,
257
258
  # }
258
259
  #
259
260
  # @!attribute [rw] project_arn
@@ -272,13 +273,25 @@ module Aws::DeviceFarm
272
273
  # The device pool's rules.
273
274
  # @return [Array<Types::Rule>]
274
275
  #
276
+ # @!attribute [rw] max_devices
277
+ # The number of devices that Device Farm can add to your device pool.
278
+ # Device Farm adds devices that are available and that meet the
279
+ # criteria that you assign for the `rules` parameter. Depending on how
280
+ # many devices meet these constraints, your device pool might contain
281
+ # fewer devices than the value for this parameter.
282
+ #
283
+ # By specifying the maximum number of devices, you can control the
284
+ # costs that you incur by running tests.
285
+ # @return [Integer]
286
+ #
275
287
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePoolRequest AWS API Documentation
276
288
  #
277
289
  class CreateDevicePoolRequest < Struct.new(
278
290
  :project_arn,
279
291
  :name,
280
292
  :description,
281
- :rules)
293
+ :rules,
294
+ :max_devices)
282
295
  include Aws::Structure
283
296
  end
284
297
 
@@ -1256,58 +1269,93 @@ module Aws::DeviceFarm
1256
1269
  # The aspect of a device such as platform or model used as the
1257
1270
  # selection criteria in a device filter.
1258
1271
  #
1259
- # Allowed values include:
1272
+ # The supported operators for each attribute are provided in the
1273
+ # following list.
1260
1274
  #
1261
- # * ARN: The Amazon Resource Name (ARN) of the device. For example,
1275
+ # ARN
1276
+ #
1277
+ # : The Amazon Resource Name (ARN) of the device. For example,
1262
1278
  # "arn:aws:devicefarm:us-west-2::device:12345Example".
1263
1279
  #
1264
- # * PLATFORM: The device platform. Valid values are "ANDROID" or
1265
- # "IOS".
1280
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
1281
+ #
1282
+ # PLATFORM
1283
+ #
1284
+ # : The device platform. Valid values are "ANDROID" or "IOS".
1285
+ #
1286
+ # *Supported operators*\: `EQUALS`
1287
+ #
1288
+ # OS\_VERSION
1266
1289
  #
1267
- # * OS\_VERSION: The operating system version. For example,
1268
- # "10.3.2".
1290
+ # : The operating system version. For example, "10.3.2".
1269
1291
  #
1270
- # * MODEL: The device model. For example, "iPad 5th Gen".
1292
+ # *Supported operators*\: `EQUALS`, `GREATER_THAN`,
1293
+ # `GREATER_THAN_OR_EQUALS`, `IN`, `LESS_THAN`,
1294
+ # `LESS_THAN_OR_EQUALS`, `NOT_IN`
1271
1295
  #
1272
- # * AVAILABILITY: The current availability of the device. Valid values
1273
- # are "AVAILABLE", "HIGHLY\_AVAILABLE", "BUSY", or
1296
+ # MODEL
1297
+ #
1298
+ # : The device model. For example, "iPad 5th Gen".
1299
+ #
1300
+ # *Supported operators*\: `CONTAINS`, `EQUALS`, `IN`, `NOT_IN`
1301
+ #
1302
+ # AVAILABILITY
1303
+ #
1304
+ # : The current availability of the device. Valid values are
1305
+ # "AVAILABLE", "HIGHLY\_AVAILABLE", "BUSY", or
1274
1306
  # "TEMPORARY\_NOT\_AVAILABLE".
1275
1307
  #
1276
- # * FORM\_FACTOR: The device form factor. Valid values are "PHONE"
1277
- # or "TABLET".
1308
+ # *Supported operators*\: `EQUALS`
1278
1309
  #
1279
- # * MANUFACTURER: The device manufacturer. For example, "Apple".
1310
+ # FORM\_FACTOR
1280
1311
  #
1281
- # * REMOTE\_ACCESS\_ENABLED: Whether the device is enabled for remote
1282
- # access. Valid values are "TRUE" or "FALSE".
1312
+ # : The device form factor. Valid values are "PHONE" or "TABLET".
1283
1313
  #
1284
- # * REMOTE\_DEBUG\_ENABLED: Whether the device is enabled for remote
1285
- # debugging. Valid values are "TRUE" or "FALSE".
1314
+ # *Supported operators*\: `EQUALS`
1286
1315
  #
1287
- # * INSTANCE\_ARN: The Amazon Resource Name (ARN) of the device
1288
- # instance.
1316
+ # MANUFACTURER
1289
1317
  #
1290
- # * INSTANCE\_LABELS: The label of the device instance.
1318
+ # : The device manufacturer. For example, "Apple".
1291
1319
  #
1292
- # * FLEET\_TYPE: The fleet type. Valid values are "PUBLIC" or
1293
- # "PRIVATE".
1294
- # @return [String]
1320
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
1295
1321
  #
1296
- # @!attribute [rw] operator
1297
- # The filter operator.
1322
+ # REMOTE\_ACCESS\_ENABLED
1323
+ #
1324
+ # : Whether the device is enabled for remote access. Valid values are
1325
+ # "TRUE" or "FALSE".
1326
+ #
1327
+ # *Supported operators*\: `EQUALS`
1328
+ #
1329
+ # REMOTE\_DEBUG\_ENABLED
1298
1330
  #
1299
- # * The EQUALS operator is available for every attribute except
1300
- # INSTANCE\_LABELS.
1331
+ # : Whether the device is enabled for remote debugging. Valid values
1332
+ # are "TRUE" or "FALSE".
1301
1333
  #
1302
- # * The CONTAINS operator is available for the INSTANCE\_LABELS and
1303
- # MODEL attributes.
1334
+ # *Supported operators*\: `EQUALS`
1304
1335
  #
1305
- # * The IN and NOT\_IN operators are available for the ARN,
1306
- # OS\_VERSION, MODEL, MANUFACTURER, and INSTANCE\_ARN attributes.
1336
+ # INSTANCE\_ARN
1307
1337
  #
1308
- # * The LESS\_THAN, GREATER\_THAN, LESS\_THAN\_OR\_EQUALS, and
1309
- # GREATER\_THAN\_OR\_EQUALS operators are also available for the
1310
- # OS\_VERSION attribute.
1338
+ # : The Amazon Resource Name (ARN) of the device instance.
1339
+ #
1340
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
1341
+ #
1342
+ # INSTANCE\_LABELS
1343
+ #
1344
+ # : The label of the device instance.
1345
+ #
1346
+ # *Supported operators*\: `CONTAINS`
1347
+ #
1348
+ # FLEET\_TYPE
1349
+ #
1350
+ # : The fleet type. Valid values are "PUBLIC" or "PRIVATE".
1351
+ #
1352
+ # *Supported operators*\: `EQUALS`
1353
+ # @return [String]
1354
+ #
1355
+ # @!attribute [rw] operator
1356
+ # Specifies how Device Farm compares the filter's attribute to the
1357
+ # value. For the operators that are supported by each attribute, see
1358
+ # the attribute descriptions.
1311
1359
  # @return [String]
1312
1360
  #
1313
1361
  # @!attribute [rw] values
@@ -1437,6 +1485,17 @@ module Aws::DeviceFarm
1437
1485
  # Information about the device pool's rules.
1438
1486
  # @return [Array<Types::Rule>]
1439
1487
  #
1488
+ # @!attribute [rw] max_devices
1489
+ # The number of devices that Device Farm can add to your device pool.
1490
+ # Device Farm adds devices that are available and that meet the
1491
+ # criteria that you assign for the `rules` parameter. Depending on how
1492
+ # many devices meet these constraints, your device pool might contain
1493
+ # fewer devices than the value for this parameter.
1494
+ #
1495
+ # By specifying the maximum number of devices, you can control the
1496
+ # costs that you incur by running tests.
1497
+ # @return [Integer]
1498
+ #
1440
1499
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DevicePool AWS API Documentation
1441
1500
  #
1442
1501
  class DevicePool < Struct.new(
@@ -1444,7 +1503,8 @@ module Aws::DeviceFarm
1444
1503
  :name,
1445
1504
  :description,
1446
1505
  :type,
1447
- :rules)
1506
+ :rules,
1507
+ :max_devices)
1448
1508
  include Aws::Structure
1449
1509
  end
1450
1510
 
@@ -4259,7 +4319,7 @@ module Aws::DeviceFarm
4259
4319
  #
4260
4320
  #
4261
4321
  #
4262
- # [1]: http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology
4322
+ # [1]: https://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology
4263
4323
  # @return [String]
4264
4324
  #
4265
4325
  # @!attribute [rw] device_minutes
@@ -4391,77 +4451,119 @@ module Aws::DeviceFarm
4391
4451
  include Aws::Structure
4392
4452
  end
4393
4453
 
4394
- # Represents a condition for a device pool. It is passed in as the
4395
- # `rules` parameter to CreateDevicePool and UpdateDevicePool.
4454
+ # Represents a condition for a device pool.
4396
4455
  #
4397
4456
  # @note When making an API call, you may pass Rule
4398
4457
  # data as a hash:
4399
4458
  #
4400
4459
  # {
4401
- # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE
4402
- # operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
4460
+ # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE, OS_VERSION, MODEL, AVAILABILITY
4461
+ # operator: "EQUALS", # accepts EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUALS, IN, NOT_IN, CONTAINS
4403
4462
  # value: "String",
4404
4463
  # }
4405
4464
  #
4406
4465
  # @!attribute [rw] attribute
4407
- # The rule's attribute. It is the aspect of a device such as platform
4408
- # or model used as selection criteria to create or update a device
4409
- # pool.
4466
+ # The rule's stringified attribute. For example, specify the value as
4467
+ # `""abc""`.
4410
4468
  #
4411
- # Allowed values include:
4469
+ # The supported operators for each attribute are provided in the
4470
+ # following list.
4471
+ #
4472
+ # APPIUM\_VERSION
4473
+ #
4474
+ # : The Appium version for the test.
4475
+ #
4476
+ # *Supported operators*\: `CONTAINS`
4477
+ #
4478
+ # ARN
4412
4479
  #
4413
- # * ARN: The Amazon Resource Name (ARN) of a device. For example,
4480
+ # : The Amazon Resource Name (ARN) of the device. For example,
4414
4481
  # "arn:aws:devicefarm:us-west-2::device:12345Example".
4415
4482
  #
4416
- # * PLATFORM: The device platform. Valid values are "ANDROID" or
4417
- # "IOS".
4483
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
4418
4484
  #
4419
- # * FORM\_FACTOR: The device form factor. Valid values are "PHONE"
4420
- # or "TABLET".
4485
+ # AVAILABILITY
4421
4486
  #
4422
- # * MANUFACTURER: The device manufacturer. For example, "Apple".
4487
+ # : The current availability of the device. Valid values are
4488
+ # "AVAILABLE", "HIGHLY\_AVAILABLE", "BUSY", or
4489
+ # "TEMPORARY\_NOT\_AVAILABLE".
4423
4490
  #
4424
- # * REMOTE\_ACCESS\_ENABLED: Whether the device is enabled for remote
4425
- # access. Valid values are "TRUE" or "FALSE".
4491
+ # *Supported operators*\: `EQUALS`
4426
4492
  #
4427
- # * REMOTE\_DEBUG\_ENABLED: Whether the device is enabled for remote
4428
- # debugging. Valid values are "TRUE" or "FALSE".
4493
+ # FLEET\_TYPE
4429
4494
  #
4430
- # * APPIUM\_VERSION: The Appium version for the test.
4495
+ # : The fleet type. Valid values are "PUBLIC" or "PRIVATE".
4431
4496
  #
4432
- # * INSTANCE\_ARN: The Amazon Resource Name (ARN) of the device
4433
- # instance.
4497
+ # *Supported operators*\: `EQUALS`
4434
4498
  #
4435
- # * INSTANCE\_LABELS: The label of the device instance.
4499
+ # FORM\_FACTOR
4436
4500
  #
4437
- # * FLEET\_TYPE: The fleet type. Valid values are "PUBLIC" or
4438
- # "PRIVATE".
4439
- # @return [String]
4501
+ # : The device form factor. Valid values are "PHONE" or "TABLET".
4440
4502
  #
4441
- # @!attribute [rw] operator
4442
- # The rule's operator.
4503
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
4443
4504
  #
4444
- # * EQUALS: The equals operator.
4505
+ # INSTANCE\_ARN
4445
4506
  #
4446
- # * GREATER\_THAN: The greater-than operator.
4507
+ # : The Amazon Resource Name (ARN) of the device instance.
4447
4508
  #
4448
- # * IN: The in operator.
4509
+ # *Supported operators*\: `IN`, `NOT_IN`
4449
4510
  #
4450
- # * LESS\_THAN: The less-than operator.
4511
+ # INSTANCE\_LABELS
4451
4512
  #
4452
- # * NOT\_IN: The not-in operator.
4513
+ # : The label of the device instance.
4453
4514
  #
4454
- # * CONTAINS: The contains operator.
4455
- # @return [String]
4515
+ # *Supported operators*\: `CONTAINS`
4456
4516
  #
4457
- # @!attribute [rw] value
4458
- # The rule's value.
4517
+ # MANUFACTURER
4518
+ #
4519
+ # : The device manufacturer. For example, "Apple".
4520
+ #
4521
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
4522
+ #
4523
+ # MODEL
4524
+ #
4525
+ # : The device model, such as "Apple iPad Air 2" or "Google
4526
+ # Pixel".
4527
+ #
4528
+ # *Supported operators*\: `CONTAINS`, `EQUALS`, `IN`, `NOT_IN`
4529
+ #
4530
+ # OS\_VERSION
4531
+ #
4532
+ # : The operating system version. For example, "10.3.2".
4533
+ #
4534
+ # *Supported operators*\: `EQUALS`, `GREATER_THAN`,
4535
+ # `GREATER_THAN_OR_EQUALS`, `IN`, `LESS_THAN`,
4536
+ # `LESS_THAN_OR_EQUALS`, `NOT_IN`
4537
+ #
4538
+ # PLATFORM
4539
+ #
4540
+ # : The device platform. Valid values are "ANDROID" or "IOS".
4541
+ #
4542
+ # *Supported operators*\: `EQUALS`, `IN`, `NOT_IN`
4543
+ #
4544
+ # REMOTE\_ACCESS\_ENABLED
4545
+ #
4546
+ # : Whether the device is enabled for remote access. Valid values are
4547
+ # "TRUE" or "FALSE".
4459
4548
  #
4460
- # The value must be passed in as a string using escaped quotes.
4549
+ # *Supported operators*\: `EQUALS`
4461
4550
  #
4462
- # For example:
4551
+ # REMOTE\_DEBUG\_ENABLED
4463
4552
  #
4464
- # "value": "\\"ANDROID\\""
4553
+ # : Whether the device is enabled for remote debugging. Valid values
4554
+ # are "TRUE" or "FALSE".
4555
+ #
4556
+ # *Supported operators*\: `EQUALS`
4557
+ # @return [String]
4558
+ #
4559
+ # @!attribute [rw] operator
4560
+ # Specifies how Device Farm compares the rule's attribute to the
4561
+ # value. For the operators that are supported by each attribute, see
4562
+ # the attribute descriptions.
4563
+ # @return [String]
4564
+ #
4565
+ # @!attribute [rw] value
4566
+ # The rule's value.
4465
4567
  # @return [String]
4466
4568
  #
4467
4569
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Rule AWS API Documentation
@@ -4965,10 +5067,6 @@ module Aws::DeviceFarm
4965
5067
  #
4966
5068
  # @!attribute [rw] device_pool_arn
4967
5069
  # The ARN of the device pool for the run to be scheduled.
4968
- #
4969
- # Either <b> <code>devicePoolArn</code> </b> or <b>
4970
- # <code>deviceSelectionConfiguration</code> </b> is required in a
4971
- # request.
4972
5070
  # @return [String]
4973
5071
  #
4974
5072
  # @!attribute [rw] device_selection_configuration
@@ -5026,7 +5124,7 @@ module Aws::DeviceFarm
5026
5124
  end
5027
5125
 
5028
5126
  # Represents test settings. This data structure is passed in as the
5029
- # `test` parameter to ScheduleRun. For an example of the JSON request
5127
+ # "test" parameter to ScheduleRun. For an example of the JSON request
5030
5128
  # syntax, see ScheduleRun.
5031
5129
  #
5032
5130
  # @note When making an API call, you may pass ScheduleRunTest
@@ -5674,11 +5772,13 @@ module Aws::DeviceFarm
5674
5772
  # description: "Message",
5675
5773
  # rules: [
5676
5774
  # {
5677
- # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE
5678
- # operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
5775
+ # attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE, OS_VERSION, MODEL, AVAILABILITY
5776
+ # operator: "EQUALS", # accepts EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUALS, IN, NOT_IN, CONTAINS
5679
5777
  # value: "String",
5680
5778
  # },
5681
5779
  # ],
5780
+ # max_devices: 1,
5781
+ # clear_max_devices: false,
5682
5782
  # }
5683
5783
  #
5684
5784
  # @!attribute [rw] arn
@@ -5701,13 +5801,41 @@ module Aws::DeviceFarm
5701
5801
  # for your request, the update will replace the existing rules.
5702
5802
  # @return [Array<Types::Rule>]
5703
5803
  #
5804
+ # @!attribute [rw] max_devices
5805
+ # The number of devices that Device Farm can add to your device pool.
5806
+ # Device Farm adds devices that are available and that meet the
5807
+ # criteria that you assign for the `rules` parameter. Depending on how
5808
+ # many devices meet these constraints, your device pool might contain
5809
+ # fewer devices than the value for this parameter.
5810
+ #
5811
+ # By specifying the maximum number of devices, you can control the
5812
+ # costs that you incur by running tests.
5813
+ #
5814
+ # If you use this parameter in your request, you cannot use the
5815
+ # `clearMaxDevices` parameter in the same request.
5816
+ # @return [Integer]
5817
+ #
5818
+ # @!attribute [rw] clear_max_devices
5819
+ # Sets whether the `maxDevices` parameter applies to your device pool.
5820
+ # If you set this parameter to `true`, the `maxDevices` parameter does
5821
+ # not apply, and Device Farm does not limit the number of devices that
5822
+ # it adds to your device pool. In this case, Device Farm adds all
5823
+ # available devices that meet the criteria that are specified for the
5824
+ # `rules` parameter.
5825
+ #
5826
+ # If you use this parameter in your request, you cannot use the
5827
+ # `maxDevices` parameter in the same request.
5828
+ # @return [Boolean]
5829
+ #
5704
5830
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePoolRequest AWS API Documentation
5705
5831
  #
5706
5832
  class UpdateDevicePoolRequest < Struct.new(
5707
5833
  :arn,
5708
5834
  :name,
5709
5835
  :description,
5710
- :rules)
5836
+ :rules,
5837
+ :max_devices,
5838
+ :clear_max_devices)
5711
5839
  include Aws::Structure
5712
5840
  end
5713
5841
 
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.15.0
4
+ version: 1.16.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: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core