@aws-sdk/client-device-farm 3.288.0 → 3.289.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.
- package/dist-types/commands/CreateDevicePoolCommand.d.ts +19 -0
- package/dist-types/commands/CreateProjectCommand.d.ts +20 -0
- package/dist-types/commands/CreateRemoteAccessSessionCommand.d.ts +21 -0
- package/dist-types/commands/CreateUploadCommand.d.ts +25 -0
- package/dist-types/commands/DeleteDevicePoolCommand.d.ts +11 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +11 -0
- package/dist-types/commands/DeleteRemoteAccessSessionCommand.d.ts +11 -0
- package/dist-types/commands/DeleteRunCommand.d.ts +11 -0
- package/dist-types/commands/DeleteUploadCommand.d.ts +11 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +20 -0
- package/dist-types/commands/GetDeviceCommand.d.ts +36 -0
- package/dist-types/commands/GetDevicePoolCommand.d.ts +16 -0
- package/dist-types/commands/GetDevicePoolCompatibilityCommand.d.ts +19 -0
- package/dist-types/commands/GetJobCommand.d.ts +16 -0
- package/dist-types/commands/GetOfferingStatusCommand.d.ts +38 -0
- package/dist-types/commands/GetProjectCommand.d.ts +20 -0
- package/dist-types/commands/GetRemoteAccessSessionCommand.d.ts +16 -0
- package/dist-types/commands/GetRunCommand.d.ts +41 -0
- package/dist-types/commands/GetSuiteCommand.d.ts +16 -0
- package/dist-types/commands/GetTestCommand.d.ts +16 -0
- package/dist-types/commands/GetUploadCommand.d.ts +16 -0
- package/dist-types/commands/InstallToRemoteAccessSessionCommand.d.ts +17 -0
- package/dist-types/commands/ListArtifactsCommand.d.ts +12 -0
- package/dist-types/commands/ListDevicePoolsCommand.d.ts +42 -0
- package/dist-types/commands/ListDevicesCommand.d.ts +11 -0
- package/dist-types/commands/ListJobsCommand.d.ts +11 -0
- package/dist-types/commands/ListOfferingTransactionsCommand.d.ts +93 -0
- package/dist-types/commands/ListOfferingsCommand.d.ts +77 -0
- package/dist-types/commands/ListProjectsCommand.d.ts +28 -0
- package/dist-types/commands/ListRemoteAccessSessionsCommand.d.ts +17 -0
- package/dist-types/commands/ListRunsCommand.d.ts +44 -0
- package/dist-types/commands/ListSamplesCommand.d.ts +17 -0
- package/dist-types/commands/ListSuitesCommand.d.ts +17 -0
- package/dist-types/commands/ListTestsCommand.d.ts +17 -0
- package/dist-types/commands/ListUniqueProblemsCommand.d.ts +17 -0
- package/dist-types/commands/ListUploadsCommand.d.ts +17 -0
- package/dist-types/commands/PurchaseOfferingCommand.d.ts +35 -0
- package/dist-types/commands/RenewOfferingCommand.d.ts +35 -0
- package/dist-types/commands/ScheduleRunCommand.d.ts +22 -0
- package/dist-types/commands/StopRunCommand.d.ts +16 -0
- package/dist-types/commands/UpdateDevicePoolCommand.d.ts +25 -0
- package/dist-types/commands/UpdateProjectCommand.d.ts +21 -0
- package/package.json +29 -29
|
@@ -29,6 +29,48 @@ export interface ListDevicePoolsCommandOutput extends ListDevicePoolsResult, __M
|
|
|
29
29
|
* @see {@link ListDevicePoolsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about device pools
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about the private device pools in a specific project.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "type": "PRIVATE",
|
|
37
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListDevicePoolsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "devicePools": [
|
|
44
|
+
* {
|
|
45
|
+
* "name": "Top Devices",
|
|
46
|
+
* "arn": "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE",
|
|
47
|
+
* "description": "Top devices",
|
|
48
|
+
* "rules": [
|
|
49
|
+
* {
|
|
50
|
+
* "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\"]",
|
|
51
|
+
* "attribute": "ARN",
|
|
52
|
+
* "operator": "IN"
|
|
53
|
+
* }
|
|
54
|
+
* ]
|
|
55
|
+
* },
|
|
56
|
+
* {
|
|
57
|
+
* "name": "My Android Device Pool",
|
|
58
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:devicepool:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/bf96e75a-28f6-4e61-b6a7-12345EXAMPLE",
|
|
59
|
+
* "description": "Samsung Galaxy Android devices",
|
|
60
|
+
* "rules": [
|
|
61
|
+
* {
|
|
62
|
+
* "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\"]",
|
|
63
|
+
* "attribute": "ARN",
|
|
64
|
+
* "operator": "IN"
|
|
65
|
+
* }
|
|
66
|
+
* ]
|
|
67
|
+
* }
|
|
68
|
+
* ]
|
|
69
|
+
* }
|
|
70
|
+
* *\/
|
|
71
|
+
* // example id: to-get-information-about-device-pools-1471635745170
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
32
74
|
*/
|
|
33
75
|
export declare class ListDevicePoolsCommand extends $Command<ListDevicePoolsCommandInput, ListDevicePoolsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
76
|
readonly input: ListDevicePoolsCommandInput;
|
|
@@ -29,6 +29,17 @@ export interface ListDevicesCommandOutput extends ListDevicesResult, __MetadataB
|
|
|
29
29
|
* @see {@link ListDevicesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about devices
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about the available devices in a specific project.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListDevicesCommand(input);
|
|
39
|
+
* await client.send(command);
|
|
40
|
+
* // example id: to-get-information-about-devices-1471641699344
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
32
43
|
*/
|
|
33
44
|
export declare class ListDevicesCommand extends $Command<ListDevicesCommandInput, ListDevicesCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
45
|
readonly input: ListDevicesCommandInput;
|
|
@@ -29,6 +29,17 @@ export interface ListJobsCommandOutput extends ListJobsResult, __MetadataBearer
|
|
|
29
29
|
* @see {@link ListJobsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about jobs
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about jobs in a specific project.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListJobsCommand(input);
|
|
39
|
+
* await client.send(command);
|
|
40
|
+
* // example id: to-get-information-about-jobs-1471642228071
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
32
43
|
*/
|
|
33
44
|
export declare class ListJobsCommand extends $Command<ListJobsCommandInput, ListJobsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
45
|
readonly input: ListJobsCommandInput;
|
|
@@ -32,6 +32,99 @@ export interface ListOfferingTransactionsCommandOutput extends ListOfferingTrans
|
|
|
32
32
|
* @see {@link ListOfferingTransactionsCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @example To get information about device offering transactions
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // The following example returns information about Device Farm offering transactions.
|
|
38
|
+
* const input = {
|
|
39
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListOfferingTransactionsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* /* response ==
|
|
44
|
+
* {
|
|
45
|
+
* "offeringTransactions": [
|
|
46
|
+
* {
|
|
47
|
+
* "cost": {
|
|
48
|
+
* "amount": 0,
|
|
49
|
+
* "currencyCode": "USD"
|
|
50
|
+
* },
|
|
51
|
+
* "createdOn": "1470021420",
|
|
52
|
+
* "offeringStatus": {
|
|
53
|
+
* "type": "RENEW",
|
|
54
|
+
* "effectiveOn": "1472688000",
|
|
55
|
+
* "offering": {
|
|
56
|
+
* "type": "RECURRING",
|
|
57
|
+
* "description": "Android Remote Access Unmetered Device Slot",
|
|
58
|
+
* "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
59
|
+
* "platform": "ANDROID"
|
|
60
|
+
* },
|
|
61
|
+
* "quantity": 0
|
|
62
|
+
* },
|
|
63
|
+
* "transactionId": "03728003-d1ea-4851-abd6-12345EXAMPLE"
|
|
64
|
+
* },
|
|
65
|
+
* {
|
|
66
|
+
* "cost": {
|
|
67
|
+
* "amount": 250,
|
|
68
|
+
* "currencyCode": "USD"
|
|
69
|
+
* },
|
|
70
|
+
* "createdOn": "1470021420",
|
|
71
|
+
* "offeringStatus": {
|
|
72
|
+
* "type": "PURCHASE",
|
|
73
|
+
* "effectiveOn": "1470021420",
|
|
74
|
+
* "offering": {
|
|
75
|
+
* "type": "RECURRING",
|
|
76
|
+
* "description": "Android Remote Access Unmetered Device Slot",
|
|
77
|
+
* "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
78
|
+
* "platform": "ANDROID"
|
|
79
|
+
* },
|
|
80
|
+
* "quantity": 1
|
|
81
|
+
* },
|
|
82
|
+
* "transactionId": "56820b6e-06bd-473a-8ff8-12345EXAMPLE"
|
|
83
|
+
* },
|
|
84
|
+
* {
|
|
85
|
+
* "cost": {
|
|
86
|
+
* "amount": 175,
|
|
87
|
+
* "currencyCode": "USD"
|
|
88
|
+
* },
|
|
89
|
+
* "createdOn": "1465538520",
|
|
90
|
+
* "offeringStatus": {
|
|
91
|
+
* "type": "PURCHASE",
|
|
92
|
+
* "effectiveOn": "1465538520",
|
|
93
|
+
* "offering": {
|
|
94
|
+
* "type": "RECURRING",
|
|
95
|
+
* "description": "Android Unmetered Device Slot",
|
|
96
|
+
* "id": "8980F81C-00D7-469D-8EC6-12345EXAMPLE",
|
|
97
|
+
* "platform": "ANDROID"
|
|
98
|
+
* },
|
|
99
|
+
* "quantity": 1
|
|
100
|
+
* },
|
|
101
|
+
* "transactionId": "953ae2c6-d760-4a04-9597-12345EXAMPLE"
|
|
102
|
+
* },
|
|
103
|
+
* {
|
|
104
|
+
* "cost": {
|
|
105
|
+
* "amount": 8.07,
|
|
106
|
+
* "currencyCode": "USD"
|
|
107
|
+
* },
|
|
108
|
+
* "createdOn": "1459344300",
|
|
109
|
+
* "offeringStatus": {
|
|
110
|
+
* "type": "PURCHASE",
|
|
111
|
+
* "effectiveOn": "1459344300",
|
|
112
|
+
* "offering": {
|
|
113
|
+
* "type": "RECURRING",
|
|
114
|
+
* "description": "iOS Unmetered Device Slot",
|
|
115
|
+
* "id": "A53D4D73-A6F6-4B82-A0B0-12345EXAMPLE",
|
|
116
|
+
* "platform": "IOS"
|
|
117
|
+
* },
|
|
118
|
+
* "quantity": 1
|
|
119
|
+
* },
|
|
120
|
+
* "transactionId": "2baf9021-ae3e-47f5-ab52-12345EXAMPLE"
|
|
121
|
+
* }
|
|
122
|
+
* ]
|
|
123
|
+
* }
|
|
124
|
+
* *\/
|
|
125
|
+
* // example id: to-get-information-about-device-offering-transactions-1472561712315
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
35
128
|
*/
|
|
36
129
|
export declare class ListOfferingTransactionsCommand extends $Command<ListOfferingTransactionsCommandInput, ListOfferingTransactionsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
37
130
|
readonly input: ListOfferingTransactionsCommandInput;
|
|
@@ -32,6 +32,83 @@ export interface ListOfferingsCommandOutput extends ListOfferingsResult, __Metad
|
|
|
32
32
|
* @see {@link ListOfferingsCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @example To get information about device offerings
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // The following example returns information about available device offerings.
|
|
38
|
+
* const input = {
|
|
39
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListOfferingsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* /* response ==
|
|
44
|
+
* {
|
|
45
|
+
* "offerings": [
|
|
46
|
+
* {
|
|
47
|
+
* "type": "RECURRING",
|
|
48
|
+
* "description": "iOS Unmetered Device Slot",
|
|
49
|
+
* "id": "A53D4D73-A6F6-4B82-A0B0-12345EXAMPLE",
|
|
50
|
+
* "platform": "IOS",
|
|
51
|
+
* "recurringCharges": [
|
|
52
|
+
* {
|
|
53
|
+
* "cost": {
|
|
54
|
+
* "amount": 250,
|
|
55
|
+
* "currencyCode": "USD"
|
|
56
|
+
* },
|
|
57
|
+
* "frequency": "MONTHLY"
|
|
58
|
+
* }
|
|
59
|
+
* ]
|
|
60
|
+
* },
|
|
61
|
+
* {
|
|
62
|
+
* "type": "RECURRING",
|
|
63
|
+
* "description": "Android Unmetered Device Slot",
|
|
64
|
+
* "id": "8980F81C-00D7-469D-8EC6-12345EXAMPLE",
|
|
65
|
+
* "platform": "ANDROID",
|
|
66
|
+
* "recurringCharges": [
|
|
67
|
+
* {
|
|
68
|
+
* "cost": {
|
|
69
|
+
* "amount": 250,
|
|
70
|
+
* "currencyCode": "USD"
|
|
71
|
+
* },
|
|
72
|
+
* "frequency": "MONTHLY"
|
|
73
|
+
* }
|
|
74
|
+
* ]
|
|
75
|
+
* },
|
|
76
|
+
* {
|
|
77
|
+
* "type": "RECURRING",
|
|
78
|
+
* "description": "Android Remote Access Unmetered Device Slot",
|
|
79
|
+
* "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
80
|
+
* "platform": "ANDROID",
|
|
81
|
+
* "recurringCharges": [
|
|
82
|
+
* {
|
|
83
|
+
* "cost": {
|
|
84
|
+
* "amount": 250,
|
|
85
|
+
* "currencyCode": "USD"
|
|
86
|
+
* },
|
|
87
|
+
* "frequency": "MONTHLY"
|
|
88
|
+
* }
|
|
89
|
+
* ]
|
|
90
|
+
* },
|
|
91
|
+
* {
|
|
92
|
+
* "type": "RECURRING",
|
|
93
|
+
* "description": "iOS Remote Access Unmetered Device Slot",
|
|
94
|
+
* "id": "552B4DAD-A6C9-45C4-94FB-12345EXAMPLE",
|
|
95
|
+
* "platform": "IOS",
|
|
96
|
+
* "recurringCharges": [
|
|
97
|
+
* {
|
|
98
|
+
* "cost": {
|
|
99
|
+
* "amount": 250,
|
|
100
|
+
* "currencyCode": "USD"
|
|
101
|
+
* },
|
|
102
|
+
* "frequency": "MONTHLY"
|
|
103
|
+
* }
|
|
104
|
+
* ]
|
|
105
|
+
* }
|
|
106
|
+
* ]
|
|
107
|
+
* }
|
|
108
|
+
* *\/
|
|
109
|
+
* // example id: to-get-information-about-device-offerings-1472562810999
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
35
112
|
*/
|
|
36
113
|
export declare class ListOfferingsCommand extends $Command<ListOfferingsCommandInput, ListOfferingsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
37
114
|
readonly input: ListOfferingsCommandInput;
|
|
@@ -29,6 +29,34 @@ export interface ListProjectsCommandOutput extends ListProjectsResult, __Metadat
|
|
|
29
29
|
* @see {@link ListProjectsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about a Device Farm project
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about the specified project in Device Farm.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListProjectsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "projects": [
|
|
44
|
+
* {
|
|
45
|
+
* "name": "My Test Project",
|
|
46
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE",
|
|
47
|
+
* "created": "1453163262.105"
|
|
48
|
+
* },
|
|
49
|
+
* {
|
|
50
|
+
* "name": "Hello World",
|
|
51
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:d6b087d9-56db-4e44-b9ec-12345EXAMPLE",
|
|
52
|
+
* "created": "1470350112.439"
|
|
53
|
+
* }
|
|
54
|
+
* ]
|
|
55
|
+
* }
|
|
56
|
+
* *\/
|
|
57
|
+
* // example id: to-get-information-about-a-device-farm-project-1472564014388
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
32
60
|
*/
|
|
33
61
|
export declare class ListProjectsCommand extends $Command<ListProjectsCommandInput, ListProjectsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
62
|
readonly input: ListProjectsCommandInput;
|
|
@@ -29,6 +29,23 @@ export interface ListRemoteAccessSessionsCommandOutput extends ListRemoteAccessS
|
|
|
29
29
|
* @see {@link ListRemoteAccessSessionsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about a remote access session
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about a specific Device Farm remote access session.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListRemoteAccessSessionsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "remoteAccessSessions": []
|
|
44
|
+
* }
|
|
45
|
+
* *\/
|
|
46
|
+
* // example id: to-get-information-about-a-remote-access-session-1472581144803
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
32
49
|
*/
|
|
33
50
|
export declare class ListRemoteAccessSessionsCommand extends $Command<ListRemoteAccessSessionsCommandInput, ListRemoteAccessSessionsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
51
|
readonly input: ListRemoteAccessSessionsCommandInput;
|
|
@@ -29,6 +29,50 @@ export interface ListRunsCommandOutput extends ListRunsResult, __MetadataBearer
|
|
|
29
29
|
* @see {@link ListRunsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about a test run
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about a specific test run.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListRunsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "runs": [
|
|
44
|
+
* {
|
|
45
|
+
* "name": "My Test Run",
|
|
46
|
+
* "type": "BUILTIN_EXPLORER",
|
|
47
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
|
|
48
|
+
* "billingMethod": "METERED",
|
|
49
|
+
* "completedJobs": 0,
|
|
50
|
+
* "counters": {
|
|
51
|
+
* "errored": 0,
|
|
52
|
+
* "failed": 0,
|
|
53
|
+
* "passed": 0,
|
|
54
|
+
* "skipped": 0,
|
|
55
|
+
* "stopped": 0,
|
|
56
|
+
* "total": 0,
|
|
57
|
+
* "warned": 0
|
|
58
|
+
* },
|
|
59
|
+
* "created": "1472667509.852",
|
|
60
|
+
* "deviceMinutes": {
|
|
61
|
+
* "metered": 0,
|
|
62
|
+
* "total": 0,
|
|
63
|
+
* "unmetered": 0
|
|
64
|
+
* },
|
|
65
|
+
* "platform": "ANDROID",
|
|
66
|
+
* "result": "PENDING",
|
|
67
|
+
* "status": "RUNNING",
|
|
68
|
+
* "totalJobs": 3
|
|
69
|
+
* }
|
|
70
|
+
* ]
|
|
71
|
+
* }
|
|
72
|
+
* *\/
|
|
73
|
+
* // example id: to-get-information-about-test-runs-1472582711069
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
32
76
|
*/
|
|
33
77
|
export declare class ListRunsCommand extends $Command<ListRunsCommandInput, ListRunsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
78
|
readonly input: ListRunsCommandInput;
|
|
@@ -29,6 +29,23 @@ export interface ListSamplesCommandOutput extends ListSamplesResult, __MetadataB
|
|
|
29
29
|
* @see {@link ListSamplesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about samples
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about samples, given a specific Device Farm project.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListSamplesCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "samples": []
|
|
44
|
+
* }
|
|
45
|
+
* *\/
|
|
46
|
+
* // example id: to-get-information-about-samples-1472582847534
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
32
49
|
*/
|
|
33
50
|
export declare class ListSamplesCommand extends $Command<ListSamplesCommandInput, ListSamplesCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
51
|
readonly input: ListSamplesCommandInput;
|
|
@@ -29,6 +29,23 @@ export interface ListSuitesCommandOutput extends ListSuitesResult, __MetadataBea
|
|
|
29
29
|
* @see {@link ListSuitesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about suites
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about suites, given a specific Device Farm job.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:job:EXAMPLE-GUID-123-456",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListSuitesCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "suites": []
|
|
44
|
+
* }
|
|
45
|
+
* *\/
|
|
46
|
+
* // example id: to-get-information-about-suites-1472583038218
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
32
49
|
*/
|
|
33
50
|
export declare class ListSuitesCommand extends $Command<ListSuitesCommandInput, ListSuitesCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
51
|
readonly input: ListSuitesCommandInput;
|
|
@@ -29,6 +29,23 @@ export interface ListTestsCommandOutput extends ListTestsResult, __MetadataBeare
|
|
|
29
29
|
* @see {@link ListTestsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about tests
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about tests, given a specific Device Farm project.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListTestsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "tests": []
|
|
44
|
+
* }
|
|
45
|
+
* *\/
|
|
46
|
+
* // example id: to-get-information-about-tests-1472617372212
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
32
49
|
*/
|
|
33
50
|
export declare class ListTestsCommand extends $Command<ListTestsCommandInput, ListTestsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
51
|
readonly input: ListTestsCommandInput;
|
|
@@ -33,6 +33,23 @@ export interface ListUniqueProblemsCommandOutput extends ListUniqueProblemsResul
|
|
|
33
33
|
* @see {@link ListUniqueProblemsCommandOutput} for command's `response` shape.
|
|
34
34
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
35
35
|
*
|
|
36
|
+
* @example To get information about unique problems
|
|
37
|
+
* ```javascript
|
|
38
|
+
* // The following example returns information about unique problems, given a specific Device Farm project.
|
|
39
|
+
* const input = {
|
|
40
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
|
|
41
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListUniqueProblemsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* /* response ==
|
|
46
|
+
* {
|
|
47
|
+
* "uniqueProblems": {}
|
|
48
|
+
* }
|
|
49
|
+
* *\/
|
|
50
|
+
* // example id: to-get-information-about-unique-problems-1472617781008
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
36
53
|
*/
|
|
37
54
|
export declare class ListUniqueProblemsCommand extends $Command<ListUniqueProblemsCommandInput, ListUniqueProblemsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
38
55
|
readonly input: ListUniqueProblemsCommandInput;
|
|
@@ -29,6 +29,23 @@ export interface ListUploadsCommandOutput extends ListUploadsResult, __MetadataB
|
|
|
29
29
|
* @see {@link ListUploadsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To get information about uploads
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example returns information about uploads, given a specific Device Farm project.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
|
|
37
|
+
* "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListUploadsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "uploads": []
|
|
44
|
+
* }
|
|
45
|
+
* *\/
|
|
46
|
+
* // example id: to-get-information-about-uploads-1472617943090
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
32
49
|
*/
|
|
33
50
|
export declare class ListUploadsCommand extends $Command<ListUploadsCommandInput, ListUploadsCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
51
|
readonly input: ListUploadsCommandInput;
|
|
@@ -32,6 +32,41 @@ export interface PurchaseOfferingCommandOutput extends PurchaseOfferingResult, _
|
|
|
32
32
|
* @see {@link PurchaseOfferingCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @example To purchase a device slot offering
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // The following example purchases a specific device slot offering.
|
|
38
|
+
* const input = {
|
|
39
|
+
* "offeringId": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
40
|
+
* "quantity": 1
|
|
41
|
+
* };
|
|
42
|
+
* const command = new PurchaseOfferingCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* /* response ==
|
|
45
|
+
* {
|
|
46
|
+
* "offeringTransaction": {
|
|
47
|
+
* "cost": {
|
|
48
|
+
* "amount": 8.07,
|
|
49
|
+
* "currencyCode": "USD"
|
|
50
|
+
* },
|
|
51
|
+
* "createdOn": "1472648340",
|
|
52
|
+
* "offeringStatus": {
|
|
53
|
+
* "type": "PURCHASE",
|
|
54
|
+
* "effectiveOn": "1472648340",
|
|
55
|
+
* "offering": {
|
|
56
|
+
* "type": "RECURRING",
|
|
57
|
+
* "description": "Android Remote Access Unmetered Device Slot",
|
|
58
|
+
* "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
59
|
+
* "platform": "ANDROID"
|
|
60
|
+
* },
|
|
61
|
+
* "quantity": 1
|
|
62
|
+
* },
|
|
63
|
+
* "transactionId": "d30614ed-1b03-404c-9893-12345EXAMPLE"
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
* *\/
|
|
67
|
+
* // example id: to-purchase-a-device-slot-offering-1472648146343
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
35
70
|
*/
|
|
36
71
|
export declare class PurchaseOfferingCommand extends $Command<PurchaseOfferingCommandInput, PurchaseOfferingCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
37
72
|
readonly input: PurchaseOfferingCommandInput;
|
|
@@ -31,6 +31,41 @@ export interface RenewOfferingCommandOutput extends RenewOfferingResult, __Metad
|
|
|
31
31
|
* @see {@link RenewOfferingCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @example To renew a device slot offering
|
|
35
|
+
* ```javascript
|
|
36
|
+
* // The following example renews a specific device slot offering.
|
|
37
|
+
* const input = {
|
|
38
|
+
* "offeringId": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
39
|
+
* "quantity": 1
|
|
40
|
+
* };
|
|
41
|
+
* const command = new RenewOfferingCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* /* response ==
|
|
44
|
+
* {
|
|
45
|
+
* "offeringTransaction": {
|
|
46
|
+
* "cost": {
|
|
47
|
+
* "amount": 250,
|
|
48
|
+
* "currencyCode": "USD"
|
|
49
|
+
* },
|
|
50
|
+
* "createdOn": "1472648880",
|
|
51
|
+
* "offeringStatus": {
|
|
52
|
+
* "type": "RENEW",
|
|
53
|
+
* "effectiveOn": "1472688000",
|
|
54
|
+
* "offering": {
|
|
55
|
+
* "type": "RECURRING",
|
|
56
|
+
* "description": "Android Remote Access Unmetered Device Slot",
|
|
57
|
+
* "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
|
|
58
|
+
* "platform": "ANDROID"
|
|
59
|
+
* },
|
|
60
|
+
* "quantity": 1
|
|
61
|
+
* },
|
|
62
|
+
* "transactionId": "e90f1405-8c35-4561-be43-12345EXAMPLE"
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
|
+
* *\/
|
|
66
|
+
* // example id: to-renew-a-device-slot-offering-1472648899785
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
34
69
|
*/
|
|
35
70
|
export declare class RenewOfferingCommand extends $Command<RenewOfferingCommandInput, RenewOfferingCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
36
71
|
readonly input: RenewOfferingCommandInput;
|
|
@@ -29,6 +29,28 @@ export interface ScheduleRunCommandOutput extends ScheduleRunResult, __MetadataB
|
|
|
29
29
|
* @see {@link ScheduleRunCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To schedule a test run
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // The following example schedules a test run named MyRun.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "name": "MyRun",
|
|
37
|
+
* "devicePoolArn": "arn:aws:devicefarm:us-west-2:123456789101:pool:EXAMPLE-GUID-123-456",
|
|
38
|
+
* "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
|
|
39
|
+
* "test": {
|
|
40
|
+
* "type": "APPIUM_JAVA_JUNIT",
|
|
41
|
+
* "testPackageArn": "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"
|
|
42
|
+
* }
|
|
43
|
+
* };
|
|
44
|
+
* const command = new ScheduleRunCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* /* response ==
|
|
47
|
+
* {
|
|
48
|
+
* "run": {}
|
|
49
|
+
* }
|
|
50
|
+
* *\/
|
|
51
|
+
* // example id: to-schedule-a-test-run-1472652429636
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
32
54
|
*/
|
|
33
55
|
export declare class ScheduleRunCommand extends $Command<ScheduleRunCommandInput, ScheduleRunCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
34
56
|
readonly input: ScheduleRunCommandInput;
|
|
@@ -32,6 +32,22 @@ export interface StopRunCommandOutput extends StopRunResult, __MetadataBearer {
|
|
|
32
32
|
* @see {@link StopRunCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @example To stop a test run
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // The following example stops a specific test run.
|
|
38
|
+
* const input = {
|
|
39
|
+
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"
|
|
40
|
+
* };
|
|
41
|
+
* const command = new StopRunCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* /* response ==
|
|
44
|
+
* {
|
|
45
|
+
* "run": {}
|
|
46
|
+
* }
|
|
47
|
+
* *\/
|
|
48
|
+
* // example id: to-stop-a-test-run-1472653770340
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
35
51
|
*/
|
|
36
52
|
export declare class StopRunCommand extends $Command<StopRunCommandInput, StopRunCommandOutput, DeviceFarmClientResolvedConfig> {
|
|
37
53
|
readonly input: StopRunCommandInput;
|