/* tslint:disable */ /* eslint-disable */ /** * ELEMENTS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface AWSAccountUpdate */ export interface AWSAccountUpdate { /** * * @type {string} * @memberof AWSAccountUpdate */ name: string; /** * * @type {string} * @memberof AWSAccountUpdate */ accessKeyId: string; /** * * @type {string} * @memberof AWSAccountUpdate */ secretAccessKey: string; /** * * @type {string} * @memberof AWSAccountUpdate */ endpointUrl?: string | null; /** * * @type {string} * @memberof AWSAccountUpdate */ defaultRegion?: AWSAccountUpdateDefaultRegionEnum; } /** * @export * @enum {string} */ export enum AWSAccountUpdateDefaultRegionEnum { UsEast2 = 'us-east-2', UsEast1 = 'us-east-1', UsWest1 = 'us-west-1', UsWest2 = 'us-west-2', ApEast1 = 'ap-east-1', ApSouth1 = 'ap-south-1', ApNortheast2 = 'ap-northeast-2', ApSoutheast1 = 'ap-southeast-1', ApSoutheast2 = 'ap-southeast-2', ApNortheast1 = 'ap-northeast-1', CaCentral1 = 'ca-central-1', CnNorth1 = 'cn-north-1', CnNorthwest1 = 'cn-northwest-1', EuCentral1 = 'eu-central-1', EuWest1 = 'eu-west-1', EuWest2 = 'eu-west-2', EuWest3 = 'eu-west-3', EuNorth1 = 'eu-north-1', MeSouth1 = 'me-south-1', SaEast1 = 'sa-east-1' } export function AWSAccountUpdateFromJSON(json: any): AWSAccountUpdate { return AWSAccountUpdateFromJSONTyped(json, false); } export function AWSAccountUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSAccountUpdate { if ((json === undefined) || (json === null)) { return json; } return { 'name': json['name'], 'accessKeyId': json['access_key_id'], 'secretAccessKey': json['secret_access_key'], 'endpointUrl': !exists(json, 'endpoint_url') ? undefined : json['endpoint_url'], 'defaultRegion': !exists(json, 'default_region') ? undefined : json['default_region'], }; } export function AWSAccountUpdateToJSON(value?: AWSAccountUpdate | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'name': value.name, 'access_key_id': value.accessKeyId, 'secret_access_key': value.secretAccessKey, 'endpoint_url': value.endpointUrl, 'default_region': value.defaultRegion, }; }