aws-sdk-devicefarm 1.0.0.rc5 → 1.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-devicefarm.rb +1 -1
- data/lib/aws-sdk-devicefarm/client.rb +964 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 746401d3958ecf5505a2947ec1ae126c48df3595
|
4
|
+
data.tar.gz: d01f9c4a04e6c86fd32449b8c6c9fb4e3d454129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da62fbd0f283b8044f20270c2489ab3d53c349b804bacb75970d2a536ba38aca6cab2dc9f37a89330f47c61c7ce80e5d08adbb8a9ff132abc8287ae1e93439c
|
7
|
+
data.tar.gz: 256eace8bf81be593b6bb88fe7678f679d02c0f6e6a95aa21029b8c1a4010f0d6f025327ba31e0407a8f54cc1672da86e82baf824bd3163188daf93c332e8d6a
|
data/lib/aws-sdk-devicefarm.rb
CHANGED
@@ -173,6 +173,25 @@ module Aws::DeviceFarm
|
|
173
173
|
#
|
174
174
|
# * {Types::CreateDevicePoolResult#device_pool #device_pool} => Types::DevicePool
|
175
175
|
#
|
176
|
+
#
|
177
|
+
# @example Example: To create a new device pool
|
178
|
+
#
|
179
|
+
# # The following example creates a new device pool named MyDevicePool inside an existing project.
|
180
|
+
#
|
181
|
+
# resp = client.create_device_pool({
|
182
|
+
# name: "MyDevicePool", # A device pool contains related devices, such as devices that run only on Android or that run only on iOS.
|
183
|
+
# description: "My Android devices",
|
184
|
+
# project_arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-projects CLI command.
|
185
|
+
# rules: [
|
186
|
+
# ],
|
187
|
+
# })
|
188
|
+
#
|
189
|
+
# resp.to_h outputs the following:
|
190
|
+
# {
|
191
|
+
# device_pool: {
|
192
|
+
# },
|
193
|
+
# }
|
194
|
+
#
|
176
195
|
# @example Request syntax with placeholder values
|
177
196
|
#
|
178
197
|
# resp = client.create_device_pool({
|
@@ -315,6 +334,24 @@ module Aws::DeviceFarm
|
|
315
334
|
#
|
316
335
|
# * {Types::CreateProjectResult#project #project} => Types::Project
|
317
336
|
#
|
337
|
+
#
|
338
|
+
# @example Example: To create a new project
|
339
|
+
#
|
340
|
+
# # The following example creates a new project named MyProject.
|
341
|
+
#
|
342
|
+
# resp = client.create_project({
|
343
|
+
# name: "MyProject", # A project in Device Farm is a workspace that contains test runs. A run is a test of a single app against one or more devices.
|
344
|
+
# })
|
345
|
+
#
|
346
|
+
# resp.to_h outputs the following:
|
347
|
+
# {
|
348
|
+
# project: {
|
349
|
+
# name: "MyProject",
|
350
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE",
|
351
|
+
# created: Time.parse("1472660939.152"),
|
352
|
+
# },
|
353
|
+
# }
|
354
|
+
#
|
318
355
|
# @example Request syntax with placeholder values
|
319
356
|
#
|
320
357
|
# resp = client.create_project({
|
@@ -358,6 +395,26 @@ module Aws::DeviceFarm
|
|
358
395
|
#
|
359
396
|
# * {Types::CreateRemoteAccessSessionResult#remote_access_session #remote_access_session} => Types::RemoteAccessSession
|
360
397
|
#
|
398
|
+
#
|
399
|
+
# @example Example: To create a remote access session
|
400
|
+
#
|
401
|
+
# # The following example creates a remote access session named MySession.
|
402
|
+
#
|
403
|
+
# resp = client.create_remote_access_session({
|
404
|
+
# name: "MySession",
|
405
|
+
# configuration: {
|
406
|
+
# billing_method: "METERED",
|
407
|
+
# },
|
408
|
+
# device_arn: "arn:aws:devicefarm:us-west-2::device:123EXAMPLE", # You can get the device ARN by using the list-devices CLI command.
|
409
|
+
# project_arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-projects CLI command.
|
410
|
+
# })
|
411
|
+
#
|
412
|
+
# resp.to_h outputs the following:
|
413
|
+
# {
|
414
|
+
# remote_access_session: {
|
415
|
+
# },
|
416
|
+
# }
|
417
|
+
#
|
361
418
|
# @example Request syntax with placeholder values
|
362
419
|
#
|
363
420
|
# resp = client.create_remote_access_session({
|
@@ -479,6 +536,29 @@ module Aws::DeviceFarm
|
|
479
536
|
#
|
480
537
|
# * {Types::CreateUploadResult#upload #upload} => Types::Upload
|
481
538
|
#
|
539
|
+
#
|
540
|
+
# @example Example: To create a new test package upload
|
541
|
+
#
|
542
|
+
# # The following example creates a new Appium Python test package upload inside an existing project.
|
543
|
+
#
|
544
|
+
# resp = client.create_upload({
|
545
|
+
# name: "MyAppiumPythonUpload",
|
546
|
+
# type: "APPIUM_PYTHON_TEST_PACKAGE",
|
547
|
+
# project_arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-projects CLI command.
|
548
|
+
# })
|
549
|
+
#
|
550
|
+
# resp.to_h outputs the following:
|
551
|
+
# {
|
552
|
+
# upload: {
|
553
|
+
# name: "MyAppiumPythonUpload",
|
554
|
+
# type: "APPIUM_PYTHON_TEST_PACKAGE",
|
555
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:upload:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/b5340a65-3da7-4da6-a26e-12345EXAMPLE",
|
556
|
+
# created: Time.parse("1472661404.186"),
|
557
|
+
# status: "INITIALIZED",
|
558
|
+
# url: "https://prod-us-west-2-uploads.s3-us-west-2.amazonaws.com/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A123456789101%3Aproject%3A5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE/uploads/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A123456789101%3Aupload%3A5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/b5340a65-3da7-4da6-a26e-12345EXAMPLE/MyAppiumPythonUpload?AWSAccessKeyId=1234567891011EXAMPLE&Expires=1472747804&Signature=1234567891011EXAMPLE",
|
559
|
+
# },
|
560
|
+
# }
|
561
|
+
#
|
482
562
|
# @example Request syntax with placeholder values
|
483
563
|
#
|
484
564
|
# resp = client.create_upload({
|
@@ -518,6 +598,19 @@ module Aws::DeviceFarm
|
|
518
598
|
#
|
519
599
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
520
600
|
#
|
601
|
+
#
|
602
|
+
# @example Example: To delete a device pool
|
603
|
+
#
|
604
|
+
# # The following example deletes a specific device pool.
|
605
|
+
#
|
606
|
+
# resp = client.delete_device_pool({
|
607
|
+
# arn: "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID", # You can get the device pool ARN by using the list-device-pools CLI command.
|
608
|
+
# })
|
609
|
+
#
|
610
|
+
# resp.to_h outputs the following:
|
611
|
+
# {
|
612
|
+
# }
|
613
|
+
#
|
521
614
|
# @example Request syntax with placeholder values
|
522
615
|
#
|
523
616
|
# resp = client.delete_device_pool({
|
@@ -566,6 +659,19 @@ module Aws::DeviceFarm
|
|
566
659
|
#
|
567
660
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
568
661
|
#
|
662
|
+
#
|
663
|
+
# @example Example: To delete a project
|
664
|
+
#
|
665
|
+
# # The following example deletes a specific project.
|
666
|
+
#
|
667
|
+
# resp = client.delete_project({
|
668
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-projects CLI command.
|
669
|
+
# })
|
670
|
+
#
|
671
|
+
# resp.to_h outputs the following:
|
672
|
+
# {
|
673
|
+
# }
|
674
|
+
#
|
569
675
|
# @example Request syntax with placeholder values
|
570
676
|
#
|
571
677
|
# resp = client.delete_project({
|
@@ -589,6 +695,19 @@ module Aws::DeviceFarm
|
|
589
695
|
#
|
590
696
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
591
697
|
#
|
698
|
+
#
|
699
|
+
# @example Example: To delete a specific remote access session
|
700
|
+
#
|
701
|
+
# # The following example deletes a specific remote access session.
|
702
|
+
#
|
703
|
+
# resp = client.delete_remote_access_session({
|
704
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456", # You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
|
705
|
+
# })
|
706
|
+
#
|
707
|
+
# resp.to_h outputs the following:
|
708
|
+
# {
|
709
|
+
# }
|
710
|
+
#
|
592
711
|
# @example Request syntax with placeholder values
|
593
712
|
#
|
594
713
|
# resp = client.delete_remote_access_session({
|
@@ -613,6 +732,19 @@ module Aws::DeviceFarm
|
|
613
732
|
#
|
614
733
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
615
734
|
#
|
735
|
+
#
|
736
|
+
# @example Example: To delete a run
|
737
|
+
#
|
738
|
+
# # The following example deletes a specific test run.
|
739
|
+
#
|
740
|
+
# resp = client.delete_run({
|
741
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456", # You can get the run ARN by using the list-runs CLI command.
|
742
|
+
# })
|
743
|
+
#
|
744
|
+
# resp.to_h outputs the following:
|
745
|
+
# {
|
746
|
+
# }
|
747
|
+
#
|
616
748
|
# @example Request syntax with placeholder values
|
617
749
|
#
|
618
750
|
# resp = client.delete_run({
|
@@ -636,6 +768,19 @@ module Aws::DeviceFarm
|
|
636
768
|
#
|
637
769
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
638
770
|
#
|
771
|
+
#
|
772
|
+
# @example Example: To delete a specific upload
|
773
|
+
#
|
774
|
+
# # The following example deletes a specific upload.
|
775
|
+
#
|
776
|
+
# resp = client.delete_upload({
|
777
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456", # You can get the upload ARN by using the list-uploads CLI command.
|
778
|
+
# })
|
779
|
+
#
|
780
|
+
# resp.to_h outputs the following:
|
781
|
+
# {
|
782
|
+
# }
|
783
|
+
#
|
639
784
|
# @example Request syntax with placeholder values
|
640
785
|
#
|
641
786
|
# resp = client.delete_upload({
|
@@ -658,6 +803,25 @@ module Aws::DeviceFarm
|
|
658
803
|
#
|
659
804
|
# * {Types::GetAccountSettingsResult#account_settings #account_settings} => Types::AccountSettings
|
660
805
|
#
|
806
|
+
#
|
807
|
+
# @example Example: To get information about account settings
|
808
|
+
#
|
809
|
+
# # The following example returns information about your Device Farm account settings.
|
810
|
+
#
|
811
|
+
# resp = client.get_account_settings({
|
812
|
+
# })
|
813
|
+
#
|
814
|
+
# resp.to_h outputs the following:
|
815
|
+
# {
|
816
|
+
# account_settings: {
|
817
|
+
# aws_account_number: "123456789101",
|
818
|
+
# unmetered_devices: {
|
819
|
+
# "ANDROID" => 1,
|
820
|
+
# "IOS" => 2,
|
821
|
+
# },
|
822
|
+
# },
|
823
|
+
# }
|
824
|
+
#
|
661
825
|
# @example Response structure
|
662
826
|
#
|
663
827
|
# resp.account_settings.aws_account_number #=> String
|
@@ -690,6 +854,40 @@ module Aws::DeviceFarm
|
|
690
854
|
#
|
691
855
|
# * {Types::GetDeviceResult#device #device} => Types::Device
|
692
856
|
#
|
857
|
+
#
|
858
|
+
# @example Example: To get information about a device
|
859
|
+
#
|
860
|
+
# # The following example returns information about a specific device.
|
861
|
+
#
|
862
|
+
# resp = client.get_device({
|
863
|
+
# arn: "arn:aws:devicefarm:us-west-2::device:123EXAMPLE",
|
864
|
+
# })
|
865
|
+
#
|
866
|
+
# resp.to_h outputs the following:
|
867
|
+
# {
|
868
|
+
# device: {
|
869
|
+
# name: "LG G2 (Sprint)",
|
870
|
+
# arn: "arn:aws:devicefarm:us-west-2::device:A0E6E6E1059E45918208DF75B2B7EF6C",
|
871
|
+
# cpu: {
|
872
|
+
# architecture: "armeabi-v7a",
|
873
|
+
# clock: 2265.6,
|
874
|
+
# frequency: "MHz",
|
875
|
+
# },
|
876
|
+
# form_factor: "PHONE",
|
877
|
+
# heap_size: 256000000,
|
878
|
+
# image: "75B2B7EF6C12345EXAMPLE",
|
879
|
+
# manufacturer: "LG",
|
880
|
+
# memory: 16000000000,
|
881
|
+
# model: "G2 (Sprint)",
|
882
|
+
# os: "4.2.2",
|
883
|
+
# platform: "ANDROID",
|
884
|
+
# resolution: {
|
885
|
+
# height: 1920,
|
886
|
+
# width: 1080,
|
887
|
+
# },
|
888
|
+
# },
|
889
|
+
# }
|
890
|
+
#
|
693
891
|
# @example Request syntax with placeholder values
|
694
892
|
#
|
695
893
|
# resp = client.get_device({
|
@@ -737,6 +935,21 @@ module Aws::DeviceFarm
|
|
737
935
|
#
|
738
936
|
# * {Types::GetDevicePoolResult#device_pool #device_pool} => Types::DevicePool
|
739
937
|
#
|
938
|
+
#
|
939
|
+
# @example Example: To get information about a device pool
|
940
|
+
#
|
941
|
+
# # The following example returns information about a specific device pool, given a project ARN.
|
942
|
+
#
|
943
|
+
# resp = client.get_device_pool({
|
944
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can obtain the project ARN by using the list-projects CLI command.
|
945
|
+
# })
|
946
|
+
#
|
947
|
+
# resp.to_h outputs the following:
|
948
|
+
# {
|
949
|
+
# device_pool: {
|
950
|
+
# },
|
951
|
+
# }
|
952
|
+
#
|
740
953
|
# @example Request syntax with placeholder values
|
741
954
|
#
|
742
955
|
# resp = client.get_device_pool({
|
@@ -814,6 +1027,25 @@ module Aws::DeviceFarm
|
|
814
1027
|
# * {Types::GetDevicePoolCompatibilityResult#compatible_devices #compatible_devices} => Array<Types::DevicePoolCompatibilityResult>
|
815
1028
|
# * {Types::GetDevicePoolCompatibilityResult#incompatible_devices #incompatible_devices} => Array<Types::DevicePoolCompatibilityResult>
|
816
1029
|
#
|
1030
|
+
#
|
1031
|
+
# @example Example: To get information about the compatibility of a device pool
|
1032
|
+
#
|
1033
|
+
# # The following example returns information about the compatibility of a specific device pool, given its ARN.
|
1034
|
+
#
|
1035
|
+
# resp = client.get_device_pool_compatibility({
|
1036
|
+
# app_arn: "arn:aws:devicefarm:us-west-2::app:123-456-EXAMPLE-GUID",
|
1037
|
+
# device_pool_arn: "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID", # You can get the device pool ARN by using the list-device-pools CLI command.
|
1038
|
+
# test_type: "APPIUM_PYTHON",
|
1039
|
+
# })
|
1040
|
+
#
|
1041
|
+
# resp.to_h outputs the following:
|
1042
|
+
# {
|
1043
|
+
# compatible_devices: [
|
1044
|
+
# ],
|
1045
|
+
# incompatible_devices: [
|
1046
|
+
# ],
|
1047
|
+
# }
|
1048
|
+
#
|
817
1049
|
# @example Request syntax with placeholder values
|
818
1050
|
#
|
819
1051
|
# resp = client.get_device_pool_compatibility({
|
@@ -901,6 +1133,21 @@ module Aws::DeviceFarm
|
|
901
1133
|
#
|
902
1134
|
# * {Types::GetJobResult#job #job} => Types::Job
|
903
1135
|
#
|
1136
|
+
#
|
1137
|
+
# @example Example: To get information about a job
|
1138
|
+
#
|
1139
|
+
# # The following example returns information about a specific job.
|
1140
|
+
#
|
1141
|
+
# resp = client.get_job({
|
1142
|
+
# arn: "arn:aws:devicefarm:us-west-2::job:123-456-EXAMPLE-GUID", # You can get the job ARN by using the list-jobs CLI command.
|
1143
|
+
# })
|
1144
|
+
#
|
1145
|
+
# resp.to_h outputs the following:
|
1146
|
+
# {
|
1147
|
+
# job: {
|
1148
|
+
# },
|
1149
|
+
# }
|
1150
|
+
#
|
904
1151
|
# @example Request syntax with placeholder values
|
905
1152
|
#
|
906
1153
|
# resp = client.get_job({
|
@@ -1017,6 +1264,42 @@ module Aws::DeviceFarm
|
|
1017
1264
|
# * {Types::GetOfferingStatusResult#next_period #next_period} => Hash<String,Types::OfferingStatus>
|
1018
1265
|
# * {Types::GetOfferingStatusResult#next_token #next_token} => String
|
1019
1266
|
#
|
1267
|
+
#
|
1268
|
+
# @example Example: To get status information about device offerings
|
1269
|
+
#
|
1270
|
+
# # The following example returns information about Device Farm offerings available to your account.
|
1271
|
+
#
|
1272
|
+
# resp = client.get_offering_status({
|
1273
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE=", # A dynamically generated value, used for paginating results.
|
1274
|
+
# })
|
1275
|
+
#
|
1276
|
+
# resp.to_h outputs the following:
|
1277
|
+
# {
|
1278
|
+
# current: {
|
1279
|
+
# "D68B3C05-1BA6-4360-BC69-12345EXAMPLE" => {
|
1280
|
+
# offering: {
|
1281
|
+
# type: "RECURRING",
|
1282
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
1283
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
1284
|
+
# platform: "ANDROID",
|
1285
|
+
# },
|
1286
|
+
# quantity: 1,
|
1287
|
+
# },
|
1288
|
+
# },
|
1289
|
+
# next_period: {
|
1290
|
+
# "D68B3C05-1BA6-4360-BC69-12345EXAMPLE" => {
|
1291
|
+
# effective_on: Time.parse("1472688000"),
|
1292
|
+
# offering: {
|
1293
|
+
# type: "RECURRING",
|
1294
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
1295
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
1296
|
+
# platform: "ANDROID",
|
1297
|
+
# },
|
1298
|
+
# quantity: 1,
|
1299
|
+
# },
|
1300
|
+
# },
|
1301
|
+
# }
|
1302
|
+
#
|
1020
1303
|
# @example Request syntax with placeholder values
|
1021
1304
|
#
|
1022
1305
|
# resp = client.get_offering_status({
|
@@ -1069,6 +1352,24 @@ module Aws::DeviceFarm
|
|
1069
1352
|
#
|
1070
1353
|
# * {Types::GetProjectResult#project #project} => Types::Project
|
1071
1354
|
#
|
1355
|
+
#
|
1356
|
+
# @example Example: To get information about a project
|
1357
|
+
#
|
1358
|
+
# # The following example gets information about a specific project.
|
1359
|
+
#
|
1360
|
+
# resp = client.get_project({
|
1361
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE", # You can get the project ARN by using the list-projects CLI command.
|
1362
|
+
# })
|
1363
|
+
#
|
1364
|
+
# resp.to_h outputs the following:
|
1365
|
+
# {
|
1366
|
+
# project: {
|
1367
|
+
# name: "My Project",
|
1368
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE",
|
1369
|
+
# created: Time.parse("1472660939.152"),
|
1370
|
+
# },
|
1371
|
+
# }
|
1372
|
+
#
|
1072
1373
|
# @example Request syntax with placeholder values
|
1073
1374
|
#
|
1074
1375
|
# resp = client.get_project({
|
@@ -1101,6 +1402,21 @@ module Aws::DeviceFarm
|
|
1101
1402
|
#
|
1102
1403
|
# * {Types::GetRemoteAccessSessionResult#remote_access_session #remote_access_session} => Types::RemoteAccessSession
|
1103
1404
|
#
|
1405
|
+
#
|
1406
|
+
# @example Example: To get a remote access session
|
1407
|
+
#
|
1408
|
+
# # The following example gets a specific remote access session.
|
1409
|
+
#
|
1410
|
+
# resp = client.get_remote_access_session({
|
1411
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456", # You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
|
1412
|
+
# })
|
1413
|
+
#
|
1414
|
+
# resp.to_h outputs the following:
|
1415
|
+
# {
|
1416
|
+
# remote_access_session: {
|
1417
|
+
# },
|
1418
|
+
# }
|
1419
|
+
#
|
1104
1420
|
# @example Request syntax with placeholder values
|
1105
1421
|
#
|
1106
1422
|
# resp = client.get_remote_access_session({
|
@@ -1161,6 +1477,45 @@ module Aws::DeviceFarm
|
|
1161
1477
|
#
|
1162
1478
|
# * {Types::GetRunResult#run #run} => Types::Run
|
1163
1479
|
#
|
1480
|
+
#
|
1481
|
+
# @example Example: To get information about a test run
|
1482
|
+
#
|
1483
|
+
# # The following example gets information about a specific test run.
|
1484
|
+
#
|
1485
|
+
# resp = client.get_run({
|
1486
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE", # You can get the run ARN by using the list-runs CLI command.
|
1487
|
+
# })
|
1488
|
+
#
|
1489
|
+
# resp.to_h outputs the following:
|
1490
|
+
# {
|
1491
|
+
# run: {
|
1492
|
+
# name: "My Test Run",
|
1493
|
+
# type: "BUILTIN_EXPLORER",
|
1494
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
|
1495
|
+
# billing_method: "METERED",
|
1496
|
+
# completed_jobs: 0,
|
1497
|
+
# counters: {
|
1498
|
+
# errored: 0,
|
1499
|
+
# failed: 0,
|
1500
|
+
# passed: 0,
|
1501
|
+
# skipped: 0,
|
1502
|
+
# stopped: 0,
|
1503
|
+
# total: 0,
|
1504
|
+
# warned: 0,
|
1505
|
+
# },
|
1506
|
+
# created: Time.parse("1472667509.852"),
|
1507
|
+
# device_minutes: {
|
1508
|
+
# metered: 0.0,
|
1509
|
+
# total: 0.0,
|
1510
|
+
# unmetered: 0.0,
|
1511
|
+
# },
|
1512
|
+
# platform: "ANDROID",
|
1513
|
+
# result: "PENDING",
|
1514
|
+
# status: "RUNNING",
|
1515
|
+
# total_jobs: 3,
|
1516
|
+
# },
|
1517
|
+
# }
|
1518
|
+
#
|
1164
1519
|
# @example Request syntax with placeholder values
|
1165
1520
|
#
|
1166
1521
|
# resp = client.get_run({
|
@@ -1223,6 +1578,21 @@ module Aws::DeviceFarm
|
|
1223
1578
|
#
|
1224
1579
|
# * {Types::GetSuiteResult#suite #suite} => Types::Suite
|
1225
1580
|
#
|
1581
|
+
#
|
1582
|
+
# @example Example: To get information about a test suite
|
1583
|
+
#
|
1584
|
+
# # The following example gets information about a specific test suite.
|
1585
|
+
#
|
1586
|
+
# resp = client.get_suite({
|
1587
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:suite:EXAMPLE-GUID-123-456", # You can get the suite ARN by using the list-suites CLI command.
|
1588
|
+
# })
|
1589
|
+
#
|
1590
|
+
# resp.to_h outputs the following:
|
1591
|
+
# {
|
1592
|
+
# suite: {
|
1593
|
+
# },
|
1594
|
+
# }
|
1595
|
+
#
|
1226
1596
|
# @example Request syntax with placeholder values
|
1227
1597
|
#
|
1228
1598
|
# resp = client.get_suite({
|
@@ -1269,6 +1639,21 @@ module Aws::DeviceFarm
|
|
1269
1639
|
#
|
1270
1640
|
# * {Types::GetTestResult#test #test} => Types::Test
|
1271
1641
|
#
|
1642
|
+
#
|
1643
|
+
# @example Example: To get information about a specific test
|
1644
|
+
#
|
1645
|
+
# # The following example gets information about a specific test.
|
1646
|
+
#
|
1647
|
+
# resp = client.get_test({
|
1648
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456", # You can get the test ARN by using the list-tests CLI command.
|
1649
|
+
# })
|
1650
|
+
#
|
1651
|
+
# resp.to_h outputs the following:
|
1652
|
+
# {
|
1653
|
+
# test: {
|
1654
|
+
# },
|
1655
|
+
# }
|
1656
|
+
#
|
1272
1657
|
# @example Request syntax with placeholder values
|
1273
1658
|
#
|
1274
1659
|
# resp = client.get_test({
|
@@ -1315,6 +1700,21 @@ module Aws::DeviceFarm
|
|
1315
1700
|
#
|
1316
1701
|
# * {Types::GetUploadResult#upload #upload} => Types::Upload
|
1317
1702
|
#
|
1703
|
+
#
|
1704
|
+
# @example Example: To get information about a specific upload
|
1705
|
+
#
|
1706
|
+
# # The following example gets information about a specific upload.
|
1707
|
+
#
|
1708
|
+
# resp = client.get_upload({
|
1709
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456", # You can get the test ARN by using the list-uploads CLI command.
|
1710
|
+
# })
|
1711
|
+
#
|
1712
|
+
# resp.to_h outputs the following:
|
1713
|
+
# {
|
1714
|
+
# upload: {
|
1715
|
+
# },
|
1716
|
+
# }
|
1717
|
+
#
|
1318
1718
|
# @example Request syntax with placeholder values
|
1319
1719
|
#
|
1320
1720
|
# resp = client.get_upload({
|
@@ -1358,6 +1758,22 @@ module Aws::DeviceFarm
|
|
1358
1758
|
#
|
1359
1759
|
# * {Types::InstallToRemoteAccessSessionResult#app_upload #app_upload} => Types::Upload
|
1360
1760
|
#
|
1761
|
+
#
|
1762
|
+
# @example Example: To install to a remote access session
|
1763
|
+
#
|
1764
|
+
# # The following example installs a specific app to a device in a specific remote access session.
|
1765
|
+
#
|
1766
|
+
# resp = client.install_to_remote_access_session({
|
1767
|
+
# app_arn: "arn:aws:devicefarm:us-west-2:123456789101:app:EXAMPLE-GUID-123-456",
|
1768
|
+
# remote_access_session_arn: "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456", # You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
|
1769
|
+
# })
|
1770
|
+
#
|
1771
|
+
# resp.to_h outputs the following:
|
1772
|
+
# {
|
1773
|
+
# app_upload: {
|
1774
|
+
# },
|
1775
|
+
# }
|
1776
|
+
#
|
1361
1777
|
# @example Request syntax with placeholder values
|
1362
1778
|
#
|
1363
1779
|
# resp = client.install_to_remote_access_session({
|
@@ -1412,6 +1828,16 @@ module Aws::DeviceFarm
|
|
1412
1828
|
# * {Types::ListArtifactsResult#artifacts #artifacts} => Array<Types::Artifact>
|
1413
1829
|
# * {Types::ListArtifactsResult#next_token #next_token} => String
|
1414
1830
|
#
|
1831
|
+
#
|
1832
|
+
# @example Example: To list artifacts for a resource
|
1833
|
+
#
|
1834
|
+
# # The following example lists screenshot artifacts for a specific run.
|
1835
|
+
#
|
1836
|
+
# resp = client.list_artifacts({
|
1837
|
+
# type: "SCREENSHOT",
|
1838
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456", # Can also be used to list artifacts for a Job, Suite, or Test ARN.
|
1839
|
+
# })
|
1840
|
+
#
|
1415
1841
|
# @example Request syntax with placeholder values
|
1416
1842
|
#
|
1417
1843
|
# resp = client.list_artifacts({
|
@@ -1465,6 +1891,46 @@ module Aws::DeviceFarm
|
|
1465
1891
|
# * {Types::ListDevicePoolsResult#device_pools #device_pools} => Array<Types::DevicePool>
|
1466
1892
|
# * {Types::ListDevicePoolsResult#next_token #next_token} => String
|
1467
1893
|
#
|
1894
|
+
#
|
1895
|
+
# @example Example: To get information about device pools
|
1896
|
+
#
|
1897
|
+
# # The following example returns information about the private device pools in a specific project.
|
1898
|
+
#
|
1899
|
+
# resp = client.list_device_pools({
|
1900
|
+
# type: "PRIVATE",
|
1901
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-projects CLI command.
|
1902
|
+
# })
|
1903
|
+
#
|
1904
|
+
# resp.to_h outputs the following:
|
1905
|
+
# {
|
1906
|
+
# device_pools: [
|
1907
|
+
# {
|
1908
|
+
# name: "Top Devices",
|
1909
|
+
# arn: "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE",
|
1910
|
+
# description: "Top devices",
|
1911
|
+
# rules: [
|
1912
|
+
# {
|
1913
|
+
# value: "[\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\"]",
|
1914
|
+
# attribute: "ARN",
|
1915
|
+
# operator: "IN",
|
1916
|
+
# },
|
1917
|
+
# ],
|
1918
|
+
# },
|
1919
|
+
# {
|
1920
|
+
# name: "My Android Device Pool",
|
1921
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:devicepool:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/bf96e75a-28f6-4e61-b6a7-12345EXAMPLE",
|
1922
|
+
# description: "Samsung Galaxy Android devices",
|
1923
|
+
# rules: [
|
1924
|
+
# {
|
1925
|
+
# value: "[\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\"]",
|
1926
|
+
# attribute: "ARN",
|
1927
|
+
# operator: "IN",
|
1928
|
+
# },
|
1929
|
+
# ],
|
1930
|
+
# },
|
1931
|
+
# ],
|
1932
|
+
# }
|
1933
|
+
#
|
1468
1934
|
# @example Request syntax with placeholder values
|
1469
1935
|
#
|
1470
1936
|
# resp = client.list_device_pools({
|
@@ -1510,6 +1976,19 @@ module Aws::DeviceFarm
|
|
1510
1976
|
# * {Types::ListDevicesResult#devices #devices} => Array<Types::Device>
|
1511
1977
|
# * {Types::ListDevicesResult#next_token #next_token} => String
|
1512
1978
|
#
|
1979
|
+
#
|
1980
|
+
# @example Example: To get information about devices
|
1981
|
+
#
|
1982
|
+
# # The following example returns information about the available devices in a specific project.
|
1983
|
+
#
|
1984
|
+
# resp = client.list_devices({
|
1985
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-projects CLI command.
|
1986
|
+
# })
|
1987
|
+
#
|
1988
|
+
# resp.to_h outputs the following:
|
1989
|
+
# {
|
1990
|
+
# }
|
1991
|
+
#
|
1513
1992
|
# @example Request syntax with placeholder values
|
1514
1993
|
#
|
1515
1994
|
# resp = client.list_devices({
|
@@ -1566,6 +2045,15 @@ module Aws::DeviceFarm
|
|
1566
2045
|
# * {Types::ListJobsResult#jobs #jobs} => Array<Types::Job>
|
1567
2046
|
# * {Types::ListJobsResult#next_token #next_token} => String
|
1568
2047
|
#
|
2048
|
+
#
|
2049
|
+
# @example Example: To get information about jobs
|
2050
|
+
#
|
2051
|
+
# # The following example returns information about jobs in a specific project.
|
2052
|
+
#
|
2053
|
+
# resp = client.list_jobs({
|
2054
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the project ARN by using the list-jobs CLI command.
|
2055
|
+
# })
|
2056
|
+
#
|
1569
2057
|
# @example Request syntax with placeholder values
|
1570
2058
|
#
|
1571
2059
|
# resp = client.list_jobs({
|
@@ -1737,6 +2225,97 @@ module Aws::DeviceFarm
|
|
1737
2225
|
# * {Types::ListOfferingTransactionsResult#offering_transactions #offering_transactions} => Array<Types::OfferingTransaction>
|
1738
2226
|
# * {Types::ListOfferingTransactionsResult#next_token #next_token} => String
|
1739
2227
|
#
|
2228
|
+
#
|
2229
|
+
# @example Example: To get information about device offering transactions
|
2230
|
+
#
|
2231
|
+
# # The following example returns information about Device Farm offering transactions.
|
2232
|
+
#
|
2233
|
+
# resp = client.list_offering_transactions({
|
2234
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE=", # A dynamically generated value, used for paginating results.
|
2235
|
+
# })
|
2236
|
+
#
|
2237
|
+
# resp.to_h outputs the following:
|
2238
|
+
# {
|
2239
|
+
# offering_transactions: [
|
2240
|
+
# {
|
2241
|
+
# cost: {
|
2242
|
+
# amount: 0,
|
2243
|
+
# currency_code: "USD",
|
2244
|
+
# },
|
2245
|
+
# created_on: Time.parse("1470021420"),
|
2246
|
+
# offering_status: {
|
2247
|
+
# type: "RENEW",
|
2248
|
+
# effective_on: Time.parse("1472688000"),
|
2249
|
+
# offering: {
|
2250
|
+
# type: "RECURRING",
|
2251
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
2252
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
2253
|
+
# platform: "ANDROID",
|
2254
|
+
# },
|
2255
|
+
# quantity: 0,
|
2256
|
+
# },
|
2257
|
+
# transaction_id: "03728003-d1ea-4851-abd6-12345EXAMPLE",
|
2258
|
+
# },
|
2259
|
+
# {
|
2260
|
+
# cost: {
|
2261
|
+
# amount: 250,
|
2262
|
+
# currency_code: "USD",
|
2263
|
+
# },
|
2264
|
+
# created_on: Time.parse("1470021420"),
|
2265
|
+
# offering_status: {
|
2266
|
+
# type: "PURCHASE",
|
2267
|
+
# effective_on: Time.parse("1470021420"),
|
2268
|
+
# offering: {
|
2269
|
+
# type: "RECURRING",
|
2270
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
2271
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
2272
|
+
# platform: "ANDROID",
|
2273
|
+
# },
|
2274
|
+
# quantity: 1,
|
2275
|
+
# },
|
2276
|
+
# transaction_id: "56820b6e-06bd-473a-8ff8-12345EXAMPLE",
|
2277
|
+
# },
|
2278
|
+
# {
|
2279
|
+
# cost: {
|
2280
|
+
# amount: 175,
|
2281
|
+
# currency_code: "USD",
|
2282
|
+
# },
|
2283
|
+
# created_on: Time.parse("1465538520"),
|
2284
|
+
# offering_status: {
|
2285
|
+
# type: "PURCHASE",
|
2286
|
+
# effective_on: Time.parse("1465538520"),
|
2287
|
+
# offering: {
|
2288
|
+
# type: "RECURRING",
|
2289
|
+
# description: "Android Unmetered Device Slot",
|
2290
|
+
# id: "8980F81C-00D7-469D-8EC6-12345EXAMPLE",
|
2291
|
+
# platform: "ANDROID",
|
2292
|
+
# },
|
2293
|
+
# quantity: 1,
|
2294
|
+
# },
|
2295
|
+
# transaction_id: "953ae2c6-d760-4a04-9597-12345EXAMPLE",
|
2296
|
+
# },
|
2297
|
+
# {
|
2298
|
+
# cost: {
|
2299
|
+
# amount: 8.07,
|
2300
|
+
# currency_code: "USD",
|
2301
|
+
# },
|
2302
|
+
# created_on: Time.parse("1459344300"),
|
2303
|
+
# offering_status: {
|
2304
|
+
# type: "PURCHASE",
|
2305
|
+
# effective_on: Time.parse("1459344300"),
|
2306
|
+
# offering: {
|
2307
|
+
# type: "RECURRING",
|
2308
|
+
# description: "iOS Unmetered Device Slot",
|
2309
|
+
# id: "A53D4D73-A6F6-4B82-A0B0-12345EXAMPLE",
|
2310
|
+
# platform: "IOS",
|
2311
|
+
# },
|
2312
|
+
# quantity: 1,
|
2313
|
+
# },
|
2314
|
+
# transaction_id: "2baf9021-ae3e-47f5-ab52-12345EXAMPLE",
|
2315
|
+
# },
|
2316
|
+
# ],
|
2317
|
+
# }
|
2318
|
+
#
|
1740
2319
|
# @example Request syntax with placeholder values
|
1741
2320
|
#
|
1742
2321
|
# resp = client.list_offering_transactions({
|
@@ -1791,6 +2370,81 @@ module Aws::DeviceFarm
|
|
1791
2370
|
# * {Types::ListOfferingsResult#offerings #offerings} => Array<Types::Offering>
|
1792
2371
|
# * {Types::ListOfferingsResult#next_token #next_token} => String
|
1793
2372
|
#
|
2373
|
+
#
|
2374
|
+
# @example Example: To get information about device offerings
|
2375
|
+
#
|
2376
|
+
# # The following example returns information about available device offerings.
|
2377
|
+
#
|
2378
|
+
# resp = client.list_offerings({
|
2379
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE=", # A dynamically generated value, used for paginating results.
|
2380
|
+
# })
|
2381
|
+
#
|
2382
|
+
# resp.to_h outputs the following:
|
2383
|
+
# {
|
2384
|
+
# offerings: [
|
2385
|
+
# {
|
2386
|
+
# type: "RECURRING",
|
2387
|
+
# description: "iOS Unmetered Device Slot",
|
2388
|
+
# id: "A53D4D73-A6F6-4B82-A0B0-12345EXAMPLE",
|
2389
|
+
# platform: "IOS",
|
2390
|
+
# recurring_charges: [
|
2391
|
+
# {
|
2392
|
+
# cost: {
|
2393
|
+
# amount: 250,
|
2394
|
+
# currency_code: "USD",
|
2395
|
+
# },
|
2396
|
+
# frequency: "MONTHLY",
|
2397
|
+
# },
|
2398
|
+
# ],
|
2399
|
+
# },
|
2400
|
+
# {
|
2401
|
+
# type: "RECURRING",
|
2402
|
+
# description: "Android Unmetered Device Slot",
|
2403
|
+
# id: "8980F81C-00D7-469D-8EC6-12345EXAMPLE",
|
2404
|
+
# platform: "ANDROID",
|
2405
|
+
# recurring_charges: [
|
2406
|
+
# {
|
2407
|
+
# cost: {
|
2408
|
+
# amount: 250,
|
2409
|
+
# currency_code: "USD",
|
2410
|
+
# },
|
2411
|
+
# frequency: "MONTHLY",
|
2412
|
+
# },
|
2413
|
+
# ],
|
2414
|
+
# },
|
2415
|
+
# {
|
2416
|
+
# type: "RECURRING",
|
2417
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
2418
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
2419
|
+
# platform: "ANDROID",
|
2420
|
+
# recurring_charges: [
|
2421
|
+
# {
|
2422
|
+
# cost: {
|
2423
|
+
# amount: 250,
|
2424
|
+
# currency_code: "USD",
|
2425
|
+
# },
|
2426
|
+
# frequency: "MONTHLY",
|
2427
|
+
# },
|
2428
|
+
# ],
|
2429
|
+
# },
|
2430
|
+
# {
|
2431
|
+
# type: "RECURRING",
|
2432
|
+
# description: "iOS Remote Access Unmetered Device Slot",
|
2433
|
+
# id: "552B4DAD-A6C9-45C4-94FB-12345EXAMPLE",
|
2434
|
+
# platform: "IOS",
|
2435
|
+
# recurring_charges: [
|
2436
|
+
# {
|
2437
|
+
# cost: {
|
2438
|
+
# amount: 250,
|
2439
|
+
# currency_code: "USD",
|
2440
|
+
# },
|
2441
|
+
# frequency: "MONTHLY",
|
2442
|
+
# },
|
2443
|
+
# ],
|
2444
|
+
# },
|
2445
|
+
# ],
|
2446
|
+
# }
|
2447
|
+
#
|
1794
2448
|
# @example Request syntax with placeholder values
|
1795
2449
|
#
|
1796
2450
|
# resp = client.list_offerings({
|
@@ -1836,6 +2490,32 @@ module Aws::DeviceFarm
|
|
1836
2490
|
# * {Types::ListProjectsResult#projects #projects} => Array<Types::Project>
|
1837
2491
|
# * {Types::ListProjectsResult#next_token #next_token} => String
|
1838
2492
|
#
|
2493
|
+
#
|
2494
|
+
# @example Example: To get information about a Device Farm project
|
2495
|
+
#
|
2496
|
+
# # The following example returns information about the specified project in Device Farm.
|
2497
|
+
#
|
2498
|
+
# resp = client.list_projects({
|
2499
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE",
|
2500
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
2501
|
+
# })
|
2502
|
+
#
|
2503
|
+
# resp.to_h outputs the following:
|
2504
|
+
# {
|
2505
|
+
# projects: [
|
2506
|
+
# {
|
2507
|
+
# name: "My Test Project",
|
2508
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE",
|
2509
|
+
# created: Time.parse("1453163262.105"),
|
2510
|
+
# },
|
2511
|
+
# {
|
2512
|
+
# name: "Hello World",
|
2513
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:d6b087d9-56db-4e44-b9ec-12345EXAMPLE",
|
2514
|
+
# created: Time.parse("1470350112.439"),
|
2515
|
+
# },
|
2516
|
+
# ],
|
2517
|
+
# }
|
2518
|
+
#
|
1839
2519
|
# @example Request syntax with placeholder values
|
1840
2520
|
#
|
1841
2521
|
# resp = client.list_projects({
|
@@ -1877,6 +2557,22 @@ module Aws::DeviceFarm
|
|
1877
2557
|
# * {Types::ListRemoteAccessSessionsResult#remote_access_sessions #remote_access_sessions} => Array<Types::RemoteAccessSession>
|
1878
2558
|
# * {Types::ListRemoteAccessSessionsResult#next_token #next_token} => String
|
1879
2559
|
#
|
2560
|
+
#
|
2561
|
+
# @example Example: To get information about a remote access session
|
2562
|
+
#
|
2563
|
+
# # The following example returns information about a specific Device Farm remote access session.
|
2564
|
+
#
|
2565
|
+
# resp = client.list_remote_access_sessions({
|
2566
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the session by using the list-sessions CLI command.
|
2567
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE=", # A dynamically generated value, used for paginating results.
|
2568
|
+
# })
|
2569
|
+
#
|
2570
|
+
# resp.to_h outputs the following:
|
2571
|
+
# {
|
2572
|
+
# remote_access_sessions: [
|
2573
|
+
# ],
|
2574
|
+
# }
|
2575
|
+
#
|
1880
2576
|
# @example Request syntax with placeholder values
|
1881
2577
|
#
|
1882
2578
|
# resp = client.list_remote_access_sessions({
|
@@ -1947,6 +2643,48 @@ module Aws::DeviceFarm
|
|
1947
2643
|
# * {Types::ListRunsResult#runs #runs} => Array<Types::Run>
|
1948
2644
|
# * {Types::ListRunsResult#next_token #next_token} => String
|
1949
2645
|
#
|
2646
|
+
#
|
2647
|
+
# @example Example: To get information about a test run
|
2648
|
+
#
|
2649
|
+
# # The following example returns information about a specific test run.
|
2650
|
+
#
|
2651
|
+
# resp = client.list_runs({
|
2652
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE", # You can get the Amazon Resource Name (ARN) of the run by using the list-runs CLI command.
|
2653
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
2654
|
+
# })
|
2655
|
+
#
|
2656
|
+
# resp.to_h outputs the following:
|
2657
|
+
# {
|
2658
|
+
# runs: [
|
2659
|
+
# {
|
2660
|
+
# name: "My Test Run",
|
2661
|
+
# type: "BUILTIN_EXPLORER",
|
2662
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
|
2663
|
+
# billing_method: "METERED",
|
2664
|
+
# completed_jobs: 0,
|
2665
|
+
# counters: {
|
2666
|
+
# errored: 0,
|
2667
|
+
# failed: 0,
|
2668
|
+
# passed: 0,
|
2669
|
+
# skipped: 0,
|
2670
|
+
# stopped: 0,
|
2671
|
+
# total: 0,
|
2672
|
+
# warned: 0,
|
2673
|
+
# },
|
2674
|
+
# created: Time.parse("1472667509.852"),
|
2675
|
+
# device_minutes: {
|
2676
|
+
# metered: 0.0,
|
2677
|
+
# total: 0.0,
|
2678
|
+
# unmetered: 0.0,
|
2679
|
+
# },
|
2680
|
+
# platform: "ANDROID",
|
2681
|
+
# result: "PENDING",
|
2682
|
+
# status: "RUNNING",
|
2683
|
+
# total_jobs: 3,
|
2684
|
+
# },
|
2685
|
+
# ],
|
2686
|
+
# }
|
2687
|
+
#
|
1950
2688
|
# @example Request syntax with placeholder values
|
1951
2689
|
#
|
1952
2690
|
# resp = client.list_runs({
|
@@ -2019,6 +2757,22 @@ module Aws::DeviceFarm
|
|
2019
2757
|
# * {Types::ListSamplesResult#samples #samples} => Array<Types::Sample>
|
2020
2758
|
# * {Types::ListSamplesResult#next_token #next_token} => String
|
2021
2759
|
#
|
2760
|
+
#
|
2761
|
+
# @example Example: To get information about samples
|
2762
|
+
#
|
2763
|
+
# # The following example returns information about samples, given a specific Device Farm project.
|
2764
|
+
#
|
2765
|
+
# resp = client.list_samples({
|
2766
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
2767
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
2768
|
+
# })
|
2769
|
+
#
|
2770
|
+
# resp.to_h outputs the following:
|
2771
|
+
# {
|
2772
|
+
# samples: [
|
2773
|
+
# ],
|
2774
|
+
# }
|
2775
|
+
#
|
2022
2776
|
# @example Request syntax with placeholder values
|
2023
2777
|
#
|
2024
2778
|
# resp = client.list_samples({
|
@@ -2058,6 +2812,22 @@ module Aws::DeviceFarm
|
|
2058
2812
|
# * {Types::ListSuitesResult#suites #suites} => Array<Types::Suite>
|
2059
2813
|
# * {Types::ListSuitesResult#next_token #next_token} => String
|
2060
2814
|
#
|
2815
|
+
#
|
2816
|
+
# @example Example: To get information about suites
|
2817
|
+
#
|
2818
|
+
# # The following example returns information about suites, given a specific Device Farm project.
|
2819
|
+
#
|
2820
|
+
# resp = client.list_suites({
|
2821
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
2822
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
2823
|
+
# })
|
2824
|
+
#
|
2825
|
+
# resp.to_h outputs the following:
|
2826
|
+
# {
|
2827
|
+
# suites: [
|
2828
|
+
# ],
|
2829
|
+
# }
|
2830
|
+
#
|
2061
2831
|
# @example Request syntax with placeholder values
|
2062
2832
|
#
|
2063
2833
|
# resp = client.list_suites({
|
@@ -2113,6 +2883,22 @@ module Aws::DeviceFarm
|
|
2113
2883
|
# * {Types::ListTestsResult#tests #tests} => Array<Types::Test>
|
2114
2884
|
# * {Types::ListTestsResult#next_token #next_token} => String
|
2115
2885
|
#
|
2886
|
+
#
|
2887
|
+
# @example Example: To get information about tests
|
2888
|
+
#
|
2889
|
+
# # The following example returns information about tests, given a specific Device Farm project.
|
2890
|
+
#
|
2891
|
+
# resp = client.list_tests({
|
2892
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
2893
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
2894
|
+
# })
|
2895
|
+
#
|
2896
|
+
# resp.to_h outputs the following:
|
2897
|
+
# {
|
2898
|
+
# tests: [
|
2899
|
+
# ],
|
2900
|
+
# }
|
2901
|
+
#
|
2116
2902
|
# @example Request syntax with placeholder values
|
2117
2903
|
#
|
2118
2904
|
# resp = client.list_tests({
|
@@ -2168,6 +2954,22 @@ module Aws::DeviceFarm
|
|
2168
2954
|
# * {Types::ListUniqueProblemsResult#unique_problems #unique_problems} => Hash<String,Array<Types::UniqueProblem>>
|
2169
2955
|
# * {Types::ListUniqueProblemsResult#next_token #next_token} => String
|
2170
2956
|
#
|
2957
|
+
#
|
2958
|
+
# @example Example: To get information about unique problems
|
2959
|
+
#
|
2960
|
+
# # The following example returns information about unique problems, given a specific Device Farm project.
|
2961
|
+
#
|
2962
|
+
# resp = client.list_unique_problems({
|
2963
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
2964
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
2965
|
+
# })
|
2966
|
+
#
|
2967
|
+
# resp.to_h outputs the following:
|
2968
|
+
# {
|
2969
|
+
# unique_problems: {
|
2970
|
+
# },
|
2971
|
+
# }
|
2972
|
+
#
|
2171
2973
|
# @example Request syntax with placeholder values
|
2172
2974
|
#
|
2173
2975
|
# resp = client.list_unique_problems({
|
@@ -2238,6 +3040,22 @@ module Aws::DeviceFarm
|
|
2238
3040
|
# * {Types::ListUploadsResult#uploads #uploads} => Array<Types::Upload>
|
2239
3041
|
# * {Types::ListUploadsResult#next_token #next_token} => String
|
2240
3042
|
#
|
3043
|
+
#
|
3044
|
+
# @example Example: To get information about uploads
|
3045
|
+
#
|
3046
|
+
# # The following example returns information about uploads, given a specific Device Farm project.
|
3047
|
+
#
|
3048
|
+
# resp = client.list_uploads({
|
3049
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
3050
|
+
# next_token: "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE", # A dynamically generated value, used for paginating results.
|
3051
|
+
# })
|
3052
|
+
#
|
3053
|
+
# resp.to_h outputs the following:
|
3054
|
+
# {
|
3055
|
+
# uploads: [
|
3056
|
+
# ],
|
3057
|
+
# }
|
3058
|
+
#
|
2241
3059
|
# @example Request syntax with placeholder values
|
2242
3060
|
#
|
2243
3061
|
# resp = client.list_uploads({
|
@@ -2289,6 +3107,39 @@ module Aws::DeviceFarm
|
|
2289
3107
|
#
|
2290
3108
|
# * {Types::PurchaseOfferingResult#offering_transaction #offering_transaction} => Types::OfferingTransaction
|
2291
3109
|
#
|
3110
|
+
#
|
3111
|
+
# @example Example: To purchase a device slot offering
|
3112
|
+
#
|
3113
|
+
# # The following example purchases a specific device slot offering.
|
3114
|
+
#
|
3115
|
+
# resp = client.purchase_offering({
|
3116
|
+
# offering_id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE", # You can get the offering ID by using the list-offerings CLI command.
|
3117
|
+
# quantity: 1,
|
3118
|
+
# })
|
3119
|
+
#
|
3120
|
+
# resp.to_h outputs the following:
|
3121
|
+
# {
|
3122
|
+
# offering_transaction: {
|
3123
|
+
# cost: {
|
3124
|
+
# amount: 8.07,
|
3125
|
+
# currency_code: "USD",
|
3126
|
+
# },
|
3127
|
+
# created_on: Time.parse("1472648340"),
|
3128
|
+
# offering_status: {
|
3129
|
+
# type: "PURCHASE",
|
3130
|
+
# effective_on: Time.parse("1472648340"),
|
3131
|
+
# offering: {
|
3132
|
+
# type: "RECURRING",
|
3133
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
3134
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
3135
|
+
# platform: "ANDROID",
|
3136
|
+
# },
|
3137
|
+
# quantity: 1,
|
3138
|
+
# },
|
3139
|
+
# transaction_id: "d30614ed-1b03-404c-9893-12345EXAMPLE",
|
3140
|
+
# },
|
3141
|
+
# }
|
3142
|
+
#
|
2292
3143
|
# @example Request syntax with placeholder values
|
2293
3144
|
#
|
2294
3145
|
# resp = client.purchase_offering({
|
@@ -2342,6 +3193,39 @@ module Aws::DeviceFarm
|
|
2342
3193
|
#
|
2343
3194
|
# * {Types::RenewOfferingResult#offering_transaction #offering_transaction} => Types::OfferingTransaction
|
2344
3195
|
#
|
3196
|
+
#
|
3197
|
+
# @example Example: To renew a device slot offering
|
3198
|
+
#
|
3199
|
+
# # The following example renews a specific device slot offering.
|
3200
|
+
#
|
3201
|
+
# resp = client.renew_offering({
|
3202
|
+
# offering_id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE", # You can get the offering ID by using the list-offerings CLI command.
|
3203
|
+
# quantity: 1,
|
3204
|
+
# })
|
3205
|
+
#
|
3206
|
+
# resp.to_h outputs the following:
|
3207
|
+
# {
|
3208
|
+
# offering_transaction: {
|
3209
|
+
# cost: {
|
3210
|
+
# amount: 250,
|
3211
|
+
# currency_code: "USD",
|
3212
|
+
# },
|
3213
|
+
# created_on: Time.parse("1472648880"),
|
3214
|
+
# offering_status: {
|
3215
|
+
# type: "RENEW",
|
3216
|
+
# effective_on: Time.parse("1472688000"),
|
3217
|
+
# offering: {
|
3218
|
+
# type: "RECURRING",
|
3219
|
+
# description: "Android Remote Access Unmetered Device Slot",
|
3220
|
+
# id: "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
3221
|
+
# platform: "ANDROID",
|
3222
|
+
# },
|
3223
|
+
# quantity: 1,
|
3224
|
+
# },
|
3225
|
+
# transaction_id: "e90f1405-8c35-4561-be43-12345EXAMPLE",
|
3226
|
+
# },
|
3227
|
+
# }
|
3228
|
+
#
|
2345
3229
|
# @example Request syntax with placeholder values
|
2346
3230
|
#
|
2347
3231
|
# resp = client.renew_offering({
|
@@ -2405,6 +3289,27 @@ module Aws::DeviceFarm
|
|
2405
3289
|
#
|
2406
3290
|
# * {Types::ScheduleRunResult#run #run} => Types::Run
|
2407
3291
|
#
|
3292
|
+
#
|
3293
|
+
# @example Example: To schedule a test run
|
3294
|
+
#
|
3295
|
+
# # The following example schedules a test run named MyRun.
|
3296
|
+
#
|
3297
|
+
# resp = client.schedule_run({
|
3298
|
+
# name: "MyRun",
|
3299
|
+
# device_pool_arn: "arn:aws:devicefarm:us-west-2:123456789101:pool:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the device pool by using the list-pools CLI command.
|
3300
|
+
# project_arn: "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
3301
|
+
# test: {
|
3302
|
+
# type: "APPIUM_JAVA_JUNIT",
|
3303
|
+
# test_package_arn: "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456",
|
3304
|
+
# },
|
3305
|
+
# })
|
3306
|
+
#
|
3307
|
+
# resp.to_h outputs the following:
|
3308
|
+
# {
|
3309
|
+
# run: {
|
3310
|
+
# },
|
3311
|
+
# }
|
3312
|
+
#
|
2408
3313
|
# @example Request syntax with placeholder values
|
2409
3314
|
#
|
2410
3315
|
# resp = client.schedule_run({
|
@@ -2568,6 +3473,21 @@ module Aws::DeviceFarm
|
|
2568
3473
|
#
|
2569
3474
|
# * {Types::StopRunResult#run #run} => Types::Run
|
2570
3475
|
#
|
3476
|
+
#
|
3477
|
+
# @example Example: To stop a test run
|
3478
|
+
#
|
3479
|
+
# # The following example stops a specific test run.
|
3480
|
+
#
|
3481
|
+
# resp = client.stop_run({
|
3482
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456", # You can get the Amazon Resource Name (ARN) of the test run by using the list-runs CLI command.
|
3483
|
+
# })
|
3484
|
+
#
|
3485
|
+
# resp.to_h outputs the following:
|
3486
|
+
# {
|
3487
|
+
# run: {
|
3488
|
+
# },
|
3489
|
+
# }
|
3490
|
+
#
|
2571
3491
|
# @example Request syntax with placeholder values
|
2572
3492
|
#
|
2573
3493
|
# resp = client.stop_run({
|
@@ -2644,6 +3564,30 @@ module Aws::DeviceFarm
|
|
2644
3564
|
#
|
2645
3565
|
# * {Types::UpdateDevicePoolResult#device_pool #device_pool} => Types::DevicePool
|
2646
3566
|
#
|
3567
|
+
#
|
3568
|
+
# @example Example: To update a device pool
|
3569
|
+
#
|
3570
|
+
# # The following example updates the specified device pool with a new name and description. It also enables remote access of devices in the device pool.
|
3571
|
+
#
|
3572
|
+
# resp = client.update_device_pool({
|
3573
|
+
# name: "NewName",
|
3574
|
+
# arn: "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE", # You can get the Amazon Resource Name (ARN) of the device pool by using the list-pools CLI command.
|
3575
|
+
# description: "NewDescription",
|
3576
|
+
# rules: [
|
3577
|
+
# {
|
3578
|
+
# value: "True",
|
3579
|
+
# attribute: "REMOTE_ACCESS_ENABLED",
|
3580
|
+
# operator: "EQUALS",
|
3581
|
+
# },
|
3582
|
+
# ],
|
3583
|
+
# })
|
3584
|
+
#
|
3585
|
+
# resp.to_h outputs the following:
|
3586
|
+
# {
|
3587
|
+
# device_pool: {
|
3588
|
+
# }, # Note: you cannot update curated device pools.
|
3589
|
+
# }
|
3590
|
+
#
|
2647
3591
|
# @example Request syntax with placeholder values
|
2648
3592
|
#
|
2649
3593
|
# resp = client.update_device_pool({
|
@@ -2793,6 +3737,25 @@ module Aws::DeviceFarm
|
|
2793
3737
|
#
|
2794
3738
|
# * {Types::UpdateProjectResult#project #project} => Types::Project
|
2795
3739
|
#
|
3740
|
+
#
|
3741
|
+
# @example Example: To update a device pool
|
3742
|
+
#
|
3743
|
+
# # The following example updates the specified project with a new name.
|
3744
|
+
#
|
3745
|
+
# resp = client.update_project({
|
3746
|
+
# name: "NewName",
|
3747
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:8f75187d-101e-4625-accc-12345EXAMPLE", # You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
|
3748
|
+
# })
|
3749
|
+
#
|
3750
|
+
# resp.to_h outputs the following:
|
3751
|
+
# {
|
3752
|
+
# project: {
|
3753
|
+
# name: "NewName",
|
3754
|
+
# arn: "arn:aws:devicefarm:us-west-2:123456789101:project:8f75187d-101e-4625-accc-12345EXAMPLE",
|
3755
|
+
# created: Time.parse("1448400709.927"),
|
3756
|
+
# },
|
3757
|
+
# }
|
3758
|
+
#
|
2796
3759
|
# @example Request syntax with placeholder values
|
2797
3760
|
#
|
2798
3761
|
# resp = client.update_project({
|
@@ -2830,7 +3793,7 @@ module Aws::DeviceFarm
|
|
2830
3793
|
params: params,
|
2831
3794
|
config: config)
|
2832
3795
|
context[:gem_name] = 'aws-sdk-devicefarm'
|
2833
|
-
context[:gem_version] = '1.0.0.
|
3796
|
+
context[:gem_version] = '1.0.0.rc6'
|
2834
3797
|
Seahorse::Client::Request.new(handlers, context)
|
2835
3798
|
end
|
2836
3799
|
|
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.0.0.
|
4
|
+
version: 1.0.0.rc6
|
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: 2017-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|