1use std::error::Error;
14use std::fmt;
15
16use async_trait::async_trait;
17use rusoto_core::credential::ProvideAwsCredentials;
18use rusoto_core::region;
19use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
20use rusoto_core::{Client, RusotoError};
21
22use rusoto_core::proto;
23use rusoto_core::request::HttpResponse;
24use rusoto_core::signature::SignedRequest;
25#[allow(unused_imports)]
26use serde::{Deserialize, Serialize};
27
28impl DeviceFarmClient {
29 fn new_signed_request(&self, http_method: &str, request_uri: &str) -> SignedRequest {
30 let mut request = SignedRequest::new(http_method, "devicefarm", &self.region, request_uri);
31
32 request.set_content_type("application/x-amz-json-1.1".to_owned());
33
34 request
35 }
36
37 async fn sign_and_dispatch<E>(
38 &self,
39 request: SignedRequest,
40 from_response: fn(BufferedHttpResponse) -> RusotoError<E>,
41 ) -> Result<HttpResponse, RusotoError<E>> {
42 let mut response = self.client.sign_and_dispatch(request).await?;
43 if !response.status.is_success() {
44 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
45 return Err(from_response(response));
46 }
47
48 Ok(response)
49 }
50}
51
52use serde_json;
53#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
55#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
56pub struct AccountSettings {
57 #[serde(rename = "awsAccountNumber")]
59 #[serde(skip_serializing_if = "Option::is_none")]
60 pub aws_account_number: Option<String>,
61 #[serde(rename = "defaultJobTimeoutMinutes")]
63 #[serde(skip_serializing_if = "Option::is_none")]
64 pub default_job_timeout_minutes: Option<i64>,
65 #[serde(rename = "maxJobTimeoutMinutes")]
67 #[serde(skip_serializing_if = "Option::is_none")]
68 pub max_job_timeout_minutes: Option<i64>,
69 #[serde(rename = "maxSlots")]
71 #[serde(skip_serializing_if = "Option::is_none")]
72 pub max_slots: Option<::std::collections::HashMap<String, i64>>,
73 #[serde(rename = "skipAppResign")]
75 #[serde(skip_serializing_if = "Option::is_none")]
76 pub skip_app_resign: Option<bool>,
77 #[serde(rename = "trialMinutes")]
79 #[serde(skip_serializing_if = "Option::is_none")]
80 pub trial_minutes: Option<TrialMinutes>,
81 #[serde(rename = "unmeteredDevices")]
83 #[serde(skip_serializing_if = "Option::is_none")]
84 pub unmetered_devices: Option<::std::collections::HashMap<String, i64>>,
85 #[serde(rename = "unmeteredRemoteAccessDevices")]
87 #[serde(skip_serializing_if = "Option::is_none")]
88 pub unmetered_remote_access_devices: Option<::std::collections::HashMap<String, i64>>,
89}
90
91#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
93#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
94pub struct Artifact {
95 #[serde(rename = "arn")]
97 #[serde(skip_serializing_if = "Option::is_none")]
98 pub arn: Option<String>,
99 #[serde(rename = "extension")]
101 #[serde(skip_serializing_if = "Option::is_none")]
102 pub extension: Option<String>,
103 #[serde(rename = "name")]
105 #[serde(skip_serializing_if = "Option::is_none")]
106 pub name: Option<String>,
107 #[serde(rename = "type")]
109 #[serde(skip_serializing_if = "Option::is_none")]
110 pub type_: Option<String>,
111 #[serde(rename = "url")]
113 #[serde(skip_serializing_if = "Option::is_none")]
114 pub url: Option<String>,
115}
116
117#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
119#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
120pub struct CPU {
121 #[serde(rename = "architecture")]
123 #[serde(skip_serializing_if = "Option::is_none")]
124 pub architecture: Option<String>,
125 #[serde(rename = "clock")]
127 #[serde(skip_serializing_if = "Option::is_none")]
128 pub clock: Option<f64>,
129 #[serde(rename = "frequency")]
131 #[serde(skip_serializing_if = "Option::is_none")]
132 pub frequency: Option<String>,
133}
134
135#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
137#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
138pub struct Counters {
139 #[serde(rename = "errored")]
141 #[serde(skip_serializing_if = "Option::is_none")]
142 pub errored: Option<i64>,
143 #[serde(rename = "failed")]
145 #[serde(skip_serializing_if = "Option::is_none")]
146 pub failed: Option<i64>,
147 #[serde(rename = "passed")]
149 #[serde(skip_serializing_if = "Option::is_none")]
150 pub passed: Option<i64>,
151 #[serde(rename = "skipped")]
153 #[serde(skip_serializing_if = "Option::is_none")]
154 pub skipped: Option<i64>,
155 #[serde(rename = "stopped")]
157 #[serde(skip_serializing_if = "Option::is_none")]
158 pub stopped: Option<i64>,
159 #[serde(rename = "total")]
161 #[serde(skip_serializing_if = "Option::is_none")]
162 pub total: Option<i64>,
163 #[serde(rename = "warned")]
165 #[serde(skip_serializing_if = "Option::is_none")]
166 pub warned: Option<i64>,
167}
168
169#[derive(Clone, Debug, Default, PartialEq, Serialize)]
171#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
172pub struct CreateDevicePoolRequest {
173 #[serde(rename = "description")]
175 #[serde(skip_serializing_if = "Option::is_none")]
176 pub description: Option<String>,
177 #[serde(rename = "maxDevices")]
179 #[serde(skip_serializing_if = "Option::is_none")]
180 pub max_devices: Option<i64>,
181 #[serde(rename = "name")]
183 pub name: String,
184 #[serde(rename = "projectArn")]
186 pub project_arn: String,
187 #[serde(rename = "rules")]
189 pub rules: Vec<Rule>,
190}
191
192#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
194#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
195pub struct CreateDevicePoolResult {
196 #[serde(rename = "devicePool")]
198 #[serde(skip_serializing_if = "Option::is_none")]
199 pub device_pool: Option<DevicePool>,
200}
201
202#[derive(Clone, Debug, Default, PartialEq, Serialize)]
203#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
204pub struct CreateInstanceProfileRequest {
205 #[serde(rename = "description")]
207 #[serde(skip_serializing_if = "Option::is_none")]
208 pub description: Option<String>,
209 #[serde(rename = "excludeAppPackagesFromCleanup")]
211 #[serde(skip_serializing_if = "Option::is_none")]
212 pub exclude_app_packages_from_cleanup: Option<Vec<String>>,
213 #[serde(rename = "name")]
215 pub name: String,
216 #[serde(rename = "packageCleanup")]
218 #[serde(skip_serializing_if = "Option::is_none")]
219 pub package_cleanup: Option<bool>,
220 #[serde(rename = "rebootAfterUse")]
222 #[serde(skip_serializing_if = "Option::is_none")]
223 pub reboot_after_use: Option<bool>,
224}
225
226#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
227#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
228pub struct CreateInstanceProfileResult {
229 #[serde(rename = "instanceProfile")]
231 #[serde(skip_serializing_if = "Option::is_none")]
232 pub instance_profile: Option<InstanceProfile>,
233}
234
235#[derive(Clone, Debug, Default, PartialEq, Serialize)]
236#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
237pub struct CreateNetworkProfileRequest {
238 #[serde(rename = "description")]
240 #[serde(skip_serializing_if = "Option::is_none")]
241 pub description: Option<String>,
242 #[serde(rename = "downlinkBandwidthBits")]
244 #[serde(skip_serializing_if = "Option::is_none")]
245 pub downlink_bandwidth_bits: Option<i64>,
246 #[serde(rename = "downlinkDelayMs")]
248 #[serde(skip_serializing_if = "Option::is_none")]
249 pub downlink_delay_ms: Option<i64>,
250 #[serde(rename = "downlinkJitterMs")]
252 #[serde(skip_serializing_if = "Option::is_none")]
253 pub downlink_jitter_ms: Option<i64>,
254 #[serde(rename = "downlinkLossPercent")]
256 #[serde(skip_serializing_if = "Option::is_none")]
257 pub downlink_loss_percent: Option<i64>,
258 #[serde(rename = "name")]
260 pub name: String,
261 #[serde(rename = "projectArn")]
263 pub project_arn: String,
264 #[serde(rename = "type")]
266 #[serde(skip_serializing_if = "Option::is_none")]
267 pub type_: Option<String>,
268 #[serde(rename = "uplinkBandwidthBits")]
270 #[serde(skip_serializing_if = "Option::is_none")]
271 pub uplink_bandwidth_bits: Option<i64>,
272 #[serde(rename = "uplinkDelayMs")]
274 #[serde(skip_serializing_if = "Option::is_none")]
275 pub uplink_delay_ms: Option<i64>,
276 #[serde(rename = "uplinkJitterMs")]
278 #[serde(skip_serializing_if = "Option::is_none")]
279 pub uplink_jitter_ms: Option<i64>,
280 #[serde(rename = "uplinkLossPercent")]
282 #[serde(skip_serializing_if = "Option::is_none")]
283 pub uplink_loss_percent: Option<i64>,
284}
285
286#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
287#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
288pub struct CreateNetworkProfileResult {
289 #[serde(rename = "networkProfile")]
291 #[serde(skip_serializing_if = "Option::is_none")]
292 pub network_profile: Option<NetworkProfile>,
293}
294
295#[derive(Clone, Debug, Default, PartialEq, Serialize)]
297#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
298pub struct CreateProjectRequest {
299 #[serde(rename = "defaultJobTimeoutMinutes")]
301 #[serde(skip_serializing_if = "Option::is_none")]
302 pub default_job_timeout_minutes: Option<i64>,
303 #[serde(rename = "name")]
305 pub name: String,
306}
307
308#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
310#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
311pub struct CreateProjectResult {
312 #[serde(rename = "project")]
314 #[serde(skip_serializing_if = "Option::is_none")]
315 pub project: Option<Project>,
316}
317
318#[derive(Clone, Debug, Default, PartialEq, Serialize)]
320#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
321pub struct CreateRemoteAccessSessionConfiguration {
322 #[serde(rename = "billingMethod")]
324 #[serde(skip_serializing_if = "Option::is_none")]
325 pub billing_method: Option<String>,
326 #[serde(rename = "vpceConfigurationArns")]
328 #[serde(skip_serializing_if = "Option::is_none")]
329 pub vpce_configuration_arns: Option<Vec<String>>,
330}
331
332#[derive(Clone, Debug, Default, PartialEq, Serialize)]
334#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
335pub struct CreateRemoteAccessSessionRequest {
336 #[serde(rename = "clientId")]
338 #[serde(skip_serializing_if = "Option::is_none")]
339 pub client_id: Option<String>,
340 #[serde(rename = "configuration")]
342 #[serde(skip_serializing_if = "Option::is_none")]
343 pub configuration: Option<CreateRemoteAccessSessionConfiguration>,
344 #[serde(rename = "deviceArn")]
346 pub device_arn: String,
347 #[serde(rename = "instanceArn")]
349 #[serde(skip_serializing_if = "Option::is_none")]
350 pub instance_arn: Option<String>,
351 #[serde(rename = "interactionMode")]
353 #[serde(skip_serializing_if = "Option::is_none")]
354 pub interaction_mode: Option<String>,
355 #[serde(rename = "name")]
357 #[serde(skip_serializing_if = "Option::is_none")]
358 pub name: Option<String>,
359 #[serde(rename = "projectArn")]
361 pub project_arn: String,
362 #[serde(rename = "remoteDebugEnabled")]
364 #[serde(skip_serializing_if = "Option::is_none")]
365 pub remote_debug_enabled: Option<bool>,
366 #[serde(rename = "remoteRecordAppArn")]
368 #[serde(skip_serializing_if = "Option::is_none")]
369 pub remote_record_app_arn: Option<String>,
370 #[serde(rename = "remoteRecordEnabled")]
372 #[serde(skip_serializing_if = "Option::is_none")]
373 pub remote_record_enabled: Option<bool>,
374 #[serde(rename = "skipAppResign")]
376 #[serde(skip_serializing_if = "Option::is_none")]
377 pub skip_app_resign: Option<bool>,
378 #[serde(rename = "sshPublicKey")]
380 #[serde(skip_serializing_if = "Option::is_none")]
381 pub ssh_public_key: Option<String>,
382}
383
384#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
386#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
387pub struct CreateRemoteAccessSessionResult {
388 #[serde(rename = "remoteAccessSession")]
390 #[serde(skip_serializing_if = "Option::is_none")]
391 pub remote_access_session: Option<RemoteAccessSession>,
392}
393
394#[derive(Clone, Debug, Default, PartialEq, Serialize)]
395#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
396pub struct CreateTestGridProjectRequest {
397 #[serde(rename = "description")]
399 #[serde(skip_serializing_if = "Option::is_none")]
400 pub description: Option<String>,
401 #[serde(rename = "name")]
403 pub name: String,
404}
405
406#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
407#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
408pub struct CreateTestGridProjectResult {
409 #[serde(rename = "testGridProject")]
411 #[serde(skip_serializing_if = "Option::is_none")]
412 pub test_grid_project: Option<TestGridProject>,
413}
414
415#[derive(Clone, Debug, Default, PartialEq, Serialize)]
416#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
417pub struct CreateTestGridUrlRequest {
418 #[serde(rename = "expiresInSeconds")]
420 pub expires_in_seconds: i64,
421 #[serde(rename = "projectArn")]
423 pub project_arn: String,
424}
425
426#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
427#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
428pub struct CreateTestGridUrlResult {
429 #[serde(rename = "expires")]
431 #[serde(skip_serializing_if = "Option::is_none")]
432 pub expires: Option<f64>,
433 #[serde(rename = "url")]
435 #[serde(skip_serializing_if = "Option::is_none")]
436 pub url: Option<String>,
437}
438
439#[derive(Clone, Debug, Default, PartialEq, Serialize)]
441#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
442pub struct CreateUploadRequest {
443 #[serde(rename = "contentType")]
445 #[serde(skip_serializing_if = "Option::is_none")]
446 pub content_type: Option<String>,
447 #[serde(rename = "name")]
449 pub name: String,
450 #[serde(rename = "projectArn")]
452 pub project_arn: String,
453 #[serde(rename = "type")]
455 pub type_: String,
456}
457
458#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
460#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
461pub struct CreateUploadResult {
462 #[serde(rename = "upload")]
464 #[serde(skip_serializing_if = "Option::is_none")]
465 pub upload: Option<Upload>,
466}
467
468#[derive(Clone, Debug, Default, PartialEq, Serialize)]
469#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
470pub struct CreateVPCEConfigurationRequest {
471 #[serde(rename = "serviceDnsName")]
473 pub service_dns_name: String,
474 #[serde(rename = "vpceConfigurationDescription")]
476 #[serde(skip_serializing_if = "Option::is_none")]
477 pub vpce_configuration_description: Option<String>,
478 #[serde(rename = "vpceConfigurationName")]
480 pub vpce_configuration_name: String,
481 #[serde(rename = "vpceServiceName")]
483 pub vpce_service_name: String,
484}
485
486#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
487#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
488pub struct CreateVPCEConfigurationResult {
489 #[serde(rename = "vpceConfiguration")]
491 #[serde(skip_serializing_if = "Option::is_none")]
492 pub vpce_configuration: Option<VPCEConfiguration>,
493}
494
495#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
497pub struct CustomerArtifactPaths {
498 #[serde(rename = "androidPaths")]
500 #[serde(skip_serializing_if = "Option::is_none")]
501 pub android_paths: Option<Vec<String>>,
502 #[serde(rename = "deviceHostPaths")]
504 #[serde(skip_serializing_if = "Option::is_none")]
505 pub device_host_paths: Option<Vec<String>>,
506 #[serde(rename = "iosPaths")]
508 #[serde(skip_serializing_if = "Option::is_none")]
509 pub ios_paths: Option<Vec<String>>,
510}
511
512#[derive(Clone, Debug, Default, PartialEq, Serialize)]
514#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
515pub struct DeleteDevicePoolRequest {
516 #[serde(rename = "arn")]
518 pub arn: String,
519}
520
521#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
523#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
524pub struct DeleteDevicePoolResult {}
525
526#[derive(Clone, Debug, Default, PartialEq, Serialize)]
527#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
528pub struct DeleteInstanceProfileRequest {
529 #[serde(rename = "arn")]
531 pub arn: String,
532}
533
534#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
535#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
536pub struct DeleteInstanceProfileResult {}
537
538#[derive(Clone, Debug, Default, PartialEq, Serialize)]
539#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
540pub struct DeleteNetworkProfileRequest {
541 #[serde(rename = "arn")]
543 pub arn: String,
544}
545
546#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
547#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
548pub struct DeleteNetworkProfileResult {}
549
550#[derive(Clone, Debug, Default, PartialEq, Serialize)]
552#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
553pub struct DeleteProjectRequest {
554 #[serde(rename = "arn")]
556 pub arn: String,
557}
558
559#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
561#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
562pub struct DeleteProjectResult {}
563
564#[derive(Clone, Debug, Default, PartialEq, Serialize)]
566#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
567pub struct DeleteRemoteAccessSessionRequest {
568 #[serde(rename = "arn")]
570 pub arn: String,
571}
572
573#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
575#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
576pub struct DeleteRemoteAccessSessionResult {}
577
578#[derive(Clone, Debug, Default, PartialEq, Serialize)]
580#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
581pub struct DeleteRunRequest {
582 #[serde(rename = "arn")]
584 pub arn: String,
585}
586
587#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
589#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
590pub struct DeleteRunResult {}
591
592#[derive(Clone, Debug, Default, PartialEq, Serialize)]
593#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
594pub struct DeleteTestGridProjectRequest {
595 #[serde(rename = "projectArn")]
597 pub project_arn: String,
598}
599
600#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
601#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
602pub struct DeleteTestGridProjectResult {}
603
604#[derive(Clone, Debug, Default, PartialEq, Serialize)]
606#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
607pub struct DeleteUploadRequest {
608 #[serde(rename = "arn")]
610 pub arn: String,
611}
612
613#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
615#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
616pub struct DeleteUploadResult {}
617
618#[derive(Clone, Debug, Default, PartialEq, Serialize)]
619#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
620pub struct DeleteVPCEConfigurationRequest {
621 #[serde(rename = "arn")]
623 pub arn: String,
624}
625
626#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
627#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
628pub struct DeleteVPCEConfigurationResult {}
629
630#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
632#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
633pub struct Device {
634 #[serde(rename = "arn")]
636 #[serde(skip_serializing_if = "Option::is_none")]
637 pub arn: Option<String>,
638 #[serde(rename = "availability")]
640 #[serde(skip_serializing_if = "Option::is_none")]
641 pub availability: Option<String>,
642 #[serde(rename = "carrier")]
644 #[serde(skip_serializing_if = "Option::is_none")]
645 pub carrier: Option<String>,
646 #[serde(rename = "cpu")]
648 #[serde(skip_serializing_if = "Option::is_none")]
649 pub cpu: Option<CPU>,
650 #[serde(rename = "fleetName")]
652 #[serde(skip_serializing_if = "Option::is_none")]
653 pub fleet_name: Option<String>,
654 #[serde(rename = "fleetType")]
656 #[serde(skip_serializing_if = "Option::is_none")]
657 pub fleet_type: Option<String>,
658 #[serde(rename = "formFactor")]
660 #[serde(skip_serializing_if = "Option::is_none")]
661 pub form_factor: Option<String>,
662 #[serde(rename = "heapSize")]
664 #[serde(skip_serializing_if = "Option::is_none")]
665 pub heap_size: Option<i64>,
666 #[serde(rename = "image")]
668 #[serde(skip_serializing_if = "Option::is_none")]
669 pub image: Option<String>,
670 #[serde(rename = "instances")]
672 #[serde(skip_serializing_if = "Option::is_none")]
673 pub instances: Option<Vec<DeviceInstance>>,
674 #[serde(rename = "manufacturer")]
676 #[serde(skip_serializing_if = "Option::is_none")]
677 pub manufacturer: Option<String>,
678 #[serde(rename = "memory")]
680 #[serde(skip_serializing_if = "Option::is_none")]
681 pub memory: Option<i64>,
682 #[serde(rename = "model")]
684 #[serde(skip_serializing_if = "Option::is_none")]
685 pub model: Option<String>,
686 #[serde(rename = "modelId")]
688 #[serde(skip_serializing_if = "Option::is_none")]
689 pub model_id: Option<String>,
690 #[serde(rename = "name")]
692 #[serde(skip_serializing_if = "Option::is_none")]
693 pub name: Option<String>,
694 #[serde(rename = "os")]
696 #[serde(skip_serializing_if = "Option::is_none")]
697 pub os: Option<String>,
698 #[serde(rename = "platform")]
700 #[serde(skip_serializing_if = "Option::is_none")]
701 pub platform: Option<String>,
702 #[serde(rename = "radio")]
704 #[serde(skip_serializing_if = "Option::is_none")]
705 pub radio: Option<String>,
706 #[serde(rename = "remoteAccessEnabled")]
708 #[serde(skip_serializing_if = "Option::is_none")]
709 pub remote_access_enabled: Option<bool>,
710 #[serde(rename = "remoteDebugEnabled")]
712 #[serde(skip_serializing_if = "Option::is_none")]
713 pub remote_debug_enabled: Option<bool>,
714 #[serde(rename = "resolution")]
716 #[serde(skip_serializing_if = "Option::is_none")]
717 pub resolution: Option<Resolution>,
718}
719
720#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
722pub struct DeviceFilter {
723 #[serde(rename = "attribute")]
725 #[serde(skip_serializing_if = "Option::is_none")]
726 pub attribute: Option<String>,
727 #[serde(rename = "operator")]
729 #[serde(skip_serializing_if = "Option::is_none")]
730 pub operator: Option<String>,
731 #[serde(rename = "values")]
733 #[serde(skip_serializing_if = "Option::is_none")]
734 pub values: Option<Vec<String>>,
735}
736
737#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
739#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
740pub struct DeviceInstance {
741 #[serde(rename = "arn")]
743 #[serde(skip_serializing_if = "Option::is_none")]
744 pub arn: Option<String>,
745 #[serde(rename = "deviceArn")]
747 #[serde(skip_serializing_if = "Option::is_none")]
748 pub device_arn: Option<String>,
749 #[serde(rename = "instanceProfile")]
751 #[serde(skip_serializing_if = "Option::is_none")]
752 pub instance_profile: Option<InstanceProfile>,
753 #[serde(rename = "labels")]
755 #[serde(skip_serializing_if = "Option::is_none")]
756 pub labels: Option<Vec<String>>,
757 #[serde(rename = "status")]
759 #[serde(skip_serializing_if = "Option::is_none")]
760 pub status: Option<String>,
761 #[serde(rename = "udid")]
763 #[serde(skip_serializing_if = "Option::is_none")]
764 pub udid: Option<String>,
765}
766
767#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
769#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
770pub struct DeviceMinutes {
771 #[serde(rename = "metered")]
773 #[serde(skip_serializing_if = "Option::is_none")]
774 pub metered: Option<f64>,
775 #[serde(rename = "total")]
777 #[serde(skip_serializing_if = "Option::is_none")]
778 pub total: Option<f64>,
779 #[serde(rename = "unmetered")]
781 #[serde(skip_serializing_if = "Option::is_none")]
782 pub unmetered: Option<f64>,
783}
784
785#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
787#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
788pub struct DevicePool {
789 #[serde(rename = "arn")]
791 #[serde(skip_serializing_if = "Option::is_none")]
792 pub arn: Option<String>,
793 #[serde(rename = "description")]
795 #[serde(skip_serializing_if = "Option::is_none")]
796 pub description: Option<String>,
797 #[serde(rename = "maxDevices")]
799 #[serde(skip_serializing_if = "Option::is_none")]
800 pub max_devices: Option<i64>,
801 #[serde(rename = "name")]
803 #[serde(skip_serializing_if = "Option::is_none")]
804 pub name: Option<String>,
805 #[serde(rename = "rules")]
807 #[serde(skip_serializing_if = "Option::is_none")]
808 pub rules: Option<Vec<Rule>>,
809 #[serde(rename = "type")]
811 #[serde(skip_serializing_if = "Option::is_none")]
812 pub type_: Option<String>,
813}
814
815#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
817#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
818pub struct DevicePoolCompatibilityResult {
819 #[serde(rename = "compatible")]
821 #[serde(skip_serializing_if = "Option::is_none")]
822 pub compatible: Option<bool>,
823 #[serde(rename = "device")]
825 #[serde(skip_serializing_if = "Option::is_none")]
826 pub device: Option<Device>,
827 #[serde(rename = "incompatibilityMessages")]
829 #[serde(skip_serializing_if = "Option::is_none")]
830 pub incompatibility_messages: Option<Vec<IncompatibilityMessage>>,
831}
832
833#[derive(Clone, Debug, Default, PartialEq, Serialize)]
835#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
836pub struct DeviceSelectionConfiguration {
837 #[serde(rename = "filters")]
839 pub filters: Vec<DeviceFilter>,
840 #[serde(rename = "maxDevices")]
842 pub max_devices: i64,
843}
844
845#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
847#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
848pub struct DeviceSelectionResult {
849 #[serde(rename = "filters")]
851 #[serde(skip_serializing_if = "Option::is_none")]
852 pub filters: Option<Vec<DeviceFilter>>,
853 #[serde(rename = "matchedDevicesCount")]
855 #[serde(skip_serializing_if = "Option::is_none")]
856 pub matched_devices_count: Option<i64>,
857 #[serde(rename = "maxDevices")]
859 #[serde(skip_serializing_if = "Option::is_none")]
860 pub max_devices: Option<i64>,
861}
862
863#[derive(Clone, Debug, Default, PartialEq, Serialize)]
865#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
866pub struct ExecutionConfiguration {
867 #[serde(rename = "accountsCleanup")]
869 #[serde(skip_serializing_if = "Option::is_none")]
870 pub accounts_cleanup: Option<bool>,
871 #[serde(rename = "appPackagesCleanup")]
873 #[serde(skip_serializing_if = "Option::is_none")]
874 pub app_packages_cleanup: Option<bool>,
875 #[serde(rename = "jobTimeoutMinutes")]
877 #[serde(skip_serializing_if = "Option::is_none")]
878 pub job_timeout_minutes: Option<i64>,
879 #[serde(rename = "skipAppResign")]
881 #[serde(skip_serializing_if = "Option::is_none")]
882 pub skip_app_resign: Option<bool>,
883 #[serde(rename = "videoCapture")]
885 #[serde(skip_serializing_if = "Option::is_none")]
886 pub video_capture: Option<bool>,
887}
888
889#[derive(Clone, Debug, Default, PartialEq, Serialize)]
891#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
892pub struct GetAccountSettingsRequest {}
893
894#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
896#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
897pub struct GetAccountSettingsResult {
898 #[serde(rename = "accountSettings")]
900 #[serde(skip_serializing_if = "Option::is_none")]
901 pub account_settings: Option<AccountSettings>,
902}
903
904#[derive(Clone, Debug, Default, PartialEq, Serialize)]
905#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
906pub struct GetDeviceInstanceRequest {
907 #[serde(rename = "arn")]
909 pub arn: String,
910}
911
912#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
913#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
914pub struct GetDeviceInstanceResult {
915 #[serde(rename = "deviceInstance")]
917 #[serde(skip_serializing_if = "Option::is_none")]
918 pub device_instance: Option<DeviceInstance>,
919}
920
921#[derive(Clone, Debug, Default, PartialEq, Serialize)]
923#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
924pub struct GetDevicePoolCompatibilityRequest {
925 #[serde(rename = "appArn")]
927 #[serde(skip_serializing_if = "Option::is_none")]
928 pub app_arn: Option<String>,
929 #[serde(rename = "configuration")]
931 #[serde(skip_serializing_if = "Option::is_none")]
932 pub configuration: Option<ScheduleRunConfiguration>,
933 #[serde(rename = "devicePoolArn")]
935 pub device_pool_arn: String,
936 #[serde(rename = "test")]
938 #[serde(skip_serializing_if = "Option::is_none")]
939 pub test: Option<ScheduleRunTest>,
940 #[serde(rename = "testType")]
942 #[serde(skip_serializing_if = "Option::is_none")]
943 pub test_type: Option<String>,
944}
945
946#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
948#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
949pub struct GetDevicePoolCompatibilityResult {
950 #[serde(rename = "compatibleDevices")]
952 #[serde(skip_serializing_if = "Option::is_none")]
953 pub compatible_devices: Option<Vec<DevicePoolCompatibilityResult>>,
954 #[serde(rename = "incompatibleDevices")]
956 #[serde(skip_serializing_if = "Option::is_none")]
957 pub incompatible_devices: Option<Vec<DevicePoolCompatibilityResult>>,
958}
959
960#[derive(Clone, Debug, Default, PartialEq, Serialize)]
962#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
963pub struct GetDevicePoolRequest {
964 #[serde(rename = "arn")]
966 pub arn: String,
967}
968
969#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
971#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
972pub struct GetDevicePoolResult {
973 #[serde(rename = "devicePool")]
975 #[serde(skip_serializing_if = "Option::is_none")]
976 pub device_pool: Option<DevicePool>,
977}
978
979#[derive(Clone, Debug, Default, PartialEq, Serialize)]
981#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
982pub struct GetDeviceRequest {
983 #[serde(rename = "arn")]
985 pub arn: String,
986}
987
988#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
990#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
991pub struct GetDeviceResult {
992 #[serde(rename = "device")]
994 #[serde(skip_serializing_if = "Option::is_none")]
995 pub device: Option<Device>,
996}
997
998#[derive(Clone, Debug, Default, PartialEq, Serialize)]
999#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1000pub struct GetInstanceProfileRequest {
1001 #[serde(rename = "arn")]
1003 pub arn: String,
1004}
1005
1006#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1007#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1008pub struct GetInstanceProfileResult {
1009 #[serde(rename = "instanceProfile")]
1011 #[serde(skip_serializing_if = "Option::is_none")]
1012 pub instance_profile: Option<InstanceProfile>,
1013}
1014
1015#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1017#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1018pub struct GetJobRequest {
1019 #[serde(rename = "arn")]
1021 pub arn: String,
1022}
1023
1024#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1026#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1027pub struct GetJobResult {
1028 #[serde(rename = "job")]
1030 #[serde(skip_serializing_if = "Option::is_none")]
1031 pub job: Option<Job>,
1032}
1033
1034#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1035#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1036pub struct GetNetworkProfileRequest {
1037 #[serde(rename = "arn")]
1039 pub arn: String,
1040}
1041
1042#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1043#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1044pub struct GetNetworkProfileResult {
1045 #[serde(rename = "networkProfile")]
1047 #[serde(skip_serializing_if = "Option::is_none")]
1048 pub network_profile: Option<NetworkProfile>,
1049}
1050
1051#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1053#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1054pub struct GetOfferingStatusRequest {
1055 #[serde(rename = "nextToken")]
1057 #[serde(skip_serializing_if = "Option::is_none")]
1058 pub next_token: Option<String>,
1059}
1060
1061#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1063#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1064pub struct GetOfferingStatusResult {
1065 #[serde(rename = "current")]
1067 #[serde(skip_serializing_if = "Option::is_none")]
1068 pub current: Option<::std::collections::HashMap<String, OfferingStatus>>,
1069 #[serde(rename = "nextPeriod")]
1071 #[serde(skip_serializing_if = "Option::is_none")]
1072 pub next_period: Option<::std::collections::HashMap<String, OfferingStatus>>,
1073 #[serde(rename = "nextToken")]
1075 #[serde(skip_serializing_if = "Option::is_none")]
1076 pub next_token: Option<String>,
1077}
1078
1079#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1081#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1082pub struct GetProjectRequest {
1083 #[serde(rename = "arn")]
1085 pub arn: String,
1086}
1087
1088#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1090#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1091pub struct GetProjectResult {
1092 #[serde(rename = "project")]
1094 #[serde(skip_serializing_if = "Option::is_none")]
1095 pub project: Option<Project>,
1096}
1097
1098#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1100#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1101pub struct GetRemoteAccessSessionRequest {
1102 #[serde(rename = "arn")]
1104 pub arn: String,
1105}
1106
1107#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1109#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1110pub struct GetRemoteAccessSessionResult {
1111 #[serde(rename = "remoteAccessSession")]
1113 #[serde(skip_serializing_if = "Option::is_none")]
1114 pub remote_access_session: Option<RemoteAccessSession>,
1115}
1116
1117#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1119#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1120pub struct GetRunRequest {
1121 #[serde(rename = "arn")]
1123 pub arn: String,
1124}
1125
1126#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1128#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1129pub struct GetRunResult {
1130 #[serde(rename = "run")]
1132 #[serde(skip_serializing_if = "Option::is_none")]
1133 pub run: Option<Run>,
1134}
1135
1136#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1138#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1139pub struct GetSuiteRequest {
1140 #[serde(rename = "arn")]
1142 pub arn: String,
1143}
1144
1145#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1147#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1148pub struct GetSuiteResult {
1149 #[serde(rename = "suite")]
1151 #[serde(skip_serializing_if = "Option::is_none")]
1152 pub suite: Option<Suite>,
1153}
1154
1155#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1156#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1157pub struct GetTestGridProjectRequest {
1158 #[serde(rename = "projectArn")]
1160 pub project_arn: String,
1161}
1162
1163#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1164#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1165pub struct GetTestGridProjectResult {
1166 #[serde(rename = "testGridProject")]
1168 #[serde(skip_serializing_if = "Option::is_none")]
1169 pub test_grid_project: Option<TestGridProject>,
1170}
1171
1172#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1173#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1174pub struct GetTestGridSessionRequest {
1175 #[serde(rename = "projectArn")]
1177 #[serde(skip_serializing_if = "Option::is_none")]
1178 pub project_arn: Option<String>,
1179 #[serde(rename = "sessionArn")]
1181 #[serde(skip_serializing_if = "Option::is_none")]
1182 pub session_arn: Option<String>,
1183 #[serde(rename = "sessionId")]
1185 #[serde(skip_serializing_if = "Option::is_none")]
1186 pub session_id: Option<String>,
1187}
1188
1189#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1190#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1191pub struct GetTestGridSessionResult {
1192 #[serde(rename = "testGridSession")]
1194 #[serde(skip_serializing_if = "Option::is_none")]
1195 pub test_grid_session: Option<TestGridSession>,
1196}
1197
1198#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1200#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1201pub struct GetTestRequest {
1202 #[serde(rename = "arn")]
1204 pub arn: String,
1205}
1206
1207#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1209#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1210pub struct GetTestResult {
1211 #[serde(rename = "test")]
1213 #[serde(skip_serializing_if = "Option::is_none")]
1214 pub test: Option<Test>,
1215}
1216
1217#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1219#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1220pub struct GetUploadRequest {
1221 #[serde(rename = "arn")]
1223 pub arn: String,
1224}
1225
1226#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1228#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1229pub struct GetUploadResult {
1230 #[serde(rename = "upload")]
1232 #[serde(skip_serializing_if = "Option::is_none")]
1233 pub upload: Option<Upload>,
1234}
1235
1236#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1237#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1238pub struct GetVPCEConfigurationRequest {
1239 #[serde(rename = "arn")]
1241 pub arn: String,
1242}
1243
1244#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1245#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1246pub struct GetVPCEConfigurationResult {
1247 #[serde(rename = "vpceConfiguration")]
1249 #[serde(skip_serializing_if = "Option::is_none")]
1250 pub vpce_configuration: Option<VPCEConfiguration>,
1251}
1252
1253#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1255#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1256pub struct IncompatibilityMessage {
1257 #[serde(rename = "message")]
1259 #[serde(skip_serializing_if = "Option::is_none")]
1260 pub message: Option<String>,
1261 #[serde(rename = "type")]
1263 #[serde(skip_serializing_if = "Option::is_none")]
1264 pub type_: Option<String>,
1265}
1266
1267#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1269#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1270pub struct InstallToRemoteAccessSessionRequest {
1271 #[serde(rename = "appArn")]
1273 pub app_arn: String,
1274 #[serde(rename = "remoteAccessSessionArn")]
1276 pub remote_access_session_arn: String,
1277}
1278
1279#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1281#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1282pub struct InstallToRemoteAccessSessionResult {
1283 #[serde(rename = "appUpload")]
1285 #[serde(skip_serializing_if = "Option::is_none")]
1286 pub app_upload: Option<Upload>,
1287}
1288
1289#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1291#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1292pub struct InstanceProfile {
1293 #[serde(rename = "arn")]
1295 #[serde(skip_serializing_if = "Option::is_none")]
1296 pub arn: Option<String>,
1297 #[serde(rename = "description")]
1299 #[serde(skip_serializing_if = "Option::is_none")]
1300 pub description: Option<String>,
1301 #[serde(rename = "excludeAppPackagesFromCleanup")]
1303 #[serde(skip_serializing_if = "Option::is_none")]
1304 pub exclude_app_packages_from_cleanup: Option<Vec<String>>,
1305 #[serde(rename = "name")]
1307 #[serde(skip_serializing_if = "Option::is_none")]
1308 pub name: Option<String>,
1309 #[serde(rename = "packageCleanup")]
1311 #[serde(skip_serializing_if = "Option::is_none")]
1312 pub package_cleanup: Option<bool>,
1313 #[serde(rename = "rebootAfterUse")]
1315 #[serde(skip_serializing_if = "Option::is_none")]
1316 pub reboot_after_use: Option<bool>,
1317}
1318
1319#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1321#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1322pub struct Job {
1323 #[serde(rename = "arn")]
1325 #[serde(skip_serializing_if = "Option::is_none")]
1326 pub arn: Option<String>,
1327 #[serde(rename = "counters")]
1329 #[serde(skip_serializing_if = "Option::is_none")]
1330 pub counters: Option<Counters>,
1331 #[serde(rename = "created")]
1333 #[serde(skip_serializing_if = "Option::is_none")]
1334 pub created: Option<f64>,
1335 #[serde(rename = "device")]
1337 #[serde(skip_serializing_if = "Option::is_none")]
1338 pub device: Option<Device>,
1339 #[serde(rename = "deviceMinutes")]
1341 #[serde(skip_serializing_if = "Option::is_none")]
1342 pub device_minutes: Option<DeviceMinutes>,
1343 #[serde(rename = "instanceArn")]
1345 #[serde(skip_serializing_if = "Option::is_none")]
1346 pub instance_arn: Option<String>,
1347 #[serde(rename = "message")]
1349 #[serde(skip_serializing_if = "Option::is_none")]
1350 pub message: Option<String>,
1351 #[serde(rename = "name")]
1353 #[serde(skip_serializing_if = "Option::is_none")]
1354 pub name: Option<String>,
1355 #[serde(rename = "result")]
1357 #[serde(skip_serializing_if = "Option::is_none")]
1358 pub result: Option<String>,
1359 #[serde(rename = "started")]
1361 #[serde(skip_serializing_if = "Option::is_none")]
1362 pub started: Option<f64>,
1363 #[serde(rename = "status")]
1365 #[serde(skip_serializing_if = "Option::is_none")]
1366 pub status: Option<String>,
1367 #[serde(rename = "stopped")]
1369 #[serde(skip_serializing_if = "Option::is_none")]
1370 pub stopped: Option<f64>,
1371 #[serde(rename = "type")]
1373 #[serde(skip_serializing_if = "Option::is_none")]
1374 pub type_: Option<String>,
1375 #[serde(rename = "videoCapture")]
1377 #[serde(skip_serializing_if = "Option::is_none")]
1378 pub video_capture: Option<bool>,
1379 #[serde(rename = "videoEndpoint")]
1381 #[serde(skip_serializing_if = "Option::is_none")]
1382 pub video_endpoint: Option<String>,
1383}
1384
1385#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1387#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1388pub struct ListArtifactsRequest {
1389 #[serde(rename = "arn")]
1391 pub arn: String,
1392 #[serde(rename = "nextToken")]
1394 #[serde(skip_serializing_if = "Option::is_none")]
1395 pub next_token: Option<String>,
1396 #[serde(rename = "type")]
1398 pub type_: String,
1399}
1400
1401#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1403#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1404pub struct ListArtifactsResult {
1405 #[serde(rename = "artifacts")]
1407 #[serde(skip_serializing_if = "Option::is_none")]
1408 pub artifacts: Option<Vec<Artifact>>,
1409 #[serde(rename = "nextToken")]
1411 #[serde(skip_serializing_if = "Option::is_none")]
1412 pub next_token: Option<String>,
1413}
1414
1415#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1416#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1417pub struct ListDeviceInstancesRequest {
1418 #[serde(rename = "maxResults")]
1420 #[serde(skip_serializing_if = "Option::is_none")]
1421 pub max_results: Option<i64>,
1422 #[serde(rename = "nextToken")]
1424 #[serde(skip_serializing_if = "Option::is_none")]
1425 pub next_token: Option<String>,
1426}
1427
1428#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1429#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1430pub struct ListDeviceInstancesResult {
1431 #[serde(rename = "deviceInstances")]
1433 #[serde(skip_serializing_if = "Option::is_none")]
1434 pub device_instances: Option<Vec<DeviceInstance>>,
1435 #[serde(rename = "nextToken")]
1437 #[serde(skip_serializing_if = "Option::is_none")]
1438 pub next_token: Option<String>,
1439}
1440
1441#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1443#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1444pub struct ListDevicePoolsRequest {
1445 #[serde(rename = "arn")]
1447 pub arn: String,
1448 #[serde(rename = "nextToken")]
1450 #[serde(skip_serializing_if = "Option::is_none")]
1451 pub next_token: Option<String>,
1452 #[serde(rename = "type")]
1454 #[serde(skip_serializing_if = "Option::is_none")]
1455 pub type_: Option<String>,
1456}
1457
1458#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1460#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1461pub struct ListDevicePoolsResult {
1462 #[serde(rename = "devicePools")]
1464 #[serde(skip_serializing_if = "Option::is_none")]
1465 pub device_pools: Option<Vec<DevicePool>>,
1466 #[serde(rename = "nextToken")]
1468 #[serde(skip_serializing_if = "Option::is_none")]
1469 pub next_token: Option<String>,
1470}
1471
1472#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1474#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1475pub struct ListDevicesRequest {
1476 #[serde(rename = "arn")]
1478 #[serde(skip_serializing_if = "Option::is_none")]
1479 pub arn: Option<String>,
1480 #[serde(rename = "filters")]
1482 #[serde(skip_serializing_if = "Option::is_none")]
1483 pub filters: Option<Vec<DeviceFilter>>,
1484 #[serde(rename = "nextToken")]
1486 #[serde(skip_serializing_if = "Option::is_none")]
1487 pub next_token: Option<String>,
1488}
1489
1490#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1492#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1493pub struct ListDevicesResult {
1494 #[serde(rename = "devices")]
1496 #[serde(skip_serializing_if = "Option::is_none")]
1497 pub devices: Option<Vec<Device>>,
1498 #[serde(rename = "nextToken")]
1500 #[serde(skip_serializing_if = "Option::is_none")]
1501 pub next_token: Option<String>,
1502}
1503
1504#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1505#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1506pub struct ListInstanceProfilesRequest {
1507 #[serde(rename = "maxResults")]
1509 #[serde(skip_serializing_if = "Option::is_none")]
1510 pub max_results: Option<i64>,
1511 #[serde(rename = "nextToken")]
1513 #[serde(skip_serializing_if = "Option::is_none")]
1514 pub next_token: Option<String>,
1515}
1516
1517#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1518#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1519pub struct ListInstanceProfilesResult {
1520 #[serde(rename = "instanceProfiles")]
1522 #[serde(skip_serializing_if = "Option::is_none")]
1523 pub instance_profiles: Option<Vec<InstanceProfile>>,
1524 #[serde(rename = "nextToken")]
1526 #[serde(skip_serializing_if = "Option::is_none")]
1527 pub next_token: Option<String>,
1528}
1529
1530#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1532#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1533pub struct ListJobsRequest {
1534 #[serde(rename = "arn")]
1536 pub arn: String,
1537 #[serde(rename = "nextToken")]
1539 #[serde(skip_serializing_if = "Option::is_none")]
1540 pub next_token: Option<String>,
1541}
1542
1543#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1545#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1546pub struct ListJobsResult {
1547 #[serde(rename = "jobs")]
1549 #[serde(skip_serializing_if = "Option::is_none")]
1550 pub jobs: Option<Vec<Job>>,
1551 #[serde(rename = "nextToken")]
1553 #[serde(skip_serializing_if = "Option::is_none")]
1554 pub next_token: Option<String>,
1555}
1556
1557#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1558#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1559pub struct ListNetworkProfilesRequest {
1560 #[serde(rename = "arn")]
1562 pub arn: String,
1563 #[serde(rename = "nextToken")]
1565 #[serde(skip_serializing_if = "Option::is_none")]
1566 pub next_token: Option<String>,
1567 #[serde(rename = "type")]
1569 #[serde(skip_serializing_if = "Option::is_none")]
1570 pub type_: Option<String>,
1571}
1572
1573#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1574#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1575pub struct ListNetworkProfilesResult {
1576 #[serde(rename = "networkProfiles")]
1578 #[serde(skip_serializing_if = "Option::is_none")]
1579 pub network_profiles: Option<Vec<NetworkProfile>>,
1580 #[serde(rename = "nextToken")]
1582 #[serde(skip_serializing_if = "Option::is_none")]
1583 pub next_token: Option<String>,
1584}
1585
1586#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1587#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1588pub struct ListOfferingPromotionsRequest {
1589 #[serde(rename = "nextToken")]
1591 #[serde(skip_serializing_if = "Option::is_none")]
1592 pub next_token: Option<String>,
1593}
1594
1595#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1596#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1597pub struct ListOfferingPromotionsResult {
1598 #[serde(rename = "nextToken")]
1600 #[serde(skip_serializing_if = "Option::is_none")]
1601 pub next_token: Option<String>,
1602 #[serde(rename = "offeringPromotions")]
1604 #[serde(skip_serializing_if = "Option::is_none")]
1605 pub offering_promotions: Option<Vec<OfferingPromotion>>,
1606}
1607
1608#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1610#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1611pub struct ListOfferingTransactionsRequest {
1612 #[serde(rename = "nextToken")]
1614 #[serde(skip_serializing_if = "Option::is_none")]
1615 pub next_token: Option<String>,
1616}
1617
1618#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1620#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1621pub struct ListOfferingTransactionsResult {
1622 #[serde(rename = "nextToken")]
1624 #[serde(skip_serializing_if = "Option::is_none")]
1625 pub next_token: Option<String>,
1626 #[serde(rename = "offeringTransactions")]
1628 #[serde(skip_serializing_if = "Option::is_none")]
1629 pub offering_transactions: Option<Vec<OfferingTransaction>>,
1630}
1631
1632#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1634#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1635pub struct ListOfferingsRequest {
1636 #[serde(rename = "nextToken")]
1638 #[serde(skip_serializing_if = "Option::is_none")]
1639 pub next_token: Option<String>,
1640}
1641
1642#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1644#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1645pub struct ListOfferingsResult {
1646 #[serde(rename = "nextToken")]
1648 #[serde(skip_serializing_if = "Option::is_none")]
1649 pub next_token: Option<String>,
1650 #[serde(rename = "offerings")]
1652 #[serde(skip_serializing_if = "Option::is_none")]
1653 pub offerings: Option<Vec<Offering>>,
1654}
1655
1656#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1658#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1659pub struct ListProjectsRequest {
1660 #[serde(rename = "arn")]
1662 #[serde(skip_serializing_if = "Option::is_none")]
1663 pub arn: Option<String>,
1664 #[serde(rename = "nextToken")]
1666 #[serde(skip_serializing_if = "Option::is_none")]
1667 pub next_token: Option<String>,
1668}
1669
1670#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1672#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1673pub struct ListProjectsResult {
1674 #[serde(rename = "nextToken")]
1676 #[serde(skip_serializing_if = "Option::is_none")]
1677 pub next_token: Option<String>,
1678 #[serde(rename = "projects")]
1680 #[serde(skip_serializing_if = "Option::is_none")]
1681 pub projects: Option<Vec<Project>>,
1682}
1683
1684#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1686#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1687pub struct ListRemoteAccessSessionsRequest {
1688 #[serde(rename = "arn")]
1690 pub arn: String,
1691 #[serde(rename = "nextToken")]
1693 #[serde(skip_serializing_if = "Option::is_none")]
1694 pub next_token: Option<String>,
1695}
1696
1697#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1699#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1700pub struct ListRemoteAccessSessionsResult {
1701 #[serde(rename = "nextToken")]
1703 #[serde(skip_serializing_if = "Option::is_none")]
1704 pub next_token: Option<String>,
1705 #[serde(rename = "remoteAccessSessions")]
1707 #[serde(skip_serializing_if = "Option::is_none")]
1708 pub remote_access_sessions: Option<Vec<RemoteAccessSession>>,
1709}
1710
1711#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1713#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1714pub struct ListRunsRequest {
1715 #[serde(rename = "arn")]
1717 pub arn: String,
1718 #[serde(rename = "nextToken")]
1720 #[serde(skip_serializing_if = "Option::is_none")]
1721 pub next_token: Option<String>,
1722}
1723
1724#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1726#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1727pub struct ListRunsResult {
1728 #[serde(rename = "nextToken")]
1730 #[serde(skip_serializing_if = "Option::is_none")]
1731 pub next_token: Option<String>,
1732 #[serde(rename = "runs")]
1734 #[serde(skip_serializing_if = "Option::is_none")]
1735 pub runs: Option<Vec<Run>>,
1736}
1737
1738#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1740#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1741pub struct ListSamplesRequest {
1742 #[serde(rename = "arn")]
1744 pub arn: String,
1745 #[serde(rename = "nextToken")]
1747 #[serde(skip_serializing_if = "Option::is_none")]
1748 pub next_token: Option<String>,
1749}
1750
1751#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1753#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1754pub struct ListSamplesResult {
1755 #[serde(rename = "nextToken")]
1757 #[serde(skip_serializing_if = "Option::is_none")]
1758 pub next_token: Option<String>,
1759 #[serde(rename = "samples")]
1761 #[serde(skip_serializing_if = "Option::is_none")]
1762 pub samples: Option<Vec<Sample>>,
1763}
1764
1765#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1767#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1768pub struct ListSuitesRequest {
1769 #[serde(rename = "arn")]
1771 pub arn: String,
1772 #[serde(rename = "nextToken")]
1774 #[serde(skip_serializing_if = "Option::is_none")]
1775 pub next_token: Option<String>,
1776}
1777
1778#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1780#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1781pub struct ListSuitesResult {
1782 #[serde(rename = "nextToken")]
1784 #[serde(skip_serializing_if = "Option::is_none")]
1785 pub next_token: Option<String>,
1786 #[serde(rename = "suites")]
1788 #[serde(skip_serializing_if = "Option::is_none")]
1789 pub suites: Option<Vec<Suite>>,
1790}
1791
1792#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1793#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1794pub struct ListTagsForResourceRequest {
1795 #[serde(rename = "ResourceARN")]
1797 pub resource_arn: String,
1798}
1799
1800#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1801#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1802pub struct ListTagsForResourceResponse {
1803 #[serde(rename = "Tags")]
1805 #[serde(skip_serializing_if = "Option::is_none")]
1806 pub tags: Option<Vec<Tag>>,
1807}
1808
1809#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1810#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1811pub struct ListTestGridProjectsRequest {
1812 #[serde(rename = "maxResult")]
1814 #[serde(skip_serializing_if = "Option::is_none")]
1815 pub max_result: Option<i64>,
1816 #[serde(rename = "nextToken")]
1818 #[serde(skip_serializing_if = "Option::is_none")]
1819 pub next_token: Option<String>,
1820}
1821
1822#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1823#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1824pub struct ListTestGridProjectsResult {
1825 #[serde(rename = "nextToken")]
1827 #[serde(skip_serializing_if = "Option::is_none")]
1828 pub next_token: Option<String>,
1829 #[serde(rename = "testGridProjects")]
1831 #[serde(skip_serializing_if = "Option::is_none")]
1832 pub test_grid_projects: Option<Vec<TestGridProject>>,
1833}
1834
1835#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1836#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1837pub struct ListTestGridSessionActionsRequest {
1838 #[serde(rename = "maxResult")]
1840 #[serde(skip_serializing_if = "Option::is_none")]
1841 pub max_result: Option<i64>,
1842 #[serde(rename = "nextToken")]
1844 #[serde(skip_serializing_if = "Option::is_none")]
1845 pub next_token: Option<String>,
1846 #[serde(rename = "sessionArn")]
1848 pub session_arn: String,
1849}
1850
1851#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1852#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1853pub struct ListTestGridSessionActionsResult {
1854 #[serde(rename = "actions")]
1856 #[serde(skip_serializing_if = "Option::is_none")]
1857 pub actions: Option<Vec<TestGridSessionAction>>,
1858 #[serde(rename = "nextToken")]
1860 #[serde(skip_serializing_if = "Option::is_none")]
1861 pub next_token: Option<String>,
1862}
1863
1864#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1865#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1866pub struct ListTestGridSessionArtifactsRequest {
1867 #[serde(rename = "maxResult")]
1869 #[serde(skip_serializing_if = "Option::is_none")]
1870 pub max_result: Option<i64>,
1871 #[serde(rename = "nextToken")]
1873 #[serde(skip_serializing_if = "Option::is_none")]
1874 pub next_token: Option<String>,
1875 #[serde(rename = "sessionArn")]
1877 pub session_arn: String,
1878 #[serde(rename = "type")]
1880 #[serde(skip_serializing_if = "Option::is_none")]
1881 pub type_: Option<String>,
1882}
1883
1884#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1885#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1886pub struct ListTestGridSessionArtifactsResult {
1887 #[serde(rename = "artifacts")]
1889 #[serde(skip_serializing_if = "Option::is_none")]
1890 pub artifacts: Option<Vec<TestGridSessionArtifact>>,
1891 #[serde(rename = "nextToken")]
1893 #[serde(skip_serializing_if = "Option::is_none")]
1894 pub next_token: Option<String>,
1895}
1896
1897#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1898#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1899pub struct ListTestGridSessionsRequest {
1900 #[serde(rename = "creationTimeAfter")]
1902 #[serde(skip_serializing_if = "Option::is_none")]
1903 pub creation_time_after: Option<f64>,
1904 #[serde(rename = "creationTimeBefore")]
1906 #[serde(skip_serializing_if = "Option::is_none")]
1907 pub creation_time_before: Option<f64>,
1908 #[serde(rename = "endTimeAfter")]
1910 #[serde(skip_serializing_if = "Option::is_none")]
1911 pub end_time_after: Option<f64>,
1912 #[serde(rename = "endTimeBefore")]
1914 #[serde(skip_serializing_if = "Option::is_none")]
1915 pub end_time_before: Option<f64>,
1916 #[serde(rename = "maxResult")]
1918 #[serde(skip_serializing_if = "Option::is_none")]
1919 pub max_result: Option<i64>,
1920 #[serde(rename = "nextToken")]
1922 #[serde(skip_serializing_if = "Option::is_none")]
1923 pub next_token: Option<String>,
1924 #[serde(rename = "projectArn")]
1926 pub project_arn: String,
1927 #[serde(rename = "status")]
1929 #[serde(skip_serializing_if = "Option::is_none")]
1930 pub status: Option<String>,
1931}
1932
1933#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1934#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1935pub struct ListTestGridSessionsResult {
1936 #[serde(rename = "nextToken")]
1938 #[serde(skip_serializing_if = "Option::is_none")]
1939 pub next_token: Option<String>,
1940 #[serde(rename = "testGridSessions")]
1942 #[serde(skip_serializing_if = "Option::is_none")]
1943 pub test_grid_sessions: Option<Vec<TestGridSession>>,
1944}
1945
1946#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1948#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1949pub struct ListTestsRequest {
1950 #[serde(rename = "arn")]
1952 pub arn: String,
1953 #[serde(rename = "nextToken")]
1955 #[serde(skip_serializing_if = "Option::is_none")]
1956 pub next_token: Option<String>,
1957}
1958
1959#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1961#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1962pub struct ListTestsResult {
1963 #[serde(rename = "nextToken")]
1965 #[serde(skip_serializing_if = "Option::is_none")]
1966 pub next_token: Option<String>,
1967 #[serde(rename = "tests")]
1969 #[serde(skip_serializing_if = "Option::is_none")]
1970 pub tests: Option<Vec<Test>>,
1971}
1972
1973#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1975#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1976pub struct ListUniqueProblemsRequest {
1977 #[serde(rename = "arn")]
1979 pub arn: String,
1980 #[serde(rename = "nextToken")]
1982 #[serde(skip_serializing_if = "Option::is_none")]
1983 pub next_token: Option<String>,
1984}
1985
1986#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1988#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1989pub struct ListUniqueProblemsResult {
1990 #[serde(rename = "nextToken")]
1992 #[serde(skip_serializing_if = "Option::is_none")]
1993 pub next_token: Option<String>,
1994 #[serde(rename = "uniqueProblems")]
1996 #[serde(skip_serializing_if = "Option::is_none")]
1997 pub unique_problems: Option<::std::collections::HashMap<String, Vec<UniqueProblem>>>,
1998}
1999
2000#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2002#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2003pub struct ListUploadsRequest {
2004 #[serde(rename = "arn")]
2006 pub arn: String,
2007 #[serde(rename = "nextToken")]
2009 #[serde(skip_serializing_if = "Option::is_none")]
2010 pub next_token: Option<String>,
2011 #[serde(rename = "type")]
2013 #[serde(skip_serializing_if = "Option::is_none")]
2014 pub type_: Option<String>,
2015}
2016
2017#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2019#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2020pub struct ListUploadsResult {
2021 #[serde(rename = "nextToken")]
2023 #[serde(skip_serializing_if = "Option::is_none")]
2024 pub next_token: Option<String>,
2025 #[serde(rename = "uploads")]
2027 #[serde(skip_serializing_if = "Option::is_none")]
2028 pub uploads: Option<Vec<Upload>>,
2029}
2030
2031#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2032#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2033pub struct ListVPCEConfigurationsRequest {
2034 #[serde(rename = "maxResults")]
2036 #[serde(skip_serializing_if = "Option::is_none")]
2037 pub max_results: Option<i64>,
2038 #[serde(rename = "nextToken")]
2040 #[serde(skip_serializing_if = "Option::is_none")]
2041 pub next_token: Option<String>,
2042}
2043
2044#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2045#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2046pub struct ListVPCEConfigurationsResult {
2047 #[serde(rename = "nextToken")]
2049 #[serde(skip_serializing_if = "Option::is_none")]
2050 pub next_token: Option<String>,
2051 #[serde(rename = "vpceConfigurations")]
2053 #[serde(skip_serializing_if = "Option::is_none")]
2054 pub vpce_configurations: Option<Vec<VPCEConfiguration>>,
2055}
2056
2057#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2059pub struct Location {
2060 #[serde(rename = "latitude")]
2062 pub latitude: f64,
2063 #[serde(rename = "longitude")]
2065 pub longitude: f64,
2066}
2067
2068#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2070#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2071pub struct MonetaryAmount {
2072 #[serde(rename = "amount")]
2074 #[serde(skip_serializing_if = "Option::is_none")]
2075 pub amount: Option<f64>,
2076 #[serde(rename = "currencyCode")]
2078 #[serde(skip_serializing_if = "Option::is_none")]
2079 pub currency_code: Option<String>,
2080}
2081
2082#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2084#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2085pub struct NetworkProfile {
2086 #[serde(rename = "arn")]
2088 #[serde(skip_serializing_if = "Option::is_none")]
2089 pub arn: Option<String>,
2090 #[serde(rename = "description")]
2092 #[serde(skip_serializing_if = "Option::is_none")]
2093 pub description: Option<String>,
2094 #[serde(rename = "downlinkBandwidthBits")]
2096 #[serde(skip_serializing_if = "Option::is_none")]
2097 pub downlink_bandwidth_bits: Option<i64>,
2098 #[serde(rename = "downlinkDelayMs")]
2100 #[serde(skip_serializing_if = "Option::is_none")]
2101 pub downlink_delay_ms: Option<i64>,
2102 #[serde(rename = "downlinkJitterMs")]
2104 #[serde(skip_serializing_if = "Option::is_none")]
2105 pub downlink_jitter_ms: Option<i64>,
2106 #[serde(rename = "downlinkLossPercent")]
2108 #[serde(skip_serializing_if = "Option::is_none")]
2109 pub downlink_loss_percent: Option<i64>,
2110 #[serde(rename = "name")]
2112 #[serde(skip_serializing_if = "Option::is_none")]
2113 pub name: Option<String>,
2114 #[serde(rename = "type")]
2116 #[serde(skip_serializing_if = "Option::is_none")]
2117 pub type_: Option<String>,
2118 #[serde(rename = "uplinkBandwidthBits")]
2120 #[serde(skip_serializing_if = "Option::is_none")]
2121 pub uplink_bandwidth_bits: Option<i64>,
2122 #[serde(rename = "uplinkDelayMs")]
2124 #[serde(skip_serializing_if = "Option::is_none")]
2125 pub uplink_delay_ms: Option<i64>,
2126 #[serde(rename = "uplinkJitterMs")]
2128 #[serde(skip_serializing_if = "Option::is_none")]
2129 pub uplink_jitter_ms: Option<i64>,
2130 #[serde(rename = "uplinkLossPercent")]
2132 #[serde(skip_serializing_if = "Option::is_none")]
2133 pub uplink_loss_percent: Option<i64>,
2134}
2135
2136#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2138#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2139pub struct Offering {
2140 #[serde(rename = "description")]
2142 #[serde(skip_serializing_if = "Option::is_none")]
2143 pub description: Option<String>,
2144 #[serde(rename = "id")]
2146 #[serde(skip_serializing_if = "Option::is_none")]
2147 pub id: Option<String>,
2148 #[serde(rename = "platform")]
2150 #[serde(skip_serializing_if = "Option::is_none")]
2151 pub platform: Option<String>,
2152 #[serde(rename = "recurringCharges")]
2154 #[serde(skip_serializing_if = "Option::is_none")]
2155 pub recurring_charges: Option<Vec<RecurringCharge>>,
2156 #[serde(rename = "type")]
2158 #[serde(skip_serializing_if = "Option::is_none")]
2159 pub type_: Option<String>,
2160}
2161
2162#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2164#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2165pub struct OfferingPromotion {
2166 #[serde(rename = "description")]
2168 #[serde(skip_serializing_if = "Option::is_none")]
2169 pub description: Option<String>,
2170 #[serde(rename = "id")]
2172 #[serde(skip_serializing_if = "Option::is_none")]
2173 pub id: Option<String>,
2174}
2175
2176#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2178#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2179pub struct OfferingStatus {
2180 #[serde(rename = "effectiveOn")]
2182 #[serde(skip_serializing_if = "Option::is_none")]
2183 pub effective_on: Option<f64>,
2184 #[serde(rename = "offering")]
2186 #[serde(skip_serializing_if = "Option::is_none")]
2187 pub offering: Option<Offering>,
2188 #[serde(rename = "quantity")]
2190 #[serde(skip_serializing_if = "Option::is_none")]
2191 pub quantity: Option<i64>,
2192 #[serde(rename = "type")]
2194 #[serde(skip_serializing_if = "Option::is_none")]
2195 pub type_: Option<String>,
2196}
2197
2198#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2200#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2201pub struct OfferingTransaction {
2202 #[serde(rename = "cost")]
2204 #[serde(skip_serializing_if = "Option::is_none")]
2205 pub cost: Option<MonetaryAmount>,
2206 #[serde(rename = "createdOn")]
2208 #[serde(skip_serializing_if = "Option::is_none")]
2209 pub created_on: Option<f64>,
2210 #[serde(rename = "offeringPromotionId")]
2212 #[serde(skip_serializing_if = "Option::is_none")]
2213 pub offering_promotion_id: Option<String>,
2214 #[serde(rename = "offeringStatus")]
2216 #[serde(skip_serializing_if = "Option::is_none")]
2217 pub offering_status: Option<OfferingStatus>,
2218 #[serde(rename = "transactionId")]
2220 #[serde(skip_serializing_if = "Option::is_none")]
2221 pub transaction_id: Option<String>,
2222}
2223
2224#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2226#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2227pub struct Problem {
2228 #[serde(rename = "device")]
2230 #[serde(skip_serializing_if = "Option::is_none")]
2231 pub device: Option<Device>,
2232 #[serde(rename = "job")]
2234 #[serde(skip_serializing_if = "Option::is_none")]
2235 pub job: Option<ProblemDetail>,
2236 #[serde(rename = "message")]
2238 #[serde(skip_serializing_if = "Option::is_none")]
2239 pub message: Option<String>,
2240 #[serde(rename = "result")]
2242 #[serde(skip_serializing_if = "Option::is_none")]
2243 pub result: Option<String>,
2244 #[serde(rename = "run")]
2246 #[serde(skip_serializing_if = "Option::is_none")]
2247 pub run: Option<ProblemDetail>,
2248 #[serde(rename = "suite")]
2250 #[serde(skip_serializing_if = "Option::is_none")]
2251 pub suite: Option<ProblemDetail>,
2252 #[serde(rename = "test")]
2254 #[serde(skip_serializing_if = "Option::is_none")]
2255 pub test: Option<ProblemDetail>,
2256}
2257
2258#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2260#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2261pub struct ProblemDetail {
2262 #[serde(rename = "arn")]
2264 #[serde(skip_serializing_if = "Option::is_none")]
2265 pub arn: Option<String>,
2266 #[serde(rename = "name")]
2268 #[serde(skip_serializing_if = "Option::is_none")]
2269 pub name: Option<String>,
2270}
2271
2272#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2274#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2275pub struct Project {
2276 #[serde(rename = "arn")]
2278 #[serde(skip_serializing_if = "Option::is_none")]
2279 pub arn: Option<String>,
2280 #[serde(rename = "created")]
2282 #[serde(skip_serializing_if = "Option::is_none")]
2283 pub created: Option<f64>,
2284 #[serde(rename = "defaultJobTimeoutMinutes")]
2286 #[serde(skip_serializing_if = "Option::is_none")]
2287 pub default_job_timeout_minutes: Option<i64>,
2288 #[serde(rename = "name")]
2290 #[serde(skip_serializing_if = "Option::is_none")]
2291 pub name: Option<String>,
2292}
2293
2294#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2296#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2297pub struct PurchaseOfferingRequest {
2298 #[serde(rename = "offeringId")]
2300 #[serde(skip_serializing_if = "Option::is_none")]
2301 pub offering_id: Option<String>,
2302 #[serde(rename = "offeringPromotionId")]
2304 #[serde(skip_serializing_if = "Option::is_none")]
2305 pub offering_promotion_id: Option<String>,
2306 #[serde(rename = "quantity")]
2308 #[serde(skip_serializing_if = "Option::is_none")]
2309 pub quantity: Option<i64>,
2310}
2311
2312#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2314#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2315pub struct PurchaseOfferingResult {
2316 #[serde(rename = "offeringTransaction")]
2318 #[serde(skip_serializing_if = "Option::is_none")]
2319 pub offering_transaction: Option<OfferingTransaction>,
2320}
2321
2322#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2324pub struct Radios {
2325 #[serde(rename = "bluetooth")]
2327 #[serde(skip_serializing_if = "Option::is_none")]
2328 pub bluetooth: Option<bool>,
2329 #[serde(rename = "gps")]
2331 #[serde(skip_serializing_if = "Option::is_none")]
2332 pub gps: Option<bool>,
2333 #[serde(rename = "nfc")]
2335 #[serde(skip_serializing_if = "Option::is_none")]
2336 pub nfc: Option<bool>,
2337 #[serde(rename = "wifi")]
2339 #[serde(skip_serializing_if = "Option::is_none")]
2340 pub wifi: Option<bool>,
2341}
2342
2343#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2345#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2346pub struct RecurringCharge {
2347 #[serde(rename = "cost")]
2349 #[serde(skip_serializing_if = "Option::is_none")]
2350 pub cost: Option<MonetaryAmount>,
2351 #[serde(rename = "frequency")]
2353 #[serde(skip_serializing_if = "Option::is_none")]
2354 pub frequency: Option<String>,
2355}
2356
2357#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2359#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2360pub struct RemoteAccessSession {
2361 #[serde(rename = "arn")]
2363 #[serde(skip_serializing_if = "Option::is_none")]
2364 pub arn: Option<String>,
2365 #[serde(rename = "billingMethod")]
2367 #[serde(skip_serializing_if = "Option::is_none")]
2368 pub billing_method: Option<String>,
2369 #[serde(rename = "clientId")]
2371 #[serde(skip_serializing_if = "Option::is_none")]
2372 pub client_id: Option<String>,
2373 #[serde(rename = "created")]
2375 #[serde(skip_serializing_if = "Option::is_none")]
2376 pub created: Option<f64>,
2377 #[serde(rename = "device")]
2379 #[serde(skip_serializing_if = "Option::is_none")]
2380 pub device: Option<Device>,
2381 #[serde(rename = "deviceMinutes")]
2383 #[serde(skip_serializing_if = "Option::is_none")]
2384 pub device_minutes: Option<DeviceMinutes>,
2385 #[serde(rename = "deviceUdid")]
2387 #[serde(skip_serializing_if = "Option::is_none")]
2388 pub device_udid: Option<String>,
2389 #[serde(rename = "endpoint")]
2391 #[serde(skip_serializing_if = "Option::is_none")]
2392 pub endpoint: Option<String>,
2393 #[serde(rename = "hostAddress")]
2395 #[serde(skip_serializing_if = "Option::is_none")]
2396 pub host_address: Option<String>,
2397 #[serde(rename = "instanceArn")]
2399 #[serde(skip_serializing_if = "Option::is_none")]
2400 pub instance_arn: Option<String>,
2401 #[serde(rename = "interactionMode")]
2403 #[serde(skip_serializing_if = "Option::is_none")]
2404 pub interaction_mode: Option<String>,
2405 #[serde(rename = "message")]
2407 #[serde(skip_serializing_if = "Option::is_none")]
2408 pub message: Option<String>,
2409 #[serde(rename = "name")]
2411 #[serde(skip_serializing_if = "Option::is_none")]
2412 pub name: Option<String>,
2413 #[serde(rename = "remoteDebugEnabled")]
2415 #[serde(skip_serializing_if = "Option::is_none")]
2416 pub remote_debug_enabled: Option<bool>,
2417 #[serde(rename = "remoteRecordAppArn")]
2419 #[serde(skip_serializing_if = "Option::is_none")]
2420 pub remote_record_app_arn: Option<String>,
2421 #[serde(rename = "remoteRecordEnabled")]
2423 #[serde(skip_serializing_if = "Option::is_none")]
2424 pub remote_record_enabled: Option<bool>,
2425 #[serde(rename = "result")]
2427 #[serde(skip_serializing_if = "Option::is_none")]
2428 pub result: Option<String>,
2429 #[serde(rename = "skipAppResign")]
2431 #[serde(skip_serializing_if = "Option::is_none")]
2432 pub skip_app_resign: Option<bool>,
2433 #[serde(rename = "started")]
2435 #[serde(skip_serializing_if = "Option::is_none")]
2436 pub started: Option<f64>,
2437 #[serde(rename = "status")]
2439 #[serde(skip_serializing_if = "Option::is_none")]
2440 pub status: Option<String>,
2441 #[serde(rename = "stopped")]
2443 #[serde(skip_serializing_if = "Option::is_none")]
2444 pub stopped: Option<f64>,
2445}
2446
2447#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2449#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2450pub struct RenewOfferingRequest {
2451 #[serde(rename = "offeringId")]
2453 #[serde(skip_serializing_if = "Option::is_none")]
2454 pub offering_id: Option<String>,
2455 #[serde(rename = "quantity")]
2457 #[serde(skip_serializing_if = "Option::is_none")]
2458 pub quantity: Option<i64>,
2459}
2460
2461#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2463#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2464pub struct RenewOfferingResult {
2465 #[serde(rename = "offeringTransaction")]
2467 #[serde(skip_serializing_if = "Option::is_none")]
2468 pub offering_transaction: Option<OfferingTransaction>,
2469}
2470
2471#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2473#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2474pub struct Resolution {
2475 #[serde(rename = "height")]
2477 #[serde(skip_serializing_if = "Option::is_none")]
2478 pub height: Option<i64>,
2479 #[serde(rename = "width")]
2481 #[serde(skip_serializing_if = "Option::is_none")]
2482 pub width: Option<i64>,
2483}
2484
2485#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2487pub struct Rule {
2488 #[serde(rename = "attribute")]
2490 #[serde(skip_serializing_if = "Option::is_none")]
2491 pub attribute: Option<String>,
2492 #[serde(rename = "operator")]
2494 #[serde(skip_serializing_if = "Option::is_none")]
2495 pub operator: Option<String>,
2496 #[serde(rename = "value")]
2498 #[serde(skip_serializing_if = "Option::is_none")]
2499 pub value: Option<String>,
2500}
2501
2502#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2504#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2505pub struct Run {
2506 #[serde(rename = "appUpload")]
2508 #[serde(skip_serializing_if = "Option::is_none")]
2509 pub app_upload: Option<String>,
2510 #[serde(rename = "arn")]
2512 #[serde(skip_serializing_if = "Option::is_none")]
2513 pub arn: Option<String>,
2514 #[serde(rename = "billingMethod")]
2516 #[serde(skip_serializing_if = "Option::is_none")]
2517 pub billing_method: Option<String>,
2518 #[serde(rename = "completedJobs")]
2520 #[serde(skip_serializing_if = "Option::is_none")]
2521 pub completed_jobs: Option<i64>,
2522 #[serde(rename = "counters")]
2524 #[serde(skip_serializing_if = "Option::is_none")]
2525 pub counters: Option<Counters>,
2526 #[serde(rename = "created")]
2528 #[serde(skip_serializing_if = "Option::is_none")]
2529 pub created: Option<f64>,
2530 #[serde(rename = "customerArtifactPaths")]
2532 #[serde(skip_serializing_if = "Option::is_none")]
2533 pub customer_artifact_paths: Option<CustomerArtifactPaths>,
2534 #[serde(rename = "deviceMinutes")]
2536 #[serde(skip_serializing_if = "Option::is_none")]
2537 pub device_minutes: Option<DeviceMinutes>,
2538 #[serde(rename = "devicePoolArn")]
2540 #[serde(skip_serializing_if = "Option::is_none")]
2541 pub device_pool_arn: Option<String>,
2542 #[serde(rename = "deviceSelectionResult")]
2544 #[serde(skip_serializing_if = "Option::is_none")]
2545 pub device_selection_result: Option<DeviceSelectionResult>,
2546 #[serde(rename = "eventCount")]
2548 #[serde(skip_serializing_if = "Option::is_none")]
2549 pub event_count: Option<i64>,
2550 #[serde(rename = "jobTimeoutMinutes")]
2552 #[serde(skip_serializing_if = "Option::is_none")]
2553 pub job_timeout_minutes: Option<i64>,
2554 #[serde(rename = "locale")]
2556 #[serde(skip_serializing_if = "Option::is_none")]
2557 pub locale: Option<String>,
2558 #[serde(rename = "location")]
2560 #[serde(skip_serializing_if = "Option::is_none")]
2561 pub location: Option<Location>,
2562 #[serde(rename = "message")]
2564 #[serde(skip_serializing_if = "Option::is_none")]
2565 pub message: Option<String>,
2566 #[serde(rename = "name")]
2568 #[serde(skip_serializing_if = "Option::is_none")]
2569 pub name: Option<String>,
2570 #[serde(rename = "networkProfile")]
2572 #[serde(skip_serializing_if = "Option::is_none")]
2573 pub network_profile: Option<NetworkProfile>,
2574 #[serde(rename = "parsingResultUrl")]
2576 #[serde(skip_serializing_if = "Option::is_none")]
2577 pub parsing_result_url: Option<String>,
2578 #[serde(rename = "platform")]
2580 #[serde(skip_serializing_if = "Option::is_none")]
2581 pub platform: Option<String>,
2582 #[serde(rename = "radios")]
2584 #[serde(skip_serializing_if = "Option::is_none")]
2585 pub radios: Option<Radios>,
2586 #[serde(rename = "result")]
2588 #[serde(skip_serializing_if = "Option::is_none")]
2589 pub result: Option<String>,
2590 #[serde(rename = "resultCode")]
2592 #[serde(skip_serializing_if = "Option::is_none")]
2593 pub result_code: Option<String>,
2594 #[serde(rename = "seed")]
2596 #[serde(skip_serializing_if = "Option::is_none")]
2597 pub seed: Option<i64>,
2598 #[serde(rename = "skipAppResign")]
2600 #[serde(skip_serializing_if = "Option::is_none")]
2601 pub skip_app_resign: Option<bool>,
2602 #[serde(rename = "started")]
2604 #[serde(skip_serializing_if = "Option::is_none")]
2605 pub started: Option<f64>,
2606 #[serde(rename = "status")]
2608 #[serde(skip_serializing_if = "Option::is_none")]
2609 pub status: Option<String>,
2610 #[serde(rename = "stopped")]
2612 #[serde(skip_serializing_if = "Option::is_none")]
2613 pub stopped: Option<f64>,
2614 #[serde(rename = "testSpecArn")]
2616 #[serde(skip_serializing_if = "Option::is_none")]
2617 pub test_spec_arn: Option<String>,
2618 #[serde(rename = "totalJobs")]
2620 #[serde(skip_serializing_if = "Option::is_none")]
2621 pub total_jobs: Option<i64>,
2622 #[serde(rename = "type")]
2624 #[serde(skip_serializing_if = "Option::is_none")]
2625 pub type_: Option<String>,
2626 #[serde(rename = "webUrl")]
2628 #[serde(skip_serializing_if = "Option::is_none")]
2629 pub web_url: Option<String>,
2630}
2631
2632#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2634#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2635pub struct Sample {
2636 #[serde(rename = "arn")]
2638 #[serde(skip_serializing_if = "Option::is_none")]
2639 pub arn: Option<String>,
2640 #[serde(rename = "type")]
2642 #[serde(skip_serializing_if = "Option::is_none")]
2643 pub type_: Option<String>,
2644 #[serde(rename = "url")]
2646 #[serde(skip_serializing_if = "Option::is_none")]
2647 pub url: Option<String>,
2648}
2649
2650#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2652#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2653pub struct ScheduleRunConfiguration {
2654 #[serde(rename = "auxiliaryApps")]
2656 #[serde(skip_serializing_if = "Option::is_none")]
2657 pub auxiliary_apps: Option<Vec<String>>,
2658 #[serde(rename = "billingMethod")]
2660 #[serde(skip_serializing_if = "Option::is_none")]
2661 pub billing_method: Option<String>,
2662 #[serde(rename = "customerArtifactPaths")]
2664 #[serde(skip_serializing_if = "Option::is_none")]
2665 pub customer_artifact_paths: Option<CustomerArtifactPaths>,
2666 #[serde(rename = "extraDataPackageArn")]
2668 #[serde(skip_serializing_if = "Option::is_none")]
2669 pub extra_data_package_arn: Option<String>,
2670 #[serde(rename = "locale")]
2672 #[serde(skip_serializing_if = "Option::is_none")]
2673 pub locale: Option<String>,
2674 #[serde(rename = "location")]
2676 #[serde(skip_serializing_if = "Option::is_none")]
2677 pub location: Option<Location>,
2678 #[serde(rename = "networkProfileArn")]
2680 #[serde(skip_serializing_if = "Option::is_none")]
2681 pub network_profile_arn: Option<String>,
2682 #[serde(rename = "radios")]
2684 #[serde(skip_serializing_if = "Option::is_none")]
2685 pub radios: Option<Radios>,
2686 #[serde(rename = "vpceConfigurationArns")]
2688 #[serde(skip_serializing_if = "Option::is_none")]
2689 pub vpce_configuration_arns: Option<Vec<String>>,
2690}
2691
2692#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2694#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2695pub struct ScheduleRunRequest {
2696 #[serde(rename = "appArn")]
2698 #[serde(skip_serializing_if = "Option::is_none")]
2699 pub app_arn: Option<String>,
2700 #[serde(rename = "configuration")]
2702 #[serde(skip_serializing_if = "Option::is_none")]
2703 pub configuration: Option<ScheduleRunConfiguration>,
2704 #[serde(rename = "devicePoolArn")]
2706 #[serde(skip_serializing_if = "Option::is_none")]
2707 pub device_pool_arn: Option<String>,
2708 #[serde(rename = "deviceSelectionConfiguration")]
2710 #[serde(skip_serializing_if = "Option::is_none")]
2711 pub device_selection_configuration: Option<DeviceSelectionConfiguration>,
2712 #[serde(rename = "executionConfiguration")]
2714 #[serde(skip_serializing_if = "Option::is_none")]
2715 pub execution_configuration: Option<ExecutionConfiguration>,
2716 #[serde(rename = "name")]
2718 #[serde(skip_serializing_if = "Option::is_none")]
2719 pub name: Option<String>,
2720 #[serde(rename = "projectArn")]
2722 pub project_arn: String,
2723 #[serde(rename = "test")]
2725 pub test: ScheduleRunTest,
2726}
2727
2728#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2730#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2731pub struct ScheduleRunResult {
2732 #[serde(rename = "run")]
2734 #[serde(skip_serializing_if = "Option::is_none")]
2735 pub run: Option<Run>,
2736}
2737
2738#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2740#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2741pub struct ScheduleRunTest {
2742 #[serde(rename = "filter")]
2744 #[serde(skip_serializing_if = "Option::is_none")]
2745 pub filter: Option<String>,
2746 #[serde(rename = "parameters")]
2748 #[serde(skip_serializing_if = "Option::is_none")]
2749 pub parameters: Option<::std::collections::HashMap<String, String>>,
2750 #[serde(rename = "testPackageArn")]
2752 #[serde(skip_serializing_if = "Option::is_none")]
2753 pub test_package_arn: Option<String>,
2754 #[serde(rename = "testSpecArn")]
2756 #[serde(skip_serializing_if = "Option::is_none")]
2757 pub test_spec_arn: Option<String>,
2758 #[serde(rename = "type")]
2760 pub type_: String,
2761}
2762
2763#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2764#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2765pub struct StopJobRequest {
2766 #[serde(rename = "arn")]
2768 pub arn: String,
2769}
2770
2771#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2772#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2773pub struct StopJobResult {
2774 #[serde(rename = "job")]
2776 #[serde(skip_serializing_if = "Option::is_none")]
2777 pub job: Option<Job>,
2778}
2779
2780#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2782#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2783pub struct StopRemoteAccessSessionRequest {
2784 #[serde(rename = "arn")]
2786 pub arn: String,
2787}
2788
2789#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2791#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2792pub struct StopRemoteAccessSessionResult {
2793 #[serde(rename = "remoteAccessSession")]
2795 #[serde(skip_serializing_if = "Option::is_none")]
2796 pub remote_access_session: Option<RemoteAccessSession>,
2797}
2798
2799#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2801#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2802pub struct StopRunRequest {
2803 #[serde(rename = "arn")]
2805 pub arn: String,
2806}
2807
2808#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2810#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2811pub struct StopRunResult {
2812 #[serde(rename = "run")]
2814 #[serde(skip_serializing_if = "Option::is_none")]
2815 pub run: Option<Run>,
2816}
2817
2818#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2820#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2821pub struct Suite {
2822 #[serde(rename = "arn")]
2824 #[serde(skip_serializing_if = "Option::is_none")]
2825 pub arn: Option<String>,
2826 #[serde(rename = "counters")]
2828 #[serde(skip_serializing_if = "Option::is_none")]
2829 pub counters: Option<Counters>,
2830 #[serde(rename = "created")]
2832 #[serde(skip_serializing_if = "Option::is_none")]
2833 pub created: Option<f64>,
2834 #[serde(rename = "deviceMinutes")]
2836 #[serde(skip_serializing_if = "Option::is_none")]
2837 pub device_minutes: Option<DeviceMinutes>,
2838 #[serde(rename = "message")]
2840 #[serde(skip_serializing_if = "Option::is_none")]
2841 pub message: Option<String>,
2842 #[serde(rename = "name")]
2844 #[serde(skip_serializing_if = "Option::is_none")]
2845 pub name: Option<String>,
2846 #[serde(rename = "result")]
2848 #[serde(skip_serializing_if = "Option::is_none")]
2849 pub result: Option<String>,
2850 #[serde(rename = "started")]
2852 #[serde(skip_serializing_if = "Option::is_none")]
2853 pub started: Option<f64>,
2854 #[serde(rename = "status")]
2856 #[serde(skip_serializing_if = "Option::is_none")]
2857 pub status: Option<String>,
2858 #[serde(rename = "stopped")]
2860 #[serde(skip_serializing_if = "Option::is_none")]
2861 pub stopped: Option<f64>,
2862 #[serde(rename = "type")]
2864 #[serde(skip_serializing_if = "Option::is_none")]
2865 pub type_: Option<String>,
2866}
2867
2868#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2870pub struct Tag {
2871 #[serde(rename = "Key")]
2873 pub key: String,
2874 #[serde(rename = "Value")]
2876 pub value: String,
2877}
2878
2879#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2880#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2881pub struct TagResourceRequest {
2882 #[serde(rename = "ResourceARN")]
2884 pub resource_arn: String,
2885 #[serde(rename = "Tags")]
2887 pub tags: Vec<Tag>,
2888}
2889
2890#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2891#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2892pub struct TagResourceResponse {}
2893
2894#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2896#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2897pub struct Test {
2898 #[serde(rename = "arn")]
2900 #[serde(skip_serializing_if = "Option::is_none")]
2901 pub arn: Option<String>,
2902 #[serde(rename = "counters")]
2904 #[serde(skip_serializing_if = "Option::is_none")]
2905 pub counters: Option<Counters>,
2906 #[serde(rename = "created")]
2908 #[serde(skip_serializing_if = "Option::is_none")]
2909 pub created: Option<f64>,
2910 #[serde(rename = "deviceMinutes")]
2912 #[serde(skip_serializing_if = "Option::is_none")]
2913 pub device_minutes: Option<DeviceMinutes>,
2914 #[serde(rename = "message")]
2916 #[serde(skip_serializing_if = "Option::is_none")]
2917 pub message: Option<String>,
2918 #[serde(rename = "name")]
2920 #[serde(skip_serializing_if = "Option::is_none")]
2921 pub name: Option<String>,
2922 #[serde(rename = "result")]
2924 #[serde(skip_serializing_if = "Option::is_none")]
2925 pub result: Option<String>,
2926 #[serde(rename = "started")]
2928 #[serde(skip_serializing_if = "Option::is_none")]
2929 pub started: Option<f64>,
2930 #[serde(rename = "status")]
2932 #[serde(skip_serializing_if = "Option::is_none")]
2933 pub status: Option<String>,
2934 #[serde(rename = "stopped")]
2936 #[serde(skip_serializing_if = "Option::is_none")]
2937 pub stopped: Option<f64>,
2938 #[serde(rename = "type")]
2940 #[serde(skip_serializing_if = "Option::is_none")]
2941 pub type_: Option<String>,
2942}
2943
2944#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2946#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2947pub struct TestGridProject {
2948 #[serde(rename = "arn")]
2950 #[serde(skip_serializing_if = "Option::is_none")]
2951 pub arn: Option<String>,
2952 #[serde(rename = "created")]
2954 #[serde(skip_serializing_if = "Option::is_none")]
2955 pub created: Option<f64>,
2956 #[serde(rename = "description")]
2958 #[serde(skip_serializing_if = "Option::is_none")]
2959 pub description: Option<String>,
2960 #[serde(rename = "name")]
2962 #[serde(skip_serializing_if = "Option::is_none")]
2963 pub name: Option<String>,
2964}
2965
2966#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2968#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2969pub struct TestGridSession {
2970 #[serde(rename = "arn")]
2972 #[serde(skip_serializing_if = "Option::is_none")]
2973 pub arn: Option<String>,
2974 #[serde(rename = "billingMinutes")]
2976 #[serde(skip_serializing_if = "Option::is_none")]
2977 pub billing_minutes: Option<f64>,
2978 #[serde(rename = "created")]
2980 #[serde(skip_serializing_if = "Option::is_none")]
2981 pub created: Option<f64>,
2982 #[serde(rename = "ended")]
2984 #[serde(skip_serializing_if = "Option::is_none")]
2985 pub ended: Option<f64>,
2986 #[serde(rename = "seleniumProperties")]
2988 #[serde(skip_serializing_if = "Option::is_none")]
2989 pub selenium_properties: Option<String>,
2990 #[serde(rename = "status")]
2992 #[serde(skip_serializing_if = "Option::is_none")]
2993 pub status: Option<String>,
2994}
2995
2996#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2998#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2999pub struct TestGridSessionAction {
3000 #[serde(rename = "action")]
3002 #[serde(skip_serializing_if = "Option::is_none")]
3003 pub action: Option<String>,
3004 #[serde(rename = "duration")]
3006 #[serde(skip_serializing_if = "Option::is_none")]
3007 pub duration: Option<i64>,
3008 #[serde(rename = "requestMethod")]
3010 #[serde(skip_serializing_if = "Option::is_none")]
3011 pub request_method: Option<String>,
3012 #[serde(rename = "started")]
3014 #[serde(skip_serializing_if = "Option::is_none")]
3015 pub started: Option<f64>,
3016 #[serde(rename = "statusCode")]
3018 #[serde(skip_serializing_if = "Option::is_none")]
3019 pub status_code: Option<String>,
3020}
3021
3022#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3024#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3025pub struct TestGridSessionArtifact {
3026 #[serde(rename = "filename")]
3028 #[serde(skip_serializing_if = "Option::is_none")]
3029 pub filename: Option<String>,
3030 #[serde(rename = "type")]
3032 #[serde(skip_serializing_if = "Option::is_none")]
3033 pub type_: Option<String>,
3034 #[serde(rename = "url")]
3036 #[serde(skip_serializing_if = "Option::is_none")]
3037 pub url: Option<String>,
3038}
3039
3040#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3042#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3043pub struct TrialMinutes {
3044 #[serde(rename = "remaining")]
3046 #[serde(skip_serializing_if = "Option::is_none")]
3047 pub remaining: Option<f64>,
3048 #[serde(rename = "total")]
3050 #[serde(skip_serializing_if = "Option::is_none")]
3051 pub total: Option<f64>,
3052}
3053
3054#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3056#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3057pub struct UniqueProblem {
3058 #[serde(rename = "message")]
3060 #[serde(skip_serializing_if = "Option::is_none")]
3061 pub message: Option<String>,
3062 #[serde(rename = "problems")]
3064 #[serde(skip_serializing_if = "Option::is_none")]
3065 pub problems: Option<Vec<Problem>>,
3066}
3067
3068#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3069#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3070pub struct UntagResourceRequest {
3071 #[serde(rename = "ResourceARN")]
3073 pub resource_arn: String,
3074 #[serde(rename = "TagKeys")]
3076 pub tag_keys: Vec<String>,
3077}
3078
3079#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3080#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3081pub struct UntagResourceResponse {}
3082
3083#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3084#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3085pub struct UpdateDeviceInstanceRequest {
3086 #[serde(rename = "arn")]
3088 pub arn: String,
3089 #[serde(rename = "labels")]
3091 #[serde(skip_serializing_if = "Option::is_none")]
3092 pub labels: Option<Vec<String>>,
3093 #[serde(rename = "profileArn")]
3095 #[serde(skip_serializing_if = "Option::is_none")]
3096 pub profile_arn: Option<String>,
3097}
3098
3099#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3100#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3101pub struct UpdateDeviceInstanceResult {
3102 #[serde(rename = "deviceInstance")]
3104 #[serde(skip_serializing_if = "Option::is_none")]
3105 pub device_instance: Option<DeviceInstance>,
3106}
3107
3108#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3110#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3111pub struct UpdateDevicePoolRequest {
3112 #[serde(rename = "arn")]
3114 pub arn: String,
3115 #[serde(rename = "clearMaxDevices")]
3117 #[serde(skip_serializing_if = "Option::is_none")]
3118 pub clear_max_devices: Option<bool>,
3119 #[serde(rename = "description")]
3121 #[serde(skip_serializing_if = "Option::is_none")]
3122 pub description: Option<String>,
3123 #[serde(rename = "maxDevices")]
3125 #[serde(skip_serializing_if = "Option::is_none")]
3126 pub max_devices: Option<i64>,
3127 #[serde(rename = "name")]
3129 #[serde(skip_serializing_if = "Option::is_none")]
3130 pub name: Option<String>,
3131 #[serde(rename = "rules")]
3133 #[serde(skip_serializing_if = "Option::is_none")]
3134 pub rules: Option<Vec<Rule>>,
3135}
3136
3137#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3139#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3140pub struct UpdateDevicePoolResult {
3141 #[serde(rename = "devicePool")]
3143 #[serde(skip_serializing_if = "Option::is_none")]
3144 pub device_pool: Option<DevicePool>,
3145}
3146
3147#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3148#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3149pub struct UpdateInstanceProfileRequest {
3150 #[serde(rename = "arn")]
3152 pub arn: String,
3153 #[serde(rename = "description")]
3155 #[serde(skip_serializing_if = "Option::is_none")]
3156 pub description: Option<String>,
3157 #[serde(rename = "excludeAppPackagesFromCleanup")]
3159 #[serde(skip_serializing_if = "Option::is_none")]
3160 pub exclude_app_packages_from_cleanup: Option<Vec<String>>,
3161 #[serde(rename = "name")]
3163 #[serde(skip_serializing_if = "Option::is_none")]
3164 pub name: Option<String>,
3165 #[serde(rename = "packageCleanup")]
3167 #[serde(skip_serializing_if = "Option::is_none")]
3168 pub package_cleanup: Option<bool>,
3169 #[serde(rename = "rebootAfterUse")]
3171 #[serde(skip_serializing_if = "Option::is_none")]
3172 pub reboot_after_use: Option<bool>,
3173}
3174
3175#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3176#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3177pub struct UpdateInstanceProfileResult {
3178 #[serde(rename = "instanceProfile")]
3180 #[serde(skip_serializing_if = "Option::is_none")]
3181 pub instance_profile: Option<InstanceProfile>,
3182}
3183
3184#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3185#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3186pub struct UpdateNetworkProfileRequest {
3187 #[serde(rename = "arn")]
3189 pub arn: String,
3190 #[serde(rename = "description")]
3192 #[serde(skip_serializing_if = "Option::is_none")]
3193 pub description: Option<String>,
3194 #[serde(rename = "downlinkBandwidthBits")]
3196 #[serde(skip_serializing_if = "Option::is_none")]
3197 pub downlink_bandwidth_bits: Option<i64>,
3198 #[serde(rename = "downlinkDelayMs")]
3200 #[serde(skip_serializing_if = "Option::is_none")]
3201 pub downlink_delay_ms: Option<i64>,
3202 #[serde(rename = "downlinkJitterMs")]
3204 #[serde(skip_serializing_if = "Option::is_none")]
3205 pub downlink_jitter_ms: Option<i64>,
3206 #[serde(rename = "downlinkLossPercent")]
3208 #[serde(skip_serializing_if = "Option::is_none")]
3209 pub downlink_loss_percent: Option<i64>,
3210 #[serde(rename = "name")]
3212 #[serde(skip_serializing_if = "Option::is_none")]
3213 pub name: Option<String>,
3214 #[serde(rename = "type")]
3216 #[serde(skip_serializing_if = "Option::is_none")]
3217 pub type_: Option<String>,
3218 #[serde(rename = "uplinkBandwidthBits")]
3220 #[serde(skip_serializing_if = "Option::is_none")]
3221 pub uplink_bandwidth_bits: Option<i64>,
3222 #[serde(rename = "uplinkDelayMs")]
3224 #[serde(skip_serializing_if = "Option::is_none")]
3225 pub uplink_delay_ms: Option<i64>,
3226 #[serde(rename = "uplinkJitterMs")]
3228 #[serde(skip_serializing_if = "Option::is_none")]
3229 pub uplink_jitter_ms: Option<i64>,
3230 #[serde(rename = "uplinkLossPercent")]
3232 #[serde(skip_serializing_if = "Option::is_none")]
3233 pub uplink_loss_percent: Option<i64>,
3234}
3235
3236#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3237#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3238pub struct UpdateNetworkProfileResult {
3239 #[serde(rename = "networkProfile")]
3241 #[serde(skip_serializing_if = "Option::is_none")]
3242 pub network_profile: Option<NetworkProfile>,
3243}
3244
3245#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3247#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3248pub struct UpdateProjectRequest {
3249 #[serde(rename = "arn")]
3251 pub arn: String,
3252 #[serde(rename = "defaultJobTimeoutMinutes")]
3254 #[serde(skip_serializing_if = "Option::is_none")]
3255 pub default_job_timeout_minutes: Option<i64>,
3256 #[serde(rename = "name")]
3258 #[serde(skip_serializing_if = "Option::is_none")]
3259 pub name: Option<String>,
3260}
3261
3262#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3264#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3265pub struct UpdateProjectResult {
3266 #[serde(rename = "project")]
3268 #[serde(skip_serializing_if = "Option::is_none")]
3269 pub project: Option<Project>,
3270}
3271
3272#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3273#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3274pub struct UpdateTestGridProjectRequest {
3275 #[serde(rename = "description")]
3277 #[serde(skip_serializing_if = "Option::is_none")]
3278 pub description: Option<String>,
3279 #[serde(rename = "name")]
3281 #[serde(skip_serializing_if = "Option::is_none")]
3282 pub name: Option<String>,
3283 #[serde(rename = "projectArn")]
3285 pub project_arn: String,
3286}
3287
3288#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3289#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3290pub struct UpdateTestGridProjectResult {
3291 #[serde(rename = "testGridProject")]
3293 #[serde(skip_serializing_if = "Option::is_none")]
3294 pub test_grid_project: Option<TestGridProject>,
3295}
3296
3297#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3298#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3299pub struct UpdateUploadRequest {
3300 #[serde(rename = "arn")]
3302 pub arn: String,
3303 #[serde(rename = "contentType")]
3305 #[serde(skip_serializing_if = "Option::is_none")]
3306 pub content_type: Option<String>,
3307 #[serde(rename = "editContent")]
3309 #[serde(skip_serializing_if = "Option::is_none")]
3310 pub edit_content: Option<bool>,
3311 #[serde(rename = "name")]
3313 #[serde(skip_serializing_if = "Option::is_none")]
3314 pub name: Option<String>,
3315}
3316
3317#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3318#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3319pub struct UpdateUploadResult {
3320 #[serde(rename = "upload")]
3322 #[serde(skip_serializing_if = "Option::is_none")]
3323 pub upload: Option<Upload>,
3324}
3325
3326#[derive(Clone, Debug, Default, PartialEq, Serialize)]
3327#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
3328pub struct UpdateVPCEConfigurationRequest {
3329 #[serde(rename = "arn")]
3331 pub arn: String,
3332 #[serde(rename = "serviceDnsName")]
3334 #[serde(skip_serializing_if = "Option::is_none")]
3335 pub service_dns_name: Option<String>,
3336 #[serde(rename = "vpceConfigurationDescription")]
3338 #[serde(skip_serializing_if = "Option::is_none")]
3339 pub vpce_configuration_description: Option<String>,
3340 #[serde(rename = "vpceConfigurationName")]
3342 #[serde(skip_serializing_if = "Option::is_none")]
3343 pub vpce_configuration_name: Option<String>,
3344 #[serde(rename = "vpceServiceName")]
3346 #[serde(skip_serializing_if = "Option::is_none")]
3347 pub vpce_service_name: Option<String>,
3348}
3349
3350#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3351#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3352pub struct UpdateVPCEConfigurationResult {
3353 #[serde(rename = "vpceConfiguration")]
3355 #[serde(skip_serializing_if = "Option::is_none")]
3356 pub vpce_configuration: Option<VPCEConfiguration>,
3357}
3358
3359#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3361#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3362pub struct Upload {
3363 #[serde(rename = "arn")]
3365 #[serde(skip_serializing_if = "Option::is_none")]
3366 pub arn: Option<String>,
3367 #[serde(rename = "category")]
3369 #[serde(skip_serializing_if = "Option::is_none")]
3370 pub category: Option<String>,
3371 #[serde(rename = "contentType")]
3373 #[serde(skip_serializing_if = "Option::is_none")]
3374 pub content_type: Option<String>,
3375 #[serde(rename = "created")]
3377 #[serde(skip_serializing_if = "Option::is_none")]
3378 pub created: Option<f64>,
3379 #[serde(rename = "message")]
3381 #[serde(skip_serializing_if = "Option::is_none")]
3382 pub message: Option<String>,
3383 #[serde(rename = "metadata")]
3385 #[serde(skip_serializing_if = "Option::is_none")]
3386 pub metadata: Option<String>,
3387 #[serde(rename = "name")]
3389 #[serde(skip_serializing_if = "Option::is_none")]
3390 pub name: Option<String>,
3391 #[serde(rename = "status")]
3393 #[serde(skip_serializing_if = "Option::is_none")]
3394 pub status: Option<String>,
3395 #[serde(rename = "type")]
3397 #[serde(skip_serializing_if = "Option::is_none")]
3398 pub type_: Option<String>,
3399 #[serde(rename = "url")]
3401 #[serde(skip_serializing_if = "Option::is_none")]
3402 pub url: Option<String>,
3403}
3404
3405#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
3407#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
3408pub struct VPCEConfiguration {
3409 #[serde(rename = "arn")]
3411 #[serde(skip_serializing_if = "Option::is_none")]
3412 pub arn: Option<String>,
3413 #[serde(rename = "serviceDnsName")]
3415 #[serde(skip_serializing_if = "Option::is_none")]
3416 pub service_dns_name: Option<String>,
3417 #[serde(rename = "vpceConfigurationDescription")]
3419 #[serde(skip_serializing_if = "Option::is_none")]
3420 pub vpce_configuration_description: Option<String>,
3421 #[serde(rename = "vpceConfigurationName")]
3423 #[serde(skip_serializing_if = "Option::is_none")]
3424 pub vpce_configuration_name: Option<String>,
3425 #[serde(rename = "vpceServiceName")]
3427 #[serde(skip_serializing_if = "Option::is_none")]
3428 pub vpce_service_name: Option<String>,
3429}
3430
3431#[derive(Debug, PartialEq)]
3433pub enum CreateDevicePoolError {
3434 Argument(String),
3436 LimitExceeded(String),
3438 NotFound(String),
3440 ServiceAccount(String),
3442}
3443
3444impl CreateDevicePoolError {
3445 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDevicePoolError> {
3446 if let Some(err) = proto::json::Error::parse(&res) {
3447 match err.typ.as_str() {
3448 "ArgumentException" => {
3449 return RusotoError::Service(CreateDevicePoolError::Argument(err.msg))
3450 }
3451 "LimitExceededException" => {
3452 return RusotoError::Service(CreateDevicePoolError::LimitExceeded(err.msg))
3453 }
3454 "NotFoundException" => {
3455 return RusotoError::Service(CreateDevicePoolError::NotFound(err.msg))
3456 }
3457 "ServiceAccountException" => {
3458 return RusotoError::Service(CreateDevicePoolError::ServiceAccount(err.msg))
3459 }
3460 "ValidationException" => return RusotoError::Validation(err.msg),
3461 _ => {}
3462 }
3463 }
3464 RusotoError::Unknown(res)
3465 }
3466}
3467impl fmt::Display for CreateDevicePoolError {
3468 #[allow(unused_variables)]
3469 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3470 match *self {
3471 CreateDevicePoolError::Argument(ref cause) => write!(f, "{}", cause),
3472 CreateDevicePoolError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3473 CreateDevicePoolError::NotFound(ref cause) => write!(f, "{}", cause),
3474 CreateDevicePoolError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3475 }
3476 }
3477}
3478impl Error for CreateDevicePoolError {}
3479#[derive(Debug, PartialEq)]
3481pub enum CreateInstanceProfileError {
3482 Argument(String),
3484 LimitExceeded(String),
3486 NotFound(String),
3488 ServiceAccount(String),
3490}
3491
3492impl CreateInstanceProfileError {
3493 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateInstanceProfileError> {
3494 if let Some(err) = proto::json::Error::parse(&res) {
3495 match err.typ.as_str() {
3496 "ArgumentException" => {
3497 return RusotoError::Service(CreateInstanceProfileError::Argument(err.msg))
3498 }
3499 "LimitExceededException" => {
3500 return RusotoError::Service(CreateInstanceProfileError::LimitExceeded(err.msg))
3501 }
3502 "NotFoundException" => {
3503 return RusotoError::Service(CreateInstanceProfileError::NotFound(err.msg))
3504 }
3505 "ServiceAccountException" => {
3506 return RusotoError::Service(CreateInstanceProfileError::ServiceAccount(
3507 err.msg,
3508 ))
3509 }
3510 "ValidationException" => return RusotoError::Validation(err.msg),
3511 _ => {}
3512 }
3513 }
3514 RusotoError::Unknown(res)
3515 }
3516}
3517impl fmt::Display for CreateInstanceProfileError {
3518 #[allow(unused_variables)]
3519 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3520 match *self {
3521 CreateInstanceProfileError::Argument(ref cause) => write!(f, "{}", cause),
3522 CreateInstanceProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3523 CreateInstanceProfileError::NotFound(ref cause) => write!(f, "{}", cause),
3524 CreateInstanceProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3525 }
3526 }
3527}
3528impl Error for CreateInstanceProfileError {}
3529#[derive(Debug, PartialEq)]
3531pub enum CreateNetworkProfileError {
3532 Argument(String),
3534 LimitExceeded(String),
3536 NotFound(String),
3538 ServiceAccount(String),
3540}
3541
3542impl CreateNetworkProfileError {
3543 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateNetworkProfileError> {
3544 if let Some(err) = proto::json::Error::parse(&res) {
3545 match err.typ.as_str() {
3546 "ArgumentException" => {
3547 return RusotoError::Service(CreateNetworkProfileError::Argument(err.msg))
3548 }
3549 "LimitExceededException" => {
3550 return RusotoError::Service(CreateNetworkProfileError::LimitExceeded(err.msg))
3551 }
3552 "NotFoundException" => {
3553 return RusotoError::Service(CreateNetworkProfileError::NotFound(err.msg))
3554 }
3555 "ServiceAccountException" => {
3556 return RusotoError::Service(CreateNetworkProfileError::ServiceAccount(err.msg))
3557 }
3558 "ValidationException" => return RusotoError::Validation(err.msg),
3559 _ => {}
3560 }
3561 }
3562 RusotoError::Unknown(res)
3563 }
3564}
3565impl fmt::Display for CreateNetworkProfileError {
3566 #[allow(unused_variables)]
3567 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3568 match *self {
3569 CreateNetworkProfileError::Argument(ref cause) => write!(f, "{}", cause),
3570 CreateNetworkProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3571 CreateNetworkProfileError::NotFound(ref cause) => write!(f, "{}", cause),
3572 CreateNetworkProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3573 }
3574 }
3575}
3576impl Error for CreateNetworkProfileError {}
3577#[derive(Debug, PartialEq)]
3579pub enum CreateProjectError {
3580 Argument(String),
3582 LimitExceeded(String),
3584 NotFound(String),
3586 ServiceAccount(String),
3588 TagOperation(String),
3590}
3591
3592impl CreateProjectError {
3593 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateProjectError> {
3594 if let Some(err) = proto::json::Error::parse(&res) {
3595 match err.typ.as_str() {
3596 "ArgumentException" => {
3597 return RusotoError::Service(CreateProjectError::Argument(err.msg))
3598 }
3599 "LimitExceededException" => {
3600 return RusotoError::Service(CreateProjectError::LimitExceeded(err.msg))
3601 }
3602 "NotFoundException" => {
3603 return RusotoError::Service(CreateProjectError::NotFound(err.msg))
3604 }
3605 "ServiceAccountException" => {
3606 return RusotoError::Service(CreateProjectError::ServiceAccount(err.msg))
3607 }
3608 "TagOperationException" => {
3609 return RusotoError::Service(CreateProjectError::TagOperation(err.msg))
3610 }
3611 "ValidationException" => return RusotoError::Validation(err.msg),
3612 _ => {}
3613 }
3614 }
3615 RusotoError::Unknown(res)
3616 }
3617}
3618impl fmt::Display for CreateProjectError {
3619 #[allow(unused_variables)]
3620 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3621 match *self {
3622 CreateProjectError::Argument(ref cause) => write!(f, "{}", cause),
3623 CreateProjectError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3624 CreateProjectError::NotFound(ref cause) => write!(f, "{}", cause),
3625 CreateProjectError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3626 CreateProjectError::TagOperation(ref cause) => write!(f, "{}", cause),
3627 }
3628 }
3629}
3630impl Error for CreateProjectError {}
3631#[derive(Debug, PartialEq)]
3633pub enum CreateRemoteAccessSessionError {
3634 Argument(String),
3636 LimitExceeded(String),
3638 NotFound(String),
3640 ServiceAccount(String),
3642}
3643
3644impl CreateRemoteAccessSessionError {
3645 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateRemoteAccessSessionError> {
3646 if let Some(err) = proto::json::Error::parse(&res) {
3647 match err.typ.as_str() {
3648 "ArgumentException" => {
3649 return RusotoError::Service(CreateRemoteAccessSessionError::Argument(err.msg))
3650 }
3651 "LimitExceededException" => {
3652 return RusotoError::Service(CreateRemoteAccessSessionError::LimitExceeded(
3653 err.msg,
3654 ))
3655 }
3656 "NotFoundException" => {
3657 return RusotoError::Service(CreateRemoteAccessSessionError::NotFound(err.msg))
3658 }
3659 "ServiceAccountException" => {
3660 return RusotoError::Service(CreateRemoteAccessSessionError::ServiceAccount(
3661 err.msg,
3662 ))
3663 }
3664 "ValidationException" => return RusotoError::Validation(err.msg),
3665 _ => {}
3666 }
3667 }
3668 RusotoError::Unknown(res)
3669 }
3670}
3671impl fmt::Display for CreateRemoteAccessSessionError {
3672 #[allow(unused_variables)]
3673 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3674 match *self {
3675 CreateRemoteAccessSessionError::Argument(ref cause) => write!(f, "{}", cause),
3676 CreateRemoteAccessSessionError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3677 CreateRemoteAccessSessionError::NotFound(ref cause) => write!(f, "{}", cause),
3678 CreateRemoteAccessSessionError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3679 }
3680 }
3681}
3682impl Error for CreateRemoteAccessSessionError {}
3683#[derive(Debug, PartialEq)]
3685pub enum CreateTestGridProjectError {
3686 InternalService(String),
3688}
3689
3690impl CreateTestGridProjectError {
3691 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateTestGridProjectError> {
3692 if let Some(err) = proto::json::Error::parse(&res) {
3693 match err.typ.as_str() {
3694 "InternalServiceException" => {
3695 return RusotoError::Service(CreateTestGridProjectError::InternalService(
3696 err.msg,
3697 ))
3698 }
3699 "ValidationException" => return RusotoError::Validation(err.msg),
3700 _ => {}
3701 }
3702 }
3703 RusotoError::Unknown(res)
3704 }
3705}
3706impl fmt::Display for CreateTestGridProjectError {
3707 #[allow(unused_variables)]
3708 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3709 match *self {
3710 CreateTestGridProjectError::InternalService(ref cause) => write!(f, "{}", cause),
3711 }
3712 }
3713}
3714impl Error for CreateTestGridProjectError {}
3715#[derive(Debug, PartialEq)]
3717pub enum CreateTestGridUrlError {
3718 Argument(String),
3720 InternalService(String),
3722 NotFound(String),
3724}
3725
3726impl CreateTestGridUrlError {
3727 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateTestGridUrlError> {
3728 if let Some(err) = proto::json::Error::parse(&res) {
3729 match err.typ.as_str() {
3730 "ArgumentException" => {
3731 return RusotoError::Service(CreateTestGridUrlError::Argument(err.msg))
3732 }
3733 "InternalServiceException" => {
3734 return RusotoError::Service(CreateTestGridUrlError::InternalService(err.msg))
3735 }
3736 "NotFoundException" => {
3737 return RusotoError::Service(CreateTestGridUrlError::NotFound(err.msg))
3738 }
3739 "ValidationException" => return RusotoError::Validation(err.msg),
3740 _ => {}
3741 }
3742 }
3743 RusotoError::Unknown(res)
3744 }
3745}
3746impl fmt::Display for CreateTestGridUrlError {
3747 #[allow(unused_variables)]
3748 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3749 match *self {
3750 CreateTestGridUrlError::Argument(ref cause) => write!(f, "{}", cause),
3751 CreateTestGridUrlError::InternalService(ref cause) => write!(f, "{}", cause),
3752 CreateTestGridUrlError::NotFound(ref cause) => write!(f, "{}", cause),
3753 }
3754 }
3755}
3756impl Error for CreateTestGridUrlError {}
3757#[derive(Debug, PartialEq)]
3759pub enum CreateUploadError {
3760 Argument(String),
3762 LimitExceeded(String),
3764 NotFound(String),
3766 ServiceAccount(String),
3768}
3769
3770impl CreateUploadError {
3771 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateUploadError> {
3772 if let Some(err) = proto::json::Error::parse(&res) {
3773 match err.typ.as_str() {
3774 "ArgumentException" => {
3775 return RusotoError::Service(CreateUploadError::Argument(err.msg))
3776 }
3777 "LimitExceededException" => {
3778 return RusotoError::Service(CreateUploadError::LimitExceeded(err.msg))
3779 }
3780 "NotFoundException" => {
3781 return RusotoError::Service(CreateUploadError::NotFound(err.msg))
3782 }
3783 "ServiceAccountException" => {
3784 return RusotoError::Service(CreateUploadError::ServiceAccount(err.msg))
3785 }
3786 "ValidationException" => return RusotoError::Validation(err.msg),
3787 _ => {}
3788 }
3789 }
3790 RusotoError::Unknown(res)
3791 }
3792}
3793impl fmt::Display for CreateUploadError {
3794 #[allow(unused_variables)]
3795 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3796 match *self {
3797 CreateUploadError::Argument(ref cause) => write!(f, "{}", cause),
3798 CreateUploadError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3799 CreateUploadError::NotFound(ref cause) => write!(f, "{}", cause),
3800 CreateUploadError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3801 }
3802 }
3803}
3804impl Error for CreateUploadError {}
3805#[derive(Debug, PartialEq)]
3807pub enum CreateVPCEConfigurationError {
3808 Argument(String),
3810 LimitExceeded(String),
3812 ServiceAccount(String),
3814}
3815
3816impl CreateVPCEConfigurationError {
3817 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateVPCEConfigurationError> {
3818 if let Some(err) = proto::json::Error::parse(&res) {
3819 match err.typ.as_str() {
3820 "ArgumentException" => {
3821 return RusotoError::Service(CreateVPCEConfigurationError::Argument(err.msg))
3822 }
3823 "LimitExceededException" => {
3824 return RusotoError::Service(CreateVPCEConfigurationError::LimitExceeded(
3825 err.msg,
3826 ))
3827 }
3828 "ServiceAccountException" => {
3829 return RusotoError::Service(CreateVPCEConfigurationError::ServiceAccount(
3830 err.msg,
3831 ))
3832 }
3833 "ValidationException" => return RusotoError::Validation(err.msg),
3834 _ => {}
3835 }
3836 }
3837 RusotoError::Unknown(res)
3838 }
3839}
3840impl fmt::Display for CreateVPCEConfigurationError {
3841 #[allow(unused_variables)]
3842 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3843 match *self {
3844 CreateVPCEConfigurationError::Argument(ref cause) => write!(f, "{}", cause),
3845 CreateVPCEConfigurationError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3846 CreateVPCEConfigurationError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3847 }
3848 }
3849}
3850impl Error for CreateVPCEConfigurationError {}
3851#[derive(Debug, PartialEq)]
3853pub enum DeleteDevicePoolError {
3854 Argument(String),
3856 LimitExceeded(String),
3858 NotFound(String),
3860 ServiceAccount(String),
3862}
3863
3864impl DeleteDevicePoolError {
3865 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDevicePoolError> {
3866 if let Some(err) = proto::json::Error::parse(&res) {
3867 match err.typ.as_str() {
3868 "ArgumentException" => {
3869 return RusotoError::Service(DeleteDevicePoolError::Argument(err.msg))
3870 }
3871 "LimitExceededException" => {
3872 return RusotoError::Service(DeleteDevicePoolError::LimitExceeded(err.msg))
3873 }
3874 "NotFoundException" => {
3875 return RusotoError::Service(DeleteDevicePoolError::NotFound(err.msg))
3876 }
3877 "ServiceAccountException" => {
3878 return RusotoError::Service(DeleteDevicePoolError::ServiceAccount(err.msg))
3879 }
3880 "ValidationException" => return RusotoError::Validation(err.msg),
3881 _ => {}
3882 }
3883 }
3884 RusotoError::Unknown(res)
3885 }
3886}
3887impl fmt::Display for DeleteDevicePoolError {
3888 #[allow(unused_variables)]
3889 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3890 match *self {
3891 DeleteDevicePoolError::Argument(ref cause) => write!(f, "{}", cause),
3892 DeleteDevicePoolError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3893 DeleteDevicePoolError::NotFound(ref cause) => write!(f, "{}", cause),
3894 DeleteDevicePoolError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3895 }
3896 }
3897}
3898impl Error for DeleteDevicePoolError {}
3899#[derive(Debug, PartialEq)]
3901pub enum DeleteInstanceProfileError {
3902 Argument(String),
3904 LimitExceeded(String),
3906 NotFound(String),
3908 ServiceAccount(String),
3910}
3911
3912impl DeleteInstanceProfileError {
3913 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteInstanceProfileError> {
3914 if let Some(err) = proto::json::Error::parse(&res) {
3915 match err.typ.as_str() {
3916 "ArgumentException" => {
3917 return RusotoError::Service(DeleteInstanceProfileError::Argument(err.msg))
3918 }
3919 "LimitExceededException" => {
3920 return RusotoError::Service(DeleteInstanceProfileError::LimitExceeded(err.msg))
3921 }
3922 "NotFoundException" => {
3923 return RusotoError::Service(DeleteInstanceProfileError::NotFound(err.msg))
3924 }
3925 "ServiceAccountException" => {
3926 return RusotoError::Service(DeleteInstanceProfileError::ServiceAccount(
3927 err.msg,
3928 ))
3929 }
3930 "ValidationException" => return RusotoError::Validation(err.msg),
3931 _ => {}
3932 }
3933 }
3934 RusotoError::Unknown(res)
3935 }
3936}
3937impl fmt::Display for DeleteInstanceProfileError {
3938 #[allow(unused_variables)]
3939 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3940 match *self {
3941 DeleteInstanceProfileError::Argument(ref cause) => write!(f, "{}", cause),
3942 DeleteInstanceProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3943 DeleteInstanceProfileError::NotFound(ref cause) => write!(f, "{}", cause),
3944 DeleteInstanceProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3945 }
3946 }
3947}
3948impl Error for DeleteInstanceProfileError {}
3949#[derive(Debug, PartialEq)]
3951pub enum DeleteNetworkProfileError {
3952 Argument(String),
3954 LimitExceeded(String),
3956 NotFound(String),
3958 ServiceAccount(String),
3960}
3961
3962impl DeleteNetworkProfileError {
3963 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteNetworkProfileError> {
3964 if let Some(err) = proto::json::Error::parse(&res) {
3965 match err.typ.as_str() {
3966 "ArgumentException" => {
3967 return RusotoError::Service(DeleteNetworkProfileError::Argument(err.msg))
3968 }
3969 "LimitExceededException" => {
3970 return RusotoError::Service(DeleteNetworkProfileError::LimitExceeded(err.msg))
3971 }
3972 "NotFoundException" => {
3973 return RusotoError::Service(DeleteNetworkProfileError::NotFound(err.msg))
3974 }
3975 "ServiceAccountException" => {
3976 return RusotoError::Service(DeleteNetworkProfileError::ServiceAccount(err.msg))
3977 }
3978 "ValidationException" => return RusotoError::Validation(err.msg),
3979 _ => {}
3980 }
3981 }
3982 RusotoError::Unknown(res)
3983 }
3984}
3985impl fmt::Display for DeleteNetworkProfileError {
3986 #[allow(unused_variables)]
3987 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3988 match *self {
3989 DeleteNetworkProfileError::Argument(ref cause) => write!(f, "{}", cause),
3990 DeleteNetworkProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
3991 DeleteNetworkProfileError::NotFound(ref cause) => write!(f, "{}", cause),
3992 DeleteNetworkProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
3993 }
3994 }
3995}
3996impl Error for DeleteNetworkProfileError {}
3997#[derive(Debug, PartialEq)]
3999pub enum DeleteProjectError {
4000 Argument(String),
4002 LimitExceeded(String),
4004 NotFound(String),
4006 ServiceAccount(String),
4008}
4009
4010impl DeleteProjectError {
4011 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteProjectError> {
4012 if let Some(err) = proto::json::Error::parse(&res) {
4013 match err.typ.as_str() {
4014 "ArgumentException" => {
4015 return RusotoError::Service(DeleteProjectError::Argument(err.msg))
4016 }
4017 "LimitExceededException" => {
4018 return RusotoError::Service(DeleteProjectError::LimitExceeded(err.msg))
4019 }
4020 "NotFoundException" => {
4021 return RusotoError::Service(DeleteProjectError::NotFound(err.msg))
4022 }
4023 "ServiceAccountException" => {
4024 return RusotoError::Service(DeleteProjectError::ServiceAccount(err.msg))
4025 }
4026 "ValidationException" => return RusotoError::Validation(err.msg),
4027 _ => {}
4028 }
4029 }
4030 RusotoError::Unknown(res)
4031 }
4032}
4033impl fmt::Display for DeleteProjectError {
4034 #[allow(unused_variables)]
4035 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4036 match *self {
4037 DeleteProjectError::Argument(ref cause) => write!(f, "{}", cause),
4038 DeleteProjectError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4039 DeleteProjectError::NotFound(ref cause) => write!(f, "{}", cause),
4040 DeleteProjectError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4041 }
4042 }
4043}
4044impl Error for DeleteProjectError {}
4045#[derive(Debug, PartialEq)]
4047pub enum DeleteRemoteAccessSessionError {
4048 Argument(String),
4050 LimitExceeded(String),
4052 NotFound(String),
4054 ServiceAccount(String),
4056}
4057
4058impl DeleteRemoteAccessSessionError {
4059 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteRemoteAccessSessionError> {
4060 if let Some(err) = proto::json::Error::parse(&res) {
4061 match err.typ.as_str() {
4062 "ArgumentException" => {
4063 return RusotoError::Service(DeleteRemoteAccessSessionError::Argument(err.msg))
4064 }
4065 "LimitExceededException" => {
4066 return RusotoError::Service(DeleteRemoteAccessSessionError::LimitExceeded(
4067 err.msg,
4068 ))
4069 }
4070 "NotFoundException" => {
4071 return RusotoError::Service(DeleteRemoteAccessSessionError::NotFound(err.msg))
4072 }
4073 "ServiceAccountException" => {
4074 return RusotoError::Service(DeleteRemoteAccessSessionError::ServiceAccount(
4075 err.msg,
4076 ))
4077 }
4078 "ValidationException" => return RusotoError::Validation(err.msg),
4079 _ => {}
4080 }
4081 }
4082 RusotoError::Unknown(res)
4083 }
4084}
4085impl fmt::Display for DeleteRemoteAccessSessionError {
4086 #[allow(unused_variables)]
4087 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4088 match *self {
4089 DeleteRemoteAccessSessionError::Argument(ref cause) => write!(f, "{}", cause),
4090 DeleteRemoteAccessSessionError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4091 DeleteRemoteAccessSessionError::NotFound(ref cause) => write!(f, "{}", cause),
4092 DeleteRemoteAccessSessionError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4093 }
4094 }
4095}
4096impl Error for DeleteRemoteAccessSessionError {}
4097#[derive(Debug, PartialEq)]
4099pub enum DeleteRunError {
4100 Argument(String),
4102 LimitExceeded(String),
4104 NotFound(String),
4106 ServiceAccount(String),
4108}
4109
4110impl DeleteRunError {
4111 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteRunError> {
4112 if let Some(err) = proto::json::Error::parse(&res) {
4113 match err.typ.as_str() {
4114 "ArgumentException" => {
4115 return RusotoError::Service(DeleteRunError::Argument(err.msg))
4116 }
4117 "LimitExceededException" => {
4118 return RusotoError::Service(DeleteRunError::LimitExceeded(err.msg))
4119 }
4120 "NotFoundException" => {
4121 return RusotoError::Service(DeleteRunError::NotFound(err.msg))
4122 }
4123 "ServiceAccountException" => {
4124 return RusotoError::Service(DeleteRunError::ServiceAccount(err.msg))
4125 }
4126 "ValidationException" => return RusotoError::Validation(err.msg),
4127 _ => {}
4128 }
4129 }
4130 RusotoError::Unknown(res)
4131 }
4132}
4133impl fmt::Display for DeleteRunError {
4134 #[allow(unused_variables)]
4135 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4136 match *self {
4137 DeleteRunError::Argument(ref cause) => write!(f, "{}", cause),
4138 DeleteRunError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4139 DeleteRunError::NotFound(ref cause) => write!(f, "{}", cause),
4140 DeleteRunError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4141 }
4142 }
4143}
4144impl Error for DeleteRunError {}
4145#[derive(Debug, PartialEq)]
4147pub enum DeleteTestGridProjectError {
4148 Argument(String),
4150 CannotDelete(String),
4152 InternalService(String),
4154 NotFound(String),
4156}
4157
4158impl DeleteTestGridProjectError {
4159 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteTestGridProjectError> {
4160 if let Some(err) = proto::json::Error::parse(&res) {
4161 match err.typ.as_str() {
4162 "ArgumentException" => {
4163 return RusotoError::Service(DeleteTestGridProjectError::Argument(err.msg))
4164 }
4165 "CannotDeleteException" => {
4166 return RusotoError::Service(DeleteTestGridProjectError::CannotDelete(err.msg))
4167 }
4168 "InternalServiceException" => {
4169 return RusotoError::Service(DeleteTestGridProjectError::InternalService(
4170 err.msg,
4171 ))
4172 }
4173 "NotFoundException" => {
4174 return RusotoError::Service(DeleteTestGridProjectError::NotFound(err.msg))
4175 }
4176 "ValidationException" => return RusotoError::Validation(err.msg),
4177 _ => {}
4178 }
4179 }
4180 RusotoError::Unknown(res)
4181 }
4182}
4183impl fmt::Display for DeleteTestGridProjectError {
4184 #[allow(unused_variables)]
4185 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4186 match *self {
4187 DeleteTestGridProjectError::Argument(ref cause) => write!(f, "{}", cause),
4188 DeleteTestGridProjectError::CannotDelete(ref cause) => write!(f, "{}", cause),
4189 DeleteTestGridProjectError::InternalService(ref cause) => write!(f, "{}", cause),
4190 DeleteTestGridProjectError::NotFound(ref cause) => write!(f, "{}", cause),
4191 }
4192 }
4193}
4194impl Error for DeleteTestGridProjectError {}
4195#[derive(Debug, PartialEq)]
4197pub enum DeleteUploadError {
4198 Argument(String),
4200 LimitExceeded(String),
4202 NotFound(String),
4204 ServiceAccount(String),
4206}
4207
4208impl DeleteUploadError {
4209 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteUploadError> {
4210 if let Some(err) = proto::json::Error::parse(&res) {
4211 match err.typ.as_str() {
4212 "ArgumentException" => {
4213 return RusotoError::Service(DeleteUploadError::Argument(err.msg))
4214 }
4215 "LimitExceededException" => {
4216 return RusotoError::Service(DeleteUploadError::LimitExceeded(err.msg))
4217 }
4218 "NotFoundException" => {
4219 return RusotoError::Service(DeleteUploadError::NotFound(err.msg))
4220 }
4221 "ServiceAccountException" => {
4222 return RusotoError::Service(DeleteUploadError::ServiceAccount(err.msg))
4223 }
4224 "ValidationException" => return RusotoError::Validation(err.msg),
4225 _ => {}
4226 }
4227 }
4228 RusotoError::Unknown(res)
4229 }
4230}
4231impl fmt::Display for DeleteUploadError {
4232 #[allow(unused_variables)]
4233 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4234 match *self {
4235 DeleteUploadError::Argument(ref cause) => write!(f, "{}", cause),
4236 DeleteUploadError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4237 DeleteUploadError::NotFound(ref cause) => write!(f, "{}", cause),
4238 DeleteUploadError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4239 }
4240 }
4241}
4242impl Error for DeleteUploadError {}
4243#[derive(Debug, PartialEq)]
4245pub enum DeleteVPCEConfigurationError {
4246 Argument(String),
4248 InvalidOperation(String),
4250 NotFound(String),
4252 ServiceAccount(String),
4254}
4255
4256impl DeleteVPCEConfigurationError {
4257 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteVPCEConfigurationError> {
4258 if let Some(err) = proto::json::Error::parse(&res) {
4259 match err.typ.as_str() {
4260 "ArgumentException" => {
4261 return RusotoError::Service(DeleteVPCEConfigurationError::Argument(err.msg))
4262 }
4263 "InvalidOperationException" => {
4264 return RusotoError::Service(DeleteVPCEConfigurationError::InvalidOperation(
4265 err.msg,
4266 ))
4267 }
4268 "NotFoundException" => {
4269 return RusotoError::Service(DeleteVPCEConfigurationError::NotFound(err.msg))
4270 }
4271 "ServiceAccountException" => {
4272 return RusotoError::Service(DeleteVPCEConfigurationError::ServiceAccount(
4273 err.msg,
4274 ))
4275 }
4276 "ValidationException" => return RusotoError::Validation(err.msg),
4277 _ => {}
4278 }
4279 }
4280 RusotoError::Unknown(res)
4281 }
4282}
4283impl fmt::Display for DeleteVPCEConfigurationError {
4284 #[allow(unused_variables)]
4285 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4286 match *self {
4287 DeleteVPCEConfigurationError::Argument(ref cause) => write!(f, "{}", cause),
4288 DeleteVPCEConfigurationError::InvalidOperation(ref cause) => write!(f, "{}", cause),
4289 DeleteVPCEConfigurationError::NotFound(ref cause) => write!(f, "{}", cause),
4290 DeleteVPCEConfigurationError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4291 }
4292 }
4293}
4294impl Error for DeleteVPCEConfigurationError {}
4295#[derive(Debug, PartialEq)]
4297pub enum GetAccountSettingsError {
4298 Argument(String),
4300 LimitExceeded(String),
4302 NotFound(String),
4304 ServiceAccount(String),
4306}
4307
4308impl GetAccountSettingsError {
4309 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetAccountSettingsError> {
4310 if let Some(err) = proto::json::Error::parse(&res) {
4311 match err.typ.as_str() {
4312 "ArgumentException" => {
4313 return RusotoError::Service(GetAccountSettingsError::Argument(err.msg))
4314 }
4315 "LimitExceededException" => {
4316 return RusotoError::Service(GetAccountSettingsError::LimitExceeded(err.msg))
4317 }
4318 "NotFoundException" => {
4319 return RusotoError::Service(GetAccountSettingsError::NotFound(err.msg))
4320 }
4321 "ServiceAccountException" => {
4322 return RusotoError::Service(GetAccountSettingsError::ServiceAccount(err.msg))
4323 }
4324 "ValidationException" => return RusotoError::Validation(err.msg),
4325 _ => {}
4326 }
4327 }
4328 RusotoError::Unknown(res)
4329 }
4330}
4331impl fmt::Display for GetAccountSettingsError {
4332 #[allow(unused_variables)]
4333 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4334 match *self {
4335 GetAccountSettingsError::Argument(ref cause) => write!(f, "{}", cause),
4336 GetAccountSettingsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4337 GetAccountSettingsError::NotFound(ref cause) => write!(f, "{}", cause),
4338 GetAccountSettingsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4339 }
4340 }
4341}
4342impl Error for GetAccountSettingsError {}
4343#[derive(Debug, PartialEq)]
4345pub enum GetDeviceError {
4346 Argument(String),
4348 LimitExceeded(String),
4350 NotFound(String),
4352 ServiceAccount(String),
4354}
4355
4356impl GetDeviceError {
4357 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDeviceError> {
4358 if let Some(err) = proto::json::Error::parse(&res) {
4359 match err.typ.as_str() {
4360 "ArgumentException" => {
4361 return RusotoError::Service(GetDeviceError::Argument(err.msg))
4362 }
4363 "LimitExceededException" => {
4364 return RusotoError::Service(GetDeviceError::LimitExceeded(err.msg))
4365 }
4366 "NotFoundException" => {
4367 return RusotoError::Service(GetDeviceError::NotFound(err.msg))
4368 }
4369 "ServiceAccountException" => {
4370 return RusotoError::Service(GetDeviceError::ServiceAccount(err.msg))
4371 }
4372 "ValidationException" => return RusotoError::Validation(err.msg),
4373 _ => {}
4374 }
4375 }
4376 RusotoError::Unknown(res)
4377 }
4378}
4379impl fmt::Display for GetDeviceError {
4380 #[allow(unused_variables)]
4381 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4382 match *self {
4383 GetDeviceError::Argument(ref cause) => write!(f, "{}", cause),
4384 GetDeviceError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4385 GetDeviceError::NotFound(ref cause) => write!(f, "{}", cause),
4386 GetDeviceError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4387 }
4388 }
4389}
4390impl Error for GetDeviceError {}
4391#[derive(Debug, PartialEq)]
4393pub enum GetDeviceInstanceError {
4394 Argument(String),
4396 LimitExceeded(String),
4398 NotFound(String),
4400 ServiceAccount(String),
4402}
4403
4404impl GetDeviceInstanceError {
4405 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDeviceInstanceError> {
4406 if let Some(err) = proto::json::Error::parse(&res) {
4407 match err.typ.as_str() {
4408 "ArgumentException" => {
4409 return RusotoError::Service(GetDeviceInstanceError::Argument(err.msg))
4410 }
4411 "LimitExceededException" => {
4412 return RusotoError::Service(GetDeviceInstanceError::LimitExceeded(err.msg))
4413 }
4414 "NotFoundException" => {
4415 return RusotoError::Service(GetDeviceInstanceError::NotFound(err.msg))
4416 }
4417 "ServiceAccountException" => {
4418 return RusotoError::Service(GetDeviceInstanceError::ServiceAccount(err.msg))
4419 }
4420 "ValidationException" => return RusotoError::Validation(err.msg),
4421 _ => {}
4422 }
4423 }
4424 RusotoError::Unknown(res)
4425 }
4426}
4427impl fmt::Display for GetDeviceInstanceError {
4428 #[allow(unused_variables)]
4429 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4430 match *self {
4431 GetDeviceInstanceError::Argument(ref cause) => write!(f, "{}", cause),
4432 GetDeviceInstanceError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4433 GetDeviceInstanceError::NotFound(ref cause) => write!(f, "{}", cause),
4434 GetDeviceInstanceError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4435 }
4436 }
4437}
4438impl Error for GetDeviceInstanceError {}
4439#[derive(Debug, PartialEq)]
4441pub enum GetDevicePoolError {
4442 Argument(String),
4444 LimitExceeded(String),
4446 NotFound(String),
4448 ServiceAccount(String),
4450}
4451
4452impl GetDevicePoolError {
4453 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDevicePoolError> {
4454 if let Some(err) = proto::json::Error::parse(&res) {
4455 match err.typ.as_str() {
4456 "ArgumentException" => {
4457 return RusotoError::Service(GetDevicePoolError::Argument(err.msg))
4458 }
4459 "LimitExceededException" => {
4460 return RusotoError::Service(GetDevicePoolError::LimitExceeded(err.msg))
4461 }
4462 "NotFoundException" => {
4463 return RusotoError::Service(GetDevicePoolError::NotFound(err.msg))
4464 }
4465 "ServiceAccountException" => {
4466 return RusotoError::Service(GetDevicePoolError::ServiceAccount(err.msg))
4467 }
4468 "ValidationException" => return RusotoError::Validation(err.msg),
4469 _ => {}
4470 }
4471 }
4472 RusotoError::Unknown(res)
4473 }
4474}
4475impl fmt::Display for GetDevicePoolError {
4476 #[allow(unused_variables)]
4477 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4478 match *self {
4479 GetDevicePoolError::Argument(ref cause) => write!(f, "{}", cause),
4480 GetDevicePoolError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4481 GetDevicePoolError::NotFound(ref cause) => write!(f, "{}", cause),
4482 GetDevicePoolError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4483 }
4484 }
4485}
4486impl Error for GetDevicePoolError {}
4487#[derive(Debug, PartialEq)]
4489pub enum GetDevicePoolCompatibilityError {
4490 Argument(String),
4492 LimitExceeded(String),
4494 NotFound(String),
4496 ServiceAccount(String),
4498}
4499
4500impl GetDevicePoolCompatibilityError {
4501 pub fn from_response(
4502 res: BufferedHttpResponse,
4503 ) -> RusotoError<GetDevicePoolCompatibilityError> {
4504 if let Some(err) = proto::json::Error::parse(&res) {
4505 match err.typ.as_str() {
4506 "ArgumentException" => {
4507 return RusotoError::Service(GetDevicePoolCompatibilityError::Argument(err.msg))
4508 }
4509 "LimitExceededException" => {
4510 return RusotoError::Service(GetDevicePoolCompatibilityError::LimitExceeded(
4511 err.msg,
4512 ))
4513 }
4514 "NotFoundException" => {
4515 return RusotoError::Service(GetDevicePoolCompatibilityError::NotFound(err.msg))
4516 }
4517 "ServiceAccountException" => {
4518 return RusotoError::Service(GetDevicePoolCompatibilityError::ServiceAccount(
4519 err.msg,
4520 ))
4521 }
4522 "ValidationException" => return RusotoError::Validation(err.msg),
4523 _ => {}
4524 }
4525 }
4526 RusotoError::Unknown(res)
4527 }
4528}
4529impl fmt::Display for GetDevicePoolCompatibilityError {
4530 #[allow(unused_variables)]
4531 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4532 match *self {
4533 GetDevicePoolCompatibilityError::Argument(ref cause) => write!(f, "{}", cause),
4534 GetDevicePoolCompatibilityError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4535 GetDevicePoolCompatibilityError::NotFound(ref cause) => write!(f, "{}", cause),
4536 GetDevicePoolCompatibilityError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4537 }
4538 }
4539}
4540impl Error for GetDevicePoolCompatibilityError {}
4541#[derive(Debug, PartialEq)]
4543pub enum GetInstanceProfileError {
4544 Argument(String),
4546 LimitExceeded(String),
4548 NotFound(String),
4550 ServiceAccount(String),
4552}
4553
4554impl GetInstanceProfileError {
4555 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceProfileError> {
4556 if let Some(err) = proto::json::Error::parse(&res) {
4557 match err.typ.as_str() {
4558 "ArgumentException" => {
4559 return RusotoError::Service(GetInstanceProfileError::Argument(err.msg))
4560 }
4561 "LimitExceededException" => {
4562 return RusotoError::Service(GetInstanceProfileError::LimitExceeded(err.msg))
4563 }
4564 "NotFoundException" => {
4565 return RusotoError::Service(GetInstanceProfileError::NotFound(err.msg))
4566 }
4567 "ServiceAccountException" => {
4568 return RusotoError::Service(GetInstanceProfileError::ServiceAccount(err.msg))
4569 }
4570 "ValidationException" => return RusotoError::Validation(err.msg),
4571 _ => {}
4572 }
4573 }
4574 RusotoError::Unknown(res)
4575 }
4576}
4577impl fmt::Display for GetInstanceProfileError {
4578 #[allow(unused_variables)]
4579 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4580 match *self {
4581 GetInstanceProfileError::Argument(ref cause) => write!(f, "{}", cause),
4582 GetInstanceProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4583 GetInstanceProfileError::NotFound(ref cause) => write!(f, "{}", cause),
4584 GetInstanceProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4585 }
4586 }
4587}
4588impl Error for GetInstanceProfileError {}
4589#[derive(Debug, PartialEq)]
4591pub enum GetJobError {
4592 Argument(String),
4594 LimitExceeded(String),
4596 NotFound(String),
4598 ServiceAccount(String),
4600}
4601
4602impl GetJobError {
4603 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetJobError> {
4604 if let Some(err) = proto::json::Error::parse(&res) {
4605 match err.typ.as_str() {
4606 "ArgumentException" => return RusotoError::Service(GetJobError::Argument(err.msg)),
4607 "LimitExceededException" => {
4608 return RusotoError::Service(GetJobError::LimitExceeded(err.msg))
4609 }
4610 "NotFoundException" => return RusotoError::Service(GetJobError::NotFound(err.msg)),
4611 "ServiceAccountException" => {
4612 return RusotoError::Service(GetJobError::ServiceAccount(err.msg))
4613 }
4614 "ValidationException" => return RusotoError::Validation(err.msg),
4615 _ => {}
4616 }
4617 }
4618 RusotoError::Unknown(res)
4619 }
4620}
4621impl fmt::Display for GetJobError {
4622 #[allow(unused_variables)]
4623 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4624 match *self {
4625 GetJobError::Argument(ref cause) => write!(f, "{}", cause),
4626 GetJobError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4627 GetJobError::NotFound(ref cause) => write!(f, "{}", cause),
4628 GetJobError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4629 }
4630 }
4631}
4632impl Error for GetJobError {}
4633#[derive(Debug, PartialEq)]
4635pub enum GetNetworkProfileError {
4636 Argument(String),
4638 LimitExceeded(String),
4640 NotFound(String),
4642 ServiceAccount(String),
4644}
4645
4646impl GetNetworkProfileError {
4647 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetNetworkProfileError> {
4648 if let Some(err) = proto::json::Error::parse(&res) {
4649 match err.typ.as_str() {
4650 "ArgumentException" => {
4651 return RusotoError::Service(GetNetworkProfileError::Argument(err.msg))
4652 }
4653 "LimitExceededException" => {
4654 return RusotoError::Service(GetNetworkProfileError::LimitExceeded(err.msg))
4655 }
4656 "NotFoundException" => {
4657 return RusotoError::Service(GetNetworkProfileError::NotFound(err.msg))
4658 }
4659 "ServiceAccountException" => {
4660 return RusotoError::Service(GetNetworkProfileError::ServiceAccount(err.msg))
4661 }
4662 "ValidationException" => return RusotoError::Validation(err.msg),
4663 _ => {}
4664 }
4665 }
4666 RusotoError::Unknown(res)
4667 }
4668}
4669impl fmt::Display for GetNetworkProfileError {
4670 #[allow(unused_variables)]
4671 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4672 match *self {
4673 GetNetworkProfileError::Argument(ref cause) => write!(f, "{}", cause),
4674 GetNetworkProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4675 GetNetworkProfileError::NotFound(ref cause) => write!(f, "{}", cause),
4676 GetNetworkProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4677 }
4678 }
4679}
4680impl Error for GetNetworkProfileError {}
4681#[derive(Debug, PartialEq)]
4683pub enum GetOfferingStatusError {
4684 Argument(String),
4686 LimitExceeded(String),
4688 NotEligible(String),
4690 NotFound(String),
4692 ServiceAccount(String),
4694}
4695
4696impl GetOfferingStatusError {
4697 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOfferingStatusError> {
4698 if let Some(err) = proto::json::Error::parse(&res) {
4699 match err.typ.as_str() {
4700 "ArgumentException" => {
4701 return RusotoError::Service(GetOfferingStatusError::Argument(err.msg))
4702 }
4703 "LimitExceededException" => {
4704 return RusotoError::Service(GetOfferingStatusError::LimitExceeded(err.msg))
4705 }
4706 "NotEligibleException" => {
4707 return RusotoError::Service(GetOfferingStatusError::NotEligible(err.msg))
4708 }
4709 "NotFoundException" => {
4710 return RusotoError::Service(GetOfferingStatusError::NotFound(err.msg))
4711 }
4712 "ServiceAccountException" => {
4713 return RusotoError::Service(GetOfferingStatusError::ServiceAccount(err.msg))
4714 }
4715 "ValidationException" => return RusotoError::Validation(err.msg),
4716 _ => {}
4717 }
4718 }
4719 RusotoError::Unknown(res)
4720 }
4721}
4722impl fmt::Display for GetOfferingStatusError {
4723 #[allow(unused_variables)]
4724 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4725 match *self {
4726 GetOfferingStatusError::Argument(ref cause) => write!(f, "{}", cause),
4727 GetOfferingStatusError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4728 GetOfferingStatusError::NotEligible(ref cause) => write!(f, "{}", cause),
4729 GetOfferingStatusError::NotFound(ref cause) => write!(f, "{}", cause),
4730 GetOfferingStatusError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4731 }
4732 }
4733}
4734impl Error for GetOfferingStatusError {}
4735#[derive(Debug, PartialEq)]
4737pub enum GetProjectError {
4738 Argument(String),
4740 LimitExceeded(String),
4742 NotFound(String),
4744 ServiceAccount(String),
4746}
4747
4748impl GetProjectError {
4749 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetProjectError> {
4750 if let Some(err) = proto::json::Error::parse(&res) {
4751 match err.typ.as_str() {
4752 "ArgumentException" => {
4753 return RusotoError::Service(GetProjectError::Argument(err.msg))
4754 }
4755 "LimitExceededException" => {
4756 return RusotoError::Service(GetProjectError::LimitExceeded(err.msg))
4757 }
4758 "NotFoundException" => {
4759 return RusotoError::Service(GetProjectError::NotFound(err.msg))
4760 }
4761 "ServiceAccountException" => {
4762 return RusotoError::Service(GetProjectError::ServiceAccount(err.msg))
4763 }
4764 "ValidationException" => return RusotoError::Validation(err.msg),
4765 _ => {}
4766 }
4767 }
4768 RusotoError::Unknown(res)
4769 }
4770}
4771impl fmt::Display for GetProjectError {
4772 #[allow(unused_variables)]
4773 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4774 match *self {
4775 GetProjectError::Argument(ref cause) => write!(f, "{}", cause),
4776 GetProjectError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4777 GetProjectError::NotFound(ref cause) => write!(f, "{}", cause),
4778 GetProjectError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4779 }
4780 }
4781}
4782impl Error for GetProjectError {}
4783#[derive(Debug, PartialEq)]
4785pub enum GetRemoteAccessSessionError {
4786 Argument(String),
4788 LimitExceeded(String),
4790 NotFound(String),
4792 ServiceAccount(String),
4794}
4795
4796impl GetRemoteAccessSessionError {
4797 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRemoteAccessSessionError> {
4798 if let Some(err) = proto::json::Error::parse(&res) {
4799 match err.typ.as_str() {
4800 "ArgumentException" => {
4801 return RusotoError::Service(GetRemoteAccessSessionError::Argument(err.msg))
4802 }
4803 "LimitExceededException" => {
4804 return RusotoError::Service(GetRemoteAccessSessionError::LimitExceeded(
4805 err.msg,
4806 ))
4807 }
4808 "NotFoundException" => {
4809 return RusotoError::Service(GetRemoteAccessSessionError::NotFound(err.msg))
4810 }
4811 "ServiceAccountException" => {
4812 return RusotoError::Service(GetRemoteAccessSessionError::ServiceAccount(
4813 err.msg,
4814 ))
4815 }
4816 "ValidationException" => return RusotoError::Validation(err.msg),
4817 _ => {}
4818 }
4819 }
4820 RusotoError::Unknown(res)
4821 }
4822}
4823impl fmt::Display for GetRemoteAccessSessionError {
4824 #[allow(unused_variables)]
4825 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4826 match *self {
4827 GetRemoteAccessSessionError::Argument(ref cause) => write!(f, "{}", cause),
4828 GetRemoteAccessSessionError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4829 GetRemoteAccessSessionError::NotFound(ref cause) => write!(f, "{}", cause),
4830 GetRemoteAccessSessionError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4831 }
4832 }
4833}
4834impl Error for GetRemoteAccessSessionError {}
4835#[derive(Debug, PartialEq)]
4837pub enum GetRunError {
4838 Argument(String),
4840 LimitExceeded(String),
4842 NotFound(String),
4844 ServiceAccount(String),
4846}
4847
4848impl GetRunError {
4849 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRunError> {
4850 if let Some(err) = proto::json::Error::parse(&res) {
4851 match err.typ.as_str() {
4852 "ArgumentException" => return RusotoError::Service(GetRunError::Argument(err.msg)),
4853 "LimitExceededException" => {
4854 return RusotoError::Service(GetRunError::LimitExceeded(err.msg))
4855 }
4856 "NotFoundException" => return RusotoError::Service(GetRunError::NotFound(err.msg)),
4857 "ServiceAccountException" => {
4858 return RusotoError::Service(GetRunError::ServiceAccount(err.msg))
4859 }
4860 "ValidationException" => return RusotoError::Validation(err.msg),
4861 _ => {}
4862 }
4863 }
4864 RusotoError::Unknown(res)
4865 }
4866}
4867impl fmt::Display for GetRunError {
4868 #[allow(unused_variables)]
4869 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4870 match *self {
4871 GetRunError::Argument(ref cause) => write!(f, "{}", cause),
4872 GetRunError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4873 GetRunError::NotFound(ref cause) => write!(f, "{}", cause),
4874 GetRunError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4875 }
4876 }
4877}
4878impl Error for GetRunError {}
4879#[derive(Debug, PartialEq)]
4881pub enum GetSuiteError {
4882 Argument(String),
4884 LimitExceeded(String),
4886 NotFound(String),
4888 ServiceAccount(String),
4890}
4891
4892impl GetSuiteError {
4893 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetSuiteError> {
4894 if let Some(err) = proto::json::Error::parse(&res) {
4895 match err.typ.as_str() {
4896 "ArgumentException" => {
4897 return RusotoError::Service(GetSuiteError::Argument(err.msg))
4898 }
4899 "LimitExceededException" => {
4900 return RusotoError::Service(GetSuiteError::LimitExceeded(err.msg))
4901 }
4902 "NotFoundException" => {
4903 return RusotoError::Service(GetSuiteError::NotFound(err.msg))
4904 }
4905 "ServiceAccountException" => {
4906 return RusotoError::Service(GetSuiteError::ServiceAccount(err.msg))
4907 }
4908 "ValidationException" => return RusotoError::Validation(err.msg),
4909 _ => {}
4910 }
4911 }
4912 RusotoError::Unknown(res)
4913 }
4914}
4915impl fmt::Display for GetSuiteError {
4916 #[allow(unused_variables)]
4917 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4918 match *self {
4919 GetSuiteError::Argument(ref cause) => write!(f, "{}", cause),
4920 GetSuiteError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4921 GetSuiteError::NotFound(ref cause) => write!(f, "{}", cause),
4922 GetSuiteError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4923 }
4924 }
4925}
4926impl Error for GetSuiteError {}
4927#[derive(Debug, PartialEq)]
4929pub enum GetTestError {
4930 Argument(String),
4932 LimitExceeded(String),
4934 NotFound(String),
4936 ServiceAccount(String),
4938}
4939
4940impl GetTestError {
4941 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTestError> {
4942 if let Some(err) = proto::json::Error::parse(&res) {
4943 match err.typ.as_str() {
4944 "ArgumentException" => {
4945 return RusotoError::Service(GetTestError::Argument(err.msg))
4946 }
4947 "LimitExceededException" => {
4948 return RusotoError::Service(GetTestError::LimitExceeded(err.msg))
4949 }
4950 "NotFoundException" => {
4951 return RusotoError::Service(GetTestError::NotFound(err.msg))
4952 }
4953 "ServiceAccountException" => {
4954 return RusotoError::Service(GetTestError::ServiceAccount(err.msg))
4955 }
4956 "ValidationException" => return RusotoError::Validation(err.msg),
4957 _ => {}
4958 }
4959 }
4960 RusotoError::Unknown(res)
4961 }
4962}
4963impl fmt::Display for GetTestError {
4964 #[allow(unused_variables)]
4965 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4966 match *self {
4967 GetTestError::Argument(ref cause) => write!(f, "{}", cause),
4968 GetTestError::LimitExceeded(ref cause) => write!(f, "{}", cause),
4969 GetTestError::NotFound(ref cause) => write!(f, "{}", cause),
4970 GetTestError::ServiceAccount(ref cause) => write!(f, "{}", cause),
4971 }
4972 }
4973}
4974impl Error for GetTestError {}
4975#[derive(Debug, PartialEq)]
4977pub enum GetTestGridProjectError {
4978 Argument(String),
4980 InternalService(String),
4982 NotFound(String),
4984}
4985
4986impl GetTestGridProjectError {
4987 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTestGridProjectError> {
4988 if let Some(err) = proto::json::Error::parse(&res) {
4989 match err.typ.as_str() {
4990 "ArgumentException" => {
4991 return RusotoError::Service(GetTestGridProjectError::Argument(err.msg))
4992 }
4993 "InternalServiceException" => {
4994 return RusotoError::Service(GetTestGridProjectError::InternalService(err.msg))
4995 }
4996 "NotFoundException" => {
4997 return RusotoError::Service(GetTestGridProjectError::NotFound(err.msg))
4998 }
4999 "ValidationException" => return RusotoError::Validation(err.msg),
5000 _ => {}
5001 }
5002 }
5003 RusotoError::Unknown(res)
5004 }
5005}
5006impl fmt::Display for GetTestGridProjectError {
5007 #[allow(unused_variables)]
5008 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5009 match *self {
5010 GetTestGridProjectError::Argument(ref cause) => write!(f, "{}", cause),
5011 GetTestGridProjectError::InternalService(ref cause) => write!(f, "{}", cause),
5012 GetTestGridProjectError::NotFound(ref cause) => write!(f, "{}", cause),
5013 }
5014 }
5015}
5016impl Error for GetTestGridProjectError {}
5017#[derive(Debug, PartialEq)]
5019pub enum GetTestGridSessionError {
5020 Argument(String),
5022 InternalService(String),
5024 NotFound(String),
5026}
5027
5028impl GetTestGridSessionError {
5029 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTestGridSessionError> {
5030 if let Some(err) = proto::json::Error::parse(&res) {
5031 match err.typ.as_str() {
5032 "ArgumentException" => {
5033 return RusotoError::Service(GetTestGridSessionError::Argument(err.msg))
5034 }
5035 "InternalServiceException" => {
5036 return RusotoError::Service(GetTestGridSessionError::InternalService(err.msg))
5037 }
5038 "NotFoundException" => {
5039 return RusotoError::Service(GetTestGridSessionError::NotFound(err.msg))
5040 }
5041 "ValidationException" => return RusotoError::Validation(err.msg),
5042 _ => {}
5043 }
5044 }
5045 RusotoError::Unknown(res)
5046 }
5047}
5048impl fmt::Display for GetTestGridSessionError {
5049 #[allow(unused_variables)]
5050 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5051 match *self {
5052 GetTestGridSessionError::Argument(ref cause) => write!(f, "{}", cause),
5053 GetTestGridSessionError::InternalService(ref cause) => write!(f, "{}", cause),
5054 GetTestGridSessionError::NotFound(ref cause) => write!(f, "{}", cause),
5055 }
5056 }
5057}
5058impl Error for GetTestGridSessionError {}
5059#[derive(Debug, PartialEq)]
5061pub enum GetUploadError {
5062 Argument(String),
5064 LimitExceeded(String),
5066 NotFound(String),
5068 ServiceAccount(String),
5070}
5071
5072impl GetUploadError {
5073 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetUploadError> {
5074 if let Some(err) = proto::json::Error::parse(&res) {
5075 match err.typ.as_str() {
5076 "ArgumentException" => {
5077 return RusotoError::Service(GetUploadError::Argument(err.msg))
5078 }
5079 "LimitExceededException" => {
5080 return RusotoError::Service(GetUploadError::LimitExceeded(err.msg))
5081 }
5082 "NotFoundException" => {
5083 return RusotoError::Service(GetUploadError::NotFound(err.msg))
5084 }
5085 "ServiceAccountException" => {
5086 return RusotoError::Service(GetUploadError::ServiceAccount(err.msg))
5087 }
5088 "ValidationException" => return RusotoError::Validation(err.msg),
5089 _ => {}
5090 }
5091 }
5092 RusotoError::Unknown(res)
5093 }
5094}
5095impl fmt::Display for GetUploadError {
5096 #[allow(unused_variables)]
5097 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5098 match *self {
5099 GetUploadError::Argument(ref cause) => write!(f, "{}", cause),
5100 GetUploadError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5101 GetUploadError::NotFound(ref cause) => write!(f, "{}", cause),
5102 GetUploadError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5103 }
5104 }
5105}
5106impl Error for GetUploadError {}
5107#[derive(Debug, PartialEq)]
5109pub enum GetVPCEConfigurationError {
5110 Argument(String),
5112 NotFound(String),
5114 ServiceAccount(String),
5116}
5117
5118impl GetVPCEConfigurationError {
5119 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetVPCEConfigurationError> {
5120 if let Some(err) = proto::json::Error::parse(&res) {
5121 match err.typ.as_str() {
5122 "ArgumentException" => {
5123 return RusotoError::Service(GetVPCEConfigurationError::Argument(err.msg))
5124 }
5125 "NotFoundException" => {
5126 return RusotoError::Service(GetVPCEConfigurationError::NotFound(err.msg))
5127 }
5128 "ServiceAccountException" => {
5129 return RusotoError::Service(GetVPCEConfigurationError::ServiceAccount(err.msg))
5130 }
5131 "ValidationException" => return RusotoError::Validation(err.msg),
5132 _ => {}
5133 }
5134 }
5135 RusotoError::Unknown(res)
5136 }
5137}
5138impl fmt::Display for GetVPCEConfigurationError {
5139 #[allow(unused_variables)]
5140 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5141 match *self {
5142 GetVPCEConfigurationError::Argument(ref cause) => write!(f, "{}", cause),
5143 GetVPCEConfigurationError::NotFound(ref cause) => write!(f, "{}", cause),
5144 GetVPCEConfigurationError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5145 }
5146 }
5147}
5148impl Error for GetVPCEConfigurationError {}
5149#[derive(Debug, PartialEq)]
5151pub enum InstallToRemoteAccessSessionError {
5152 Argument(String),
5154 LimitExceeded(String),
5156 NotFound(String),
5158 ServiceAccount(String),
5160}
5161
5162impl InstallToRemoteAccessSessionError {
5163 pub fn from_response(
5164 res: BufferedHttpResponse,
5165 ) -> RusotoError<InstallToRemoteAccessSessionError> {
5166 if let Some(err) = proto::json::Error::parse(&res) {
5167 match err.typ.as_str() {
5168 "ArgumentException" => {
5169 return RusotoError::Service(InstallToRemoteAccessSessionError::Argument(
5170 err.msg,
5171 ))
5172 }
5173 "LimitExceededException" => {
5174 return RusotoError::Service(InstallToRemoteAccessSessionError::LimitExceeded(
5175 err.msg,
5176 ))
5177 }
5178 "NotFoundException" => {
5179 return RusotoError::Service(InstallToRemoteAccessSessionError::NotFound(
5180 err.msg,
5181 ))
5182 }
5183 "ServiceAccountException" => {
5184 return RusotoError::Service(InstallToRemoteAccessSessionError::ServiceAccount(
5185 err.msg,
5186 ))
5187 }
5188 "ValidationException" => return RusotoError::Validation(err.msg),
5189 _ => {}
5190 }
5191 }
5192 RusotoError::Unknown(res)
5193 }
5194}
5195impl fmt::Display for InstallToRemoteAccessSessionError {
5196 #[allow(unused_variables)]
5197 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5198 match *self {
5199 InstallToRemoteAccessSessionError::Argument(ref cause) => write!(f, "{}", cause),
5200 InstallToRemoteAccessSessionError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5201 InstallToRemoteAccessSessionError::NotFound(ref cause) => write!(f, "{}", cause),
5202 InstallToRemoteAccessSessionError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5203 }
5204 }
5205}
5206impl Error for InstallToRemoteAccessSessionError {}
5207#[derive(Debug, PartialEq)]
5209pub enum ListArtifactsError {
5210 Argument(String),
5212 LimitExceeded(String),
5214 NotFound(String),
5216 ServiceAccount(String),
5218}
5219
5220impl ListArtifactsError {
5221 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListArtifactsError> {
5222 if let Some(err) = proto::json::Error::parse(&res) {
5223 match err.typ.as_str() {
5224 "ArgumentException" => {
5225 return RusotoError::Service(ListArtifactsError::Argument(err.msg))
5226 }
5227 "LimitExceededException" => {
5228 return RusotoError::Service(ListArtifactsError::LimitExceeded(err.msg))
5229 }
5230 "NotFoundException" => {
5231 return RusotoError::Service(ListArtifactsError::NotFound(err.msg))
5232 }
5233 "ServiceAccountException" => {
5234 return RusotoError::Service(ListArtifactsError::ServiceAccount(err.msg))
5235 }
5236 "ValidationException" => return RusotoError::Validation(err.msg),
5237 _ => {}
5238 }
5239 }
5240 RusotoError::Unknown(res)
5241 }
5242}
5243impl fmt::Display for ListArtifactsError {
5244 #[allow(unused_variables)]
5245 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5246 match *self {
5247 ListArtifactsError::Argument(ref cause) => write!(f, "{}", cause),
5248 ListArtifactsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5249 ListArtifactsError::NotFound(ref cause) => write!(f, "{}", cause),
5250 ListArtifactsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5251 }
5252 }
5253}
5254impl Error for ListArtifactsError {}
5255#[derive(Debug, PartialEq)]
5257pub enum ListDeviceInstancesError {
5258 Argument(String),
5260 LimitExceeded(String),
5262 NotFound(String),
5264 ServiceAccount(String),
5266}
5267
5268impl ListDeviceInstancesError {
5269 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDeviceInstancesError> {
5270 if let Some(err) = proto::json::Error::parse(&res) {
5271 match err.typ.as_str() {
5272 "ArgumentException" => {
5273 return RusotoError::Service(ListDeviceInstancesError::Argument(err.msg))
5274 }
5275 "LimitExceededException" => {
5276 return RusotoError::Service(ListDeviceInstancesError::LimitExceeded(err.msg))
5277 }
5278 "NotFoundException" => {
5279 return RusotoError::Service(ListDeviceInstancesError::NotFound(err.msg))
5280 }
5281 "ServiceAccountException" => {
5282 return RusotoError::Service(ListDeviceInstancesError::ServiceAccount(err.msg))
5283 }
5284 "ValidationException" => return RusotoError::Validation(err.msg),
5285 _ => {}
5286 }
5287 }
5288 RusotoError::Unknown(res)
5289 }
5290}
5291impl fmt::Display for ListDeviceInstancesError {
5292 #[allow(unused_variables)]
5293 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5294 match *self {
5295 ListDeviceInstancesError::Argument(ref cause) => write!(f, "{}", cause),
5296 ListDeviceInstancesError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5297 ListDeviceInstancesError::NotFound(ref cause) => write!(f, "{}", cause),
5298 ListDeviceInstancesError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5299 }
5300 }
5301}
5302impl Error for ListDeviceInstancesError {}
5303#[derive(Debug, PartialEq)]
5305pub enum ListDevicePoolsError {
5306 Argument(String),
5308 LimitExceeded(String),
5310 NotFound(String),
5312 ServiceAccount(String),
5314}
5315
5316impl ListDevicePoolsError {
5317 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDevicePoolsError> {
5318 if let Some(err) = proto::json::Error::parse(&res) {
5319 match err.typ.as_str() {
5320 "ArgumentException" => {
5321 return RusotoError::Service(ListDevicePoolsError::Argument(err.msg))
5322 }
5323 "LimitExceededException" => {
5324 return RusotoError::Service(ListDevicePoolsError::LimitExceeded(err.msg))
5325 }
5326 "NotFoundException" => {
5327 return RusotoError::Service(ListDevicePoolsError::NotFound(err.msg))
5328 }
5329 "ServiceAccountException" => {
5330 return RusotoError::Service(ListDevicePoolsError::ServiceAccount(err.msg))
5331 }
5332 "ValidationException" => return RusotoError::Validation(err.msg),
5333 _ => {}
5334 }
5335 }
5336 RusotoError::Unknown(res)
5337 }
5338}
5339impl fmt::Display for ListDevicePoolsError {
5340 #[allow(unused_variables)]
5341 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5342 match *self {
5343 ListDevicePoolsError::Argument(ref cause) => write!(f, "{}", cause),
5344 ListDevicePoolsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5345 ListDevicePoolsError::NotFound(ref cause) => write!(f, "{}", cause),
5346 ListDevicePoolsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5347 }
5348 }
5349}
5350impl Error for ListDevicePoolsError {}
5351#[derive(Debug, PartialEq)]
5353pub enum ListDevicesError {
5354 Argument(String),
5356 LimitExceeded(String),
5358 NotFound(String),
5360 ServiceAccount(String),
5362}
5363
5364impl ListDevicesError {
5365 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDevicesError> {
5366 if let Some(err) = proto::json::Error::parse(&res) {
5367 match err.typ.as_str() {
5368 "ArgumentException" => {
5369 return RusotoError::Service(ListDevicesError::Argument(err.msg))
5370 }
5371 "LimitExceededException" => {
5372 return RusotoError::Service(ListDevicesError::LimitExceeded(err.msg))
5373 }
5374 "NotFoundException" => {
5375 return RusotoError::Service(ListDevicesError::NotFound(err.msg))
5376 }
5377 "ServiceAccountException" => {
5378 return RusotoError::Service(ListDevicesError::ServiceAccount(err.msg))
5379 }
5380 "ValidationException" => return RusotoError::Validation(err.msg),
5381 _ => {}
5382 }
5383 }
5384 RusotoError::Unknown(res)
5385 }
5386}
5387impl fmt::Display for ListDevicesError {
5388 #[allow(unused_variables)]
5389 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5390 match *self {
5391 ListDevicesError::Argument(ref cause) => write!(f, "{}", cause),
5392 ListDevicesError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5393 ListDevicesError::NotFound(ref cause) => write!(f, "{}", cause),
5394 ListDevicesError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5395 }
5396 }
5397}
5398impl Error for ListDevicesError {}
5399#[derive(Debug, PartialEq)]
5401pub enum ListInstanceProfilesError {
5402 Argument(String),
5404 LimitExceeded(String),
5406 NotFound(String),
5408 ServiceAccount(String),
5410}
5411
5412impl ListInstanceProfilesError {
5413 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListInstanceProfilesError> {
5414 if let Some(err) = proto::json::Error::parse(&res) {
5415 match err.typ.as_str() {
5416 "ArgumentException" => {
5417 return RusotoError::Service(ListInstanceProfilesError::Argument(err.msg))
5418 }
5419 "LimitExceededException" => {
5420 return RusotoError::Service(ListInstanceProfilesError::LimitExceeded(err.msg))
5421 }
5422 "NotFoundException" => {
5423 return RusotoError::Service(ListInstanceProfilesError::NotFound(err.msg))
5424 }
5425 "ServiceAccountException" => {
5426 return RusotoError::Service(ListInstanceProfilesError::ServiceAccount(err.msg))
5427 }
5428 "ValidationException" => return RusotoError::Validation(err.msg),
5429 _ => {}
5430 }
5431 }
5432 RusotoError::Unknown(res)
5433 }
5434}
5435impl fmt::Display for ListInstanceProfilesError {
5436 #[allow(unused_variables)]
5437 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5438 match *self {
5439 ListInstanceProfilesError::Argument(ref cause) => write!(f, "{}", cause),
5440 ListInstanceProfilesError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5441 ListInstanceProfilesError::NotFound(ref cause) => write!(f, "{}", cause),
5442 ListInstanceProfilesError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5443 }
5444 }
5445}
5446impl Error for ListInstanceProfilesError {}
5447#[derive(Debug, PartialEq)]
5449pub enum ListJobsError {
5450 Argument(String),
5452 LimitExceeded(String),
5454 NotFound(String),
5456 ServiceAccount(String),
5458}
5459
5460impl ListJobsError {
5461 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListJobsError> {
5462 if let Some(err) = proto::json::Error::parse(&res) {
5463 match err.typ.as_str() {
5464 "ArgumentException" => {
5465 return RusotoError::Service(ListJobsError::Argument(err.msg))
5466 }
5467 "LimitExceededException" => {
5468 return RusotoError::Service(ListJobsError::LimitExceeded(err.msg))
5469 }
5470 "NotFoundException" => {
5471 return RusotoError::Service(ListJobsError::NotFound(err.msg))
5472 }
5473 "ServiceAccountException" => {
5474 return RusotoError::Service(ListJobsError::ServiceAccount(err.msg))
5475 }
5476 "ValidationException" => return RusotoError::Validation(err.msg),
5477 _ => {}
5478 }
5479 }
5480 RusotoError::Unknown(res)
5481 }
5482}
5483impl fmt::Display for ListJobsError {
5484 #[allow(unused_variables)]
5485 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5486 match *self {
5487 ListJobsError::Argument(ref cause) => write!(f, "{}", cause),
5488 ListJobsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5489 ListJobsError::NotFound(ref cause) => write!(f, "{}", cause),
5490 ListJobsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5491 }
5492 }
5493}
5494impl Error for ListJobsError {}
5495#[derive(Debug, PartialEq)]
5497pub enum ListNetworkProfilesError {
5498 Argument(String),
5500 LimitExceeded(String),
5502 NotFound(String),
5504 ServiceAccount(String),
5506}
5507
5508impl ListNetworkProfilesError {
5509 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListNetworkProfilesError> {
5510 if let Some(err) = proto::json::Error::parse(&res) {
5511 match err.typ.as_str() {
5512 "ArgumentException" => {
5513 return RusotoError::Service(ListNetworkProfilesError::Argument(err.msg))
5514 }
5515 "LimitExceededException" => {
5516 return RusotoError::Service(ListNetworkProfilesError::LimitExceeded(err.msg))
5517 }
5518 "NotFoundException" => {
5519 return RusotoError::Service(ListNetworkProfilesError::NotFound(err.msg))
5520 }
5521 "ServiceAccountException" => {
5522 return RusotoError::Service(ListNetworkProfilesError::ServiceAccount(err.msg))
5523 }
5524 "ValidationException" => return RusotoError::Validation(err.msg),
5525 _ => {}
5526 }
5527 }
5528 RusotoError::Unknown(res)
5529 }
5530}
5531impl fmt::Display for ListNetworkProfilesError {
5532 #[allow(unused_variables)]
5533 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5534 match *self {
5535 ListNetworkProfilesError::Argument(ref cause) => write!(f, "{}", cause),
5536 ListNetworkProfilesError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5537 ListNetworkProfilesError::NotFound(ref cause) => write!(f, "{}", cause),
5538 ListNetworkProfilesError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5539 }
5540 }
5541}
5542impl Error for ListNetworkProfilesError {}
5543#[derive(Debug, PartialEq)]
5545pub enum ListOfferingPromotionsError {
5546 Argument(String),
5548 LimitExceeded(String),
5550 NotEligible(String),
5552 NotFound(String),
5554 ServiceAccount(String),
5556}
5557
5558impl ListOfferingPromotionsError {
5559 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOfferingPromotionsError> {
5560 if let Some(err) = proto::json::Error::parse(&res) {
5561 match err.typ.as_str() {
5562 "ArgumentException" => {
5563 return RusotoError::Service(ListOfferingPromotionsError::Argument(err.msg))
5564 }
5565 "LimitExceededException" => {
5566 return RusotoError::Service(ListOfferingPromotionsError::LimitExceeded(
5567 err.msg,
5568 ))
5569 }
5570 "NotEligibleException" => {
5571 return RusotoError::Service(ListOfferingPromotionsError::NotEligible(err.msg))
5572 }
5573 "NotFoundException" => {
5574 return RusotoError::Service(ListOfferingPromotionsError::NotFound(err.msg))
5575 }
5576 "ServiceAccountException" => {
5577 return RusotoError::Service(ListOfferingPromotionsError::ServiceAccount(
5578 err.msg,
5579 ))
5580 }
5581 "ValidationException" => return RusotoError::Validation(err.msg),
5582 _ => {}
5583 }
5584 }
5585 RusotoError::Unknown(res)
5586 }
5587}
5588impl fmt::Display for ListOfferingPromotionsError {
5589 #[allow(unused_variables)]
5590 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5591 match *self {
5592 ListOfferingPromotionsError::Argument(ref cause) => write!(f, "{}", cause),
5593 ListOfferingPromotionsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5594 ListOfferingPromotionsError::NotEligible(ref cause) => write!(f, "{}", cause),
5595 ListOfferingPromotionsError::NotFound(ref cause) => write!(f, "{}", cause),
5596 ListOfferingPromotionsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5597 }
5598 }
5599}
5600impl Error for ListOfferingPromotionsError {}
5601#[derive(Debug, PartialEq)]
5603pub enum ListOfferingTransactionsError {
5604 Argument(String),
5606 LimitExceeded(String),
5608 NotEligible(String),
5610 NotFound(String),
5612 ServiceAccount(String),
5614}
5615
5616impl ListOfferingTransactionsError {
5617 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOfferingTransactionsError> {
5618 if let Some(err) = proto::json::Error::parse(&res) {
5619 match err.typ.as_str() {
5620 "ArgumentException" => {
5621 return RusotoError::Service(ListOfferingTransactionsError::Argument(err.msg))
5622 }
5623 "LimitExceededException" => {
5624 return RusotoError::Service(ListOfferingTransactionsError::LimitExceeded(
5625 err.msg,
5626 ))
5627 }
5628 "NotEligibleException" => {
5629 return RusotoError::Service(ListOfferingTransactionsError::NotEligible(
5630 err.msg,
5631 ))
5632 }
5633 "NotFoundException" => {
5634 return RusotoError::Service(ListOfferingTransactionsError::NotFound(err.msg))
5635 }
5636 "ServiceAccountException" => {
5637 return RusotoError::Service(ListOfferingTransactionsError::ServiceAccount(
5638 err.msg,
5639 ))
5640 }
5641 "ValidationException" => return RusotoError::Validation(err.msg),
5642 _ => {}
5643 }
5644 }
5645 RusotoError::Unknown(res)
5646 }
5647}
5648impl fmt::Display for ListOfferingTransactionsError {
5649 #[allow(unused_variables)]
5650 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5651 match *self {
5652 ListOfferingTransactionsError::Argument(ref cause) => write!(f, "{}", cause),
5653 ListOfferingTransactionsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5654 ListOfferingTransactionsError::NotEligible(ref cause) => write!(f, "{}", cause),
5655 ListOfferingTransactionsError::NotFound(ref cause) => write!(f, "{}", cause),
5656 ListOfferingTransactionsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5657 }
5658 }
5659}
5660impl Error for ListOfferingTransactionsError {}
5661#[derive(Debug, PartialEq)]
5663pub enum ListOfferingsError {
5664 Argument(String),
5666 LimitExceeded(String),
5668 NotEligible(String),
5670 NotFound(String),
5672 ServiceAccount(String),
5674}
5675
5676impl ListOfferingsError {
5677 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOfferingsError> {
5678 if let Some(err) = proto::json::Error::parse(&res) {
5679 match err.typ.as_str() {
5680 "ArgumentException" => {
5681 return RusotoError::Service(ListOfferingsError::Argument(err.msg))
5682 }
5683 "LimitExceededException" => {
5684 return RusotoError::Service(ListOfferingsError::LimitExceeded(err.msg))
5685 }
5686 "NotEligibleException" => {
5687 return RusotoError::Service(ListOfferingsError::NotEligible(err.msg))
5688 }
5689 "NotFoundException" => {
5690 return RusotoError::Service(ListOfferingsError::NotFound(err.msg))
5691 }
5692 "ServiceAccountException" => {
5693 return RusotoError::Service(ListOfferingsError::ServiceAccount(err.msg))
5694 }
5695 "ValidationException" => return RusotoError::Validation(err.msg),
5696 _ => {}
5697 }
5698 }
5699 RusotoError::Unknown(res)
5700 }
5701}
5702impl fmt::Display for ListOfferingsError {
5703 #[allow(unused_variables)]
5704 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5705 match *self {
5706 ListOfferingsError::Argument(ref cause) => write!(f, "{}", cause),
5707 ListOfferingsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5708 ListOfferingsError::NotEligible(ref cause) => write!(f, "{}", cause),
5709 ListOfferingsError::NotFound(ref cause) => write!(f, "{}", cause),
5710 ListOfferingsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5711 }
5712 }
5713}
5714impl Error for ListOfferingsError {}
5715#[derive(Debug, PartialEq)]
5717pub enum ListProjectsError {
5718 Argument(String),
5720 LimitExceeded(String),
5722 NotFound(String),
5724 ServiceAccount(String),
5726}
5727
5728impl ListProjectsError {
5729 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListProjectsError> {
5730 if let Some(err) = proto::json::Error::parse(&res) {
5731 match err.typ.as_str() {
5732 "ArgumentException" => {
5733 return RusotoError::Service(ListProjectsError::Argument(err.msg))
5734 }
5735 "LimitExceededException" => {
5736 return RusotoError::Service(ListProjectsError::LimitExceeded(err.msg))
5737 }
5738 "NotFoundException" => {
5739 return RusotoError::Service(ListProjectsError::NotFound(err.msg))
5740 }
5741 "ServiceAccountException" => {
5742 return RusotoError::Service(ListProjectsError::ServiceAccount(err.msg))
5743 }
5744 "ValidationException" => return RusotoError::Validation(err.msg),
5745 _ => {}
5746 }
5747 }
5748 RusotoError::Unknown(res)
5749 }
5750}
5751impl fmt::Display for ListProjectsError {
5752 #[allow(unused_variables)]
5753 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5754 match *self {
5755 ListProjectsError::Argument(ref cause) => write!(f, "{}", cause),
5756 ListProjectsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5757 ListProjectsError::NotFound(ref cause) => write!(f, "{}", cause),
5758 ListProjectsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5759 }
5760 }
5761}
5762impl Error for ListProjectsError {}
5763#[derive(Debug, PartialEq)]
5765pub enum ListRemoteAccessSessionsError {
5766 Argument(String),
5768 LimitExceeded(String),
5770 NotFound(String),
5772 ServiceAccount(String),
5774}
5775
5776impl ListRemoteAccessSessionsError {
5777 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListRemoteAccessSessionsError> {
5778 if let Some(err) = proto::json::Error::parse(&res) {
5779 match err.typ.as_str() {
5780 "ArgumentException" => {
5781 return RusotoError::Service(ListRemoteAccessSessionsError::Argument(err.msg))
5782 }
5783 "LimitExceededException" => {
5784 return RusotoError::Service(ListRemoteAccessSessionsError::LimitExceeded(
5785 err.msg,
5786 ))
5787 }
5788 "NotFoundException" => {
5789 return RusotoError::Service(ListRemoteAccessSessionsError::NotFound(err.msg))
5790 }
5791 "ServiceAccountException" => {
5792 return RusotoError::Service(ListRemoteAccessSessionsError::ServiceAccount(
5793 err.msg,
5794 ))
5795 }
5796 "ValidationException" => return RusotoError::Validation(err.msg),
5797 _ => {}
5798 }
5799 }
5800 RusotoError::Unknown(res)
5801 }
5802}
5803impl fmt::Display for ListRemoteAccessSessionsError {
5804 #[allow(unused_variables)]
5805 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5806 match *self {
5807 ListRemoteAccessSessionsError::Argument(ref cause) => write!(f, "{}", cause),
5808 ListRemoteAccessSessionsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5809 ListRemoteAccessSessionsError::NotFound(ref cause) => write!(f, "{}", cause),
5810 ListRemoteAccessSessionsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5811 }
5812 }
5813}
5814impl Error for ListRemoteAccessSessionsError {}
5815#[derive(Debug, PartialEq)]
5817pub enum ListRunsError {
5818 Argument(String),
5820 LimitExceeded(String),
5822 NotFound(String),
5824 ServiceAccount(String),
5826}
5827
5828impl ListRunsError {
5829 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListRunsError> {
5830 if let Some(err) = proto::json::Error::parse(&res) {
5831 match err.typ.as_str() {
5832 "ArgumentException" => {
5833 return RusotoError::Service(ListRunsError::Argument(err.msg))
5834 }
5835 "LimitExceededException" => {
5836 return RusotoError::Service(ListRunsError::LimitExceeded(err.msg))
5837 }
5838 "NotFoundException" => {
5839 return RusotoError::Service(ListRunsError::NotFound(err.msg))
5840 }
5841 "ServiceAccountException" => {
5842 return RusotoError::Service(ListRunsError::ServiceAccount(err.msg))
5843 }
5844 "ValidationException" => return RusotoError::Validation(err.msg),
5845 _ => {}
5846 }
5847 }
5848 RusotoError::Unknown(res)
5849 }
5850}
5851impl fmt::Display for ListRunsError {
5852 #[allow(unused_variables)]
5853 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5854 match *self {
5855 ListRunsError::Argument(ref cause) => write!(f, "{}", cause),
5856 ListRunsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5857 ListRunsError::NotFound(ref cause) => write!(f, "{}", cause),
5858 ListRunsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5859 }
5860 }
5861}
5862impl Error for ListRunsError {}
5863#[derive(Debug, PartialEq)]
5865pub enum ListSamplesError {
5866 Argument(String),
5868 LimitExceeded(String),
5870 NotFound(String),
5872 ServiceAccount(String),
5874}
5875
5876impl ListSamplesError {
5877 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSamplesError> {
5878 if let Some(err) = proto::json::Error::parse(&res) {
5879 match err.typ.as_str() {
5880 "ArgumentException" => {
5881 return RusotoError::Service(ListSamplesError::Argument(err.msg))
5882 }
5883 "LimitExceededException" => {
5884 return RusotoError::Service(ListSamplesError::LimitExceeded(err.msg))
5885 }
5886 "NotFoundException" => {
5887 return RusotoError::Service(ListSamplesError::NotFound(err.msg))
5888 }
5889 "ServiceAccountException" => {
5890 return RusotoError::Service(ListSamplesError::ServiceAccount(err.msg))
5891 }
5892 "ValidationException" => return RusotoError::Validation(err.msg),
5893 _ => {}
5894 }
5895 }
5896 RusotoError::Unknown(res)
5897 }
5898}
5899impl fmt::Display for ListSamplesError {
5900 #[allow(unused_variables)]
5901 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5902 match *self {
5903 ListSamplesError::Argument(ref cause) => write!(f, "{}", cause),
5904 ListSamplesError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5905 ListSamplesError::NotFound(ref cause) => write!(f, "{}", cause),
5906 ListSamplesError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5907 }
5908 }
5909}
5910impl Error for ListSamplesError {}
5911#[derive(Debug, PartialEq)]
5913pub enum ListSuitesError {
5914 Argument(String),
5916 LimitExceeded(String),
5918 NotFound(String),
5920 ServiceAccount(String),
5922}
5923
5924impl ListSuitesError {
5925 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSuitesError> {
5926 if let Some(err) = proto::json::Error::parse(&res) {
5927 match err.typ.as_str() {
5928 "ArgumentException" => {
5929 return RusotoError::Service(ListSuitesError::Argument(err.msg))
5930 }
5931 "LimitExceededException" => {
5932 return RusotoError::Service(ListSuitesError::LimitExceeded(err.msg))
5933 }
5934 "NotFoundException" => {
5935 return RusotoError::Service(ListSuitesError::NotFound(err.msg))
5936 }
5937 "ServiceAccountException" => {
5938 return RusotoError::Service(ListSuitesError::ServiceAccount(err.msg))
5939 }
5940 "ValidationException" => return RusotoError::Validation(err.msg),
5941 _ => {}
5942 }
5943 }
5944 RusotoError::Unknown(res)
5945 }
5946}
5947impl fmt::Display for ListSuitesError {
5948 #[allow(unused_variables)]
5949 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5950 match *self {
5951 ListSuitesError::Argument(ref cause) => write!(f, "{}", cause),
5952 ListSuitesError::LimitExceeded(ref cause) => write!(f, "{}", cause),
5953 ListSuitesError::NotFound(ref cause) => write!(f, "{}", cause),
5954 ListSuitesError::ServiceAccount(ref cause) => write!(f, "{}", cause),
5955 }
5956 }
5957}
5958impl Error for ListSuitesError {}
5959#[derive(Debug, PartialEq)]
5961pub enum ListTagsForResourceError {
5962 Argument(String),
5964 NotFound(String),
5966 TagOperation(String),
5968}
5969
5970impl ListTagsForResourceError {
5971 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForResourceError> {
5972 if let Some(err) = proto::json::Error::parse(&res) {
5973 match err.typ.as_str() {
5974 "ArgumentException" => {
5975 return RusotoError::Service(ListTagsForResourceError::Argument(err.msg))
5976 }
5977 "NotFoundException" => {
5978 return RusotoError::Service(ListTagsForResourceError::NotFound(err.msg))
5979 }
5980 "TagOperationException" => {
5981 return RusotoError::Service(ListTagsForResourceError::TagOperation(err.msg))
5982 }
5983 "ValidationException" => return RusotoError::Validation(err.msg),
5984 _ => {}
5985 }
5986 }
5987 RusotoError::Unknown(res)
5988 }
5989}
5990impl fmt::Display for ListTagsForResourceError {
5991 #[allow(unused_variables)]
5992 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5993 match *self {
5994 ListTagsForResourceError::Argument(ref cause) => write!(f, "{}", cause),
5995 ListTagsForResourceError::NotFound(ref cause) => write!(f, "{}", cause),
5996 ListTagsForResourceError::TagOperation(ref cause) => write!(f, "{}", cause),
5997 }
5998 }
5999}
6000impl Error for ListTagsForResourceError {}
6001#[derive(Debug, PartialEq)]
6003pub enum ListTestGridProjectsError {
6004 Argument(String),
6006 InternalService(String),
6008}
6009
6010impl ListTestGridProjectsError {
6011 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTestGridProjectsError> {
6012 if let Some(err) = proto::json::Error::parse(&res) {
6013 match err.typ.as_str() {
6014 "ArgumentException" => {
6015 return RusotoError::Service(ListTestGridProjectsError::Argument(err.msg))
6016 }
6017 "InternalServiceException" => {
6018 return RusotoError::Service(ListTestGridProjectsError::InternalService(
6019 err.msg,
6020 ))
6021 }
6022 "ValidationException" => return RusotoError::Validation(err.msg),
6023 _ => {}
6024 }
6025 }
6026 RusotoError::Unknown(res)
6027 }
6028}
6029impl fmt::Display for ListTestGridProjectsError {
6030 #[allow(unused_variables)]
6031 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6032 match *self {
6033 ListTestGridProjectsError::Argument(ref cause) => write!(f, "{}", cause),
6034 ListTestGridProjectsError::InternalService(ref cause) => write!(f, "{}", cause),
6035 }
6036 }
6037}
6038impl Error for ListTestGridProjectsError {}
6039#[derive(Debug, PartialEq)]
6041pub enum ListTestGridSessionActionsError {
6042 Argument(String),
6044 InternalService(String),
6046 NotFound(String),
6048}
6049
6050impl ListTestGridSessionActionsError {
6051 pub fn from_response(
6052 res: BufferedHttpResponse,
6053 ) -> RusotoError<ListTestGridSessionActionsError> {
6054 if let Some(err) = proto::json::Error::parse(&res) {
6055 match err.typ.as_str() {
6056 "ArgumentException" => {
6057 return RusotoError::Service(ListTestGridSessionActionsError::Argument(err.msg))
6058 }
6059 "InternalServiceException" => {
6060 return RusotoError::Service(ListTestGridSessionActionsError::InternalService(
6061 err.msg,
6062 ))
6063 }
6064 "NotFoundException" => {
6065 return RusotoError::Service(ListTestGridSessionActionsError::NotFound(err.msg))
6066 }
6067 "ValidationException" => return RusotoError::Validation(err.msg),
6068 _ => {}
6069 }
6070 }
6071 RusotoError::Unknown(res)
6072 }
6073}
6074impl fmt::Display for ListTestGridSessionActionsError {
6075 #[allow(unused_variables)]
6076 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6077 match *self {
6078 ListTestGridSessionActionsError::Argument(ref cause) => write!(f, "{}", cause),
6079 ListTestGridSessionActionsError::InternalService(ref cause) => write!(f, "{}", cause),
6080 ListTestGridSessionActionsError::NotFound(ref cause) => write!(f, "{}", cause),
6081 }
6082 }
6083}
6084impl Error for ListTestGridSessionActionsError {}
6085#[derive(Debug, PartialEq)]
6087pub enum ListTestGridSessionArtifactsError {
6088 Argument(String),
6090 InternalService(String),
6092 NotFound(String),
6094}
6095
6096impl ListTestGridSessionArtifactsError {
6097 pub fn from_response(
6098 res: BufferedHttpResponse,
6099 ) -> RusotoError<ListTestGridSessionArtifactsError> {
6100 if let Some(err) = proto::json::Error::parse(&res) {
6101 match err.typ.as_str() {
6102 "ArgumentException" => {
6103 return RusotoError::Service(ListTestGridSessionArtifactsError::Argument(
6104 err.msg,
6105 ))
6106 }
6107 "InternalServiceException" => {
6108 return RusotoError::Service(
6109 ListTestGridSessionArtifactsError::InternalService(err.msg),
6110 )
6111 }
6112 "NotFoundException" => {
6113 return RusotoError::Service(ListTestGridSessionArtifactsError::NotFound(
6114 err.msg,
6115 ))
6116 }
6117 "ValidationException" => return RusotoError::Validation(err.msg),
6118 _ => {}
6119 }
6120 }
6121 RusotoError::Unknown(res)
6122 }
6123}
6124impl fmt::Display for ListTestGridSessionArtifactsError {
6125 #[allow(unused_variables)]
6126 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6127 match *self {
6128 ListTestGridSessionArtifactsError::Argument(ref cause) => write!(f, "{}", cause),
6129 ListTestGridSessionArtifactsError::InternalService(ref cause) => write!(f, "{}", cause),
6130 ListTestGridSessionArtifactsError::NotFound(ref cause) => write!(f, "{}", cause),
6131 }
6132 }
6133}
6134impl Error for ListTestGridSessionArtifactsError {}
6135#[derive(Debug, PartialEq)]
6137pub enum ListTestGridSessionsError {
6138 Argument(String),
6140 InternalService(String),
6142 NotFound(String),
6144}
6145
6146impl ListTestGridSessionsError {
6147 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTestGridSessionsError> {
6148 if let Some(err) = proto::json::Error::parse(&res) {
6149 match err.typ.as_str() {
6150 "ArgumentException" => {
6151 return RusotoError::Service(ListTestGridSessionsError::Argument(err.msg))
6152 }
6153 "InternalServiceException" => {
6154 return RusotoError::Service(ListTestGridSessionsError::InternalService(
6155 err.msg,
6156 ))
6157 }
6158 "NotFoundException" => {
6159 return RusotoError::Service(ListTestGridSessionsError::NotFound(err.msg))
6160 }
6161 "ValidationException" => return RusotoError::Validation(err.msg),
6162 _ => {}
6163 }
6164 }
6165 RusotoError::Unknown(res)
6166 }
6167}
6168impl fmt::Display for ListTestGridSessionsError {
6169 #[allow(unused_variables)]
6170 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6171 match *self {
6172 ListTestGridSessionsError::Argument(ref cause) => write!(f, "{}", cause),
6173 ListTestGridSessionsError::InternalService(ref cause) => write!(f, "{}", cause),
6174 ListTestGridSessionsError::NotFound(ref cause) => write!(f, "{}", cause),
6175 }
6176 }
6177}
6178impl Error for ListTestGridSessionsError {}
6179#[derive(Debug, PartialEq)]
6181pub enum ListTestsError {
6182 Argument(String),
6184 LimitExceeded(String),
6186 NotFound(String),
6188 ServiceAccount(String),
6190}
6191
6192impl ListTestsError {
6193 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTestsError> {
6194 if let Some(err) = proto::json::Error::parse(&res) {
6195 match err.typ.as_str() {
6196 "ArgumentException" => {
6197 return RusotoError::Service(ListTestsError::Argument(err.msg))
6198 }
6199 "LimitExceededException" => {
6200 return RusotoError::Service(ListTestsError::LimitExceeded(err.msg))
6201 }
6202 "NotFoundException" => {
6203 return RusotoError::Service(ListTestsError::NotFound(err.msg))
6204 }
6205 "ServiceAccountException" => {
6206 return RusotoError::Service(ListTestsError::ServiceAccount(err.msg))
6207 }
6208 "ValidationException" => return RusotoError::Validation(err.msg),
6209 _ => {}
6210 }
6211 }
6212 RusotoError::Unknown(res)
6213 }
6214}
6215impl fmt::Display for ListTestsError {
6216 #[allow(unused_variables)]
6217 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6218 match *self {
6219 ListTestsError::Argument(ref cause) => write!(f, "{}", cause),
6220 ListTestsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6221 ListTestsError::NotFound(ref cause) => write!(f, "{}", cause),
6222 ListTestsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6223 }
6224 }
6225}
6226impl Error for ListTestsError {}
6227#[derive(Debug, PartialEq)]
6229pub enum ListUniqueProblemsError {
6230 Argument(String),
6232 LimitExceeded(String),
6234 NotFound(String),
6236 ServiceAccount(String),
6238}
6239
6240impl ListUniqueProblemsError {
6241 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListUniqueProblemsError> {
6242 if let Some(err) = proto::json::Error::parse(&res) {
6243 match err.typ.as_str() {
6244 "ArgumentException" => {
6245 return RusotoError::Service(ListUniqueProblemsError::Argument(err.msg))
6246 }
6247 "LimitExceededException" => {
6248 return RusotoError::Service(ListUniqueProblemsError::LimitExceeded(err.msg))
6249 }
6250 "NotFoundException" => {
6251 return RusotoError::Service(ListUniqueProblemsError::NotFound(err.msg))
6252 }
6253 "ServiceAccountException" => {
6254 return RusotoError::Service(ListUniqueProblemsError::ServiceAccount(err.msg))
6255 }
6256 "ValidationException" => return RusotoError::Validation(err.msg),
6257 _ => {}
6258 }
6259 }
6260 RusotoError::Unknown(res)
6261 }
6262}
6263impl fmt::Display for ListUniqueProblemsError {
6264 #[allow(unused_variables)]
6265 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6266 match *self {
6267 ListUniqueProblemsError::Argument(ref cause) => write!(f, "{}", cause),
6268 ListUniqueProblemsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6269 ListUniqueProblemsError::NotFound(ref cause) => write!(f, "{}", cause),
6270 ListUniqueProblemsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6271 }
6272 }
6273}
6274impl Error for ListUniqueProblemsError {}
6275#[derive(Debug, PartialEq)]
6277pub enum ListUploadsError {
6278 Argument(String),
6280 LimitExceeded(String),
6282 NotFound(String),
6284 ServiceAccount(String),
6286}
6287
6288impl ListUploadsError {
6289 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListUploadsError> {
6290 if let Some(err) = proto::json::Error::parse(&res) {
6291 match err.typ.as_str() {
6292 "ArgumentException" => {
6293 return RusotoError::Service(ListUploadsError::Argument(err.msg))
6294 }
6295 "LimitExceededException" => {
6296 return RusotoError::Service(ListUploadsError::LimitExceeded(err.msg))
6297 }
6298 "NotFoundException" => {
6299 return RusotoError::Service(ListUploadsError::NotFound(err.msg))
6300 }
6301 "ServiceAccountException" => {
6302 return RusotoError::Service(ListUploadsError::ServiceAccount(err.msg))
6303 }
6304 "ValidationException" => return RusotoError::Validation(err.msg),
6305 _ => {}
6306 }
6307 }
6308 RusotoError::Unknown(res)
6309 }
6310}
6311impl fmt::Display for ListUploadsError {
6312 #[allow(unused_variables)]
6313 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6314 match *self {
6315 ListUploadsError::Argument(ref cause) => write!(f, "{}", cause),
6316 ListUploadsError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6317 ListUploadsError::NotFound(ref cause) => write!(f, "{}", cause),
6318 ListUploadsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6319 }
6320 }
6321}
6322impl Error for ListUploadsError {}
6323#[derive(Debug, PartialEq)]
6325pub enum ListVPCEConfigurationsError {
6326 Argument(String),
6328 ServiceAccount(String),
6330}
6331
6332impl ListVPCEConfigurationsError {
6333 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListVPCEConfigurationsError> {
6334 if let Some(err) = proto::json::Error::parse(&res) {
6335 match err.typ.as_str() {
6336 "ArgumentException" => {
6337 return RusotoError::Service(ListVPCEConfigurationsError::Argument(err.msg))
6338 }
6339 "ServiceAccountException" => {
6340 return RusotoError::Service(ListVPCEConfigurationsError::ServiceAccount(
6341 err.msg,
6342 ))
6343 }
6344 "ValidationException" => return RusotoError::Validation(err.msg),
6345 _ => {}
6346 }
6347 }
6348 RusotoError::Unknown(res)
6349 }
6350}
6351impl fmt::Display for ListVPCEConfigurationsError {
6352 #[allow(unused_variables)]
6353 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6354 match *self {
6355 ListVPCEConfigurationsError::Argument(ref cause) => write!(f, "{}", cause),
6356 ListVPCEConfigurationsError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6357 }
6358 }
6359}
6360impl Error for ListVPCEConfigurationsError {}
6361#[derive(Debug, PartialEq)]
6363pub enum PurchaseOfferingError {
6364 Argument(String),
6366 LimitExceeded(String),
6368 NotEligible(String),
6370 NotFound(String),
6372 ServiceAccount(String),
6374}
6375
6376impl PurchaseOfferingError {
6377 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PurchaseOfferingError> {
6378 if let Some(err) = proto::json::Error::parse(&res) {
6379 match err.typ.as_str() {
6380 "ArgumentException" => {
6381 return RusotoError::Service(PurchaseOfferingError::Argument(err.msg))
6382 }
6383 "LimitExceededException" => {
6384 return RusotoError::Service(PurchaseOfferingError::LimitExceeded(err.msg))
6385 }
6386 "NotEligibleException" => {
6387 return RusotoError::Service(PurchaseOfferingError::NotEligible(err.msg))
6388 }
6389 "NotFoundException" => {
6390 return RusotoError::Service(PurchaseOfferingError::NotFound(err.msg))
6391 }
6392 "ServiceAccountException" => {
6393 return RusotoError::Service(PurchaseOfferingError::ServiceAccount(err.msg))
6394 }
6395 "ValidationException" => return RusotoError::Validation(err.msg),
6396 _ => {}
6397 }
6398 }
6399 RusotoError::Unknown(res)
6400 }
6401}
6402impl fmt::Display for PurchaseOfferingError {
6403 #[allow(unused_variables)]
6404 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6405 match *self {
6406 PurchaseOfferingError::Argument(ref cause) => write!(f, "{}", cause),
6407 PurchaseOfferingError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6408 PurchaseOfferingError::NotEligible(ref cause) => write!(f, "{}", cause),
6409 PurchaseOfferingError::NotFound(ref cause) => write!(f, "{}", cause),
6410 PurchaseOfferingError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6411 }
6412 }
6413}
6414impl Error for PurchaseOfferingError {}
6415#[derive(Debug, PartialEq)]
6417pub enum RenewOfferingError {
6418 Argument(String),
6420 LimitExceeded(String),
6422 NotEligible(String),
6424 NotFound(String),
6426 ServiceAccount(String),
6428}
6429
6430impl RenewOfferingError {
6431 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RenewOfferingError> {
6432 if let Some(err) = proto::json::Error::parse(&res) {
6433 match err.typ.as_str() {
6434 "ArgumentException" => {
6435 return RusotoError::Service(RenewOfferingError::Argument(err.msg))
6436 }
6437 "LimitExceededException" => {
6438 return RusotoError::Service(RenewOfferingError::LimitExceeded(err.msg))
6439 }
6440 "NotEligibleException" => {
6441 return RusotoError::Service(RenewOfferingError::NotEligible(err.msg))
6442 }
6443 "NotFoundException" => {
6444 return RusotoError::Service(RenewOfferingError::NotFound(err.msg))
6445 }
6446 "ServiceAccountException" => {
6447 return RusotoError::Service(RenewOfferingError::ServiceAccount(err.msg))
6448 }
6449 "ValidationException" => return RusotoError::Validation(err.msg),
6450 _ => {}
6451 }
6452 }
6453 RusotoError::Unknown(res)
6454 }
6455}
6456impl fmt::Display for RenewOfferingError {
6457 #[allow(unused_variables)]
6458 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6459 match *self {
6460 RenewOfferingError::Argument(ref cause) => write!(f, "{}", cause),
6461 RenewOfferingError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6462 RenewOfferingError::NotEligible(ref cause) => write!(f, "{}", cause),
6463 RenewOfferingError::NotFound(ref cause) => write!(f, "{}", cause),
6464 RenewOfferingError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6465 }
6466 }
6467}
6468impl Error for RenewOfferingError {}
6469#[derive(Debug, PartialEq)]
6471pub enum ScheduleRunError {
6472 Argument(String),
6474 Idempotency(String),
6476 LimitExceeded(String),
6478 NotFound(String),
6480 ServiceAccount(String),
6482}
6483
6484impl ScheduleRunError {
6485 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ScheduleRunError> {
6486 if let Some(err) = proto::json::Error::parse(&res) {
6487 match err.typ.as_str() {
6488 "ArgumentException" => {
6489 return RusotoError::Service(ScheduleRunError::Argument(err.msg))
6490 }
6491 "IdempotencyException" => {
6492 return RusotoError::Service(ScheduleRunError::Idempotency(err.msg))
6493 }
6494 "LimitExceededException" => {
6495 return RusotoError::Service(ScheduleRunError::LimitExceeded(err.msg))
6496 }
6497 "NotFoundException" => {
6498 return RusotoError::Service(ScheduleRunError::NotFound(err.msg))
6499 }
6500 "ServiceAccountException" => {
6501 return RusotoError::Service(ScheduleRunError::ServiceAccount(err.msg))
6502 }
6503 "ValidationException" => return RusotoError::Validation(err.msg),
6504 _ => {}
6505 }
6506 }
6507 RusotoError::Unknown(res)
6508 }
6509}
6510impl fmt::Display for ScheduleRunError {
6511 #[allow(unused_variables)]
6512 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6513 match *self {
6514 ScheduleRunError::Argument(ref cause) => write!(f, "{}", cause),
6515 ScheduleRunError::Idempotency(ref cause) => write!(f, "{}", cause),
6516 ScheduleRunError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6517 ScheduleRunError::NotFound(ref cause) => write!(f, "{}", cause),
6518 ScheduleRunError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6519 }
6520 }
6521}
6522impl Error for ScheduleRunError {}
6523#[derive(Debug, PartialEq)]
6525pub enum StopJobError {
6526 Argument(String),
6528 LimitExceeded(String),
6530 NotFound(String),
6532 ServiceAccount(String),
6534}
6535
6536impl StopJobError {
6537 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopJobError> {
6538 if let Some(err) = proto::json::Error::parse(&res) {
6539 match err.typ.as_str() {
6540 "ArgumentException" => {
6541 return RusotoError::Service(StopJobError::Argument(err.msg))
6542 }
6543 "LimitExceededException" => {
6544 return RusotoError::Service(StopJobError::LimitExceeded(err.msg))
6545 }
6546 "NotFoundException" => {
6547 return RusotoError::Service(StopJobError::NotFound(err.msg))
6548 }
6549 "ServiceAccountException" => {
6550 return RusotoError::Service(StopJobError::ServiceAccount(err.msg))
6551 }
6552 "ValidationException" => return RusotoError::Validation(err.msg),
6553 _ => {}
6554 }
6555 }
6556 RusotoError::Unknown(res)
6557 }
6558}
6559impl fmt::Display for StopJobError {
6560 #[allow(unused_variables)]
6561 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6562 match *self {
6563 StopJobError::Argument(ref cause) => write!(f, "{}", cause),
6564 StopJobError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6565 StopJobError::NotFound(ref cause) => write!(f, "{}", cause),
6566 StopJobError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6567 }
6568 }
6569}
6570impl Error for StopJobError {}
6571#[derive(Debug, PartialEq)]
6573pub enum StopRemoteAccessSessionError {
6574 Argument(String),
6576 LimitExceeded(String),
6578 NotFound(String),
6580 ServiceAccount(String),
6582}
6583
6584impl StopRemoteAccessSessionError {
6585 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopRemoteAccessSessionError> {
6586 if let Some(err) = proto::json::Error::parse(&res) {
6587 match err.typ.as_str() {
6588 "ArgumentException" => {
6589 return RusotoError::Service(StopRemoteAccessSessionError::Argument(err.msg))
6590 }
6591 "LimitExceededException" => {
6592 return RusotoError::Service(StopRemoteAccessSessionError::LimitExceeded(
6593 err.msg,
6594 ))
6595 }
6596 "NotFoundException" => {
6597 return RusotoError::Service(StopRemoteAccessSessionError::NotFound(err.msg))
6598 }
6599 "ServiceAccountException" => {
6600 return RusotoError::Service(StopRemoteAccessSessionError::ServiceAccount(
6601 err.msg,
6602 ))
6603 }
6604 "ValidationException" => return RusotoError::Validation(err.msg),
6605 _ => {}
6606 }
6607 }
6608 RusotoError::Unknown(res)
6609 }
6610}
6611impl fmt::Display for StopRemoteAccessSessionError {
6612 #[allow(unused_variables)]
6613 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6614 match *self {
6615 StopRemoteAccessSessionError::Argument(ref cause) => write!(f, "{}", cause),
6616 StopRemoteAccessSessionError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6617 StopRemoteAccessSessionError::NotFound(ref cause) => write!(f, "{}", cause),
6618 StopRemoteAccessSessionError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6619 }
6620 }
6621}
6622impl Error for StopRemoteAccessSessionError {}
6623#[derive(Debug, PartialEq)]
6625pub enum StopRunError {
6626 Argument(String),
6628 LimitExceeded(String),
6630 NotFound(String),
6632 ServiceAccount(String),
6634}
6635
6636impl StopRunError {
6637 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopRunError> {
6638 if let Some(err) = proto::json::Error::parse(&res) {
6639 match err.typ.as_str() {
6640 "ArgumentException" => {
6641 return RusotoError::Service(StopRunError::Argument(err.msg))
6642 }
6643 "LimitExceededException" => {
6644 return RusotoError::Service(StopRunError::LimitExceeded(err.msg))
6645 }
6646 "NotFoundException" => {
6647 return RusotoError::Service(StopRunError::NotFound(err.msg))
6648 }
6649 "ServiceAccountException" => {
6650 return RusotoError::Service(StopRunError::ServiceAccount(err.msg))
6651 }
6652 "ValidationException" => return RusotoError::Validation(err.msg),
6653 _ => {}
6654 }
6655 }
6656 RusotoError::Unknown(res)
6657 }
6658}
6659impl fmt::Display for StopRunError {
6660 #[allow(unused_variables)]
6661 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6662 match *self {
6663 StopRunError::Argument(ref cause) => write!(f, "{}", cause),
6664 StopRunError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6665 StopRunError::NotFound(ref cause) => write!(f, "{}", cause),
6666 StopRunError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6667 }
6668 }
6669}
6670impl Error for StopRunError {}
6671#[derive(Debug, PartialEq)]
6673pub enum TagResourceError {
6674 Argument(String),
6676 NotFound(String),
6678 TagOperation(String),
6680 TagPolicy(String),
6682 TooManyTags(String),
6684}
6685
6686impl TagResourceError {
6687 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TagResourceError> {
6688 if let Some(err) = proto::json::Error::parse(&res) {
6689 match err.typ.as_str() {
6690 "ArgumentException" => {
6691 return RusotoError::Service(TagResourceError::Argument(err.msg))
6692 }
6693 "NotFoundException" => {
6694 return RusotoError::Service(TagResourceError::NotFound(err.msg))
6695 }
6696 "TagOperationException" => {
6697 return RusotoError::Service(TagResourceError::TagOperation(err.msg))
6698 }
6699 "TagPolicyException" => {
6700 return RusotoError::Service(TagResourceError::TagPolicy(err.msg))
6701 }
6702 "TooManyTagsException" => {
6703 return RusotoError::Service(TagResourceError::TooManyTags(err.msg))
6704 }
6705 "ValidationException" => return RusotoError::Validation(err.msg),
6706 _ => {}
6707 }
6708 }
6709 RusotoError::Unknown(res)
6710 }
6711}
6712impl fmt::Display for TagResourceError {
6713 #[allow(unused_variables)]
6714 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6715 match *self {
6716 TagResourceError::Argument(ref cause) => write!(f, "{}", cause),
6717 TagResourceError::NotFound(ref cause) => write!(f, "{}", cause),
6718 TagResourceError::TagOperation(ref cause) => write!(f, "{}", cause),
6719 TagResourceError::TagPolicy(ref cause) => write!(f, "{}", cause),
6720 TagResourceError::TooManyTags(ref cause) => write!(f, "{}", cause),
6721 }
6722 }
6723}
6724impl Error for TagResourceError {}
6725#[derive(Debug, PartialEq)]
6727pub enum UntagResourceError {
6728 Argument(String),
6730 NotFound(String),
6732 TagOperation(String),
6734}
6735
6736impl UntagResourceError {
6737 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UntagResourceError> {
6738 if let Some(err) = proto::json::Error::parse(&res) {
6739 match err.typ.as_str() {
6740 "ArgumentException" => {
6741 return RusotoError::Service(UntagResourceError::Argument(err.msg))
6742 }
6743 "NotFoundException" => {
6744 return RusotoError::Service(UntagResourceError::NotFound(err.msg))
6745 }
6746 "TagOperationException" => {
6747 return RusotoError::Service(UntagResourceError::TagOperation(err.msg))
6748 }
6749 "ValidationException" => return RusotoError::Validation(err.msg),
6750 _ => {}
6751 }
6752 }
6753 RusotoError::Unknown(res)
6754 }
6755}
6756impl fmt::Display for UntagResourceError {
6757 #[allow(unused_variables)]
6758 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6759 match *self {
6760 UntagResourceError::Argument(ref cause) => write!(f, "{}", cause),
6761 UntagResourceError::NotFound(ref cause) => write!(f, "{}", cause),
6762 UntagResourceError::TagOperation(ref cause) => write!(f, "{}", cause),
6763 }
6764 }
6765}
6766impl Error for UntagResourceError {}
6767#[derive(Debug, PartialEq)]
6769pub enum UpdateDeviceInstanceError {
6770 Argument(String),
6772 LimitExceeded(String),
6774 NotFound(String),
6776 ServiceAccount(String),
6778}
6779
6780impl UpdateDeviceInstanceError {
6781 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDeviceInstanceError> {
6782 if let Some(err) = proto::json::Error::parse(&res) {
6783 match err.typ.as_str() {
6784 "ArgumentException" => {
6785 return RusotoError::Service(UpdateDeviceInstanceError::Argument(err.msg))
6786 }
6787 "LimitExceededException" => {
6788 return RusotoError::Service(UpdateDeviceInstanceError::LimitExceeded(err.msg))
6789 }
6790 "NotFoundException" => {
6791 return RusotoError::Service(UpdateDeviceInstanceError::NotFound(err.msg))
6792 }
6793 "ServiceAccountException" => {
6794 return RusotoError::Service(UpdateDeviceInstanceError::ServiceAccount(err.msg))
6795 }
6796 "ValidationException" => return RusotoError::Validation(err.msg),
6797 _ => {}
6798 }
6799 }
6800 RusotoError::Unknown(res)
6801 }
6802}
6803impl fmt::Display for UpdateDeviceInstanceError {
6804 #[allow(unused_variables)]
6805 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6806 match *self {
6807 UpdateDeviceInstanceError::Argument(ref cause) => write!(f, "{}", cause),
6808 UpdateDeviceInstanceError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6809 UpdateDeviceInstanceError::NotFound(ref cause) => write!(f, "{}", cause),
6810 UpdateDeviceInstanceError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6811 }
6812 }
6813}
6814impl Error for UpdateDeviceInstanceError {}
6815#[derive(Debug, PartialEq)]
6817pub enum UpdateDevicePoolError {
6818 Argument(String),
6820 LimitExceeded(String),
6822 NotFound(String),
6824 ServiceAccount(String),
6826}
6827
6828impl UpdateDevicePoolError {
6829 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDevicePoolError> {
6830 if let Some(err) = proto::json::Error::parse(&res) {
6831 match err.typ.as_str() {
6832 "ArgumentException" => {
6833 return RusotoError::Service(UpdateDevicePoolError::Argument(err.msg))
6834 }
6835 "LimitExceededException" => {
6836 return RusotoError::Service(UpdateDevicePoolError::LimitExceeded(err.msg))
6837 }
6838 "NotFoundException" => {
6839 return RusotoError::Service(UpdateDevicePoolError::NotFound(err.msg))
6840 }
6841 "ServiceAccountException" => {
6842 return RusotoError::Service(UpdateDevicePoolError::ServiceAccount(err.msg))
6843 }
6844 "ValidationException" => return RusotoError::Validation(err.msg),
6845 _ => {}
6846 }
6847 }
6848 RusotoError::Unknown(res)
6849 }
6850}
6851impl fmt::Display for UpdateDevicePoolError {
6852 #[allow(unused_variables)]
6853 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6854 match *self {
6855 UpdateDevicePoolError::Argument(ref cause) => write!(f, "{}", cause),
6856 UpdateDevicePoolError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6857 UpdateDevicePoolError::NotFound(ref cause) => write!(f, "{}", cause),
6858 UpdateDevicePoolError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6859 }
6860 }
6861}
6862impl Error for UpdateDevicePoolError {}
6863#[derive(Debug, PartialEq)]
6865pub enum UpdateInstanceProfileError {
6866 Argument(String),
6868 LimitExceeded(String),
6870 NotFound(String),
6872 ServiceAccount(String),
6874}
6875
6876impl UpdateInstanceProfileError {
6877 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateInstanceProfileError> {
6878 if let Some(err) = proto::json::Error::parse(&res) {
6879 match err.typ.as_str() {
6880 "ArgumentException" => {
6881 return RusotoError::Service(UpdateInstanceProfileError::Argument(err.msg))
6882 }
6883 "LimitExceededException" => {
6884 return RusotoError::Service(UpdateInstanceProfileError::LimitExceeded(err.msg))
6885 }
6886 "NotFoundException" => {
6887 return RusotoError::Service(UpdateInstanceProfileError::NotFound(err.msg))
6888 }
6889 "ServiceAccountException" => {
6890 return RusotoError::Service(UpdateInstanceProfileError::ServiceAccount(
6891 err.msg,
6892 ))
6893 }
6894 "ValidationException" => return RusotoError::Validation(err.msg),
6895 _ => {}
6896 }
6897 }
6898 RusotoError::Unknown(res)
6899 }
6900}
6901impl fmt::Display for UpdateInstanceProfileError {
6902 #[allow(unused_variables)]
6903 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6904 match *self {
6905 UpdateInstanceProfileError::Argument(ref cause) => write!(f, "{}", cause),
6906 UpdateInstanceProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6907 UpdateInstanceProfileError::NotFound(ref cause) => write!(f, "{}", cause),
6908 UpdateInstanceProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6909 }
6910 }
6911}
6912impl Error for UpdateInstanceProfileError {}
6913#[derive(Debug, PartialEq)]
6915pub enum UpdateNetworkProfileError {
6916 Argument(String),
6918 LimitExceeded(String),
6920 NotFound(String),
6922 ServiceAccount(String),
6924}
6925
6926impl UpdateNetworkProfileError {
6927 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateNetworkProfileError> {
6928 if let Some(err) = proto::json::Error::parse(&res) {
6929 match err.typ.as_str() {
6930 "ArgumentException" => {
6931 return RusotoError::Service(UpdateNetworkProfileError::Argument(err.msg))
6932 }
6933 "LimitExceededException" => {
6934 return RusotoError::Service(UpdateNetworkProfileError::LimitExceeded(err.msg))
6935 }
6936 "NotFoundException" => {
6937 return RusotoError::Service(UpdateNetworkProfileError::NotFound(err.msg))
6938 }
6939 "ServiceAccountException" => {
6940 return RusotoError::Service(UpdateNetworkProfileError::ServiceAccount(err.msg))
6941 }
6942 "ValidationException" => return RusotoError::Validation(err.msg),
6943 _ => {}
6944 }
6945 }
6946 RusotoError::Unknown(res)
6947 }
6948}
6949impl fmt::Display for UpdateNetworkProfileError {
6950 #[allow(unused_variables)]
6951 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6952 match *self {
6953 UpdateNetworkProfileError::Argument(ref cause) => write!(f, "{}", cause),
6954 UpdateNetworkProfileError::LimitExceeded(ref cause) => write!(f, "{}", cause),
6955 UpdateNetworkProfileError::NotFound(ref cause) => write!(f, "{}", cause),
6956 UpdateNetworkProfileError::ServiceAccount(ref cause) => write!(f, "{}", cause),
6957 }
6958 }
6959}
6960impl Error for UpdateNetworkProfileError {}
6961#[derive(Debug, PartialEq)]
6963pub enum UpdateProjectError {
6964 Argument(String),
6966 LimitExceeded(String),
6968 NotFound(String),
6970 ServiceAccount(String),
6972}
6973
6974impl UpdateProjectError {
6975 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateProjectError> {
6976 if let Some(err) = proto::json::Error::parse(&res) {
6977 match err.typ.as_str() {
6978 "ArgumentException" => {
6979 return RusotoError::Service(UpdateProjectError::Argument(err.msg))
6980 }
6981 "LimitExceededException" => {
6982 return RusotoError::Service(UpdateProjectError::LimitExceeded(err.msg))
6983 }
6984 "NotFoundException" => {
6985 return RusotoError::Service(UpdateProjectError::NotFound(err.msg))
6986 }
6987 "ServiceAccountException" => {
6988 return RusotoError::Service(UpdateProjectError::ServiceAccount(err.msg))
6989 }
6990 "ValidationException" => return RusotoError::Validation(err.msg),
6991 _ => {}
6992 }
6993 }
6994 RusotoError::Unknown(res)
6995 }
6996}
6997impl fmt::Display for UpdateProjectError {
6998 #[allow(unused_variables)]
6999 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7000 match *self {
7001 UpdateProjectError::Argument(ref cause) => write!(f, "{}", cause),
7002 UpdateProjectError::LimitExceeded(ref cause) => write!(f, "{}", cause),
7003 UpdateProjectError::NotFound(ref cause) => write!(f, "{}", cause),
7004 UpdateProjectError::ServiceAccount(ref cause) => write!(f, "{}", cause),
7005 }
7006 }
7007}
7008impl Error for UpdateProjectError {}
7009#[derive(Debug, PartialEq)]
7011pub enum UpdateTestGridProjectError {
7012 Argument(String),
7014 InternalService(String),
7016 NotFound(String),
7018}
7019
7020impl UpdateTestGridProjectError {
7021 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateTestGridProjectError> {
7022 if let Some(err) = proto::json::Error::parse(&res) {
7023 match err.typ.as_str() {
7024 "ArgumentException" => {
7025 return RusotoError::Service(UpdateTestGridProjectError::Argument(err.msg))
7026 }
7027 "InternalServiceException" => {
7028 return RusotoError::Service(UpdateTestGridProjectError::InternalService(
7029 err.msg,
7030 ))
7031 }
7032 "NotFoundException" => {
7033 return RusotoError::Service(UpdateTestGridProjectError::NotFound(err.msg))
7034 }
7035 "ValidationException" => return RusotoError::Validation(err.msg),
7036 _ => {}
7037 }
7038 }
7039 RusotoError::Unknown(res)
7040 }
7041}
7042impl fmt::Display for UpdateTestGridProjectError {
7043 #[allow(unused_variables)]
7044 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7045 match *self {
7046 UpdateTestGridProjectError::Argument(ref cause) => write!(f, "{}", cause),
7047 UpdateTestGridProjectError::InternalService(ref cause) => write!(f, "{}", cause),
7048 UpdateTestGridProjectError::NotFound(ref cause) => write!(f, "{}", cause),
7049 }
7050 }
7051}
7052impl Error for UpdateTestGridProjectError {}
7053#[derive(Debug, PartialEq)]
7055pub enum UpdateUploadError {
7056 Argument(String),
7058 LimitExceeded(String),
7060 NotFound(String),
7062 ServiceAccount(String),
7064}
7065
7066impl UpdateUploadError {
7067 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateUploadError> {
7068 if let Some(err) = proto::json::Error::parse(&res) {
7069 match err.typ.as_str() {
7070 "ArgumentException" => {
7071 return RusotoError::Service(UpdateUploadError::Argument(err.msg))
7072 }
7073 "LimitExceededException" => {
7074 return RusotoError::Service(UpdateUploadError::LimitExceeded(err.msg))
7075 }
7076 "NotFoundException" => {
7077 return RusotoError::Service(UpdateUploadError::NotFound(err.msg))
7078 }
7079 "ServiceAccountException" => {
7080 return RusotoError::Service(UpdateUploadError::ServiceAccount(err.msg))
7081 }
7082 "ValidationException" => return RusotoError::Validation(err.msg),
7083 _ => {}
7084 }
7085 }
7086 RusotoError::Unknown(res)
7087 }
7088}
7089impl fmt::Display for UpdateUploadError {
7090 #[allow(unused_variables)]
7091 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7092 match *self {
7093 UpdateUploadError::Argument(ref cause) => write!(f, "{}", cause),
7094 UpdateUploadError::LimitExceeded(ref cause) => write!(f, "{}", cause),
7095 UpdateUploadError::NotFound(ref cause) => write!(f, "{}", cause),
7096 UpdateUploadError::ServiceAccount(ref cause) => write!(f, "{}", cause),
7097 }
7098 }
7099}
7100impl Error for UpdateUploadError {}
7101#[derive(Debug, PartialEq)]
7103pub enum UpdateVPCEConfigurationError {
7104 Argument(String),
7106 InvalidOperation(String),
7108 NotFound(String),
7110 ServiceAccount(String),
7112}
7113
7114impl UpdateVPCEConfigurationError {
7115 pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateVPCEConfigurationError> {
7116 if let Some(err) = proto::json::Error::parse(&res) {
7117 match err.typ.as_str() {
7118 "ArgumentException" => {
7119 return RusotoError::Service(UpdateVPCEConfigurationError::Argument(err.msg))
7120 }
7121 "InvalidOperationException" => {
7122 return RusotoError::Service(UpdateVPCEConfigurationError::InvalidOperation(
7123 err.msg,
7124 ))
7125 }
7126 "NotFoundException" => {
7127 return RusotoError::Service(UpdateVPCEConfigurationError::NotFound(err.msg))
7128 }
7129 "ServiceAccountException" => {
7130 return RusotoError::Service(UpdateVPCEConfigurationError::ServiceAccount(
7131 err.msg,
7132 ))
7133 }
7134 "ValidationException" => return RusotoError::Validation(err.msg),
7135 _ => {}
7136 }
7137 }
7138 RusotoError::Unknown(res)
7139 }
7140}
7141impl fmt::Display for UpdateVPCEConfigurationError {
7142 #[allow(unused_variables)]
7143 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7144 match *self {
7145 UpdateVPCEConfigurationError::Argument(ref cause) => write!(f, "{}", cause),
7146 UpdateVPCEConfigurationError::InvalidOperation(ref cause) => write!(f, "{}", cause),
7147 UpdateVPCEConfigurationError::NotFound(ref cause) => write!(f, "{}", cause),
7148 UpdateVPCEConfigurationError::ServiceAccount(ref cause) => write!(f, "{}", cause),
7149 }
7150 }
7151}
7152impl Error for UpdateVPCEConfigurationError {}
7153#[async_trait]
7155pub trait DeviceFarm {
7156 async fn create_device_pool(
7158 &self,
7159 input: CreateDevicePoolRequest,
7160 ) -> Result<CreateDevicePoolResult, RusotoError<CreateDevicePoolError>>;
7161
7162 async fn create_instance_profile(
7164 &self,
7165 input: CreateInstanceProfileRequest,
7166 ) -> Result<CreateInstanceProfileResult, RusotoError<CreateInstanceProfileError>>;
7167
7168 async fn create_network_profile(
7170 &self,
7171 input: CreateNetworkProfileRequest,
7172 ) -> Result<CreateNetworkProfileResult, RusotoError<CreateNetworkProfileError>>;
7173
7174 async fn create_project(
7176 &self,
7177 input: CreateProjectRequest,
7178 ) -> Result<CreateProjectResult, RusotoError<CreateProjectError>>;
7179
7180 async fn create_remote_access_session(
7182 &self,
7183 input: CreateRemoteAccessSessionRequest,
7184 ) -> Result<CreateRemoteAccessSessionResult, RusotoError<CreateRemoteAccessSessionError>>;
7185
7186 async fn create_test_grid_project(
7188 &self,
7189 input: CreateTestGridProjectRequest,
7190 ) -> Result<CreateTestGridProjectResult, RusotoError<CreateTestGridProjectError>>;
7191
7192 async fn create_test_grid_url(
7194 &self,
7195 input: CreateTestGridUrlRequest,
7196 ) -> Result<CreateTestGridUrlResult, RusotoError<CreateTestGridUrlError>>;
7197
7198 async fn create_upload(
7200 &self,
7201 input: CreateUploadRequest,
7202 ) -> Result<CreateUploadResult, RusotoError<CreateUploadError>>;
7203
7204 async fn create_vpce_configuration(
7206 &self,
7207 input: CreateVPCEConfigurationRequest,
7208 ) -> Result<CreateVPCEConfigurationResult, RusotoError<CreateVPCEConfigurationError>>;
7209
7210 async fn delete_device_pool(
7212 &self,
7213 input: DeleteDevicePoolRequest,
7214 ) -> Result<DeleteDevicePoolResult, RusotoError<DeleteDevicePoolError>>;
7215
7216 async fn delete_instance_profile(
7218 &self,
7219 input: DeleteInstanceProfileRequest,
7220 ) -> Result<DeleteInstanceProfileResult, RusotoError<DeleteInstanceProfileError>>;
7221
7222 async fn delete_network_profile(
7224 &self,
7225 input: DeleteNetworkProfileRequest,
7226 ) -> Result<DeleteNetworkProfileResult, RusotoError<DeleteNetworkProfileError>>;
7227
7228 async fn delete_project(
7230 &self,
7231 input: DeleteProjectRequest,
7232 ) -> Result<DeleteProjectResult, RusotoError<DeleteProjectError>>;
7233
7234 async fn delete_remote_access_session(
7236 &self,
7237 input: DeleteRemoteAccessSessionRequest,
7238 ) -> Result<DeleteRemoteAccessSessionResult, RusotoError<DeleteRemoteAccessSessionError>>;
7239
7240 async fn delete_run(
7242 &self,
7243 input: DeleteRunRequest,
7244 ) -> Result<DeleteRunResult, RusotoError<DeleteRunError>>;
7245
7246 async fn delete_test_grid_project(
7248 &self,
7249 input: DeleteTestGridProjectRequest,
7250 ) -> Result<DeleteTestGridProjectResult, RusotoError<DeleteTestGridProjectError>>;
7251
7252 async fn delete_upload(
7254 &self,
7255 input: DeleteUploadRequest,
7256 ) -> Result<DeleteUploadResult, RusotoError<DeleteUploadError>>;
7257
7258 async fn delete_vpce_configuration(
7260 &self,
7261 input: DeleteVPCEConfigurationRequest,
7262 ) -> Result<DeleteVPCEConfigurationResult, RusotoError<DeleteVPCEConfigurationError>>;
7263
7264 async fn get_account_settings(
7266 &self,
7267 ) -> Result<GetAccountSettingsResult, RusotoError<GetAccountSettingsError>>;
7268
7269 async fn get_device(
7271 &self,
7272 input: GetDeviceRequest,
7273 ) -> Result<GetDeviceResult, RusotoError<GetDeviceError>>;
7274
7275 async fn get_device_instance(
7277 &self,
7278 input: GetDeviceInstanceRequest,
7279 ) -> Result<GetDeviceInstanceResult, RusotoError<GetDeviceInstanceError>>;
7280
7281 async fn get_device_pool(
7283 &self,
7284 input: GetDevicePoolRequest,
7285 ) -> Result<GetDevicePoolResult, RusotoError<GetDevicePoolError>>;
7286
7287 async fn get_device_pool_compatibility(
7289 &self,
7290 input: GetDevicePoolCompatibilityRequest,
7291 ) -> Result<GetDevicePoolCompatibilityResult, RusotoError<GetDevicePoolCompatibilityError>>;
7292
7293 async fn get_instance_profile(
7295 &self,
7296 input: GetInstanceProfileRequest,
7297 ) -> Result<GetInstanceProfileResult, RusotoError<GetInstanceProfileError>>;
7298
7299 async fn get_job(&self, input: GetJobRequest)
7301 -> Result<GetJobResult, RusotoError<GetJobError>>;
7302
7303 async fn get_network_profile(
7305 &self,
7306 input: GetNetworkProfileRequest,
7307 ) -> Result<GetNetworkProfileResult, RusotoError<GetNetworkProfileError>>;
7308
7309 async fn get_offering_status(
7311 &self,
7312 input: GetOfferingStatusRequest,
7313 ) -> Result<GetOfferingStatusResult, RusotoError<GetOfferingStatusError>>;
7314
7315 async fn get_project(
7317 &self,
7318 input: GetProjectRequest,
7319 ) -> Result<GetProjectResult, RusotoError<GetProjectError>>;
7320
7321 async fn get_remote_access_session(
7323 &self,
7324 input: GetRemoteAccessSessionRequest,
7325 ) -> Result<GetRemoteAccessSessionResult, RusotoError<GetRemoteAccessSessionError>>;
7326
7327 async fn get_run(&self, input: GetRunRequest)
7329 -> Result<GetRunResult, RusotoError<GetRunError>>;
7330
7331 async fn get_suite(
7333 &self,
7334 input: GetSuiteRequest,
7335 ) -> Result<GetSuiteResult, RusotoError<GetSuiteError>>;
7336
7337 async fn get_test(
7339 &self,
7340 input: GetTestRequest,
7341 ) -> Result<GetTestResult, RusotoError<GetTestError>>;
7342
7343 async fn get_test_grid_project(
7345 &self,
7346 input: GetTestGridProjectRequest,
7347 ) -> Result<GetTestGridProjectResult, RusotoError<GetTestGridProjectError>>;
7348
7349 async fn get_test_grid_session(
7351 &self,
7352 input: GetTestGridSessionRequest,
7353 ) -> Result<GetTestGridSessionResult, RusotoError<GetTestGridSessionError>>;
7354
7355 async fn get_upload(
7357 &self,
7358 input: GetUploadRequest,
7359 ) -> Result<GetUploadResult, RusotoError<GetUploadError>>;
7360
7361 async fn get_vpce_configuration(
7363 &self,
7364 input: GetVPCEConfigurationRequest,
7365 ) -> Result<GetVPCEConfigurationResult, RusotoError<GetVPCEConfigurationError>>;
7366
7367 async fn install_to_remote_access_session(
7369 &self,
7370 input: InstallToRemoteAccessSessionRequest,
7371 ) -> Result<InstallToRemoteAccessSessionResult, RusotoError<InstallToRemoteAccessSessionError>>;
7372
7373 async fn list_artifacts(
7375 &self,
7376 input: ListArtifactsRequest,
7377 ) -> Result<ListArtifactsResult, RusotoError<ListArtifactsError>>;
7378
7379 async fn list_device_instances(
7381 &self,
7382 input: ListDeviceInstancesRequest,
7383 ) -> Result<ListDeviceInstancesResult, RusotoError<ListDeviceInstancesError>>;
7384
7385 async fn list_device_pools(
7387 &self,
7388 input: ListDevicePoolsRequest,
7389 ) -> Result<ListDevicePoolsResult, RusotoError<ListDevicePoolsError>>;
7390
7391 async fn list_devices(
7393 &self,
7394 input: ListDevicesRequest,
7395 ) -> Result<ListDevicesResult, RusotoError<ListDevicesError>>;
7396
7397 async fn list_instance_profiles(
7399 &self,
7400 input: ListInstanceProfilesRequest,
7401 ) -> Result<ListInstanceProfilesResult, RusotoError<ListInstanceProfilesError>>;
7402
7403 async fn list_jobs(
7405 &self,
7406 input: ListJobsRequest,
7407 ) -> Result<ListJobsResult, RusotoError<ListJobsError>>;
7408
7409 async fn list_network_profiles(
7411 &self,
7412 input: ListNetworkProfilesRequest,
7413 ) -> Result<ListNetworkProfilesResult, RusotoError<ListNetworkProfilesError>>;
7414
7415 async fn list_offering_promotions(
7417 &self,
7418 input: ListOfferingPromotionsRequest,
7419 ) -> Result<ListOfferingPromotionsResult, RusotoError<ListOfferingPromotionsError>>;
7420
7421 async fn list_offering_transactions(
7423 &self,
7424 input: ListOfferingTransactionsRequest,
7425 ) -> Result<ListOfferingTransactionsResult, RusotoError<ListOfferingTransactionsError>>;
7426
7427 async fn list_offerings(
7429 &self,
7430 input: ListOfferingsRequest,
7431 ) -> Result<ListOfferingsResult, RusotoError<ListOfferingsError>>;
7432
7433 async fn list_projects(
7435 &self,
7436 input: ListProjectsRequest,
7437 ) -> Result<ListProjectsResult, RusotoError<ListProjectsError>>;
7438
7439 async fn list_remote_access_sessions(
7441 &self,
7442 input: ListRemoteAccessSessionsRequest,
7443 ) -> Result<ListRemoteAccessSessionsResult, RusotoError<ListRemoteAccessSessionsError>>;
7444
7445 async fn list_runs(
7447 &self,
7448 input: ListRunsRequest,
7449 ) -> Result<ListRunsResult, RusotoError<ListRunsError>>;
7450
7451 async fn list_samples(
7453 &self,
7454 input: ListSamplesRequest,
7455 ) -> Result<ListSamplesResult, RusotoError<ListSamplesError>>;
7456
7457 async fn list_suites(
7459 &self,
7460 input: ListSuitesRequest,
7461 ) -> Result<ListSuitesResult, RusotoError<ListSuitesError>>;
7462
7463 async fn list_tags_for_resource(
7465 &self,
7466 input: ListTagsForResourceRequest,
7467 ) -> Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>;
7468
7469 async fn list_test_grid_projects(
7471 &self,
7472 input: ListTestGridProjectsRequest,
7473 ) -> Result<ListTestGridProjectsResult, RusotoError<ListTestGridProjectsError>>;
7474
7475 async fn list_test_grid_session_actions(
7477 &self,
7478 input: ListTestGridSessionActionsRequest,
7479 ) -> Result<ListTestGridSessionActionsResult, RusotoError<ListTestGridSessionActionsError>>;
7480
7481 async fn list_test_grid_session_artifacts(
7483 &self,
7484 input: ListTestGridSessionArtifactsRequest,
7485 ) -> Result<ListTestGridSessionArtifactsResult, RusotoError<ListTestGridSessionArtifactsError>>;
7486
7487 async fn list_test_grid_sessions(
7489 &self,
7490 input: ListTestGridSessionsRequest,
7491 ) -> Result<ListTestGridSessionsResult, RusotoError<ListTestGridSessionsError>>;
7492
7493 async fn list_tests(
7495 &self,
7496 input: ListTestsRequest,
7497 ) -> Result<ListTestsResult, RusotoError<ListTestsError>>;
7498
7499 async fn list_unique_problems(
7501 &self,
7502 input: ListUniqueProblemsRequest,
7503 ) -> Result<ListUniqueProblemsResult, RusotoError<ListUniqueProblemsError>>;
7504
7505 async fn list_uploads(
7507 &self,
7508 input: ListUploadsRequest,
7509 ) -> Result<ListUploadsResult, RusotoError<ListUploadsError>>;
7510
7511 async fn list_vpce_configurations(
7513 &self,
7514 input: ListVPCEConfigurationsRequest,
7515 ) -> Result<ListVPCEConfigurationsResult, RusotoError<ListVPCEConfigurationsError>>;
7516
7517 async fn purchase_offering(
7519 &self,
7520 input: PurchaseOfferingRequest,
7521 ) -> Result<PurchaseOfferingResult, RusotoError<PurchaseOfferingError>>;
7522
7523 async fn renew_offering(
7525 &self,
7526 input: RenewOfferingRequest,
7527 ) -> Result<RenewOfferingResult, RusotoError<RenewOfferingError>>;
7528
7529 async fn schedule_run(
7531 &self,
7532 input: ScheduleRunRequest,
7533 ) -> Result<ScheduleRunResult, RusotoError<ScheduleRunError>>;
7534
7535 async fn stop_job(
7537 &self,
7538 input: StopJobRequest,
7539 ) -> Result<StopJobResult, RusotoError<StopJobError>>;
7540
7541 async fn stop_remote_access_session(
7543 &self,
7544 input: StopRemoteAccessSessionRequest,
7545 ) -> Result<StopRemoteAccessSessionResult, RusotoError<StopRemoteAccessSessionError>>;
7546
7547 async fn stop_run(
7549 &self,
7550 input: StopRunRequest,
7551 ) -> Result<StopRunResult, RusotoError<StopRunError>>;
7552
7553 async fn tag_resource(
7555 &self,
7556 input: TagResourceRequest,
7557 ) -> Result<TagResourceResponse, RusotoError<TagResourceError>>;
7558
7559 async fn untag_resource(
7561 &self,
7562 input: UntagResourceRequest,
7563 ) -> Result<UntagResourceResponse, RusotoError<UntagResourceError>>;
7564
7565 async fn update_device_instance(
7567 &self,
7568 input: UpdateDeviceInstanceRequest,
7569 ) -> Result<UpdateDeviceInstanceResult, RusotoError<UpdateDeviceInstanceError>>;
7570
7571 async fn update_device_pool(
7573 &self,
7574 input: UpdateDevicePoolRequest,
7575 ) -> Result<UpdateDevicePoolResult, RusotoError<UpdateDevicePoolError>>;
7576
7577 async fn update_instance_profile(
7579 &self,
7580 input: UpdateInstanceProfileRequest,
7581 ) -> Result<UpdateInstanceProfileResult, RusotoError<UpdateInstanceProfileError>>;
7582
7583 async fn update_network_profile(
7585 &self,
7586 input: UpdateNetworkProfileRequest,
7587 ) -> Result<UpdateNetworkProfileResult, RusotoError<UpdateNetworkProfileError>>;
7588
7589 async fn update_project(
7591 &self,
7592 input: UpdateProjectRequest,
7593 ) -> Result<UpdateProjectResult, RusotoError<UpdateProjectError>>;
7594
7595 async fn update_test_grid_project(
7597 &self,
7598 input: UpdateTestGridProjectRequest,
7599 ) -> Result<UpdateTestGridProjectResult, RusotoError<UpdateTestGridProjectError>>;
7600
7601 async fn update_upload(
7603 &self,
7604 input: UpdateUploadRequest,
7605 ) -> Result<UpdateUploadResult, RusotoError<UpdateUploadError>>;
7606
7607 async fn update_vpce_configuration(
7609 &self,
7610 input: UpdateVPCEConfigurationRequest,
7611 ) -> Result<UpdateVPCEConfigurationResult, RusotoError<UpdateVPCEConfigurationError>>;
7612}
7613#[derive(Clone)]
7615pub struct DeviceFarmClient {
7616 client: Client,
7617 region: region::Region,
7618}
7619
7620impl DeviceFarmClient {
7621 pub fn new(region: region::Region) -> DeviceFarmClient {
7625 DeviceFarmClient {
7626 client: Client::shared(),
7627 region,
7628 }
7629 }
7630
7631 pub fn new_with<P, D>(
7632 request_dispatcher: D,
7633 credentials_provider: P,
7634 region: region::Region,
7635 ) -> DeviceFarmClient
7636 where
7637 P: ProvideAwsCredentials + Send + Sync + 'static,
7638 D: DispatchSignedRequest + Send + Sync + 'static,
7639 {
7640 DeviceFarmClient {
7641 client: Client::new_with(credentials_provider, request_dispatcher),
7642 region,
7643 }
7644 }
7645
7646 pub fn new_with_client(client: Client, region: region::Region) -> DeviceFarmClient {
7647 DeviceFarmClient { client, region }
7648 }
7649}
7650
7651#[async_trait]
7652impl DeviceFarm for DeviceFarmClient {
7653 async fn create_device_pool(
7655 &self,
7656 input: CreateDevicePoolRequest,
7657 ) -> Result<CreateDevicePoolResult, RusotoError<CreateDevicePoolError>> {
7658 let mut request = self.new_signed_request("POST", "/");
7659 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateDevicePool");
7660 let encoded = serde_json::to_string(&input).unwrap();
7661 request.set_payload(Some(encoded));
7662
7663 let response = self
7664 .sign_and_dispatch(request, CreateDevicePoolError::from_response)
7665 .await?;
7666 let mut response = response;
7667 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7668 proto::json::ResponsePayload::new(&response).deserialize::<CreateDevicePoolResult, _>()
7669 }
7670
7671 async fn create_instance_profile(
7673 &self,
7674 input: CreateInstanceProfileRequest,
7675 ) -> Result<CreateInstanceProfileResult, RusotoError<CreateInstanceProfileError>> {
7676 let mut request = self.new_signed_request("POST", "/");
7677 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateInstanceProfile");
7678 let encoded = serde_json::to_string(&input).unwrap();
7679 request.set_payload(Some(encoded));
7680
7681 let response = self
7682 .sign_and_dispatch(request, CreateInstanceProfileError::from_response)
7683 .await?;
7684 let mut response = response;
7685 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7686 proto::json::ResponsePayload::new(&response).deserialize::<CreateInstanceProfileResult, _>()
7687 }
7688
7689 async fn create_network_profile(
7691 &self,
7692 input: CreateNetworkProfileRequest,
7693 ) -> Result<CreateNetworkProfileResult, RusotoError<CreateNetworkProfileError>> {
7694 let mut request = self.new_signed_request("POST", "/");
7695 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateNetworkProfile");
7696 let encoded = serde_json::to_string(&input).unwrap();
7697 request.set_payload(Some(encoded));
7698
7699 let response = self
7700 .sign_and_dispatch(request, CreateNetworkProfileError::from_response)
7701 .await?;
7702 let mut response = response;
7703 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7704 proto::json::ResponsePayload::new(&response).deserialize::<CreateNetworkProfileResult, _>()
7705 }
7706
7707 async fn create_project(
7709 &self,
7710 input: CreateProjectRequest,
7711 ) -> Result<CreateProjectResult, RusotoError<CreateProjectError>> {
7712 let mut request = self.new_signed_request("POST", "/");
7713 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateProject");
7714 let encoded = serde_json::to_string(&input).unwrap();
7715 request.set_payload(Some(encoded));
7716
7717 let response = self
7718 .sign_and_dispatch(request, CreateProjectError::from_response)
7719 .await?;
7720 let mut response = response;
7721 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7722 proto::json::ResponsePayload::new(&response).deserialize::<CreateProjectResult, _>()
7723 }
7724
7725 async fn create_remote_access_session(
7727 &self,
7728 input: CreateRemoteAccessSessionRequest,
7729 ) -> Result<CreateRemoteAccessSessionResult, RusotoError<CreateRemoteAccessSessionError>> {
7730 let mut request = self.new_signed_request("POST", "/");
7731 request.add_header(
7732 "x-amz-target",
7733 "DeviceFarm_20150623.CreateRemoteAccessSession",
7734 );
7735 let encoded = serde_json::to_string(&input).unwrap();
7736 request.set_payload(Some(encoded));
7737
7738 let response = self
7739 .sign_and_dispatch(request, CreateRemoteAccessSessionError::from_response)
7740 .await?;
7741 let mut response = response;
7742 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7743 proto::json::ResponsePayload::new(&response)
7744 .deserialize::<CreateRemoteAccessSessionResult, _>()
7745 }
7746
7747 async fn create_test_grid_project(
7749 &self,
7750 input: CreateTestGridProjectRequest,
7751 ) -> Result<CreateTestGridProjectResult, RusotoError<CreateTestGridProjectError>> {
7752 let mut request = self.new_signed_request("POST", "/");
7753 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateTestGridProject");
7754 let encoded = serde_json::to_string(&input).unwrap();
7755 request.set_payload(Some(encoded));
7756
7757 let response = self
7758 .sign_and_dispatch(request, CreateTestGridProjectError::from_response)
7759 .await?;
7760 let mut response = response;
7761 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7762 proto::json::ResponsePayload::new(&response).deserialize::<CreateTestGridProjectResult, _>()
7763 }
7764
7765 async fn create_test_grid_url(
7767 &self,
7768 input: CreateTestGridUrlRequest,
7769 ) -> Result<CreateTestGridUrlResult, RusotoError<CreateTestGridUrlError>> {
7770 let mut request = self.new_signed_request("POST", "/");
7771 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateTestGridUrl");
7772 let encoded = serde_json::to_string(&input).unwrap();
7773 request.set_payload(Some(encoded));
7774
7775 let response = self
7776 .sign_and_dispatch(request, CreateTestGridUrlError::from_response)
7777 .await?;
7778 let mut response = response;
7779 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7780 proto::json::ResponsePayload::new(&response).deserialize::<CreateTestGridUrlResult, _>()
7781 }
7782
7783 async fn create_upload(
7785 &self,
7786 input: CreateUploadRequest,
7787 ) -> Result<CreateUploadResult, RusotoError<CreateUploadError>> {
7788 let mut request = self.new_signed_request("POST", "/");
7789 request.add_header("x-amz-target", "DeviceFarm_20150623.CreateUpload");
7790 let encoded = serde_json::to_string(&input).unwrap();
7791 request.set_payload(Some(encoded));
7792
7793 let response = self
7794 .sign_and_dispatch(request, CreateUploadError::from_response)
7795 .await?;
7796 let mut response = response;
7797 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7798 proto::json::ResponsePayload::new(&response).deserialize::<CreateUploadResult, _>()
7799 }
7800
7801 async fn create_vpce_configuration(
7803 &self,
7804 input: CreateVPCEConfigurationRequest,
7805 ) -> Result<CreateVPCEConfigurationResult, RusotoError<CreateVPCEConfigurationError>> {
7806 let mut request = self.new_signed_request("POST", "/");
7807 request.add_header(
7808 "x-amz-target",
7809 "DeviceFarm_20150623.CreateVPCEConfiguration",
7810 );
7811 let encoded = serde_json::to_string(&input).unwrap();
7812 request.set_payload(Some(encoded));
7813
7814 let response = self
7815 .sign_and_dispatch(request, CreateVPCEConfigurationError::from_response)
7816 .await?;
7817 let mut response = response;
7818 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7819 proto::json::ResponsePayload::new(&response)
7820 .deserialize::<CreateVPCEConfigurationResult, _>()
7821 }
7822
7823 async fn delete_device_pool(
7825 &self,
7826 input: DeleteDevicePoolRequest,
7827 ) -> Result<DeleteDevicePoolResult, RusotoError<DeleteDevicePoolError>> {
7828 let mut request = self.new_signed_request("POST", "/");
7829 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteDevicePool");
7830 let encoded = serde_json::to_string(&input).unwrap();
7831 request.set_payload(Some(encoded));
7832
7833 let response = self
7834 .sign_and_dispatch(request, DeleteDevicePoolError::from_response)
7835 .await?;
7836 let mut response = response;
7837 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7838 proto::json::ResponsePayload::new(&response).deserialize::<DeleteDevicePoolResult, _>()
7839 }
7840
7841 async fn delete_instance_profile(
7843 &self,
7844 input: DeleteInstanceProfileRequest,
7845 ) -> Result<DeleteInstanceProfileResult, RusotoError<DeleteInstanceProfileError>> {
7846 let mut request = self.new_signed_request("POST", "/");
7847 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteInstanceProfile");
7848 let encoded = serde_json::to_string(&input).unwrap();
7849 request.set_payload(Some(encoded));
7850
7851 let response = self
7852 .sign_and_dispatch(request, DeleteInstanceProfileError::from_response)
7853 .await?;
7854 let mut response = response;
7855 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7856 proto::json::ResponsePayload::new(&response).deserialize::<DeleteInstanceProfileResult, _>()
7857 }
7858
7859 async fn delete_network_profile(
7861 &self,
7862 input: DeleteNetworkProfileRequest,
7863 ) -> Result<DeleteNetworkProfileResult, RusotoError<DeleteNetworkProfileError>> {
7864 let mut request = self.new_signed_request("POST", "/");
7865 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteNetworkProfile");
7866 let encoded = serde_json::to_string(&input).unwrap();
7867 request.set_payload(Some(encoded));
7868
7869 let response = self
7870 .sign_and_dispatch(request, DeleteNetworkProfileError::from_response)
7871 .await?;
7872 let mut response = response;
7873 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7874 proto::json::ResponsePayload::new(&response).deserialize::<DeleteNetworkProfileResult, _>()
7875 }
7876
7877 async fn delete_project(
7879 &self,
7880 input: DeleteProjectRequest,
7881 ) -> Result<DeleteProjectResult, RusotoError<DeleteProjectError>> {
7882 let mut request = self.new_signed_request("POST", "/");
7883 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteProject");
7884 let encoded = serde_json::to_string(&input).unwrap();
7885 request.set_payload(Some(encoded));
7886
7887 let response = self
7888 .sign_and_dispatch(request, DeleteProjectError::from_response)
7889 .await?;
7890 let mut response = response;
7891 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7892 proto::json::ResponsePayload::new(&response).deserialize::<DeleteProjectResult, _>()
7893 }
7894
7895 async fn delete_remote_access_session(
7897 &self,
7898 input: DeleteRemoteAccessSessionRequest,
7899 ) -> Result<DeleteRemoteAccessSessionResult, RusotoError<DeleteRemoteAccessSessionError>> {
7900 let mut request = self.new_signed_request("POST", "/");
7901 request.add_header(
7902 "x-amz-target",
7903 "DeviceFarm_20150623.DeleteRemoteAccessSession",
7904 );
7905 let encoded = serde_json::to_string(&input).unwrap();
7906 request.set_payload(Some(encoded));
7907
7908 let response = self
7909 .sign_and_dispatch(request, DeleteRemoteAccessSessionError::from_response)
7910 .await?;
7911 let mut response = response;
7912 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7913 proto::json::ResponsePayload::new(&response)
7914 .deserialize::<DeleteRemoteAccessSessionResult, _>()
7915 }
7916
7917 async fn delete_run(
7919 &self,
7920 input: DeleteRunRequest,
7921 ) -> Result<DeleteRunResult, RusotoError<DeleteRunError>> {
7922 let mut request = self.new_signed_request("POST", "/");
7923 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteRun");
7924 let encoded = serde_json::to_string(&input).unwrap();
7925 request.set_payload(Some(encoded));
7926
7927 let response = self
7928 .sign_and_dispatch(request, DeleteRunError::from_response)
7929 .await?;
7930 let mut response = response;
7931 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7932 proto::json::ResponsePayload::new(&response).deserialize::<DeleteRunResult, _>()
7933 }
7934
7935 async fn delete_test_grid_project(
7937 &self,
7938 input: DeleteTestGridProjectRequest,
7939 ) -> Result<DeleteTestGridProjectResult, RusotoError<DeleteTestGridProjectError>> {
7940 let mut request = self.new_signed_request("POST", "/");
7941 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteTestGridProject");
7942 let encoded = serde_json::to_string(&input).unwrap();
7943 request.set_payload(Some(encoded));
7944
7945 let response = self
7946 .sign_and_dispatch(request, DeleteTestGridProjectError::from_response)
7947 .await?;
7948 let mut response = response;
7949 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7950 proto::json::ResponsePayload::new(&response).deserialize::<DeleteTestGridProjectResult, _>()
7951 }
7952
7953 async fn delete_upload(
7955 &self,
7956 input: DeleteUploadRequest,
7957 ) -> Result<DeleteUploadResult, RusotoError<DeleteUploadError>> {
7958 let mut request = self.new_signed_request("POST", "/");
7959 request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteUpload");
7960 let encoded = serde_json::to_string(&input).unwrap();
7961 request.set_payload(Some(encoded));
7962
7963 let response = self
7964 .sign_and_dispatch(request, DeleteUploadError::from_response)
7965 .await?;
7966 let mut response = response;
7967 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7968 proto::json::ResponsePayload::new(&response).deserialize::<DeleteUploadResult, _>()
7969 }
7970
7971 async fn delete_vpce_configuration(
7973 &self,
7974 input: DeleteVPCEConfigurationRequest,
7975 ) -> Result<DeleteVPCEConfigurationResult, RusotoError<DeleteVPCEConfigurationError>> {
7976 let mut request = self.new_signed_request("POST", "/");
7977 request.add_header(
7978 "x-amz-target",
7979 "DeviceFarm_20150623.DeleteVPCEConfiguration",
7980 );
7981 let encoded = serde_json::to_string(&input).unwrap();
7982 request.set_payload(Some(encoded));
7983
7984 let response = self
7985 .sign_and_dispatch(request, DeleteVPCEConfigurationError::from_response)
7986 .await?;
7987 let mut response = response;
7988 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
7989 proto::json::ResponsePayload::new(&response)
7990 .deserialize::<DeleteVPCEConfigurationResult, _>()
7991 }
7992
7993 async fn get_account_settings(
7995 &self,
7996 ) -> Result<GetAccountSettingsResult, RusotoError<GetAccountSettingsError>> {
7997 let mut request = self.new_signed_request("POST", "/");
7998 request.add_header("x-amz-target", "DeviceFarm_20150623.GetAccountSettings");
7999 request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
8000
8001 let response = self
8002 .sign_and_dispatch(request, GetAccountSettingsError::from_response)
8003 .await?;
8004 let mut response = response;
8005 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8006 proto::json::ResponsePayload::new(&response).deserialize::<GetAccountSettingsResult, _>()
8007 }
8008
8009 async fn get_device(
8011 &self,
8012 input: GetDeviceRequest,
8013 ) -> Result<GetDeviceResult, RusotoError<GetDeviceError>> {
8014 let mut request = self.new_signed_request("POST", "/");
8015 request.add_header("x-amz-target", "DeviceFarm_20150623.GetDevice");
8016 let encoded = serde_json::to_string(&input).unwrap();
8017 request.set_payload(Some(encoded));
8018
8019 let response = self
8020 .sign_and_dispatch(request, GetDeviceError::from_response)
8021 .await?;
8022 let mut response = response;
8023 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8024 proto::json::ResponsePayload::new(&response).deserialize::<GetDeviceResult, _>()
8025 }
8026
8027 async fn get_device_instance(
8029 &self,
8030 input: GetDeviceInstanceRequest,
8031 ) -> Result<GetDeviceInstanceResult, RusotoError<GetDeviceInstanceError>> {
8032 let mut request = self.new_signed_request("POST", "/");
8033 request.add_header("x-amz-target", "DeviceFarm_20150623.GetDeviceInstance");
8034 let encoded = serde_json::to_string(&input).unwrap();
8035 request.set_payload(Some(encoded));
8036
8037 let response = self
8038 .sign_and_dispatch(request, GetDeviceInstanceError::from_response)
8039 .await?;
8040 let mut response = response;
8041 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8042 proto::json::ResponsePayload::new(&response).deserialize::<GetDeviceInstanceResult, _>()
8043 }
8044
8045 async fn get_device_pool(
8047 &self,
8048 input: GetDevicePoolRequest,
8049 ) -> Result<GetDevicePoolResult, RusotoError<GetDevicePoolError>> {
8050 let mut request = self.new_signed_request("POST", "/");
8051 request.add_header("x-amz-target", "DeviceFarm_20150623.GetDevicePool");
8052 let encoded = serde_json::to_string(&input).unwrap();
8053 request.set_payload(Some(encoded));
8054
8055 let response = self
8056 .sign_and_dispatch(request, GetDevicePoolError::from_response)
8057 .await?;
8058 let mut response = response;
8059 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8060 proto::json::ResponsePayload::new(&response).deserialize::<GetDevicePoolResult, _>()
8061 }
8062
8063 async fn get_device_pool_compatibility(
8065 &self,
8066 input: GetDevicePoolCompatibilityRequest,
8067 ) -> Result<GetDevicePoolCompatibilityResult, RusotoError<GetDevicePoolCompatibilityError>>
8068 {
8069 let mut request = self.new_signed_request("POST", "/");
8070 request.add_header(
8071 "x-amz-target",
8072 "DeviceFarm_20150623.GetDevicePoolCompatibility",
8073 );
8074 let encoded = serde_json::to_string(&input).unwrap();
8075 request.set_payload(Some(encoded));
8076
8077 let response = self
8078 .sign_and_dispatch(request, GetDevicePoolCompatibilityError::from_response)
8079 .await?;
8080 let mut response = response;
8081 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8082 proto::json::ResponsePayload::new(&response)
8083 .deserialize::<GetDevicePoolCompatibilityResult, _>()
8084 }
8085
8086 async fn get_instance_profile(
8088 &self,
8089 input: GetInstanceProfileRequest,
8090 ) -> Result<GetInstanceProfileResult, RusotoError<GetInstanceProfileError>> {
8091 let mut request = self.new_signed_request("POST", "/");
8092 request.add_header("x-amz-target", "DeviceFarm_20150623.GetInstanceProfile");
8093 let encoded = serde_json::to_string(&input).unwrap();
8094 request.set_payload(Some(encoded));
8095
8096 let response = self
8097 .sign_and_dispatch(request, GetInstanceProfileError::from_response)
8098 .await?;
8099 let mut response = response;
8100 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8101 proto::json::ResponsePayload::new(&response).deserialize::<GetInstanceProfileResult, _>()
8102 }
8103
8104 async fn get_job(
8106 &self,
8107 input: GetJobRequest,
8108 ) -> Result<GetJobResult, RusotoError<GetJobError>> {
8109 let mut request = self.new_signed_request("POST", "/");
8110 request.add_header("x-amz-target", "DeviceFarm_20150623.GetJob");
8111 let encoded = serde_json::to_string(&input).unwrap();
8112 request.set_payload(Some(encoded));
8113
8114 let response = self
8115 .sign_and_dispatch(request, GetJobError::from_response)
8116 .await?;
8117 let mut response = response;
8118 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8119 proto::json::ResponsePayload::new(&response).deserialize::<GetJobResult, _>()
8120 }
8121
8122 async fn get_network_profile(
8124 &self,
8125 input: GetNetworkProfileRequest,
8126 ) -> Result<GetNetworkProfileResult, RusotoError<GetNetworkProfileError>> {
8127 let mut request = self.new_signed_request("POST", "/");
8128 request.add_header("x-amz-target", "DeviceFarm_20150623.GetNetworkProfile");
8129 let encoded = serde_json::to_string(&input).unwrap();
8130 request.set_payload(Some(encoded));
8131
8132 let response = self
8133 .sign_and_dispatch(request, GetNetworkProfileError::from_response)
8134 .await?;
8135 let mut response = response;
8136 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8137 proto::json::ResponsePayload::new(&response).deserialize::<GetNetworkProfileResult, _>()
8138 }
8139
8140 async fn get_offering_status(
8142 &self,
8143 input: GetOfferingStatusRequest,
8144 ) -> Result<GetOfferingStatusResult, RusotoError<GetOfferingStatusError>> {
8145 let mut request = self.new_signed_request("POST", "/");
8146 request.add_header("x-amz-target", "DeviceFarm_20150623.GetOfferingStatus");
8147 let encoded = serde_json::to_string(&input).unwrap();
8148 request.set_payload(Some(encoded));
8149
8150 let response = self
8151 .sign_and_dispatch(request, GetOfferingStatusError::from_response)
8152 .await?;
8153 let mut response = response;
8154 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8155 proto::json::ResponsePayload::new(&response).deserialize::<GetOfferingStatusResult, _>()
8156 }
8157
8158 async fn get_project(
8160 &self,
8161 input: GetProjectRequest,
8162 ) -> Result<GetProjectResult, RusotoError<GetProjectError>> {
8163 let mut request = self.new_signed_request("POST", "/");
8164 request.add_header("x-amz-target", "DeviceFarm_20150623.GetProject");
8165 let encoded = serde_json::to_string(&input).unwrap();
8166 request.set_payload(Some(encoded));
8167
8168 let response = self
8169 .sign_and_dispatch(request, GetProjectError::from_response)
8170 .await?;
8171 let mut response = response;
8172 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8173 proto::json::ResponsePayload::new(&response).deserialize::<GetProjectResult, _>()
8174 }
8175
8176 async fn get_remote_access_session(
8178 &self,
8179 input: GetRemoteAccessSessionRequest,
8180 ) -> Result<GetRemoteAccessSessionResult, RusotoError<GetRemoteAccessSessionError>> {
8181 let mut request = self.new_signed_request("POST", "/");
8182 request.add_header("x-amz-target", "DeviceFarm_20150623.GetRemoteAccessSession");
8183 let encoded = serde_json::to_string(&input).unwrap();
8184 request.set_payload(Some(encoded));
8185
8186 let response = self
8187 .sign_and_dispatch(request, GetRemoteAccessSessionError::from_response)
8188 .await?;
8189 let mut response = response;
8190 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8191 proto::json::ResponsePayload::new(&response)
8192 .deserialize::<GetRemoteAccessSessionResult, _>()
8193 }
8194
8195 async fn get_run(
8197 &self,
8198 input: GetRunRequest,
8199 ) -> Result<GetRunResult, RusotoError<GetRunError>> {
8200 let mut request = self.new_signed_request("POST", "/");
8201 request.add_header("x-amz-target", "DeviceFarm_20150623.GetRun");
8202 let encoded = serde_json::to_string(&input).unwrap();
8203 request.set_payload(Some(encoded));
8204
8205 let response = self
8206 .sign_and_dispatch(request, GetRunError::from_response)
8207 .await?;
8208 let mut response = response;
8209 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8210 proto::json::ResponsePayload::new(&response).deserialize::<GetRunResult, _>()
8211 }
8212
8213 async fn get_suite(
8215 &self,
8216 input: GetSuiteRequest,
8217 ) -> Result<GetSuiteResult, RusotoError<GetSuiteError>> {
8218 let mut request = self.new_signed_request("POST", "/");
8219 request.add_header("x-amz-target", "DeviceFarm_20150623.GetSuite");
8220 let encoded = serde_json::to_string(&input).unwrap();
8221 request.set_payload(Some(encoded));
8222
8223 let response = self
8224 .sign_and_dispatch(request, GetSuiteError::from_response)
8225 .await?;
8226 let mut response = response;
8227 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8228 proto::json::ResponsePayload::new(&response).deserialize::<GetSuiteResult, _>()
8229 }
8230
8231 async fn get_test(
8233 &self,
8234 input: GetTestRequest,
8235 ) -> Result<GetTestResult, RusotoError<GetTestError>> {
8236 let mut request = self.new_signed_request("POST", "/");
8237 request.add_header("x-amz-target", "DeviceFarm_20150623.GetTest");
8238 let encoded = serde_json::to_string(&input).unwrap();
8239 request.set_payload(Some(encoded));
8240
8241 let response = self
8242 .sign_and_dispatch(request, GetTestError::from_response)
8243 .await?;
8244 let mut response = response;
8245 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8246 proto::json::ResponsePayload::new(&response).deserialize::<GetTestResult, _>()
8247 }
8248
8249 async fn get_test_grid_project(
8251 &self,
8252 input: GetTestGridProjectRequest,
8253 ) -> Result<GetTestGridProjectResult, RusotoError<GetTestGridProjectError>> {
8254 let mut request = self.new_signed_request("POST", "/");
8255 request.add_header("x-amz-target", "DeviceFarm_20150623.GetTestGridProject");
8256 let encoded = serde_json::to_string(&input).unwrap();
8257 request.set_payload(Some(encoded));
8258
8259 let response = self
8260 .sign_and_dispatch(request, GetTestGridProjectError::from_response)
8261 .await?;
8262 let mut response = response;
8263 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8264 proto::json::ResponsePayload::new(&response).deserialize::<GetTestGridProjectResult, _>()
8265 }
8266
8267 async fn get_test_grid_session(
8269 &self,
8270 input: GetTestGridSessionRequest,
8271 ) -> Result<GetTestGridSessionResult, RusotoError<GetTestGridSessionError>> {
8272 let mut request = self.new_signed_request("POST", "/");
8273 request.add_header("x-amz-target", "DeviceFarm_20150623.GetTestGridSession");
8274 let encoded = serde_json::to_string(&input).unwrap();
8275 request.set_payload(Some(encoded));
8276
8277 let response = self
8278 .sign_and_dispatch(request, GetTestGridSessionError::from_response)
8279 .await?;
8280 let mut response = response;
8281 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8282 proto::json::ResponsePayload::new(&response).deserialize::<GetTestGridSessionResult, _>()
8283 }
8284
8285 async fn get_upload(
8287 &self,
8288 input: GetUploadRequest,
8289 ) -> Result<GetUploadResult, RusotoError<GetUploadError>> {
8290 let mut request = self.new_signed_request("POST", "/");
8291 request.add_header("x-amz-target", "DeviceFarm_20150623.GetUpload");
8292 let encoded = serde_json::to_string(&input).unwrap();
8293 request.set_payload(Some(encoded));
8294
8295 let response = self
8296 .sign_and_dispatch(request, GetUploadError::from_response)
8297 .await?;
8298 let mut response = response;
8299 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8300 proto::json::ResponsePayload::new(&response).deserialize::<GetUploadResult, _>()
8301 }
8302
8303 async fn get_vpce_configuration(
8305 &self,
8306 input: GetVPCEConfigurationRequest,
8307 ) -> Result<GetVPCEConfigurationResult, RusotoError<GetVPCEConfigurationError>> {
8308 let mut request = self.new_signed_request("POST", "/");
8309 request.add_header("x-amz-target", "DeviceFarm_20150623.GetVPCEConfiguration");
8310 let encoded = serde_json::to_string(&input).unwrap();
8311 request.set_payload(Some(encoded));
8312
8313 let response = self
8314 .sign_and_dispatch(request, GetVPCEConfigurationError::from_response)
8315 .await?;
8316 let mut response = response;
8317 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8318 proto::json::ResponsePayload::new(&response).deserialize::<GetVPCEConfigurationResult, _>()
8319 }
8320
8321 async fn install_to_remote_access_session(
8323 &self,
8324 input: InstallToRemoteAccessSessionRequest,
8325 ) -> Result<InstallToRemoteAccessSessionResult, RusotoError<InstallToRemoteAccessSessionError>>
8326 {
8327 let mut request = self.new_signed_request("POST", "/");
8328 request.add_header(
8329 "x-amz-target",
8330 "DeviceFarm_20150623.InstallToRemoteAccessSession",
8331 );
8332 let encoded = serde_json::to_string(&input).unwrap();
8333 request.set_payload(Some(encoded));
8334
8335 let response = self
8336 .sign_and_dispatch(request, InstallToRemoteAccessSessionError::from_response)
8337 .await?;
8338 let mut response = response;
8339 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8340 proto::json::ResponsePayload::new(&response)
8341 .deserialize::<InstallToRemoteAccessSessionResult, _>()
8342 }
8343
8344 async fn list_artifacts(
8346 &self,
8347 input: ListArtifactsRequest,
8348 ) -> Result<ListArtifactsResult, RusotoError<ListArtifactsError>> {
8349 let mut request = self.new_signed_request("POST", "/");
8350 request.add_header("x-amz-target", "DeviceFarm_20150623.ListArtifacts");
8351 let encoded = serde_json::to_string(&input).unwrap();
8352 request.set_payload(Some(encoded));
8353
8354 let response = self
8355 .sign_and_dispatch(request, ListArtifactsError::from_response)
8356 .await?;
8357 let mut response = response;
8358 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8359 proto::json::ResponsePayload::new(&response).deserialize::<ListArtifactsResult, _>()
8360 }
8361
8362 async fn list_device_instances(
8364 &self,
8365 input: ListDeviceInstancesRequest,
8366 ) -> Result<ListDeviceInstancesResult, RusotoError<ListDeviceInstancesError>> {
8367 let mut request = self.new_signed_request("POST", "/");
8368 request.add_header("x-amz-target", "DeviceFarm_20150623.ListDeviceInstances");
8369 let encoded = serde_json::to_string(&input).unwrap();
8370 request.set_payload(Some(encoded));
8371
8372 let response = self
8373 .sign_and_dispatch(request, ListDeviceInstancesError::from_response)
8374 .await?;
8375 let mut response = response;
8376 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8377 proto::json::ResponsePayload::new(&response).deserialize::<ListDeviceInstancesResult, _>()
8378 }
8379
8380 async fn list_device_pools(
8382 &self,
8383 input: ListDevicePoolsRequest,
8384 ) -> Result<ListDevicePoolsResult, RusotoError<ListDevicePoolsError>> {
8385 let mut request = self.new_signed_request("POST", "/");
8386 request.add_header("x-amz-target", "DeviceFarm_20150623.ListDevicePools");
8387 let encoded = serde_json::to_string(&input).unwrap();
8388 request.set_payload(Some(encoded));
8389
8390 let response = self
8391 .sign_and_dispatch(request, ListDevicePoolsError::from_response)
8392 .await?;
8393 let mut response = response;
8394 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8395 proto::json::ResponsePayload::new(&response).deserialize::<ListDevicePoolsResult, _>()
8396 }
8397
8398 async fn list_devices(
8400 &self,
8401 input: ListDevicesRequest,
8402 ) -> Result<ListDevicesResult, RusotoError<ListDevicesError>> {
8403 let mut request = self.new_signed_request("POST", "/");
8404 request.add_header("x-amz-target", "DeviceFarm_20150623.ListDevices");
8405 let encoded = serde_json::to_string(&input).unwrap();
8406 request.set_payload(Some(encoded));
8407
8408 let response = self
8409 .sign_and_dispatch(request, ListDevicesError::from_response)
8410 .await?;
8411 let mut response = response;
8412 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8413 proto::json::ResponsePayload::new(&response).deserialize::<ListDevicesResult, _>()
8414 }
8415
8416 async fn list_instance_profiles(
8418 &self,
8419 input: ListInstanceProfilesRequest,
8420 ) -> Result<ListInstanceProfilesResult, RusotoError<ListInstanceProfilesError>> {
8421 let mut request = self.new_signed_request("POST", "/");
8422 request.add_header("x-amz-target", "DeviceFarm_20150623.ListInstanceProfiles");
8423 let encoded = serde_json::to_string(&input).unwrap();
8424 request.set_payload(Some(encoded));
8425
8426 let response = self
8427 .sign_and_dispatch(request, ListInstanceProfilesError::from_response)
8428 .await?;
8429 let mut response = response;
8430 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8431 proto::json::ResponsePayload::new(&response).deserialize::<ListInstanceProfilesResult, _>()
8432 }
8433
8434 async fn list_jobs(
8436 &self,
8437 input: ListJobsRequest,
8438 ) -> Result<ListJobsResult, RusotoError<ListJobsError>> {
8439 let mut request = self.new_signed_request("POST", "/");
8440 request.add_header("x-amz-target", "DeviceFarm_20150623.ListJobs");
8441 let encoded = serde_json::to_string(&input).unwrap();
8442 request.set_payload(Some(encoded));
8443
8444 let response = self
8445 .sign_and_dispatch(request, ListJobsError::from_response)
8446 .await?;
8447 let mut response = response;
8448 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8449 proto::json::ResponsePayload::new(&response).deserialize::<ListJobsResult, _>()
8450 }
8451
8452 async fn list_network_profiles(
8454 &self,
8455 input: ListNetworkProfilesRequest,
8456 ) -> Result<ListNetworkProfilesResult, RusotoError<ListNetworkProfilesError>> {
8457 let mut request = self.new_signed_request("POST", "/");
8458 request.add_header("x-amz-target", "DeviceFarm_20150623.ListNetworkProfiles");
8459 let encoded = serde_json::to_string(&input).unwrap();
8460 request.set_payload(Some(encoded));
8461
8462 let response = self
8463 .sign_and_dispatch(request, ListNetworkProfilesError::from_response)
8464 .await?;
8465 let mut response = response;
8466 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8467 proto::json::ResponsePayload::new(&response).deserialize::<ListNetworkProfilesResult, _>()
8468 }
8469
8470 async fn list_offering_promotions(
8472 &self,
8473 input: ListOfferingPromotionsRequest,
8474 ) -> Result<ListOfferingPromotionsResult, RusotoError<ListOfferingPromotionsError>> {
8475 let mut request = self.new_signed_request("POST", "/");
8476 request.add_header("x-amz-target", "DeviceFarm_20150623.ListOfferingPromotions");
8477 let encoded = serde_json::to_string(&input).unwrap();
8478 request.set_payload(Some(encoded));
8479
8480 let response = self
8481 .sign_and_dispatch(request, ListOfferingPromotionsError::from_response)
8482 .await?;
8483 let mut response = response;
8484 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8485 proto::json::ResponsePayload::new(&response)
8486 .deserialize::<ListOfferingPromotionsResult, _>()
8487 }
8488
8489 async fn list_offering_transactions(
8491 &self,
8492 input: ListOfferingTransactionsRequest,
8493 ) -> Result<ListOfferingTransactionsResult, RusotoError<ListOfferingTransactionsError>> {
8494 let mut request = self.new_signed_request("POST", "/");
8495 request.add_header(
8496 "x-amz-target",
8497 "DeviceFarm_20150623.ListOfferingTransactions",
8498 );
8499 let encoded = serde_json::to_string(&input).unwrap();
8500 request.set_payload(Some(encoded));
8501
8502 let response = self
8503 .sign_and_dispatch(request, ListOfferingTransactionsError::from_response)
8504 .await?;
8505 let mut response = response;
8506 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8507 proto::json::ResponsePayload::new(&response)
8508 .deserialize::<ListOfferingTransactionsResult, _>()
8509 }
8510
8511 async fn list_offerings(
8513 &self,
8514 input: ListOfferingsRequest,
8515 ) -> Result<ListOfferingsResult, RusotoError<ListOfferingsError>> {
8516 let mut request = self.new_signed_request("POST", "/");
8517 request.add_header("x-amz-target", "DeviceFarm_20150623.ListOfferings");
8518 let encoded = serde_json::to_string(&input).unwrap();
8519 request.set_payload(Some(encoded));
8520
8521 let response = self
8522 .sign_and_dispatch(request, ListOfferingsError::from_response)
8523 .await?;
8524 let mut response = response;
8525 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8526 proto::json::ResponsePayload::new(&response).deserialize::<ListOfferingsResult, _>()
8527 }
8528
8529 async fn list_projects(
8531 &self,
8532 input: ListProjectsRequest,
8533 ) -> Result<ListProjectsResult, RusotoError<ListProjectsError>> {
8534 let mut request = self.new_signed_request("POST", "/");
8535 request.add_header("x-amz-target", "DeviceFarm_20150623.ListProjects");
8536 let encoded = serde_json::to_string(&input).unwrap();
8537 request.set_payload(Some(encoded));
8538
8539 let response = self
8540 .sign_and_dispatch(request, ListProjectsError::from_response)
8541 .await?;
8542 let mut response = response;
8543 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8544 proto::json::ResponsePayload::new(&response).deserialize::<ListProjectsResult, _>()
8545 }
8546
8547 async fn list_remote_access_sessions(
8549 &self,
8550 input: ListRemoteAccessSessionsRequest,
8551 ) -> Result<ListRemoteAccessSessionsResult, RusotoError<ListRemoteAccessSessionsError>> {
8552 let mut request = self.new_signed_request("POST", "/");
8553 request.add_header(
8554 "x-amz-target",
8555 "DeviceFarm_20150623.ListRemoteAccessSessions",
8556 );
8557 let encoded = serde_json::to_string(&input).unwrap();
8558 request.set_payload(Some(encoded));
8559
8560 let response = self
8561 .sign_and_dispatch(request, ListRemoteAccessSessionsError::from_response)
8562 .await?;
8563 let mut response = response;
8564 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8565 proto::json::ResponsePayload::new(&response)
8566 .deserialize::<ListRemoteAccessSessionsResult, _>()
8567 }
8568
8569 async fn list_runs(
8571 &self,
8572 input: ListRunsRequest,
8573 ) -> Result<ListRunsResult, RusotoError<ListRunsError>> {
8574 let mut request = self.new_signed_request("POST", "/");
8575 request.add_header("x-amz-target", "DeviceFarm_20150623.ListRuns");
8576 let encoded = serde_json::to_string(&input).unwrap();
8577 request.set_payload(Some(encoded));
8578
8579 let response = self
8580 .sign_and_dispatch(request, ListRunsError::from_response)
8581 .await?;
8582 let mut response = response;
8583 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8584 proto::json::ResponsePayload::new(&response).deserialize::<ListRunsResult, _>()
8585 }
8586
8587 async fn list_samples(
8589 &self,
8590 input: ListSamplesRequest,
8591 ) -> Result<ListSamplesResult, RusotoError<ListSamplesError>> {
8592 let mut request = self.new_signed_request("POST", "/");
8593 request.add_header("x-amz-target", "DeviceFarm_20150623.ListSamples");
8594 let encoded = serde_json::to_string(&input).unwrap();
8595 request.set_payload(Some(encoded));
8596
8597 let response = self
8598 .sign_and_dispatch(request, ListSamplesError::from_response)
8599 .await?;
8600 let mut response = response;
8601 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8602 proto::json::ResponsePayload::new(&response).deserialize::<ListSamplesResult, _>()
8603 }
8604
8605 async fn list_suites(
8607 &self,
8608 input: ListSuitesRequest,
8609 ) -> Result<ListSuitesResult, RusotoError<ListSuitesError>> {
8610 let mut request = self.new_signed_request("POST", "/");
8611 request.add_header("x-amz-target", "DeviceFarm_20150623.ListSuites");
8612 let encoded = serde_json::to_string(&input).unwrap();
8613 request.set_payload(Some(encoded));
8614
8615 let response = self
8616 .sign_and_dispatch(request, ListSuitesError::from_response)
8617 .await?;
8618 let mut response = response;
8619 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8620 proto::json::ResponsePayload::new(&response).deserialize::<ListSuitesResult, _>()
8621 }
8622
8623 async fn list_tags_for_resource(
8625 &self,
8626 input: ListTagsForResourceRequest,
8627 ) -> Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>> {
8628 let mut request = self.new_signed_request("POST", "/");
8629 request.add_header("x-amz-target", "DeviceFarm_20150623.ListTagsForResource");
8630 let encoded = serde_json::to_string(&input).unwrap();
8631 request.set_payload(Some(encoded));
8632
8633 let response = self
8634 .sign_and_dispatch(request, ListTagsForResourceError::from_response)
8635 .await?;
8636 let mut response = response;
8637 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8638 proto::json::ResponsePayload::new(&response).deserialize::<ListTagsForResourceResponse, _>()
8639 }
8640
8641 async fn list_test_grid_projects(
8643 &self,
8644 input: ListTestGridProjectsRequest,
8645 ) -> Result<ListTestGridProjectsResult, RusotoError<ListTestGridProjectsError>> {
8646 let mut request = self.new_signed_request("POST", "/");
8647 request.add_header("x-amz-target", "DeviceFarm_20150623.ListTestGridProjects");
8648 let encoded = serde_json::to_string(&input).unwrap();
8649 request.set_payload(Some(encoded));
8650
8651 let response = self
8652 .sign_and_dispatch(request, ListTestGridProjectsError::from_response)
8653 .await?;
8654 let mut response = response;
8655 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8656 proto::json::ResponsePayload::new(&response).deserialize::<ListTestGridProjectsResult, _>()
8657 }
8658
8659 async fn list_test_grid_session_actions(
8661 &self,
8662 input: ListTestGridSessionActionsRequest,
8663 ) -> Result<ListTestGridSessionActionsResult, RusotoError<ListTestGridSessionActionsError>>
8664 {
8665 let mut request = self.new_signed_request("POST", "/");
8666 request.add_header(
8667 "x-amz-target",
8668 "DeviceFarm_20150623.ListTestGridSessionActions",
8669 );
8670 let encoded = serde_json::to_string(&input).unwrap();
8671 request.set_payload(Some(encoded));
8672
8673 let response = self
8674 .sign_and_dispatch(request, ListTestGridSessionActionsError::from_response)
8675 .await?;
8676 let mut response = response;
8677 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8678 proto::json::ResponsePayload::new(&response)
8679 .deserialize::<ListTestGridSessionActionsResult, _>()
8680 }
8681
8682 async fn list_test_grid_session_artifacts(
8684 &self,
8685 input: ListTestGridSessionArtifactsRequest,
8686 ) -> Result<ListTestGridSessionArtifactsResult, RusotoError<ListTestGridSessionArtifactsError>>
8687 {
8688 let mut request = self.new_signed_request("POST", "/");
8689 request.add_header(
8690 "x-amz-target",
8691 "DeviceFarm_20150623.ListTestGridSessionArtifacts",
8692 );
8693 let encoded = serde_json::to_string(&input).unwrap();
8694 request.set_payload(Some(encoded));
8695
8696 let response = self
8697 .sign_and_dispatch(request, ListTestGridSessionArtifactsError::from_response)
8698 .await?;
8699 let mut response = response;
8700 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8701 proto::json::ResponsePayload::new(&response)
8702 .deserialize::<ListTestGridSessionArtifactsResult, _>()
8703 }
8704
8705 async fn list_test_grid_sessions(
8707 &self,
8708 input: ListTestGridSessionsRequest,
8709 ) -> Result<ListTestGridSessionsResult, RusotoError<ListTestGridSessionsError>> {
8710 let mut request = self.new_signed_request("POST", "/");
8711 request.add_header("x-amz-target", "DeviceFarm_20150623.ListTestGridSessions");
8712 let encoded = serde_json::to_string(&input).unwrap();
8713 request.set_payload(Some(encoded));
8714
8715 let response = self
8716 .sign_and_dispatch(request, ListTestGridSessionsError::from_response)
8717 .await?;
8718 let mut response = response;
8719 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8720 proto::json::ResponsePayload::new(&response).deserialize::<ListTestGridSessionsResult, _>()
8721 }
8722
8723 async fn list_tests(
8725 &self,
8726 input: ListTestsRequest,
8727 ) -> Result<ListTestsResult, RusotoError<ListTestsError>> {
8728 let mut request = self.new_signed_request("POST", "/");
8729 request.add_header("x-amz-target", "DeviceFarm_20150623.ListTests");
8730 let encoded = serde_json::to_string(&input).unwrap();
8731 request.set_payload(Some(encoded));
8732
8733 let response = self
8734 .sign_and_dispatch(request, ListTestsError::from_response)
8735 .await?;
8736 let mut response = response;
8737 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8738 proto::json::ResponsePayload::new(&response).deserialize::<ListTestsResult, _>()
8739 }
8740
8741 async fn list_unique_problems(
8743 &self,
8744 input: ListUniqueProblemsRequest,
8745 ) -> Result<ListUniqueProblemsResult, RusotoError<ListUniqueProblemsError>> {
8746 let mut request = self.new_signed_request("POST", "/");
8747 request.add_header("x-amz-target", "DeviceFarm_20150623.ListUniqueProblems");
8748 let encoded = serde_json::to_string(&input).unwrap();
8749 request.set_payload(Some(encoded));
8750
8751 let response = self
8752 .sign_and_dispatch(request, ListUniqueProblemsError::from_response)
8753 .await?;
8754 let mut response = response;
8755 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8756 proto::json::ResponsePayload::new(&response).deserialize::<ListUniqueProblemsResult, _>()
8757 }
8758
8759 async fn list_uploads(
8761 &self,
8762 input: ListUploadsRequest,
8763 ) -> Result<ListUploadsResult, RusotoError<ListUploadsError>> {
8764 let mut request = self.new_signed_request("POST", "/");
8765 request.add_header("x-amz-target", "DeviceFarm_20150623.ListUploads");
8766 let encoded = serde_json::to_string(&input).unwrap();
8767 request.set_payload(Some(encoded));
8768
8769 let response = self
8770 .sign_and_dispatch(request, ListUploadsError::from_response)
8771 .await?;
8772 let mut response = response;
8773 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8774 proto::json::ResponsePayload::new(&response).deserialize::<ListUploadsResult, _>()
8775 }
8776
8777 async fn list_vpce_configurations(
8779 &self,
8780 input: ListVPCEConfigurationsRequest,
8781 ) -> Result<ListVPCEConfigurationsResult, RusotoError<ListVPCEConfigurationsError>> {
8782 let mut request = self.new_signed_request("POST", "/");
8783 request.add_header("x-amz-target", "DeviceFarm_20150623.ListVPCEConfigurations");
8784 let encoded = serde_json::to_string(&input).unwrap();
8785 request.set_payload(Some(encoded));
8786
8787 let response = self
8788 .sign_and_dispatch(request, ListVPCEConfigurationsError::from_response)
8789 .await?;
8790 let mut response = response;
8791 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8792 proto::json::ResponsePayload::new(&response)
8793 .deserialize::<ListVPCEConfigurationsResult, _>()
8794 }
8795
8796 async fn purchase_offering(
8798 &self,
8799 input: PurchaseOfferingRequest,
8800 ) -> Result<PurchaseOfferingResult, RusotoError<PurchaseOfferingError>> {
8801 let mut request = self.new_signed_request("POST", "/");
8802 request.add_header("x-amz-target", "DeviceFarm_20150623.PurchaseOffering");
8803 let encoded = serde_json::to_string(&input).unwrap();
8804 request.set_payload(Some(encoded));
8805
8806 let response = self
8807 .sign_and_dispatch(request, PurchaseOfferingError::from_response)
8808 .await?;
8809 let mut response = response;
8810 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8811 proto::json::ResponsePayload::new(&response).deserialize::<PurchaseOfferingResult, _>()
8812 }
8813
8814 async fn renew_offering(
8816 &self,
8817 input: RenewOfferingRequest,
8818 ) -> Result<RenewOfferingResult, RusotoError<RenewOfferingError>> {
8819 let mut request = self.new_signed_request("POST", "/");
8820 request.add_header("x-amz-target", "DeviceFarm_20150623.RenewOffering");
8821 let encoded = serde_json::to_string(&input).unwrap();
8822 request.set_payload(Some(encoded));
8823
8824 let response = self
8825 .sign_and_dispatch(request, RenewOfferingError::from_response)
8826 .await?;
8827 let mut response = response;
8828 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8829 proto::json::ResponsePayload::new(&response).deserialize::<RenewOfferingResult, _>()
8830 }
8831
8832 async fn schedule_run(
8834 &self,
8835 input: ScheduleRunRequest,
8836 ) -> Result<ScheduleRunResult, RusotoError<ScheduleRunError>> {
8837 let mut request = self.new_signed_request("POST", "/");
8838 request.add_header("x-amz-target", "DeviceFarm_20150623.ScheduleRun");
8839 let encoded = serde_json::to_string(&input).unwrap();
8840 request.set_payload(Some(encoded));
8841
8842 let response = self
8843 .sign_and_dispatch(request, ScheduleRunError::from_response)
8844 .await?;
8845 let mut response = response;
8846 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8847 proto::json::ResponsePayload::new(&response).deserialize::<ScheduleRunResult, _>()
8848 }
8849
8850 async fn stop_job(
8852 &self,
8853 input: StopJobRequest,
8854 ) -> Result<StopJobResult, RusotoError<StopJobError>> {
8855 let mut request = self.new_signed_request("POST", "/");
8856 request.add_header("x-amz-target", "DeviceFarm_20150623.StopJob");
8857 let encoded = serde_json::to_string(&input).unwrap();
8858 request.set_payload(Some(encoded));
8859
8860 let response = self
8861 .sign_and_dispatch(request, StopJobError::from_response)
8862 .await?;
8863 let mut response = response;
8864 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8865 proto::json::ResponsePayload::new(&response).deserialize::<StopJobResult, _>()
8866 }
8867
8868 async fn stop_remote_access_session(
8870 &self,
8871 input: StopRemoteAccessSessionRequest,
8872 ) -> Result<StopRemoteAccessSessionResult, RusotoError<StopRemoteAccessSessionError>> {
8873 let mut request = self.new_signed_request("POST", "/");
8874 request.add_header(
8875 "x-amz-target",
8876 "DeviceFarm_20150623.StopRemoteAccessSession",
8877 );
8878 let encoded = serde_json::to_string(&input).unwrap();
8879 request.set_payload(Some(encoded));
8880
8881 let response = self
8882 .sign_and_dispatch(request, StopRemoteAccessSessionError::from_response)
8883 .await?;
8884 let mut response = response;
8885 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8886 proto::json::ResponsePayload::new(&response)
8887 .deserialize::<StopRemoteAccessSessionResult, _>()
8888 }
8889
8890 async fn stop_run(
8892 &self,
8893 input: StopRunRequest,
8894 ) -> Result<StopRunResult, RusotoError<StopRunError>> {
8895 let mut request = self.new_signed_request("POST", "/");
8896 request.add_header("x-amz-target", "DeviceFarm_20150623.StopRun");
8897 let encoded = serde_json::to_string(&input).unwrap();
8898 request.set_payload(Some(encoded));
8899
8900 let response = self
8901 .sign_and_dispatch(request, StopRunError::from_response)
8902 .await?;
8903 let mut response = response;
8904 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8905 proto::json::ResponsePayload::new(&response).deserialize::<StopRunResult, _>()
8906 }
8907
8908 async fn tag_resource(
8910 &self,
8911 input: TagResourceRequest,
8912 ) -> Result<TagResourceResponse, RusotoError<TagResourceError>> {
8913 let mut request = self.new_signed_request("POST", "/");
8914 request.add_header("x-amz-target", "DeviceFarm_20150623.TagResource");
8915 let encoded = serde_json::to_string(&input).unwrap();
8916 request.set_payload(Some(encoded));
8917
8918 let response = self
8919 .sign_and_dispatch(request, TagResourceError::from_response)
8920 .await?;
8921 let mut response = response;
8922 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8923 proto::json::ResponsePayload::new(&response).deserialize::<TagResourceResponse, _>()
8924 }
8925
8926 async fn untag_resource(
8928 &self,
8929 input: UntagResourceRequest,
8930 ) -> Result<UntagResourceResponse, RusotoError<UntagResourceError>> {
8931 let mut request = self.new_signed_request("POST", "/");
8932 request.add_header("x-amz-target", "DeviceFarm_20150623.UntagResource");
8933 let encoded = serde_json::to_string(&input).unwrap();
8934 request.set_payload(Some(encoded));
8935
8936 let response = self
8937 .sign_and_dispatch(request, UntagResourceError::from_response)
8938 .await?;
8939 let mut response = response;
8940 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8941 proto::json::ResponsePayload::new(&response).deserialize::<UntagResourceResponse, _>()
8942 }
8943
8944 async fn update_device_instance(
8946 &self,
8947 input: UpdateDeviceInstanceRequest,
8948 ) -> Result<UpdateDeviceInstanceResult, RusotoError<UpdateDeviceInstanceError>> {
8949 let mut request = self.new_signed_request("POST", "/");
8950 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateDeviceInstance");
8951 let encoded = serde_json::to_string(&input).unwrap();
8952 request.set_payload(Some(encoded));
8953
8954 let response = self
8955 .sign_and_dispatch(request, UpdateDeviceInstanceError::from_response)
8956 .await?;
8957 let mut response = response;
8958 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8959 proto::json::ResponsePayload::new(&response).deserialize::<UpdateDeviceInstanceResult, _>()
8960 }
8961
8962 async fn update_device_pool(
8964 &self,
8965 input: UpdateDevicePoolRequest,
8966 ) -> Result<UpdateDevicePoolResult, RusotoError<UpdateDevicePoolError>> {
8967 let mut request = self.new_signed_request("POST", "/");
8968 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateDevicePool");
8969 let encoded = serde_json::to_string(&input).unwrap();
8970 request.set_payload(Some(encoded));
8971
8972 let response = self
8973 .sign_and_dispatch(request, UpdateDevicePoolError::from_response)
8974 .await?;
8975 let mut response = response;
8976 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8977 proto::json::ResponsePayload::new(&response).deserialize::<UpdateDevicePoolResult, _>()
8978 }
8979
8980 async fn update_instance_profile(
8982 &self,
8983 input: UpdateInstanceProfileRequest,
8984 ) -> Result<UpdateInstanceProfileResult, RusotoError<UpdateInstanceProfileError>> {
8985 let mut request = self.new_signed_request("POST", "/");
8986 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateInstanceProfile");
8987 let encoded = serde_json::to_string(&input).unwrap();
8988 request.set_payload(Some(encoded));
8989
8990 let response = self
8991 .sign_and_dispatch(request, UpdateInstanceProfileError::from_response)
8992 .await?;
8993 let mut response = response;
8994 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
8995 proto::json::ResponsePayload::new(&response).deserialize::<UpdateInstanceProfileResult, _>()
8996 }
8997
8998 async fn update_network_profile(
9000 &self,
9001 input: UpdateNetworkProfileRequest,
9002 ) -> Result<UpdateNetworkProfileResult, RusotoError<UpdateNetworkProfileError>> {
9003 let mut request = self.new_signed_request("POST", "/");
9004 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateNetworkProfile");
9005 let encoded = serde_json::to_string(&input).unwrap();
9006 request.set_payload(Some(encoded));
9007
9008 let response = self
9009 .sign_and_dispatch(request, UpdateNetworkProfileError::from_response)
9010 .await?;
9011 let mut response = response;
9012 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
9013 proto::json::ResponsePayload::new(&response).deserialize::<UpdateNetworkProfileResult, _>()
9014 }
9015
9016 async fn update_project(
9018 &self,
9019 input: UpdateProjectRequest,
9020 ) -> Result<UpdateProjectResult, RusotoError<UpdateProjectError>> {
9021 let mut request = self.new_signed_request("POST", "/");
9022 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateProject");
9023 let encoded = serde_json::to_string(&input).unwrap();
9024 request.set_payload(Some(encoded));
9025
9026 let response = self
9027 .sign_and_dispatch(request, UpdateProjectError::from_response)
9028 .await?;
9029 let mut response = response;
9030 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
9031 proto::json::ResponsePayload::new(&response).deserialize::<UpdateProjectResult, _>()
9032 }
9033
9034 async fn update_test_grid_project(
9036 &self,
9037 input: UpdateTestGridProjectRequest,
9038 ) -> Result<UpdateTestGridProjectResult, RusotoError<UpdateTestGridProjectError>> {
9039 let mut request = self.new_signed_request("POST", "/");
9040 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateTestGridProject");
9041 let encoded = serde_json::to_string(&input).unwrap();
9042 request.set_payload(Some(encoded));
9043
9044 let response = self
9045 .sign_and_dispatch(request, UpdateTestGridProjectError::from_response)
9046 .await?;
9047 let mut response = response;
9048 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
9049 proto::json::ResponsePayload::new(&response).deserialize::<UpdateTestGridProjectResult, _>()
9050 }
9051
9052 async fn update_upload(
9054 &self,
9055 input: UpdateUploadRequest,
9056 ) -> Result<UpdateUploadResult, RusotoError<UpdateUploadError>> {
9057 let mut request = self.new_signed_request("POST", "/");
9058 request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateUpload");
9059 let encoded = serde_json::to_string(&input).unwrap();
9060 request.set_payload(Some(encoded));
9061
9062 let response = self
9063 .sign_and_dispatch(request, UpdateUploadError::from_response)
9064 .await?;
9065 let mut response = response;
9066 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
9067 proto::json::ResponsePayload::new(&response).deserialize::<UpdateUploadResult, _>()
9068 }
9069
9070 async fn update_vpce_configuration(
9072 &self,
9073 input: UpdateVPCEConfigurationRequest,
9074 ) -> Result<UpdateVPCEConfigurationResult, RusotoError<UpdateVPCEConfigurationError>> {
9075 let mut request = self.new_signed_request("POST", "/");
9076 request.add_header(
9077 "x-amz-target",
9078 "DeviceFarm_20150623.UpdateVPCEConfiguration",
9079 );
9080 let encoded = serde_json::to_string(&input).unwrap();
9081 request.set_payload(Some(encoded));
9082
9083 let response = self
9084 .sign_and_dispatch(request, UpdateVPCEConfigurationError::from_response)
9085 .await?;
9086 let mut response = response;
9087 let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
9088 proto::json::ResponsePayload::new(&response)
9089 .deserialize::<UpdateVPCEConfigurationResult, _>()
9090 }
9091}