/* 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 RelayRegisterAdminRequest */ export interface RelayRegisterAdminRequest { /** * * @type {string} * @memberof RelayRegisterAdminRequest */ installationId?: string; /** * * @type {string} * @memberof RelayRegisterAdminRequest */ webhookSecret?: string; } /** * Check if a given object implements the RelayRegisterAdminRequest interface. */ export function instanceOfRelayRegisterAdminRequest(value: object): value is RelayRegisterAdminRequest { return true; } export function RelayRegisterAdminRequestFromJSON(json: any): RelayRegisterAdminRequest { return RelayRegisterAdminRequestFromJSONTyped(json, false); } export function RelayRegisterAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelayRegisterAdminRequest { if (json == null) { return json; } return { 'installationId': json['installationId'] == null ? undefined : json['installationId'], 'webhookSecret': json['webhookSecret'] == null ? undefined : json['webhookSecret'], }; } export function RelayRegisterAdminRequestToJSON(json: any): RelayRegisterAdminRequest { return RelayRegisterAdminRequestToJSONTyped(json, false); } export function RelayRegisterAdminRequestToJSONTyped(value?: RelayRegisterAdminRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'installationId': value['installationId'], 'webhookSecret': value['webhookSecret'], }; }