use std::error::Error;
use std::fmt;
#[allow(warnings)]
use futures::future;
use futures::Future;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError, RusotoFuture};
use rusoto_core::proto;
use rusoto_core::signature::SignedRequest;
use serde_json;
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AccountSettings {
#[serde(rename = "awsAccountNumber")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aws_account_number: Option<String>,
#[serde(rename = "defaultJobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_job_timeout_minutes: Option<i64>,
#[serde(rename = "maxJobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_job_timeout_minutes: Option<i64>,
#[serde(rename = "maxSlots")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_slots: Option<::std::collections::HashMap<String, i64>>,
#[serde(rename = "skipAppResign")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_app_resign: Option<bool>,
#[serde(rename = "trialMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trial_minutes: Option<TrialMinutes>,
#[serde(rename = "unmeteredDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unmetered_devices: Option<::std::collections::HashMap<String, i64>>,
#[serde(rename = "unmeteredRemoteAccessDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unmetered_remote_access_devices: Option<::std::collections::HashMap<String, i64>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Artifact {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "extension")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extension: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "url")]
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CPU {
#[serde(rename = "architecture")]
#[serde(skip_serializing_if = "Option::is_none")]
pub architecture: Option<String>,
#[serde(rename = "clock")]
#[serde(skip_serializing_if = "Option::is_none")]
pub clock: Option<f64>,
#[serde(rename = "frequency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub frequency: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Counters {
#[serde(rename = "errored")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errored: Option<i64>,
#[serde(rename = "failed")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failed: Option<i64>,
#[serde(rename = "passed")]
#[serde(skip_serializing_if = "Option::is_none")]
pub passed: Option<i64>,
#[serde(rename = "skipped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skipped: Option<i64>,
#[serde(rename = "stopped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stopped: Option<i64>,
#[serde(rename = "total")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total: Option<i64>,
#[serde(rename = "warned")]
#[serde(skip_serializing_if = "Option::is_none")]
pub warned: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDevicePoolRequest {
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "maxDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_devices: Option<i64>,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "projectArn")]
pub project_arn: String,
#[serde(rename = "rules")]
pub rules: Vec<Rule>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateDevicePoolResult {
#[serde(rename = "devicePool")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_pool: Option<DevicePool>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateInstanceProfileRequest {
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "excludeAppPackagesFromCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub exclude_app_packages_from_cleanup: Option<Vec<String>>,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "packageCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub package_cleanup: Option<bool>,
#[serde(rename = "rebootAfterUse")]
#[serde(skip_serializing_if = "Option::is_none")]
pub reboot_after_use: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateInstanceProfileResult {
#[serde(rename = "instanceProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_profile: Option<InstanceProfile>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateNetworkProfileRequest {
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "downlinkBandwidthBits")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_bandwidth_bits: Option<i64>,
#[serde(rename = "downlinkDelayMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_delay_ms: Option<i64>,
#[serde(rename = "downlinkJitterMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_jitter_ms: Option<i64>,
#[serde(rename = "downlinkLossPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_loss_percent: Option<i64>,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "projectArn")]
pub project_arn: String,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "uplinkBandwidthBits")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_bandwidth_bits: Option<i64>,
#[serde(rename = "uplinkDelayMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_delay_ms: Option<i64>,
#[serde(rename = "uplinkJitterMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_jitter_ms: Option<i64>,
#[serde(rename = "uplinkLossPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_loss_percent: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateNetworkProfileResult {
#[serde(rename = "networkProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub network_profile: Option<NetworkProfile>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateProjectRequest {
#[serde(rename = "defaultJobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_job_timeout_minutes: Option<i64>,
#[serde(rename = "name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateProjectResult {
#[serde(rename = "project")]
#[serde(skip_serializing_if = "Option::is_none")]
pub project: Option<Project>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateRemoteAccessSessionConfiguration {
#[serde(rename = "billingMethod")]
#[serde(skip_serializing_if = "Option::is_none")]
pub billing_method: Option<String>,
#[serde(rename = "vpceConfigurationArns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_arns: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateRemoteAccessSessionRequest {
#[serde(rename = "clientId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_id: Option<String>,
#[serde(rename = "configuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration: Option<CreateRemoteAccessSessionConfiguration>,
#[serde(rename = "deviceArn")]
pub device_arn: String,
#[serde(rename = "instanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_arn: Option<String>,
#[serde(rename = "interactionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub interaction_mode: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "projectArn")]
pub project_arn: String,
#[serde(rename = "remoteDebugEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_debug_enabled: Option<bool>,
#[serde(rename = "remoteRecordAppArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_record_app_arn: Option<String>,
#[serde(rename = "remoteRecordEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_record_enabled: Option<bool>,
#[serde(rename = "skipAppResign")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_app_resign: Option<bool>,
#[serde(rename = "sshPublicKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ssh_public_key: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateRemoteAccessSessionResult {
#[serde(rename = "remoteAccessSession")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_access_session: Option<RemoteAccessSession>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateUploadRequest {
#[serde(rename = "contentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content_type: Option<String>,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "projectArn")]
pub project_arn: String,
#[serde(rename = "type")]
pub type_: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateUploadResult {
#[serde(rename = "upload")]
#[serde(skip_serializing_if = "Option::is_none")]
pub upload: Option<Upload>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateVPCEConfigurationRequest {
#[serde(rename = "serviceDnsName")]
pub service_dns_name: String,
#[serde(rename = "vpceConfigurationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_description: Option<String>,
#[serde(rename = "vpceConfigurationName")]
pub vpce_configuration_name: String,
#[serde(rename = "vpceServiceName")]
pub vpce_service_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateVPCEConfigurationResult {
#[serde(rename = "vpceConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration: Option<VPCEConfiguration>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CustomerArtifactPaths {
#[serde(rename = "androidPaths")]
#[serde(skip_serializing_if = "Option::is_none")]
pub android_paths: Option<Vec<String>>,
#[serde(rename = "deviceHostPaths")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_host_paths: Option<Vec<String>>,
#[serde(rename = "iosPaths")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ios_paths: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDevicePoolRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDevicePoolResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteInstanceProfileRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteInstanceProfileResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteNetworkProfileRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteNetworkProfileResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteProjectRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteProjectResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteRemoteAccessSessionRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteRemoteAccessSessionResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteRunRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteRunResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteUploadRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteUploadResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteVPCEConfigurationRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteVPCEConfigurationResult {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Device {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "availability")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability: Option<String>,
#[serde(rename = "carrier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub carrier: Option<String>,
#[serde(rename = "cpu")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu: Option<CPU>,
#[serde(rename = "fleetName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub fleet_name: Option<String>,
#[serde(rename = "fleetType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub fleet_type: Option<String>,
#[serde(rename = "formFactor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub form_factor: Option<String>,
#[serde(rename = "heapSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub heap_size: Option<i64>,
#[serde(rename = "image")]
#[serde(skip_serializing_if = "Option::is_none")]
pub image: Option<String>,
#[serde(rename = "instances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances: Option<Vec<DeviceInstance>>,
#[serde(rename = "manufacturer")]
#[serde(skip_serializing_if = "Option::is_none")]
pub manufacturer: Option<String>,
#[serde(rename = "memory")]
#[serde(skip_serializing_if = "Option::is_none")]
pub memory: Option<i64>,
#[serde(rename = "model")]
#[serde(skip_serializing_if = "Option::is_none")]
pub model: Option<String>,
#[serde(rename = "modelId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub model_id: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "os")]
#[serde(skip_serializing_if = "Option::is_none")]
pub os: Option<String>,
#[serde(rename = "platform")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
#[serde(rename = "radio")]
#[serde(skip_serializing_if = "Option::is_none")]
pub radio: Option<String>,
#[serde(rename = "remoteAccessEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_access_enabled: Option<bool>,
#[serde(rename = "remoteDebugEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_debug_enabled: Option<bool>,
#[serde(rename = "resolution")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resolution: Option<Resolution>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DeviceFilter {
#[serde(rename = "attribute")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attribute: Option<String>,
#[serde(rename = "operator")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operator: Option<String>,
#[serde(rename = "values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeviceInstance {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "deviceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_arn: Option<String>,
#[serde(rename = "instanceProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_profile: Option<InstanceProfile>,
#[serde(rename = "labels")]
#[serde(skip_serializing_if = "Option::is_none")]
pub labels: Option<Vec<String>>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "udid")]
#[serde(skip_serializing_if = "Option::is_none")]
pub udid: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeviceMinutes {
#[serde(rename = "metered")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metered: Option<f64>,
#[serde(rename = "total")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total: Option<f64>,
#[serde(rename = "unmetered")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unmetered: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DevicePool {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "maxDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_devices: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "rules")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rules: Option<Vec<Rule>>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DevicePoolCompatibilityResult {
#[serde(rename = "compatible")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compatible: Option<bool>,
#[serde(rename = "device")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device: Option<Device>,
#[serde(rename = "incompatibilityMessages")]
#[serde(skip_serializing_if = "Option::is_none")]
pub incompatibility_messages: Option<Vec<IncompatibilityMessage>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeviceSelectionConfiguration {
#[serde(rename = "filters")]
pub filters: Vec<DeviceFilter>,
#[serde(rename = "maxDevices")]
pub max_devices: i64,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeviceSelectionResult {
#[serde(rename = "filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<DeviceFilter>>,
#[serde(rename = "matchedDevicesCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub matched_devices_count: Option<i64>,
#[serde(rename = "maxDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_devices: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ExecutionConfiguration {
#[serde(rename = "accountsCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accounts_cleanup: Option<bool>,
#[serde(rename = "appPackagesCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub app_packages_cleanup: Option<bool>,
#[serde(rename = "jobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_timeout_minutes: Option<i64>,
#[serde(rename = "skipAppResign")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_app_resign: Option<bool>,
#[serde(rename = "videoCapture")]
#[serde(skip_serializing_if = "Option::is_none")]
pub video_capture: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetAccountSettingsRequest {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetAccountSettingsResult {
#[serde(rename = "accountSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_settings: Option<AccountSettings>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDeviceInstanceRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDeviceInstanceResult {
#[serde(rename = "deviceInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_instance: Option<DeviceInstance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDevicePoolCompatibilityRequest {
#[serde(rename = "appArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub app_arn: Option<String>,
#[serde(rename = "configuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration: Option<ScheduleRunConfiguration>,
#[serde(rename = "devicePoolArn")]
pub device_pool_arn: String,
#[serde(rename = "test")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test: Option<ScheduleRunTest>,
#[serde(rename = "testType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDevicePoolCompatibilityResult {
#[serde(rename = "compatibleDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compatible_devices: Option<Vec<DevicePoolCompatibilityResult>>,
#[serde(rename = "incompatibleDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub incompatible_devices: Option<Vec<DevicePoolCompatibilityResult>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDevicePoolRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDevicePoolResult {
#[serde(rename = "devicePool")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_pool: Option<DevicePool>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDeviceRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDeviceResult {
#[serde(rename = "device")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device: Option<Device>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceProfileRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceProfileResult {
#[serde(rename = "instanceProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_profile: Option<InstanceProfile>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetJobRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetJobResult {
#[serde(rename = "job")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job: Option<Job>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetNetworkProfileRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetNetworkProfileResult {
#[serde(rename = "networkProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub network_profile: Option<NetworkProfile>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetOfferingStatusRequest {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetOfferingStatusResult {
#[serde(rename = "current")]
#[serde(skip_serializing_if = "Option::is_none")]
pub current: Option<::std::collections::HashMap<String, OfferingStatus>>,
#[serde(rename = "nextPeriod")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_period: Option<::std::collections::HashMap<String, OfferingStatus>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetProjectRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetProjectResult {
#[serde(rename = "project")]
#[serde(skip_serializing_if = "Option::is_none")]
pub project: Option<Project>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRemoteAccessSessionRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRemoteAccessSessionResult {
#[serde(rename = "remoteAccessSession")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_access_session: Option<RemoteAccessSession>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRunRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRunResult {
#[serde(rename = "run")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run: Option<Run>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetSuiteRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetSuiteResult {
#[serde(rename = "suite")]
#[serde(skip_serializing_if = "Option::is_none")]
pub suite: Option<Suite>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTestRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTestResult {
#[serde(rename = "test")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test: Option<Test>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetUploadRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetUploadResult {
#[serde(rename = "upload")]
#[serde(skip_serializing_if = "Option::is_none")]
pub upload: Option<Upload>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetVPCEConfigurationRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetVPCEConfigurationResult {
#[serde(rename = "vpceConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration: Option<VPCEConfiguration>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct IncompatibilityMessage {
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InstallToRemoteAccessSessionRequest {
#[serde(rename = "appArn")]
pub app_arn: String,
#[serde(rename = "remoteAccessSessionArn")]
pub remote_access_session_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstallToRemoteAccessSessionResult {
#[serde(rename = "appUpload")]
#[serde(skip_serializing_if = "Option::is_none")]
pub app_upload: Option<Upload>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceProfile {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "excludeAppPackagesFromCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub exclude_app_packages_from_cleanup: Option<Vec<String>>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "packageCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub package_cleanup: Option<bool>,
#[serde(rename = "rebootAfterUse")]
#[serde(skip_serializing_if = "Option::is_none")]
pub reboot_after_use: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Job {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "counters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub counters: Option<Counters>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "device")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device: Option<Device>,
#[serde(rename = "deviceMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_minutes: Option<DeviceMinutes>,
#[serde(rename = "instanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_arn: Option<String>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "result")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
#[serde(rename = "started")]
#[serde(skip_serializing_if = "Option::is_none")]
pub started: Option<f64>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "stopped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stopped: Option<f64>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "videoCapture")]
#[serde(skip_serializing_if = "Option::is_none")]
pub video_capture: Option<bool>,
#[serde(rename = "videoEndpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub video_endpoint: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListArtifactsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "type")]
pub type_: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListArtifactsResult {
#[serde(rename = "artifacts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub artifacts: Option<Vec<Artifact>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListDeviceInstancesRequest {
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListDeviceInstancesResult {
#[serde(rename = "deviceInstances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_instances: Option<Vec<DeviceInstance>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListDevicePoolsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListDevicePoolsResult {
#[serde(rename = "devicePools")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_pools: Option<Vec<DevicePool>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListDevicesRequest {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<DeviceFilter>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListDevicesResult {
#[serde(rename = "devices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub devices: Option<Vec<Device>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListInstanceProfilesRequest {
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListInstanceProfilesResult {
#[serde(rename = "instanceProfiles")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_profiles: Option<Vec<InstanceProfile>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListJobsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListJobsResult {
#[serde(rename = "jobs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub jobs: Option<Vec<Job>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListNetworkProfilesRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListNetworkProfilesResult {
#[serde(rename = "networkProfiles")]
#[serde(skip_serializing_if = "Option::is_none")]
pub network_profiles: Option<Vec<NetworkProfile>>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListOfferingPromotionsRequest {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListOfferingPromotionsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "offeringPromotions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_promotions: Option<Vec<OfferingPromotion>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListOfferingTransactionsRequest {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListOfferingTransactionsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "offeringTransactions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_transactions: Option<Vec<OfferingTransaction>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListOfferingsRequest {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListOfferingsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "offerings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offerings: Option<Vec<Offering>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListProjectsRequest {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListProjectsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "projects")]
#[serde(skip_serializing_if = "Option::is_none")]
pub projects: Option<Vec<Project>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListRemoteAccessSessionsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListRemoteAccessSessionsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "remoteAccessSessions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_access_sessions: Option<Vec<RemoteAccessSession>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListRunsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListRunsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "runs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub runs: Option<Vec<Run>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListSamplesRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListSamplesResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "samples")]
#[serde(skip_serializing_if = "Option::is_none")]
pub samples: Option<Vec<Sample>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListSuitesRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListSuitesResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "suites")]
#[serde(skip_serializing_if = "Option::is_none")]
pub suites: Option<Vec<Suite>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTagsForResourceRequest {
#[serde(rename = "ResourceARN")]
pub resource_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListTagsForResourceResponse {
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTestsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListTestsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "tests")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tests: Option<Vec<Test>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListUniqueProblemsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListUniqueProblemsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "uniqueProblems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unique_problems: Option<::std::collections::HashMap<String, Vec<UniqueProblem>>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListUploadsRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListUploadsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "uploads")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uploads: Option<Vec<Upload>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListVPCEConfigurationsRequest {
#[serde(rename = "maxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListVPCEConfigurationsResult {
#[serde(rename = "nextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "vpceConfigurations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configurations: Option<Vec<VPCEConfiguration>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Location {
#[serde(rename = "latitude")]
pub latitude: f64,
#[serde(rename = "longitude")]
pub longitude: f64,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MonetaryAmount {
#[serde(rename = "amount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub amount: Option<f64>,
#[serde(rename = "currencyCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub currency_code: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct NetworkProfile {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "downlinkBandwidthBits")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_bandwidth_bits: Option<i64>,
#[serde(rename = "downlinkDelayMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_delay_ms: Option<i64>,
#[serde(rename = "downlinkJitterMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_jitter_ms: Option<i64>,
#[serde(rename = "downlinkLossPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_loss_percent: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "uplinkBandwidthBits")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_bandwidth_bits: Option<i64>,
#[serde(rename = "uplinkDelayMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_delay_ms: Option<i64>,
#[serde(rename = "uplinkJitterMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_jitter_ms: Option<i64>,
#[serde(rename = "uplinkLossPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_loss_percent: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Offering {
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "platform")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
#[serde(rename = "recurringCharges")]
#[serde(skip_serializing_if = "Option::is_none")]
pub recurring_charges: Option<Vec<RecurringCharge>>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OfferingPromotion {
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OfferingStatus {
#[serde(rename = "effectiveOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub effective_on: Option<f64>,
#[serde(rename = "offering")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering: Option<Offering>,
#[serde(rename = "quantity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub quantity: Option<i64>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OfferingTransaction {
#[serde(rename = "cost")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cost: Option<MonetaryAmount>,
#[serde(rename = "createdOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_on: Option<f64>,
#[serde(rename = "offeringPromotionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_promotion_id: Option<String>,
#[serde(rename = "offeringStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_status: Option<OfferingStatus>,
#[serde(rename = "transactionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub transaction_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Problem {
#[serde(rename = "device")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device: Option<Device>,
#[serde(rename = "job")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job: Option<ProblemDetail>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "result")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
#[serde(rename = "run")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run: Option<ProblemDetail>,
#[serde(rename = "suite")]
#[serde(skip_serializing_if = "Option::is_none")]
pub suite: Option<ProblemDetail>,
#[serde(rename = "test")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test: Option<ProblemDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProblemDetail {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Project {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "defaultJobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_job_timeout_minutes: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PurchaseOfferingRequest {
#[serde(rename = "offeringId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_id: Option<String>,
#[serde(rename = "offeringPromotionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_promotion_id: Option<String>,
#[serde(rename = "quantity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub quantity: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PurchaseOfferingResult {
#[serde(rename = "offeringTransaction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_transaction: Option<OfferingTransaction>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Radios {
#[serde(rename = "bluetooth")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bluetooth: Option<bool>,
#[serde(rename = "gps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub gps: Option<bool>,
#[serde(rename = "nfc")]
#[serde(skip_serializing_if = "Option::is_none")]
pub nfc: Option<bool>,
#[serde(rename = "wifi")]
#[serde(skip_serializing_if = "Option::is_none")]
pub wifi: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RecurringCharge {
#[serde(rename = "cost")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cost: Option<MonetaryAmount>,
#[serde(rename = "frequency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub frequency: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RemoteAccessSession {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "billingMethod")]
#[serde(skip_serializing_if = "Option::is_none")]
pub billing_method: Option<String>,
#[serde(rename = "clientId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_id: Option<String>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "device")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device: Option<Device>,
#[serde(rename = "deviceMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_minutes: Option<DeviceMinutes>,
#[serde(rename = "deviceUdid")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_udid: Option<String>,
#[serde(rename = "endpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint: Option<String>,
#[serde(rename = "hostAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub host_address: Option<String>,
#[serde(rename = "instanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_arn: Option<String>,
#[serde(rename = "interactionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub interaction_mode: Option<String>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "remoteDebugEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_debug_enabled: Option<bool>,
#[serde(rename = "remoteRecordAppArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_record_app_arn: Option<String>,
#[serde(rename = "remoteRecordEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_record_enabled: Option<bool>,
#[serde(rename = "result")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
#[serde(rename = "skipAppResign")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_app_resign: Option<bool>,
#[serde(rename = "started")]
#[serde(skip_serializing_if = "Option::is_none")]
pub started: Option<f64>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "stopped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stopped: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RenewOfferingRequest {
#[serde(rename = "offeringId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_id: Option<String>,
#[serde(rename = "quantity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub quantity: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RenewOfferingResult {
#[serde(rename = "offeringTransaction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub offering_transaction: Option<OfferingTransaction>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Resolution {
#[serde(rename = "height")]
#[serde(skip_serializing_if = "Option::is_none")]
pub height: Option<i64>,
#[serde(rename = "width")]
#[serde(skip_serializing_if = "Option::is_none")]
pub width: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Rule {
#[serde(rename = "attribute")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attribute: Option<String>,
#[serde(rename = "operator")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operator: Option<String>,
#[serde(rename = "value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Run {
#[serde(rename = "appUpload")]
#[serde(skip_serializing_if = "Option::is_none")]
pub app_upload: Option<String>,
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "billingMethod")]
#[serde(skip_serializing_if = "Option::is_none")]
pub billing_method: Option<String>,
#[serde(rename = "completedJobs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub completed_jobs: Option<i64>,
#[serde(rename = "counters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub counters: Option<Counters>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "customerArtifactPaths")]
#[serde(skip_serializing_if = "Option::is_none")]
pub customer_artifact_paths: Option<CustomerArtifactPaths>,
#[serde(rename = "deviceMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_minutes: Option<DeviceMinutes>,
#[serde(rename = "devicePoolArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_pool_arn: Option<String>,
#[serde(rename = "deviceSelectionResult")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_selection_result: Option<DeviceSelectionResult>,
#[serde(rename = "eventCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_count: Option<i64>,
#[serde(rename = "jobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_timeout_minutes: Option<i64>,
#[serde(rename = "locale")]
#[serde(skip_serializing_if = "Option::is_none")]
pub locale: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<Location>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "networkProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub network_profile: Option<NetworkProfile>,
#[serde(rename = "parsingResultUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parsing_result_url: Option<String>,
#[serde(rename = "platform")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
#[serde(rename = "radios")]
#[serde(skip_serializing_if = "Option::is_none")]
pub radios: Option<Radios>,
#[serde(rename = "result")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
#[serde(rename = "resultCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result_code: Option<String>,
#[serde(rename = "seed")]
#[serde(skip_serializing_if = "Option::is_none")]
pub seed: Option<i64>,
#[serde(rename = "skipAppResign")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_app_resign: Option<bool>,
#[serde(rename = "started")]
#[serde(skip_serializing_if = "Option::is_none")]
pub started: Option<f64>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "stopped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stopped: Option<f64>,
#[serde(rename = "testSpecArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test_spec_arn: Option<String>,
#[serde(rename = "totalJobs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total_jobs: Option<i64>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "webUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub web_url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Sample {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "url")]
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ScheduleRunConfiguration {
#[serde(rename = "auxiliaryApps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auxiliary_apps: Option<Vec<String>>,
#[serde(rename = "billingMethod")]
#[serde(skip_serializing_if = "Option::is_none")]
pub billing_method: Option<String>,
#[serde(rename = "customerArtifactPaths")]
#[serde(skip_serializing_if = "Option::is_none")]
pub customer_artifact_paths: Option<CustomerArtifactPaths>,
#[serde(rename = "extraDataPackageArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_data_package_arn: Option<String>,
#[serde(rename = "locale")]
#[serde(skip_serializing_if = "Option::is_none")]
pub locale: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<Location>,
#[serde(rename = "networkProfileArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub network_profile_arn: Option<String>,
#[serde(rename = "radios")]
#[serde(skip_serializing_if = "Option::is_none")]
pub radios: Option<Radios>,
#[serde(rename = "vpceConfigurationArns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_arns: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ScheduleRunRequest {
#[serde(rename = "appArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub app_arn: Option<String>,
#[serde(rename = "configuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration: Option<ScheduleRunConfiguration>,
#[serde(rename = "devicePoolArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_pool_arn: Option<String>,
#[serde(rename = "deviceSelectionConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_selection_configuration: Option<DeviceSelectionConfiguration>,
#[serde(rename = "executionConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_configuration: Option<ExecutionConfiguration>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "projectArn")]
pub project_arn: String,
#[serde(rename = "test")]
pub test: ScheduleRunTest,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ScheduleRunResult {
#[serde(rename = "run")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run: Option<Run>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ScheduleRunTest {
#[serde(rename = "filter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filter: Option<String>,
#[serde(rename = "parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "testPackageArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test_package_arn: Option<String>,
#[serde(rename = "testSpecArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub test_spec_arn: Option<String>,
#[serde(rename = "type")]
pub type_: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopJobRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopJobResult {
#[serde(rename = "job")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job: Option<Job>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopRemoteAccessSessionRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopRemoteAccessSessionResult {
#[serde(rename = "remoteAccessSession")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_access_session: Option<RemoteAccessSession>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopRunRequest {
#[serde(rename = "arn")]
pub arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopRunResult {
#[serde(rename = "run")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run: Option<Run>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Suite {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "counters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub counters: Option<Counters>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "deviceMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_minutes: Option<DeviceMinutes>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "result")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
#[serde(rename = "started")]
#[serde(skip_serializing_if = "Option::is_none")]
pub started: Option<f64>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "stopped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stopped: Option<f64>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Tag {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TagResourceRequest {
#[serde(rename = "ResourceARN")]
pub resource_arn: String,
#[serde(rename = "Tags")]
pub tags: Vec<Tag>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TagResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Test {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "counters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub counters: Option<Counters>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "deviceMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_minutes: Option<DeviceMinutes>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "result")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<String>,
#[serde(rename = "started")]
#[serde(skip_serializing_if = "Option::is_none")]
pub started: Option<f64>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "stopped")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stopped: Option<f64>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TrialMinutes {
#[serde(rename = "remaining")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remaining: Option<f64>,
#[serde(rename = "total")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UniqueProblem {
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "problems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub problems: Option<Vec<Problem>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UntagResourceRequest {
#[serde(rename = "ResourceARN")]
pub resource_arn: String,
#[serde(rename = "TagKeys")]
pub tag_keys: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UntagResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDeviceInstanceRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "labels")]
#[serde(skip_serializing_if = "Option::is_none")]
pub labels: Option<Vec<String>>,
#[serde(rename = "profileArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub profile_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDeviceInstanceResult {
#[serde(rename = "deviceInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_instance: Option<DeviceInstance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDevicePoolRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "clearMaxDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub clear_max_devices: Option<bool>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "maxDevices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_devices: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "rules")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rules: Option<Vec<Rule>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDevicePoolResult {
#[serde(rename = "devicePool")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device_pool: Option<DevicePool>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateInstanceProfileRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "excludeAppPackagesFromCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub exclude_app_packages_from_cleanup: Option<Vec<String>>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "packageCleanup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub package_cleanup: Option<bool>,
#[serde(rename = "rebootAfterUse")]
#[serde(skip_serializing_if = "Option::is_none")]
pub reboot_after_use: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateInstanceProfileResult {
#[serde(rename = "instanceProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_profile: Option<InstanceProfile>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateNetworkProfileRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "downlinkBandwidthBits")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_bandwidth_bits: Option<i64>,
#[serde(rename = "downlinkDelayMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_delay_ms: Option<i64>,
#[serde(rename = "downlinkJitterMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_jitter_ms: Option<i64>,
#[serde(rename = "downlinkLossPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub downlink_loss_percent: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "uplinkBandwidthBits")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_bandwidth_bits: Option<i64>,
#[serde(rename = "uplinkDelayMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_delay_ms: Option<i64>,
#[serde(rename = "uplinkJitterMs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_jitter_ms: Option<i64>,
#[serde(rename = "uplinkLossPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uplink_loss_percent: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateNetworkProfileResult {
#[serde(rename = "networkProfile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub network_profile: Option<NetworkProfile>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateProjectRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "defaultJobTimeoutMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_job_timeout_minutes: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateProjectResult {
#[serde(rename = "project")]
#[serde(skip_serializing_if = "Option::is_none")]
pub project: Option<Project>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateUploadRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "contentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content_type: Option<String>,
#[serde(rename = "editContent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub edit_content: Option<bool>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateUploadResult {
#[serde(rename = "upload")]
#[serde(skip_serializing_if = "Option::is_none")]
pub upload: Option<Upload>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateVPCEConfigurationRequest {
#[serde(rename = "arn")]
pub arn: String,
#[serde(rename = "serviceDnsName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_dns_name: Option<String>,
#[serde(rename = "vpceConfigurationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_description: Option<String>,
#[serde(rename = "vpceConfigurationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_name: Option<String>,
#[serde(rename = "vpceServiceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_service_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateVPCEConfigurationResult {
#[serde(rename = "vpceConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration: Option<VPCEConfiguration>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Upload {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "category")]
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
#[serde(rename = "contentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content_type: Option<String>,
#[serde(rename = "created")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<f64>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "metadata")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metadata: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "url")]
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct VPCEConfiguration {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "serviceDnsName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_dns_name: Option<String>,
#[serde(rename = "vpceConfigurationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_description: Option<String>,
#[serde(rename = "vpceConfigurationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_configuration_name: Option<String>,
#[serde(rename = "vpceServiceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpce_service_name: Option<String>,
}
#[derive(Debug, PartialEq)]
pub enum CreateDevicePoolError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl CreateDevicePoolError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDevicePoolError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateDevicePoolError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateDevicePoolError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateDevicePoolError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateDevicePoolError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDevicePoolError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDevicePoolError {
fn description(&self) -> &str {
match *self {
CreateDevicePoolError::Argument(ref cause) => cause,
CreateDevicePoolError::LimitExceeded(ref cause) => cause,
CreateDevicePoolError::NotFound(ref cause) => cause,
CreateDevicePoolError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateInstanceProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl CreateInstanceProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateInstanceProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateInstanceProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateInstanceProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateInstanceProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateInstanceProfileError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateInstanceProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateInstanceProfileError {
fn description(&self) -> &str {
match *self {
CreateInstanceProfileError::Argument(ref cause) => cause,
CreateInstanceProfileError::LimitExceeded(ref cause) => cause,
CreateInstanceProfileError::NotFound(ref cause) => cause,
CreateInstanceProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateNetworkProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl CreateNetworkProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateNetworkProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateNetworkProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateNetworkProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateNetworkProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateNetworkProfileError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateNetworkProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateNetworkProfileError {
fn description(&self) -> &str {
match *self {
CreateNetworkProfileError::Argument(ref cause) => cause,
CreateNetworkProfileError::LimitExceeded(ref cause) => cause,
CreateNetworkProfileError::NotFound(ref cause) => cause,
CreateNetworkProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateProjectError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
TagOperation(String),
}
impl CreateProjectError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateProjectError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateProjectError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateProjectError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateProjectError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateProjectError::ServiceAccount(err.msg))
}
"TagOperationException" => {
return RusotoError::Service(CreateProjectError::TagOperation(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateProjectError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateProjectError {
fn description(&self) -> &str {
match *self {
CreateProjectError::Argument(ref cause) => cause,
CreateProjectError::LimitExceeded(ref cause) => cause,
CreateProjectError::NotFound(ref cause) => cause,
CreateProjectError::ServiceAccount(ref cause) => cause,
CreateProjectError::TagOperation(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateRemoteAccessSessionError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl CreateRemoteAccessSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateRemoteAccessSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateRemoteAccessSessionError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateRemoteAccessSessionError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(CreateRemoteAccessSessionError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateRemoteAccessSessionError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateRemoteAccessSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateRemoteAccessSessionError {
fn description(&self) -> &str {
match *self {
CreateRemoteAccessSessionError::Argument(ref cause) => cause,
CreateRemoteAccessSessionError::LimitExceeded(ref cause) => cause,
CreateRemoteAccessSessionError::NotFound(ref cause) => cause,
CreateRemoteAccessSessionError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateUploadError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl CreateUploadError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateUploadError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateUploadError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateUploadError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateUploadError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateUploadError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateUploadError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateUploadError {
fn description(&self) -> &str {
match *self {
CreateUploadError::Argument(ref cause) => cause,
CreateUploadError::LimitExceeded(ref cause) => cause,
CreateUploadError::NotFound(ref cause) => cause,
CreateUploadError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateVPCEConfigurationError {
Argument(String),
LimitExceeded(String),
ServiceAccount(String),
}
impl CreateVPCEConfigurationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateVPCEConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(CreateVPCEConfigurationError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateVPCEConfigurationError::LimitExceeded(
err.msg,
))
}
"ServiceAccountException" => {
return RusotoError::Service(CreateVPCEConfigurationError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateVPCEConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateVPCEConfigurationError {
fn description(&self) -> &str {
match *self {
CreateVPCEConfigurationError::Argument(ref cause) => cause,
CreateVPCEConfigurationError::LimitExceeded(ref cause) => cause,
CreateVPCEConfigurationError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDevicePoolError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteDevicePoolError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDevicePoolError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteDevicePoolError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteDevicePoolError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteDevicePoolError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteDevicePoolError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDevicePoolError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDevicePoolError {
fn description(&self) -> &str {
match *self {
DeleteDevicePoolError::Argument(ref cause) => cause,
DeleteDevicePoolError::LimitExceeded(ref cause) => cause,
DeleteDevicePoolError::NotFound(ref cause) => cause,
DeleteDevicePoolError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteInstanceProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteInstanceProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteInstanceProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteInstanceProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteInstanceProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteInstanceProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteInstanceProfileError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteInstanceProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteInstanceProfileError {
fn description(&self) -> &str {
match *self {
DeleteInstanceProfileError::Argument(ref cause) => cause,
DeleteInstanceProfileError::LimitExceeded(ref cause) => cause,
DeleteInstanceProfileError::NotFound(ref cause) => cause,
DeleteInstanceProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteNetworkProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteNetworkProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteNetworkProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteNetworkProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteNetworkProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteNetworkProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteNetworkProfileError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteNetworkProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteNetworkProfileError {
fn description(&self) -> &str {
match *self {
DeleteNetworkProfileError::Argument(ref cause) => cause,
DeleteNetworkProfileError::LimitExceeded(ref cause) => cause,
DeleteNetworkProfileError::NotFound(ref cause) => cause,
DeleteNetworkProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteProjectError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteProjectError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteProjectError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteProjectError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteProjectError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteProjectError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteProjectError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteProjectError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteProjectError {
fn description(&self) -> &str {
match *self {
DeleteProjectError::Argument(ref cause) => cause,
DeleteProjectError::LimitExceeded(ref cause) => cause,
DeleteProjectError::NotFound(ref cause) => cause,
DeleteProjectError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteRemoteAccessSessionError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteRemoteAccessSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteRemoteAccessSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteRemoteAccessSessionError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteRemoteAccessSessionError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(DeleteRemoteAccessSessionError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteRemoteAccessSessionError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteRemoteAccessSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteRemoteAccessSessionError {
fn description(&self) -> &str {
match *self {
DeleteRemoteAccessSessionError::Argument(ref cause) => cause,
DeleteRemoteAccessSessionError::LimitExceeded(ref cause) => cause,
DeleteRemoteAccessSessionError::NotFound(ref cause) => cause,
DeleteRemoteAccessSessionError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteRunError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteRunError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteRunError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteRunError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteRunError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteRunError {
fn description(&self) -> &str {
match *self {
DeleteRunError::Argument(ref cause) => cause,
DeleteRunError::LimitExceeded(ref cause) => cause,
DeleteRunError::NotFound(ref cause) => cause,
DeleteRunError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteUploadError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteUploadError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteUploadError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteUploadError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(DeleteUploadError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteUploadError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteUploadError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteUploadError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteUploadError {
fn description(&self) -> &str {
match *self {
DeleteUploadError::Argument(ref cause) => cause,
DeleteUploadError::LimitExceeded(ref cause) => cause,
DeleteUploadError::NotFound(ref cause) => cause,
DeleteUploadError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteVPCEConfigurationError {
Argument(String),
InvalidOperation(String),
NotFound(String),
ServiceAccount(String),
}
impl DeleteVPCEConfigurationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteVPCEConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(DeleteVPCEConfigurationError::Argument(err.msg))
}
"InvalidOperationException" => {
return RusotoError::Service(DeleteVPCEConfigurationError::InvalidOperation(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(DeleteVPCEConfigurationError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(DeleteVPCEConfigurationError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteVPCEConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteVPCEConfigurationError {
fn description(&self) -> &str {
match *self {
DeleteVPCEConfigurationError::Argument(ref cause) => cause,
DeleteVPCEConfigurationError::InvalidOperation(ref cause) => cause,
DeleteVPCEConfigurationError::NotFound(ref cause) => cause,
DeleteVPCEConfigurationError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetAccountSettingsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetAccountSettingsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetAccountSettingsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetAccountSettingsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetAccountSettingsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetAccountSettingsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetAccountSettingsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetAccountSettingsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetAccountSettingsError {
fn description(&self) -> &str {
match *self {
GetAccountSettingsError::Argument(ref cause) => cause,
GetAccountSettingsError::LimitExceeded(ref cause) => cause,
GetAccountSettingsError::NotFound(ref cause) => cause,
GetAccountSettingsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDeviceError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetDeviceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDeviceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetDeviceError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetDeviceError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDeviceError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetDeviceError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDeviceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDeviceError {
fn description(&self) -> &str {
match *self {
GetDeviceError::Argument(ref cause) => cause,
GetDeviceError::LimitExceeded(ref cause) => cause,
GetDeviceError::NotFound(ref cause) => cause,
GetDeviceError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDeviceInstanceError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetDeviceInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDeviceInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetDeviceInstanceError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetDeviceInstanceError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDeviceInstanceError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetDeviceInstanceError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDeviceInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDeviceInstanceError {
fn description(&self) -> &str {
match *self {
GetDeviceInstanceError::Argument(ref cause) => cause,
GetDeviceInstanceError::LimitExceeded(ref cause) => cause,
GetDeviceInstanceError::NotFound(ref cause) => cause,
GetDeviceInstanceError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDevicePoolError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetDevicePoolError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDevicePoolError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetDevicePoolError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetDevicePoolError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDevicePoolError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetDevicePoolError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDevicePoolError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDevicePoolError {
fn description(&self) -> &str {
match *self {
GetDevicePoolError::Argument(ref cause) => cause,
GetDevicePoolError::LimitExceeded(ref cause) => cause,
GetDevicePoolError::NotFound(ref cause) => cause,
GetDevicePoolError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDevicePoolCompatibilityError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetDevicePoolCompatibilityError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetDevicePoolCompatibilityError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetDevicePoolCompatibilityError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetDevicePoolCompatibilityError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetDevicePoolCompatibilityError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetDevicePoolCompatibilityError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDevicePoolCompatibilityError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDevicePoolCompatibilityError {
fn description(&self) -> &str {
match *self {
GetDevicePoolCompatibilityError::Argument(ref cause) => cause,
GetDevicePoolCompatibilityError::LimitExceeded(ref cause) => cause,
GetDevicePoolCompatibilityError::NotFound(ref cause) => cause,
GetDevicePoolCompatibilityError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetInstanceProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetInstanceProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetInstanceProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetInstanceProfileError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceProfileError {
fn description(&self) -> &str {
match *self {
GetInstanceProfileError::Argument(ref cause) => cause,
GetInstanceProfileError::LimitExceeded(ref cause) => cause,
GetInstanceProfileError::NotFound(ref cause) => cause,
GetInstanceProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetJobError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetJobError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetJobError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => return RusotoError::Service(GetJobError::Argument(err.msg)),
"LimitExceededException" => {
return RusotoError::Service(GetJobError::LimitExceeded(err.msg))
}
"NotFoundException" => return RusotoError::Service(GetJobError::NotFound(err.msg)),
"ServiceAccountException" => {
return RusotoError::Service(GetJobError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetJobError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetJobError {
fn description(&self) -> &str {
match *self {
GetJobError::Argument(ref cause) => cause,
GetJobError::LimitExceeded(ref cause) => cause,
GetJobError::NotFound(ref cause) => cause,
GetJobError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetNetworkProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetNetworkProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetNetworkProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetNetworkProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetNetworkProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetNetworkProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetNetworkProfileError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetNetworkProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetNetworkProfileError {
fn description(&self) -> &str {
match *self {
GetNetworkProfileError::Argument(ref cause) => cause,
GetNetworkProfileError::LimitExceeded(ref cause) => cause,
GetNetworkProfileError::NotFound(ref cause) => cause,
GetNetworkProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetOfferingStatusError {
Argument(String),
LimitExceeded(String),
NotEligible(String),
NotFound(String),
ServiceAccount(String),
}
impl GetOfferingStatusError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOfferingStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetOfferingStatusError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetOfferingStatusError::LimitExceeded(err.msg))
}
"NotEligibleException" => {
return RusotoError::Service(GetOfferingStatusError::NotEligible(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetOfferingStatusError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetOfferingStatusError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetOfferingStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetOfferingStatusError {
fn description(&self) -> &str {
match *self {
GetOfferingStatusError::Argument(ref cause) => cause,
GetOfferingStatusError::LimitExceeded(ref cause) => cause,
GetOfferingStatusError::NotEligible(ref cause) => cause,
GetOfferingStatusError::NotFound(ref cause) => cause,
GetOfferingStatusError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetProjectError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetProjectError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetProjectError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetProjectError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetProjectError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetProjectError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetProjectError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetProjectError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetProjectError {
fn description(&self) -> &str {
match *self {
GetProjectError::Argument(ref cause) => cause,
GetProjectError::LimitExceeded(ref cause) => cause,
GetProjectError::NotFound(ref cause) => cause,
GetProjectError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRemoteAccessSessionError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetRemoteAccessSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRemoteAccessSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetRemoteAccessSessionError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetRemoteAccessSessionError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetRemoteAccessSessionError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetRemoteAccessSessionError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRemoteAccessSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRemoteAccessSessionError {
fn description(&self) -> &str {
match *self {
GetRemoteAccessSessionError::Argument(ref cause) => cause,
GetRemoteAccessSessionError::LimitExceeded(ref cause) => cause,
GetRemoteAccessSessionError::NotFound(ref cause) => cause,
GetRemoteAccessSessionError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRunError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => return RusotoError::Service(GetRunError::Argument(err.msg)),
"LimitExceededException" => {
return RusotoError::Service(GetRunError::LimitExceeded(err.msg))
}
"NotFoundException" => return RusotoError::Service(GetRunError::NotFound(err.msg)),
"ServiceAccountException" => {
return RusotoError::Service(GetRunError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRunError {
fn description(&self) -> &str {
match *self {
GetRunError::Argument(ref cause) => cause,
GetRunError::LimitExceeded(ref cause) => cause,
GetRunError::NotFound(ref cause) => cause,
GetRunError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetSuiteError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetSuiteError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetSuiteError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetSuiteError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetSuiteError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetSuiteError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetSuiteError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetSuiteError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetSuiteError {
fn description(&self) -> &str {
match *self {
GetSuiteError::Argument(ref cause) => cause,
GetSuiteError::LimitExceeded(ref cause) => cause,
GetSuiteError::NotFound(ref cause) => cause,
GetSuiteError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTestError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetTestError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTestError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetTestError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetTestError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetTestError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetTestError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTestError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTestError {
fn description(&self) -> &str {
match *self {
GetTestError::Argument(ref cause) => cause,
GetTestError::LimitExceeded(ref cause) => cause,
GetTestError::NotFound(ref cause) => cause,
GetTestError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetUploadError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl GetUploadError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetUploadError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetUploadError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(GetUploadError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetUploadError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetUploadError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetUploadError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetUploadError {
fn description(&self) -> &str {
match *self {
GetUploadError::Argument(ref cause) => cause,
GetUploadError::LimitExceeded(ref cause) => cause,
GetUploadError::NotFound(ref cause) => cause,
GetUploadError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetVPCEConfigurationError {
Argument(String),
NotFound(String),
ServiceAccount(String),
}
impl GetVPCEConfigurationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetVPCEConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(GetVPCEConfigurationError::Argument(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetVPCEConfigurationError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(GetVPCEConfigurationError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetVPCEConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetVPCEConfigurationError {
fn description(&self) -> &str {
match *self {
GetVPCEConfigurationError::Argument(ref cause) => cause,
GetVPCEConfigurationError::NotFound(ref cause) => cause,
GetVPCEConfigurationError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum InstallToRemoteAccessSessionError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl InstallToRemoteAccessSessionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<InstallToRemoteAccessSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(InstallToRemoteAccessSessionError::Argument(
err.msg,
))
}
"LimitExceededException" => {
return RusotoError::Service(InstallToRemoteAccessSessionError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(InstallToRemoteAccessSessionError::NotFound(
err.msg,
))
}
"ServiceAccountException" => {
return RusotoError::Service(InstallToRemoteAccessSessionError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for InstallToRemoteAccessSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for InstallToRemoteAccessSessionError {
fn description(&self) -> &str {
match *self {
InstallToRemoteAccessSessionError::Argument(ref cause) => cause,
InstallToRemoteAccessSessionError::LimitExceeded(ref cause) => cause,
InstallToRemoteAccessSessionError::NotFound(ref cause) => cause,
InstallToRemoteAccessSessionError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListArtifactsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListArtifactsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListArtifactsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListArtifactsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListArtifactsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListArtifactsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListArtifactsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListArtifactsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListArtifactsError {
fn description(&self) -> &str {
match *self {
ListArtifactsError::Argument(ref cause) => cause,
ListArtifactsError::LimitExceeded(ref cause) => cause,
ListArtifactsError::NotFound(ref cause) => cause,
ListArtifactsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListDeviceInstancesError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListDeviceInstancesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDeviceInstancesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListDeviceInstancesError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListDeviceInstancesError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListDeviceInstancesError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListDeviceInstancesError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListDeviceInstancesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListDeviceInstancesError {
fn description(&self) -> &str {
match *self {
ListDeviceInstancesError::Argument(ref cause) => cause,
ListDeviceInstancesError::LimitExceeded(ref cause) => cause,
ListDeviceInstancesError::NotFound(ref cause) => cause,
ListDeviceInstancesError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListDevicePoolsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListDevicePoolsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDevicePoolsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListDevicePoolsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListDevicePoolsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListDevicePoolsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListDevicePoolsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListDevicePoolsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListDevicePoolsError {
fn description(&self) -> &str {
match *self {
ListDevicePoolsError::Argument(ref cause) => cause,
ListDevicePoolsError::LimitExceeded(ref cause) => cause,
ListDevicePoolsError::NotFound(ref cause) => cause,
ListDevicePoolsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListDevicesError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListDevicesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDevicesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListDevicesError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListDevicesError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListDevicesError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListDevicesError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListDevicesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListDevicesError {
fn description(&self) -> &str {
match *self {
ListDevicesError::Argument(ref cause) => cause,
ListDevicesError::LimitExceeded(ref cause) => cause,
ListDevicesError::NotFound(ref cause) => cause,
ListDevicesError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListInstanceProfilesError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListInstanceProfilesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListInstanceProfilesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListInstanceProfilesError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListInstanceProfilesError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListInstanceProfilesError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListInstanceProfilesError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListInstanceProfilesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListInstanceProfilesError {
fn description(&self) -> &str {
match *self {
ListInstanceProfilesError::Argument(ref cause) => cause,
ListInstanceProfilesError::LimitExceeded(ref cause) => cause,
ListInstanceProfilesError::NotFound(ref cause) => cause,
ListInstanceProfilesError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListJobsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListJobsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListJobsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListJobsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListJobsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListJobsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListJobsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListJobsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListJobsError {
fn description(&self) -> &str {
match *self {
ListJobsError::Argument(ref cause) => cause,
ListJobsError::LimitExceeded(ref cause) => cause,
ListJobsError::NotFound(ref cause) => cause,
ListJobsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListNetworkProfilesError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListNetworkProfilesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListNetworkProfilesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListNetworkProfilesError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListNetworkProfilesError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListNetworkProfilesError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListNetworkProfilesError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListNetworkProfilesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListNetworkProfilesError {
fn description(&self) -> &str {
match *self {
ListNetworkProfilesError::Argument(ref cause) => cause,
ListNetworkProfilesError::LimitExceeded(ref cause) => cause,
ListNetworkProfilesError::NotFound(ref cause) => cause,
ListNetworkProfilesError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListOfferingPromotionsError {
Argument(String),
LimitExceeded(String),
NotEligible(String),
NotFound(String),
ServiceAccount(String),
}
impl ListOfferingPromotionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOfferingPromotionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListOfferingPromotionsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListOfferingPromotionsError::LimitExceeded(
err.msg,
))
}
"NotEligibleException" => {
return RusotoError::Service(ListOfferingPromotionsError::NotEligible(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListOfferingPromotionsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListOfferingPromotionsError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListOfferingPromotionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListOfferingPromotionsError {
fn description(&self) -> &str {
match *self {
ListOfferingPromotionsError::Argument(ref cause) => cause,
ListOfferingPromotionsError::LimitExceeded(ref cause) => cause,
ListOfferingPromotionsError::NotEligible(ref cause) => cause,
ListOfferingPromotionsError::NotFound(ref cause) => cause,
ListOfferingPromotionsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListOfferingTransactionsError {
Argument(String),
LimitExceeded(String),
NotEligible(String),
NotFound(String),
ServiceAccount(String),
}
impl ListOfferingTransactionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOfferingTransactionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListOfferingTransactionsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListOfferingTransactionsError::LimitExceeded(
err.msg,
))
}
"NotEligibleException" => {
return RusotoError::Service(ListOfferingTransactionsError::NotEligible(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(ListOfferingTransactionsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListOfferingTransactionsError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListOfferingTransactionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListOfferingTransactionsError {
fn description(&self) -> &str {
match *self {
ListOfferingTransactionsError::Argument(ref cause) => cause,
ListOfferingTransactionsError::LimitExceeded(ref cause) => cause,
ListOfferingTransactionsError::NotEligible(ref cause) => cause,
ListOfferingTransactionsError::NotFound(ref cause) => cause,
ListOfferingTransactionsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListOfferingsError {
Argument(String),
LimitExceeded(String),
NotEligible(String),
NotFound(String),
ServiceAccount(String),
}
impl ListOfferingsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOfferingsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListOfferingsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListOfferingsError::LimitExceeded(err.msg))
}
"NotEligibleException" => {
return RusotoError::Service(ListOfferingsError::NotEligible(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListOfferingsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListOfferingsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListOfferingsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListOfferingsError {
fn description(&self) -> &str {
match *self {
ListOfferingsError::Argument(ref cause) => cause,
ListOfferingsError::LimitExceeded(ref cause) => cause,
ListOfferingsError::NotEligible(ref cause) => cause,
ListOfferingsError::NotFound(ref cause) => cause,
ListOfferingsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListProjectsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListProjectsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListProjectsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListProjectsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListProjectsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListProjectsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListProjectsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListProjectsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListProjectsError {
fn description(&self) -> &str {
match *self {
ListProjectsError::Argument(ref cause) => cause,
ListProjectsError::LimitExceeded(ref cause) => cause,
ListProjectsError::NotFound(ref cause) => cause,
ListProjectsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListRemoteAccessSessionsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListRemoteAccessSessionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListRemoteAccessSessionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListRemoteAccessSessionsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListRemoteAccessSessionsError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(ListRemoteAccessSessionsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListRemoteAccessSessionsError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListRemoteAccessSessionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListRemoteAccessSessionsError {
fn description(&self) -> &str {
match *self {
ListRemoteAccessSessionsError::Argument(ref cause) => cause,
ListRemoteAccessSessionsError::LimitExceeded(ref cause) => cause,
ListRemoteAccessSessionsError::NotFound(ref cause) => cause,
ListRemoteAccessSessionsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListRunsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListRunsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListRunsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListRunsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListRunsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListRunsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListRunsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListRunsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListRunsError {
fn description(&self) -> &str {
match *self {
ListRunsError::Argument(ref cause) => cause,
ListRunsError::LimitExceeded(ref cause) => cause,
ListRunsError::NotFound(ref cause) => cause,
ListRunsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListSamplesError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListSamplesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSamplesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListSamplesError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListSamplesError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListSamplesError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListSamplesError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListSamplesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListSamplesError {
fn description(&self) -> &str {
match *self {
ListSamplesError::Argument(ref cause) => cause,
ListSamplesError::LimitExceeded(ref cause) => cause,
ListSamplesError::NotFound(ref cause) => cause,
ListSamplesError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListSuitesError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListSuitesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSuitesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListSuitesError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListSuitesError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListSuitesError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListSuitesError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListSuitesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListSuitesError {
fn description(&self) -> &str {
match *self {
ListSuitesError::Argument(ref cause) => cause,
ListSuitesError::LimitExceeded(ref cause) => cause,
ListSuitesError::NotFound(ref cause) => cause,
ListSuitesError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListTagsForResourceError {
NotFound(String),
TagOperation(String),
}
impl ListTagsForResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"NotFoundException" => {
return RusotoError::Service(ListTagsForResourceError::NotFound(err.msg))
}
"TagOperationException" => {
return RusotoError::Service(ListTagsForResourceError::TagOperation(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListTagsForResourceError {
fn description(&self) -> &str {
match *self {
ListTagsForResourceError::NotFound(ref cause) => cause,
ListTagsForResourceError::TagOperation(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListTestsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListTestsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTestsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListTestsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListTestsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListTestsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListTestsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListTestsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListTestsError {
fn description(&self) -> &str {
match *self {
ListTestsError::Argument(ref cause) => cause,
ListTestsError::LimitExceeded(ref cause) => cause,
ListTestsError::NotFound(ref cause) => cause,
ListTestsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListUniqueProblemsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListUniqueProblemsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListUniqueProblemsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListUniqueProblemsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListUniqueProblemsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListUniqueProblemsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListUniqueProblemsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListUniqueProblemsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListUniqueProblemsError {
fn description(&self) -> &str {
match *self {
ListUniqueProblemsError::Argument(ref cause) => cause,
ListUniqueProblemsError::LimitExceeded(ref cause) => cause,
ListUniqueProblemsError::NotFound(ref cause) => cause,
ListUniqueProblemsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListUploadsError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ListUploadsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListUploadsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListUploadsError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ListUploadsError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ListUploadsError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListUploadsError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListUploadsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListUploadsError {
fn description(&self) -> &str {
match *self {
ListUploadsError::Argument(ref cause) => cause,
ListUploadsError::LimitExceeded(ref cause) => cause,
ListUploadsError::NotFound(ref cause) => cause,
ListUploadsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListVPCEConfigurationsError {
Argument(String),
ServiceAccount(String),
}
impl ListVPCEConfigurationsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListVPCEConfigurationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ListVPCEConfigurationsError::Argument(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ListVPCEConfigurationsError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListVPCEConfigurationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListVPCEConfigurationsError {
fn description(&self) -> &str {
match *self {
ListVPCEConfigurationsError::Argument(ref cause) => cause,
ListVPCEConfigurationsError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PurchaseOfferingError {
Argument(String),
LimitExceeded(String),
NotEligible(String),
NotFound(String),
ServiceAccount(String),
}
impl PurchaseOfferingError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PurchaseOfferingError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(PurchaseOfferingError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(PurchaseOfferingError::LimitExceeded(err.msg))
}
"NotEligibleException" => {
return RusotoError::Service(PurchaseOfferingError::NotEligible(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(PurchaseOfferingError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(PurchaseOfferingError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PurchaseOfferingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PurchaseOfferingError {
fn description(&self) -> &str {
match *self {
PurchaseOfferingError::Argument(ref cause) => cause,
PurchaseOfferingError::LimitExceeded(ref cause) => cause,
PurchaseOfferingError::NotEligible(ref cause) => cause,
PurchaseOfferingError::NotFound(ref cause) => cause,
PurchaseOfferingError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RenewOfferingError {
Argument(String),
LimitExceeded(String),
NotEligible(String),
NotFound(String),
ServiceAccount(String),
}
impl RenewOfferingError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RenewOfferingError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(RenewOfferingError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(RenewOfferingError::LimitExceeded(err.msg))
}
"NotEligibleException" => {
return RusotoError::Service(RenewOfferingError::NotEligible(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(RenewOfferingError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(RenewOfferingError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RenewOfferingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RenewOfferingError {
fn description(&self) -> &str {
match *self {
RenewOfferingError::Argument(ref cause) => cause,
RenewOfferingError::LimitExceeded(ref cause) => cause,
RenewOfferingError::NotEligible(ref cause) => cause,
RenewOfferingError::NotFound(ref cause) => cause,
RenewOfferingError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ScheduleRunError {
Argument(String),
Idempotency(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl ScheduleRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ScheduleRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(ScheduleRunError::Argument(err.msg))
}
"IdempotencyException" => {
return RusotoError::Service(ScheduleRunError::Idempotency(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(ScheduleRunError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ScheduleRunError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(ScheduleRunError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ScheduleRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ScheduleRunError {
fn description(&self) -> &str {
match *self {
ScheduleRunError::Argument(ref cause) => cause,
ScheduleRunError::Idempotency(ref cause) => cause,
ScheduleRunError::LimitExceeded(ref cause) => cause,
ScheduleRunError::NotFound(ref cause) => cause,
ScheduleRunError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopJobError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl StopJobError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopJobError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(StopJobError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(StopJobError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(StopJobError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(StopJobError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopJobError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopJobError {
fn description(&self) -> &str {
match *self {
StopJobError::Argument(ref cause) => cause,
StopJobError::LimitExceeded(ref cause) => cause,
StopJobError::NotFound(ref cause) => cause,
StopJobError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopRemoteAccessSessionError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl StopRemoteAccessSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopRemoteAccessSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(StopRemoteAccessSessionError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(StopRemoteAccessSessionError::LimitExceeded(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(StopRemoteAccessSessionError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(StopRemoteAccessSessionError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopRemoteAccessSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopRemoteAccessSessionError {
fn description(&self) -> &str {
match *self {
StopRemoteAccessSessionError::Argument(ref cause) => cause,
StopRemoteAccessSessionError::LimitExceeded(ref cause) => cause,
StopRemoteAccessSessionError::NotFound(ref cause) => cause,
StopRemoteAccessSessionError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopRunError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl StopRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(StopRunError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(StopRunError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(StopRunError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(StopRunError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopRunError {
fn description(&self) -> &str {
match *self {
StopRunError::Argument(ref cause) => cause,
StopRunError::LimitExceeded(ref cause) => cause,
StopRunError::NotFound(ref cause) => cause,
StopRunError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum TagResourceError {
NotFound(String),
TagOperation(String),
TagPolicy(String),
TooManyTags(String),
}
impl TagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TagResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"NotFoundException" => {
return RusotoError::Service(TagResourceError::NotFound(err.msg))
}
"TagOperationException" => {
return RusotoError::Service(TagResourceError::TagOperation(err.msg))
}
"TagPolicyException" => {
return RusotoError::Service(TagResourceError::TagPolicy(err.msg))
}
"TooManyTagsException" => {
return RusotoError::Service(TagResourceError::TooManyTags(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for TagResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for TagResourceError {
fn description(&self) -> &str {
match *self {
TagResourceError::NotFound(ref cause) => cause,
TagResourceError::TagOperation(ref cause) => cause,
TagResourceError::TagPolicy(ref cause) => cause,
TagResourceError::TooManyTags(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UntagResourceError {
NotFound(String),
TagOperation(String),
}
impl UntagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UntagResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"NotFoundException" => {
return RusotoError::Service(UntagResourceError::NotFound(err.msg))
}
"TagOperationException" => {
return RusotoError::Service(UntagResourceError::TagOperation(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UntagResourceError {
fn description(&self) -> &str {
match *self {
UntagResourceError::NotFound(ref cause) => cause,
UntagResourceError::TagOperation(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDeviceInstanceError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateDeviceInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDeviceInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateDeviceInstanceError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdateDeviceInstanceError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateDeviceInstanceError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateDeviceInstanceError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDeviceInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDeviceInstanceError {
fn description(&self) -> &str {
match *self {
UpdateDeviceInstanceError::Argument(ref cause) => cause,
UpdateDeviceInstanceError::LimitExceeded(ref cause) => cause,
UpdateDeviceInstanceError::NotFound(ref cause) => cause,
UpdateDeviceInstanceError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDevicePoolError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateDevicePoolError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDevicePoolError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateDevicePoolError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdateDevicePoolError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateDevicePoolError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateDevicePoolError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDevicePoolError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDevicePoolError {
fn description(&self) -> &str {
match *self {
UpdateDevicePoolError::Argument(ref cause) => cause,
UpdateDevicePoolError::LimitExceeded(ref cause) => cause,
UpdateDevicePoolError::NotFound(ref cause) => cause,
UpdateDevicePoolError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateInstanceProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateInstanceProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateInstanceProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateInstanceProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdateInstanceProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateInstanceProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateInstanceProfileError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateInstanceProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateInstanceProfileError {
fn description(&self) -> &str {
match *self {
UpdateInstanceProfileError::Argument(ref cause) => cause,
UpdateInstanceProfileError::LimitExceeded(ref cause) => cause,
UpdateInstanceProfileError::NotFound(ref cause) => cause,
UpdateInstanceProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateNetworkProfileError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateNetworkProfileError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateNetworkProfileError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateNetworkProfileError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdateNetworkProfileError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateNetworkProfileError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateNetworkProfileError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateNetworkProfileError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateNetworkProfileError {
fn description(&self) -> &str {
match *self {
UpdateNetworkProfileError::Argument(ref cause) => cause,
UpdateNetworkProfileError::LimitExceeded(ref cause) => cause,
UpdateNetworkProfileError::NotFound(ref cause) => cause,
UpdateNetworkProfileError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateProjectError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateProjectError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateProjectError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateProjectError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdateProjectError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateProjectError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateProjectError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateProjectError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateProjectError {
fn description(&self) -> &str {
match *self {
UpdateProjectError::Argument(ref cause) => cause,
UpdateProjectError::LimitExceeded(ref cause) => cause,
UpdateProjectError::NotFound(ref cause) => cause,
UpdateProjectError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateUploadError {
Argument(String),
LimitExceeded(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateUploadError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateUploadError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateUploadError::Argument(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdateUploadError::LimitExceeded(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateUploadError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateUploadError::ServiceAccount(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateUploadError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateUploadError {
fn description(&self) -> &str {
match *self {
UpdateUploadError::Argument(ref cause) => cause,
UpdateUploadError::LimitExceeded(ref cause) => cause,
UpdateUploadError::NotFound(ref cause) => cause,
UpdateUploadError::ServiceAccount(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateVPCEConfigurationError {
Argument(String),
InvalidOperation(String),
NotFound(String),
ServiceAccount(String),
}
impl UpdateVPCEConfigurationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateVPCEConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ArgumentException" => {
return RusotoError::Service(UpdateVPCEConfigurationError::Argument(err.msg))
}
"InvalidOperationException" => {
return RusotoError::Service(UpdateVPCEConfigurationError::InvalidOperation(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(UpdateVPCEConfigurationError::NotFound(err.msg))
}
"ServiceAccountException" => {
return RusotoError::Service(UpdateVPCEConfigurationError::ServiceAccount(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateVPCEConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateVPCEConfigurationError {
fn description(&self) -> &str {
match *self {
UpdateVPCEConfigurationError::Argument(ref cause) => cause,
UpdateVPCEConfigurationError::InvalidOperation(ref cause) => cause,
UpdateVPCEConfigurationError::NotFound(ref cause) => cause,
UpdateVPCEConfigurationError::ServiceAccount(ref cause) => cause,
}
}
}
pub trait DeviceFarm {
fn create_device_pool(
&self,
input: CreateDevicePoolRequest,
) -> RusotoFuture<CreateDevicePoolResult, CreateDevicePoolError>;
fn create_instance_profile(
&self,
input: CreateInstanceProfileRequest,
) -> RusotoFuture<CreateInstanceProfileResult, CreateInstanceProfileError>;
fn create_network_profile(
&self,
input: CreateNetworkProfileRequest,
) -> RusotoFuture<CreateNetworkProfileResult, CreateNetworkProfileError>;
fn create_project(
&self,
input: CreateProjectRequest,
) -> RusotoFuture<CreateProjectResult, CreateProjectError>;
fn create_remote_access_session(
&self,
input: CreateRemoteAccessSessionRequest,
) -> RusotoFuture<CreateRemoteAccessSessionResult, CreateRemoteAccessSessionError>;
fn create_upload(
&self,
input: CreateUploadRequest,
) -> RusotoFuture<CreateUploadResult, CreateUploadError>;
fn create_vpce_configuration(
&self,
input: CreateVPCEConfigurationRequest,
) -> RusotoFuture<CreateVPCEConfigurationResult, CreateVPCEConfigurationError>;
fn delete_device_pool(
&self,
input: DeleteDevicePoolRequest,
) -> RusotoFuture<DeleteDevicePoolResult, DeleteDevicePoolError>;
fn delete_instance_profile(
&self,
input: DeleteInstanceProfileRequest,
) -> RusotoFuture<DeleteInstanceProfileResult, DeleteInstanceProfileError>;
fn delete_network_profile(
&self,
input: DeleteNetworkProfileRequest,
) -> RusotoFuture<DeleteNetworkProfileResult, DeleteNetworkProfileError>;
fn delete_project(
&self,
input: DeleteProjectRequest,
) -> RusotoFuture<DeleteProjectResult, DeleteProjectError>;
fn delete_remote_access_session(
&self,
input: DeleteRemoteAccessSessionRequest,
) -> RusotoFuture<DeleteRemoteAccessSessionResult, DeleteRemoteAccessSessionError>;
fn delete_run(&self, input: DeleteRunRequest) -> RusotoFuture<DeleteRunResult, DeleteRunError>;
fn delete_upload(
&self,
input: DeleteUploadRequest,
) -> RusotoFuture<DeleteUploadResult, DeleteUploadError>;
fn delete_vpce_configuration(
&self,
input: DeleteVPCEConfigurationRequest,
) -> RusotoFuture<DeleteVPCEConfigurationResult, DeleteVPCEConfigurationError>;
fn get_account_settings(
&self,
) -> RusotoFuture<GetAccountSettingsResult, GetAccountSettingsError>;
fn get_device(&self, input: GetDeviceRequest) -> RusotoFuture<GetDeviceResult, GetDeviceError>;
fn get_device_instance(
&self,
input: GetDeviceInstanceRequest,
) -> RusotoFuture<GetDeviceInstanceResult, GetDeviceInstanceError>;
fn get_device_pool(
&self,
input: GetDevicePoolRequest,
) -> RusotoFuture<GetDevicePoolResult, GetDevicePoolError>;
fn get_device_pool_compatibility(
&self,
input: GetDevicePoolCompatibilityRequest,
) -> RusotoFuture<GetDevicePoolCompatibilityResult, GetDevicePoolCompatibilityError>;
fn get_instance_profile(
&self,
input: GetInstanceProfileRequest,
) -> RusotoFuture<GetInstanceProfileResult, GetInstanceProfileError>;
fn get_job(&self, input: GetJobRequest) -> RusotoFuture<GetJobResult, GetJobError>;
fn get_network_profile(
&self,
input: GetNetworkProfileRequest,
) -> RusotoFuture<GetNetworkProfileResult, GetNetworkProfileError>;
fn get_offering_status(
&self,
input: GetOfferingStatusRequest,
) -> RusotoFuture<GetOfferingStatusResult, GetOfferingStatusError>;
fn get_project(
&self,
input: GetProjectRequest,
) -> RusotoFuture<GetProjectResult, GetProjectError>;
fn get_remote_access_session(
&self,
input: GetRemoteAccessSessionRequest,
) -> RusotoFuture<GetRemoteAccessSessionResult, GetRemoteAccessSessionError>;
fn get_run(&self, input: GetRunRequest) -> RusotoFuture<GetRunResult, GetRunError>;
fn get_suite(&self, input: GetSuiteRequest) -> RusotoFuture<GetSuiteResult, GetSuiteError>;
fn get_test(&self, input: GetTestRequest) -> RusotoFuture<GetTestResult, GetTestError>;
fn get_upload(&self, input: GetUploadRequest) -> RusotoFuture<GetUploadResult, GetUploadError>;
fn get_vpce_configuration(
&self,
input: GetVPCEConfigurationRequest,
) -> RusotoFuture<GetVPCEConfigurationResult, GetVPCEConfigurationError>;
fn install_to_remote_access_session(
&self,
input: InstallToRemoteAccessSessionRequest,
) -> RusotoFuture<InstallToRemoteAccessSessionResult, InstallToRemoteAccessSessionError>;
fn list_artifacts(
&self,
input: ListArtifactsRequest,
) -> RusotoFuture<ListArtifactsResult, ListArtifactsError>;
fn list_device_instances(
&self,
input: ListDeviceInstancesRequest,
) -> RusotoFuture<ListDeviceInstancesResult, ListDeviceInstancesError>;
fn list_device_pools(
&self,
input: ListDevicePoolsRequest,
) -> RusotoFuture<ListDevicePoolsResult, ListDevicePoolsError>;
fn list_devices(
&self,
input: ListDevicesRequest,
) -> RusotoFuture<ListDevicesResult, ListDevicesError>;
fn list_instance_profiles(
&self,
input: ListInstanceProfilesRequest,
) -> RusotoFuture<ListInstanceProfilesResult, ListInstanceProfilesError>;
fn list_jobs(&self, input: ListJobsRequest) -> RusotoFuture<ListJobsResult, ListJobsError>;
fn list_network_profiles(
&self,
input: ListNetworkProfilesRequest,
) -> RusotoFuture<ListNetworkProfilesResult, ListNetworkProfilesError>;
fn list_offering_promotions(
&self,
input: ListOfferingPromotionsRequest,
) -> RusotoFuture<ListOfferingPromotionsResult, ListOfferingPromotionsError>;
fn list_offering_transactions(
&self,
input: ListOfferingTransactionsRequest,
) -> RusotoFuture<ListOfferingTransactionsResult, ListOfferingTransactionsError>;
fn list_offerings(
&self,
input: ListOfferingsRequest,
) -> RusotoFuture<ListOfferingsResult, ListOfferingsError>;
fn list_projects(
&self,
input: ListProjectsRequest,
) -> RusotoFuture<ListProjectsResult, ListProjectsError>;
fn list_remote_access_sessions(
&self,
input: ListRemoteAccessSessionsRequest,
) -> RusotoFuture<ListRemoteAccessSessionsResult, ListRemoteAccessSessionsError>;
fn list_runs(&self, input: ListRunsRequest) -> RusotoFuture<ListRunsResult, ListRunsError>;
fn list_samples(
&self,
input: ListSamplesRequest,
) -> RusotoFuture<ListSamplesResult, ListSamplesError>;
fn list_suites(
&self,
input: ListSuitesRequest,
) -> RusotoFuture<ListSuitesResult, ListSuitesError>;
fn list_tags_for_resource(
&self,
input: ListTagsForResourceRequest,
) -> RusotoFuture<ListTagsForResourceResponse, ListTagsForResourceError>;
fn list_tests(&self, input: ListTestsRequest) -> RusotoFuture<ListTestsResult, ListTestsError>;
fn list_unique_problems(
&self,
input: ListUniqueProblemsRequest,
) -> RusotoFuture<ListUniqueProblemsResult, ListUniqueProblemsError>;
fn list_uploads(
&self,
input: ListUploadsRequest,
) -> RusotoFuture<ListUploadsResult, ListUploadsError>;
fn list_vpce_configurations(
&self,
input: ListVPCEConfigurationsRequest,
) -> RusotoFuture<ListVPCEConfigurationsResult, ListVPCEConfigurationsError>;
fn purchase_offering(
&self,
input: PurchaseOfferingRequest,
) -> RusotoFuture<PurchaseOfferingResult, PurchaseOfferingError>;
fn renew_offering(
&self,
input: RenewOfferingRequest,
) -> RusotoFuture<RenewOfferingResult, RenewOfferingError>;
fn schedule_run(
&self,
input: ScheduleRunRequest,
) -> RusotoFuture<ScheduleRunResult, ScheduleRunError>;
fn stop_job(&self, input: StopJobRequest) -> RusotoFuture<StopJobResult, StopJobError>;
fn stop_remote_access_session(
&self,
input: StopRemoteAccessSessionRequest,
) -> RusotoFuture<StopRemoteAccessSessionResult, StopRemoteAccessSessionError>;
fn stop_run(&self, input: StopRunRequest) -> RusotoFuture<StopRunResult, StopRunError>;
fn tag_resource(
&self,
input: TagResourceRequest,
) -> RusotoFuture<TagResourceResponse, TagResourceError>;
fn untag_resource(
&self,
input: UntagResourceRequest,
) -> RusotoFuture<UntagResourceResponse, UntagResourceError>;
fn update_device_instance(
&self,
input: UpdateDeviceInstanceRequest,
) -> RusotoFuture<UpdateDeviceInstanceResult, UpdateDeviceInstanceError>;
fn update_device_pool(
&self,
input: UpdateDevicePoolRequest,
) -> RusotoFuture<UpdateDevicePoolResult, UpdateDevicePoolError>;
fn update_instance_profile(
&self,
input: UpdateInstanceProfileRequest,
) -> RusotoFuture<UpdateInstanceProfileResult, UpdateInstanceProfileError>;
fn update_network_profile(
&self,
input: UpdateNetworkProfileRequest,
) -> RusotoFuture<UpdateNetworkProfileResult, UpdateNetworkProfileError>;
fn update_project(
&self,
input: UpdateProjectRequest,
) -> RusotoFuture<UpdateProjectResult, UpdateProjectError>;
fn update_upload(
&self,
input: UpdateUploadRequest,
) -> RusotoFuture<UpdateUploadResult, UpdateUploadError>;
fn update_vpce_configuration(
&self,
input: UpdateVPCEConfigurationRequest,
) -> RusotoFuture<UpdateVPCEConfigurationResult, UpdateVPCEConfigurationError>;
}
#[derive(Clone)]
pub struct DeviceFarmClient {
client: Client,
region: region::Region,
}
impl DeviceFarmClient {
pub fn new(region: region::Region) -> DeviceFarmClient {
DeviceFarmClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> DeviceFarmClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
{
DeviceFarmClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
}
impl DeviceFarm for DeviceFarmClient {
fn create_device_pool(
&self,
input: CreateDevicePoolRequest,
) -> RusotoFuture<CreateDevicePoolResult, CreateDevicePoolError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.CreateDevicePool");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateDevicePoolResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDevicePoolError::from_response(response))),
)
}
})
}
fn create_instance_profile(
&self,
input: CreateInstanceProfileRequest,
) -> RusotoFuture<CreateInstanceProfileResult, CreateInstanceProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.CreateInstanceProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateInstanceProfileResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateInstanceProfileError::from_response(response))
}),
)
}
})
}
fn create_network_profile(
&self,
input: CreateNetworkProfileRequest,
) -> RusotoFuture<CreateNetworkProfileResult, CreateNetworkProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.CreateNetworkProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateNetworkProfileResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateNetworkProfileError::from_response(response))
}),
)
}
})
}
fn create_project(
&self,
input: CreateProjectRequest,
) -> RusotoFuture<CreateProjectResult, CreateProjectError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.CreateProject");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateProjectResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateProjectError::from_response(response))),
)
}
})
}
fn create_remote_access_session(
&self,
input: CreateRemoteAccessSessionRequest,
) -> RusotoFuture<CreateRemoteAccessSessionResult, CreateRemoteAccessSessionError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.CreateRemoteAccessSession",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateRemoteAccessSessionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateRemoteAccessSessionError::from_response(response))
}))
}
})
}
fn create_upload(
&self,
input: CreateUploadRequest,
) -> RusotoFuture<CreateUploadResult, CreateUploadError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.CreateUpload");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateUploadResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateUploadError::from_response(response))),
)
}
})
}
fn create_vpce_configuration(
&self,
input: CreateVPCEConfigurationRequest,
) -> RusotoFuture<CreateVPCEConfigurationResult, CreateVPCEConfigurationError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.CreateVPCEConfiguration",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateVPCEConfigurationResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateVPCEConfigurationError::from_response(response))
}))
}
})
}
fn delete_device_pool(
&self,
input: DeleteDevicePoolRequest,
) -> RusotoFuture<DeleteDevicePoolResult, DeleteDevicePoolError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteDevicePool");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteDevicePoolResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDevicePoolError::from_response(response))),
)
}
})
}
fn delete_instance_profile(
&self,
input: DeleteInstanceProfileRequest,
) -> RusotoFuture<DeleteInstanceProfileResult, DeleteInstanceProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteInstanceProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteInstanceProfileResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteInstanceProfileError::from_response(response))
}),
)
}
})
}
fn delete_network_profile(
&self,
input: DeleteNetworkProfileRequest,
) -> RusotoFuture<DeleteNetworkProfileResult, DeleteNetworkProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteNetworkProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteNetworkProfileResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteNetworkProfileError::from_response(response))
}),
)
}
})
}
fn delete_project(
&self,
input: DeleteProjectRequest,
) -> RusotoFuture<DeleteProjectResult, DeleteProjectError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteProject");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteProjectResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteProjectError::from_response(response))),
)
}
})
}
fn delete_remote_access_session(
&self,
input: DeleteRemoteAccessSessionRequest,
) -> RusotoFuture<DeleteRemoteAccessSessionResult, DeleteRemoteAccessSessionError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.DeleteRemoteAccessSession",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteRemoteAccessSessionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteRemoteAccessSessionError::from_response(response))
}))
}
})
}
fn delete_run(&self, input: DeleteRunRequest) -> RusotoFuture<DeleteRunResult, DeleteRunError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<DeleteRunResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteRunError::from_response(response))),
)
}
})
}
fn delete_upload(
&self,
input: DeleteUploadRequest,
) -> RusotoFuture<DeleteUploadResult, DeleteUploadError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.DeleteUpload");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteUploadResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteUploadError::from_response(response))),
)
}
})
}
fn delete_vpce_configuration(
&self,
input: DeleteVPCEConfigurationRequest,
) -> RusotoFuture<DeleteVPCEConfigurationResult, DeleteVPCEConfigurationError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.DeleteVPCEConfiguration",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteVPCEConfigurationResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteVPCEConfigurationError::from_response(response))
}))
}
})
}
fn get_account_settings(
&self,
) -> RusotoFuture<GetAccountSettingsResult, GetAccountSettingsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetAccountSettings");
request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetAccountSettingsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetAccountSettingsError::from_response(response))),
)
}
})
}
fn get_device(&self, input: GetDeviceRequest) -> RusotoFuture<GetDeviceResult, GetDeviceError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetDevice");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetDeviceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDeviceError::from_response(response))),
)
}
})
}
fn get_device_instance(
&self,
input: GetDeviceInstanceRequest,
) -> RusotoFuture<GetDeviceInstanceResult, GetDeviceInstanceError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetDeviceInstance");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDeviceInstanceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDeviceInstanceError::from_response(response))),
)
}
})
}
fn get_device_pool(
&self,
input: GetDevicePoolRequest,
) -> RusotoFuture<GetDevicePoolResult, GetDevicePoolError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetDevicePool");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDevicePoolResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDevicePoolError::from_response(response))),
)
}
})
}
fn get_device_pool_compatibility(
&self,
input: GetDevicePoolCompatibilityRequest,
) -> RusotoFuture<GetDevicePoolCompatibilityResult, GetDevicePoolCompatibilityError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.GetDevicePoolCompatibility",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDevicePoolCompatibilityResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetDevicePoolCompatibilityError::from_response(response))
}))
}
})
}
fn get_instance_profile(
&self,
input: GetInstanceProfileRequest,
) -> RusotoFuture<GetInstanceProfileResult, GetInstanceProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetInstanceProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetInstanceProfileResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetInstanceProfileError::from_response(response))),
)
}
})
}
fn get_job(&self, input: GetJobRequest) -> RusotoFuture<GetJobResult, GetJobError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetJob");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetJobResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetJobError::from_response(response))),
)
}
})
}
fn get_network_profile(
&self,
input: GetNetworkProfileRequest,
) -> RusotoFuture<GetNetworkProfileResult, GetNetworkProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetNetworkProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetNetworkProfileResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetNetworkProfileError::from_response(response))),
)
}
})
}
fn get_offering_status(
&self,
input: GetOfferingStatusRequest,
) -> RusotoFuture<GetOfferingStatusResult, GetOfferingStatusError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetOfferingStatus");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetOfferingStatusResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetOfferingStatusError::from_response(response))),
)
}
})
}
fn get_project(
&self,
input: GetProjectRequest,
) -> RusotoFuture<GetProjectResult, GetProjectError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetProject");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetProjectResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetProjectError::from_response(response))),
)
}
})
}
fn get_remote_access_session(
&self,
input: GetRemoteAccessSessionRequest,
) -> RusotoFuture<GetRemoteAccessSessionResult, GetRemoteAccessSessionError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetRemoteAccessSession");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetRemoteAccessSessionResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetRemoteAccessSessionError::from_response(response))
}),
)
}
})
}
fn get_run(&self, input: GetRunRequest) -> RusotoFuture<GetRunResult, GetRunError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetRunResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetRunError::from_response(response))),
)
}
})
}
fn get_suite(&self, input: GetSuiteRequest) -> RusotoFuture<GetSuiteResult, GetSuiteError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetSuite");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetSuiteResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetSuiteError::from_response(response))),
)
}
})
}
fn get_test(&self, input: GetTestRequest) -> RusotoFuture<GetTestResult, GetTestError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetTest");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetTestResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTestError::from_response(response))),
)
}
})
}
fn get_upload(&self, input: GetUploadRequest) -> RusotoFuture<GetUploadResult, GetUploadError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetUpload");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetUploadResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetUploadError::from_response(response))),
)
}
})
}
fn get_vpce_configuration(
&self,
input: GetVPCEConfigurationRequest,
) -> RusotoFuture<GetVPCEConfigurationResult, GetVPCEConfigurationError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.GetVPCEConfiguration");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetVPCEConfigurationResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetVPCEConfigurationError::from_response(response))
}),
)
}
})
}
fn install_to_remote_access_session(
&self,
input: InstallToRemoteAccessSessionRequest,
) -> RusotoFuture<InstallToRemoteAccessSessionResult, InstallToRemoteAccessSessionError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.InstallToRemoteAccessSession",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<InstallToRemoteAccessSessionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(InstallToRemoteAccessSessionError::from_response(response))
}))
}
})
}
fn list_artifacts(
&self,
input: ListArtifactsRequest,
) -> RusotoFuture<ListArtifactsResult, ListArtifactsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListArtifacts");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListArtifactsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListArtifactsError::from_response(response))),
)
}
})
}
fn list_device_instances(
&self,
input: ListDeviceInstancesRequest,
) -> RusotoFuture<ListDeviceInstancesResult, ListDeviceInstancesError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListDeviceInstances");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListDeviceInstancesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListDeviceInstancesError::from_response(response))
}),
)
}
})
}
fn list_device_pools(
&self,
input: ListDevicePoolsRequest,
) -> RusotoFuture<ListDevicePoolsResult, ListDevicePoolsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListDevicePools");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListDevicePoolsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListDevicePoolsError::from_response(response))),
)
}
})
}
fn list_devices(
&self,
input: ListDevicesRequest,
) -> RusotoFuture<ListDevicesResult, ListDevicesError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListDevices");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListDevicesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListDevicesError::from_response(response))),
)
}
})
}
fn list_instance_profiles(
&self,
input: ListInstanceProfilesRequest,
) -> RusotoFuture<ListInstanceProfilesResult, ListInstanceProfilesError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListInstanceProfiles");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListInstanceProfilesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListInstanceProfilesError::from_response(response))
}),
)
}
})
}
fn list_jobs(&self, input: ListJobsRequest) -> RusotoFuture<ListJobsResult, ListJobsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListJobs");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<ListJobsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListJobsError::from_response(response))),
)
}
})
}
fn list_network_profiles(
&self,
input: ListNetworkProfilesRequest,
) -> RusotoFuture<ListNetworkProfilesResult, ListNetworkProfilesError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListNetworkProfiles");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListNetworkProfilesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListNetworkProfilesError::from_response(response))
}),
)
}
})
}
fn list_offering_promotions(
&self,
input: ListOfferingPromotionsRequest,
) -> RusotoFuture<ListOfferingPromotionsResult, ListOfferingPromotionsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListOfferingPromotions");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListOfferingPromotionsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListOfferingPromotionsError::from_response(response))
}),
)
}
})
}
fn list_offering_transactions(
&self,
input: ListOfferingTransactionsRequest,
) -> RusotoFuture<ListOfferingTransactionsResult, ListOfferingTransactionsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.ListOfferingTransactions",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListOfferingTransactionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListOfferingTransactionsError::from_response(response))
}))
}
})
}
fn list_offerings(
&self,
input: ListOfferingsRequest,
) -> RusotoFuture<ListOfferingsResult, ListOfferingsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListOfferings");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListOfferingsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListOfferingsError::from_response(response))),
)
}
})
}
fn list_projects(
&self,
input: ListProjectsRequest,
) -> RusotoFuture<ListProjectsResult, ListProjectsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListProjects");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListProjectsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListProjectsError::from_response(response))),
)
}
})
}
fn list_remote_access_sessions(
&self,
input: ListRemoteAccessSessionsRequest,
) -> RusotoFuture<ListRemoteAccessSessionsResult, ListRemoteAccessSessionsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.ListRemoteAccessSessions",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListRemoteAccessSessionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListRemoteAccessSessionsError::from_response(response))
}))
}
})
}
fn list_runs(&self, input: ListRunsRequest) -> RusotoFuture<ListRunsResult, ListRunsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListRuns");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<ListRunsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListRunsError::from_response(response))),
)
}
})
}
fn list_samples(
&self,
input: ListSamplesRequest,
) -> RusotoFuture<ListSamplesResult, ListSamplesError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListSamples");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListSamplesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListSamplesError::from_response(response))),
)
}
})
}
fn list_suites(
&self,
input: ListSuitesRequest,
) -> RusotoFuture<ListSuitesResult, ListSuitesError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListSuites");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListSuitesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListSuitesError::from_response(response))),
)
}
})
}
fn list_tags_for_resource(
&self,
input: ListTagsForResourceRequest,
) -> RusotoFuture<ListTagsForResourceResponse, ListTagsForResourceError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListTagsForResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListTagsForResourceResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListTagsForResourceError::from_response(response))
}),
)
}
})
}
fn list_tests(&self, input: ListTestsRequest) -> RusotoFuture<ListTestsResult, ListTestsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListTests");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<ListTestsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListTestsError::from_response(response))),
)
}
})
}
fn list_unique_problems(
&self,
input: ListUniqueProblemsRequest,
) -> RusotoFuture<ListUniqueProblemsResult, ListUniqueProblemsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListUniqueProblems");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListUniqueProblemsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListUniqueProblemsError::from_response(response))),
)
}
})
}
fn list_uploads(
&self,
input: ListUploadsRequest,
) -> RusotoFuture<ListUploadsResult, ListUploadsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListUploads");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListUploadsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListUploadsError::from_response(response))),
)
}
})
}
fn list_vpce_configurations(
&self,
input: ListVPCEConfigurationsRequest,
) -> RusotoFuture<ListVPCEConfigurationsResult, ListVPCEConfigurationsError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ListVPCEConfigurations");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListVPCEConfigurationsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListVPCEConfigurationsError::from_response(response))
}),
)
}
})
}
fn purchase_offering(
&self,
input: PurchaseOfferingRequest,
) -> RusotoFuture<PurchaseOfferingResult, PurchaseOfferingError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.PurchaseOffering");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<PurchaseOfferingResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(PurchaseOfferingError::from_response(response))),
)
}
})
}
fn renew_offering(
&self,
input: RenewOfferingRequest,
) -> RusotoFuture<RenewOfferingResult, RenewOfferingError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.RenewOffering");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<RenewOfferingResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(RenewOfferingError::from_response(response))),
)
}
})
}
fn schedule_run(
&self,
input: ScheduleRunRequest,
) -> RusotoFuture<ScheduleRunResult, ScheduleRunError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.ScheduleRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ScheduleRunResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ScheduleRunError::from_response(response))),
)
}
})
}
fn stop_job(&self, input: StopJobRequest) -> RusotoFuture<StopJobResult, StopJobError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.StopJob");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<StopJobResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StopJobError::from_response(response))),
)
}
})
}
fn stop_remote_access_session(
&self,
input: StopRemoteAccessSessionRequest,
) -> RusotoFuture<StopRemoteAccessSessionResult, StopRemoteAccessSessionError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.StopRemoteAccessSession",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StopRemoteAccessSessionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(StopRemoteAccessSessionError::from_response(response))
}))
}
})
}
fn stop_run(&self, input: StopRunRequest) -> RusotoFuture<StopRunResult, StopRunError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.StopRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<StopRunResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StopRunError::from_response(response))),
)
}
})
}
fn tag_resource(
&self,
input: TagResourceRequest,
) -> RusotoFuture<TagResourceResponse, TagResourceError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.TagResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<TagResourceResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(TagResourceError::from_response(response))),
)
}
})
}
fn untag_resource(
&self,
input: UntagResourceRequest,
) -> RusotoFuture<UntagResourceResponse, UntagResourceError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UntagResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UntagResourceResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UntagResourceError::from_response(response))),
)
}
})
}
fn update_device_instance(
&self,
input: UpdateDeviceInstanceRequest,
) -> RusotoFuture<UpdateDeviceInstanceResult, UpdateDeviceInstanceError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateDeviceInstance");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateDeviceInstanceResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdateDeviceInstanceError::from_response(response))
}),
)
}
})
}
fn update_device_pool(
&self,
input: UpdateDevicePoolRequest,
) -> RusotoFuture<UpdateDevicePoolResult, UpdateDevicePoolError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateDevicePool");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateDevicePoolResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateDevicePoolError::from_response(response))),
)
}
})
}
fn update_instance_profile(
&self,
input: UpdateInstanceProfileRequest,
) -> RusotoFuture<UpdateInstanceProfileResult, UpdateInstanceProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateInstanceProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateInstanceProfileResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdateInstanceProfileError::from_response(response))
}),
)
}
})
}
fn update_network_profile(
&self,
input: UpdateNetworkProfileRequest,
) -> RusotoFuture<UpdateNetworkProfileResult, UpdateNetworkProfileError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateNetworkProfile");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateNetworkProfileResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdateNetworkProfileError::from_response(response))
}),
)
}
})
}
fn update_project(
&self,
input: UpdateProjectRequest,
) -> RusotoFuture<UpdateProjectResult, UpdateProjectError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateProject");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateProjectResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateProjectError::from_response(response))),
)
}
})
}
fn update_upload(
&self,
input: UpdateUploadRequest,
) -> RusotoFuture<UpdateUploadResult, UpdateUploadError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "DeviceFarm_20150623.UpdateUpload");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateUploadResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateUploadError::from_response(response))),
)
}
})
}
fn update_vpce_configuration(
&self,
input: UpdateVPCEConfigurationRequest,
) -> RusotoFuture<UpdateVPCEConfigurationResult, UpdateVPCEConfigurationError> {
let mut request = SignedRequest::new("POST", "devicefarm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"DeviceFarm_20150623.UpdateVPCEConfiguration",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateVPCEConfigurationResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateVPCEConfigurationError::from_response(response))
}))
}
})
}
}