/* 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 { ApiSamlConfigurationDTO } from './ApiSamlConfigurationDTO'; import { ApiSamlConfigurationDTOFromJSON, ApiSamlConfigurationDTOFromJSONTyped, ApiSamlConfigurationDTOToJSON, ApiSamlConfigurationDTOToJSONTyped, } from './ApiSamlConfigurationDTO'; /** * * @export * @interface InsertOrUpdateSamlConfigurationRequest */ export interface InsertOrUpdateSamlConfigurationRequest { /** * Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata. * @type {string} * @memberof InsertOrUpdateSamlConfigurationRequest */ identityProviderXml?: string; /** * * @type {ApiSamlConfigurationDTO} * @memberof InsertOrUpdateSamlConfigurationRequest */ samlConfiguration?: ApiSamlConfigurationDTO; } /** * Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface. */ export function instanceOfInsertOrUpdateSamlConfigurationRequest(value: object): value is InsertOrUpdateSamlConfigurationRequest { return true; } export function InsertOrUpdateSamlConfigurationRequestFromJSON(json: any): InsertOrUpdateSamlConfigurationRequest { return InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json, false); } export function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InsertOrUpdateSamlConfigurationRequest { if (json == null) { return json; } return { 'identityProviderXml': json['identityProviderXml'] == null ? undefined : json['identityProviderXml'], 'samlConfiguration': json['samlConfiguration'] == null ? undefined : ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']), }; } export function InsertOrUpdateSamlConfigurationRequestToJSON(json: any): InsertOrUpdateSamlConfigurationRequest { return InsertOrUpdateSamlConfigurationRequestToJSONTyped(json, false); } export function InsertOrUpdateSamlConfigurationRequestToJSONTyped(value?: InsertOrUpdateSamlConfigurationRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'identityProviderXml': value['identityProviderXml'], 'samlConfiguration': ApiSamlConfigurationDTOToJSON(value['samlConfiguration']), }; }