/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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 RepoGovernanceView */ export interface RepoGovernanceView { /** * * @type {number} * @memberof RepoGovernanceView */ configVersion?: number; /** * * @type {{ [key: string]: any; }} * @memberof RepoGovernanceView */ orgConfig?: { [key: string]: any; }; /** * * @type {{ [key: string]: any; }} * @memberof RepoGovernanceView */ overrides?: { [key: string]: any; }; /** * * @type {string} * @memberof RepoGovernanceView */ repoFullName?: string; } /** * Check if a given object implements the RepoGovernanceView interface. */ export function instanceOfRepoGovernanceView(value: object): value is RepoGovernanceView { return true; } export function RepoGovernanceViewFromJSON(json: any): RepoGovernanceView { return RepoGovernanceViewFromJSONTyped(json, false); } export function RepoGovernanceViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepoGovernanceView { if (json == null) { return json; } return { 'configVersion': json['configVersion'] == null ? undefined : json['configVersion'], 'orgConfig': json['orgConfig'] == null ? undefined : json['orgConfig'], 'overrides': json['overrides'] == null ? undefined : json['overrides'], 'repoFullName': json['repoFullName'] == null ? undefined : json['repoFullName'], }; } export function RepoGovernanceViewToJSON(json: any): RepoGovernanceView { return RepoGovernanceViewToJSONTyped(json, false); } export function RepoGovernanceViewToJSONTyped(value?: RepoGovernanceView | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'configVersion': value['configVersion'], 'orgConfig': value['orgConfig'], 'overrides': value['overrides'], 'repoFullName': value['repoFullName'], }; }