/* tslint:disable */ /* eslint-disable */ /** * Tapis Workflows API * Create and manage pipelines * * The version of the OpenAPI document: 1.6.0 * Contact: cicsupport@tacc.utexas.edu * * 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'; import { EnumArchiveType, EnumArchiveTypeFromJSON, EnumArchiveTypeFromJSONTyped, EnumArchiveTypeToJSON, ReqBaseArchive, ReqBaseArchiveFromJSON, ReqBaseArchiveFromJSONTyped, ReqBaseArchiveToJSON, ReqS3ArchiveAllOf, ReqS3ArchiveAllOfFromJSON, ReqS3ArchiveAllOfFromJSONTyped, ReqS3ArchiveAllOfToJSON, ReqS3Cred, ReqS3CredFromJSON, ReqS3CredFromJSONTyped, ReqS3CredToJSON, } from './'; /** * * @export * @interface ReqS3Archive */ export interface ReqS3Archive { /** * * @type {string} * @memberof ReqS3Archive */ id: string; /** * * @type {EnumArchiveType} * @memberof ReqS3Archive */ type: EnumArchiveType; /** * * @type {string} * @memberof ReqS3Archive */ archive_dir?: string; /** * * @type {string} * @memberof ReqS3Archive */ endpoint: string; /** * * @type {string} * @memberof ReqS3Archive */ bucket: string; /** * * @type {string} * @memberof ReqS3Archive */ region: string; /** * * @type {ReqS3Cred} * @memberof ReqS3Archive */ credentials?: ReqS3Cred; /** * * @type {string} * @memberof ReqS3Archive */ identity_uuid?: string; } export function ReqS3ArchiveFromJSON(json: any): ReqS3Archive { return ReqS3ArchiveFromJSONTyped(json, false); } export function ReqS3ArchiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqS3Archive { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'type': EnumArchiveTypeFromJSON(json['type']), 'archive_dir': !exists(json, 'archive_dir') ? undefined : json['archive_dir'], 'endpoint': json['endpoint'], 'bucket': json['bucket'], 'region': json['region'], 'credentials': !exists(json, 'credentials') ? undefined : ReqS3CredFromJSON(json['credentials']), 'identity_uuid': !exists(json, 'identity_uuid') ? undefined : json['identity_uuid'], }; } export function ReqS3ArchiveToJSON(value?: ReqS3Archive | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'type': EnumArchiveTypeToJSON(value.type), 'archive_dir': value.archive_dir, 'endpoint': value.endpoint, 'bucket': value.bucket, 'region': value.region, 'credentials': ReqS3CredToJSON(value.credentials), 'identity_uuid': value.identity_uuid, }; }