/* 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 AWSAccountPartialUpdate */ export interface AWSAccountPartialUpdate { /** * * @type {string} * @memberof AWSAccountPartialUpdate */ name?: string; /** * * @type {string} * @memberof AWSAccountPartialUpdate */ accessKeyId?: string; /** * * @type {string} * @memberof AWSAccountPartialUpdate */ secretAccessKey?: string; /** * * @type {string} * @memberof AWSAccountPartialUpdate */ endpointUrl?: string | null; /** * * @type {string} * @memberof AWSAccountPartialUpdate */ defaultRegion?: AWSAccountPartialUpdateDefaultRegionEnum; } /** * @export * @enum {string} */ export enum AWSAccountPartialUpdateDefaultRegionEnum { 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 AWSAccountPartialUpdateFromJSON(json: any): AWSAccountPartialUpdate { return AWSAccountPartialUpdateFromJSONTyped(json, false); } export function AWSAccountPartialUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSAccountPartialUpdate { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'name') ? undefined : json['name'], 'accessKeyId': !exists(json, 'access_key_id') ? undefined : json['access_key_id'], 'secretAccessKey': !exists(json, 'secret_access_key') ? undefined : json['secret_access_key'], 'endpointUrl': !exists(json, 'endpoint_url') ? undefined : json['endpoint_url'], 'defaultRegion': !exists(json, 'default_region') ? undefined : json['default_region'], }; } export function AWSAccountPartialUpdateToJSON(value?: AWSAccountPartialUpdate | 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, }; }