/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ApiArtifactoryConnectionDTO */ export interface ApiArtifactoryConnectionDTO { /** * * @type {string} * @memberof ApiArtifactoryConnectionDTO */ artifactoryConnectionId?: string; /** * * @type {string} * @memberof ApiArtifactoryConnectionDTO */ baseUrl?: string; /** * * @type {boolean} * @memberof ApiArtifactoryConnectionDTO */ isAnonymous?: boolean; /** * * @type {string} * @memberof ApiArtifactoryConnectionDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiArtifactoryConnectionDTO */ ownerType?: ApiArtifactoryConnectionDTOOwnerTypeEnum; /** * * @type {string} * @memberof ApiArtifactoryConnectionDTO */ password?: string; /** * * @type {string} * @memberof ApiArtifactoryConnectionDTO */ username?: string; } /** * @export */ export const ApiArtifactoryConnectionDTOOwnerTypeEnum = { Application: 'application', Organization: 'organization', RepositoryContainer: 'repository_container', RepositoryManager: 'repository_manager', Repository: 'repository', HostedRepositoryComponent: 'hosted_repository_component', Global: 'global' } as const; export type ApiArtifactoryConnectionDTOOwnerTypeEnum = typeof ApiArtifactoryConnectionDTOOwnerTypeEnum[keyof typeof ApiArtifactoryConnectionDTOOwnerTypeEnum]; /** * Check if a given object implements the ApiArtifactoryConnectionDTO interface. */ export function instanceOfApiArtifactoryConnectionDTO(value: object): value is ApiArtifactoryConnectionDTO { return true; } export function ApiArtifactoryConnectionDTOFromJSON(json: any): ApiArtifactoryConnectionDTO { return ApiArtifactoryConnectionDTOFromJSONTyped(json, false); } export function ApiArtifactoryConnectionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiArtifactoryConnectionDTO { if (json == null) { return json; } return { 'artifactoryConnectionId': json['artifactoryConnectionId'] == null ? undefined : json['artifactoryConnectionId'], 'baseUrl': json['baseUrl'] == null ? undefined : json['baseUrl'], 'isAnonymous': json['isAnonymous'] == null ? undefined : json['isAnonymous'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], 'password': json['password'] == null ? undefined : json['password'], 'username': json['username'] == null ? undefined : json['username'], }; } export function ApiArtifactoryConnectionDTOToJSON(json: any): ApiArtifactoryConnectionDTO { return ApiArtifactoryConnectionDTOToJSONTyped(json, false); } export function ApiArtifactoryConnectionDTOToJSONTyped(value?: ApiArtifactoryConnectionDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'artifactoryConnectionId': value['artifactoryConnectionId'], 'baseUrl': value['baseUrl'], 'isAnonymous': value['isAnonymous'], 'ownerId': value['ownerId'], 'ownerType': value['ownerType'], 'password': value['password'], 'username': value['username'], }; }