/* 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'; import type { ApiArtifactoryConnectionStatusResponseDTO } from './ApiArtifactoryConnectionStatusResponseDTO'; import { ApiArtifactoryConnectionStatusResponseDTOFromJSON, ApiArtifactoryConnectionStatusResponseDTOFromJSONTyped, ApiArtifactoryConnectionStatusResponseDTOToJSON, ApiArtifactoryConnectionStatusResponseDTOToJSONTyped, } from './ApiArtifactoryConnectionStatusResponseDTO'; import type { ApiOwnerDTO } from './ApiOwnerDTO'; import { ApiOwnerDTOFromJSON, ApiOwnerDTOFromJSONTyped, ApiOwnerDTOToJSON, ApiOwnerDTOToJSONTyped, } from './ApiOwnerDTO'; import type { ApiArtifactoryConnectionDTO } from './ApiArtifactoryConnectionDTO'; import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOFromJSONTyped, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionDTOToJSONTyped, } from './ApiArtifactoryConnectionDTO'; /** * * @export * @interface ApiOwnerArtifactoryConnectionDTO */ export interface ApiOwnerArtifactoryConnectionDTO { /** * * @type {ApiArtifactoryConnectionDTO} * @memberof ApiOwnerArtifactoryConnectionDTO */ artifactoryConnection?: ApiArtifactoryConnectionDTO; /** * * @type {ApiArtifactoryConnectionStatusResponseDTO} * @memberof ApiOwnerArtifactoryConnectionDTO */ artifactoryConnectionStatus?: ApiArtifactoryConnectionStatusResponseDTO; /** * * @type {ApiOwnerDTO} * @memberof ApiOwnerArtifactoryConnectionDTO */ ownerDTO?: ApiOwnerDTO; } /** * Check if a given object implements the ApiOwnerArtifactoryConnectionDTO interface. */ export function instanceOfApiOwnerArtifactoryConnectionDTO(value: object): value is ApiOwnerArtifactoryConnectionDTO { return true; } export function ApiOwnerArtifactoryConnectionDTOFromJSON(json: any): ApiOwnerArtifactoryConnectionDTO { return ApiOwnerArtifactoryConnectionDTOFromJSONTyped(json, false); } export function ApiOwnerArtifactoryConnectionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiOwnerArtifactoryConnectionDTO { if (json == null) { return json; } return { 'artifactoryConnection': json['artifactoryConnection'] == null ? undefined : ApiArtifactoryConnectionDTOFromJSON(json['artifactoryConnection']), 'artifactoryConnectionStatus': json['artifactoryConnectionStatus'] == null ? undefined : ApiArtifactoryConnectionStatusResponseDTOFromJSON(json['artifactoryConnectionStatus']), 'ownerDTO': json['ownerDTO'] == null ? undefined : ApiOwnerDTOFromJSON(json['ownerDTO']), }; } export function ApiOwnerArtifactoryConnectionDTOToJSON(json: any): ApiOwnerArtifactoryConnectionDTO { return ApiOwnerArtifactoryConnectionDTOToJSONTyped(json, false); } export function ApiOwnerArtifactoryConnectionDTOToJSONTyped(value?: ApiOwnerArtifactoryConnectionDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'artifactoryConnection': ApiArtifactoryConnectionDTOToJSON(value['artifactoryConnection']), 'artifactoryConnectionStatus': ApiArtifactoryConnectionStatusResponseDTOToJSON(value['artifactoryConnectionStatus']), 'ownerDTO': ApiOwnerDTOToJSON(value['ownerDTO']), }; }