/* 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 ApiSourceControlDTO */ export interface ApiSourceControlDTO { /** * * @type {string} * @memberof ApiSourceControlDTO */ authenticationType?: string; /** * * @type {string} * @memberof ApiSourceControlDTO */ baseBranch?: string; /** * * @type {number} * @memberof ApiSourceControlDTO */ closePrAfterDays?: number; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ closePrAfterDaysOpenEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ closePrOnFailedChecksEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ commitStatusEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ enablePullRequests?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ enableStatusChecks?: boolean; /** * * @type {string} * @memberof ApiSourceControlDTO */ id?: string; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ innerSourceAutomatedUpdatesEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ manualPullRequestsEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ nonGoldenPullRequestsEnabled?: boolean; /** * * @type {string} * @memberof ApiSourceControlDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiSourceControlDTO */ provider?: string; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ pullRequestCommentingEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ remediationPullRequestsEnabled?: boolean; /** * * @type {string} * @memberof ApiSourceControlDTO */ repositoryUrl?: string; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ sourceControlEvaluationsEnabled?: boolean; /** * * @type {string} * @memberof ApiSourceControlDTO */ sourceControlScanTarget?: string; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ sshEnabled?: boolean; /** * * @type {boolean} * @memberof ApiSourceControlDTO */ statusChecksEnabled?: boolean; /** * * @type {string} * @memberof ApiSourceControlDTO */ token?: string; /** * * @type {string} * @memberof ApiSourceControlDTO */ username?: string; } /** * Check if a given object implements the ApiSourceControlDTO interface. */ export function instanceOfApiSourceControlDTO(value: object): value is ApiSourceControlDTO { return true; } export function ApiSourceControlDTOFromJSON(json: any): ApiSourceControlDTO { return ApiSourceControlDTOFromJSONTyped(json, false); } export function ApiSourceControlDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSourceControlDTO { if (json == null) { return json; } return { 'authenticationType': json['authenticationType'] == null ? undefined : json['authenticationType'], 'baseBranch': json['baseBranch'] == null ? undefined : json['baseBranch'], 'closePrAfterDays': json['closePrAfterDays'] == null ? undefined : json['closePrAfterDays'], 'closePrAfterDaysOpenEnabled': json['closePrAfterDaysOpenEnabled'] == null ? undefined : json['closePrAfterDaysOpenEnabled'], 'closePrOnFailedChecksEnabled': json['closePrOnFailedChecksEnabled'] == null ? undefined : json['closePrOnFailedChecksEnabled'], 'commitStatusEnabled': json['commitStatusEnabled'] == null ? undefined : json['commitStatusEnabled'], 'enablePullRequests': json['enablePullRequests'] == null ? undefined : json['enablePullRequests'], 'enableStatusChecks': json['enableStatusChecks'] == null ? undefined : json['enableStatusChecks'], 'id': json['id'] == null ? undefined : json['id'], 'innerSourceAutomatedUpdatesEnabled': json['innerSourceAutomatedUpdatesEnabled'] == null ? undefined : json['innerSourceAutomatedUpdatesEnabled'], 'manualPullRequestsEnabled': json['manualPullRequestsEnabled'] == null ? undefined : json['manualPullRequestsEnabled'], 'nonGoldenPullRequestsEnabled': json['nonGoldenPullRequestsEnabled'] == null ? undefined : json['nonGoldenPullRequestsEnabled'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'provider': json['provider'] == null ? undefined : json['provider'], 'pullRequestCommentingEnabled': json['pullRequestCommentingEnabled'] == null ? undefined : json['pullRequestCommentingEnabled'], 'remediationPullRequestsEnabled': json['remediationPullRequestsEnabled'] == null ? undefined : json['remediationPullRequestsEnabled'], 'repositoryUrl': json['repositoryUrl'] == null ? undefined : json['repositoryUrl'], 'sourceControlEvaluationsEnabled': json['sourceControlEvaluationsEnabled'] == null ? undefined : json['sourceControlEvaluationsEnabled'], 'sourceControlScanTarget': json['sourceControlScanTarget'] == null ? undefined : json['sourceControlScanTarget'], 'sshEnabled': json['sshEnabled'] == null ? undefined : json['sshEnabled'], 'statusChecksEnabled': json['statusChecksEnabled'] == null ? undefined : json['statusChecksEnabled'], 'token': json['token'] == null ? undefined : json['token'], 'username': json['username'] == null ? undefined : json['username'], }; } export function ApiSourceControlDTOToJSON(json: any): ApiSourceControlDTO { return ApiSourceControlDTOToJSONTyped(json, false); } export function ApiSourceControlDTOToJSONTyped(value?: ApiSourceControlDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'authenticationType': value['authenticationType'], 'baseBranch': value['baseBranch'], 'closePrAfterDays': value['closePrAfterDays'], 'closePrAfterDaysOpenEnabled': value['closePrAfterDaysOpenEnabled'], 'closePrOnFailedChecksEnabled': value['closePrOnFailedChecksEnabled'], 'commitStatusEnabled': value['commitStatusEnabled'], 'enablePullRequests': value['enablePullRequests'], 'enableStatusChecks': value['enableStatusChecks'], 'id': value['id'], 'innerSourceAutomatedUpdatesEnabled': value['innerSourceAutomatedUpdatesEnabled'], 'manualPullRequestsEnabled': value['manualPullRequestsEnabled'], 'nonGoldenPullRequestsEnabled': value['nonGoldenPullRequestsEnabled'], 'ownerId': value['ownerId'], 'provider': value['provider'], 'pullRequestCommentingEnabled': value['pullRequestCommentingEnabled'], 'remediationPullRequestsEnabled': value['remediationPullRequestsEnabled'], 'repositoryUrl': value['repositoryUrl'], 'sourceControlEvaluationsEnabled': value['sourceControlEvaluationsEnabled'], 'sourceControlScanTarget': value['sourceControlScanTarget'], 'sshEnabled': value['sshEnabled'], 'statusChecksEnabled': value['statusChecksEnabled'], 'token': value['token'], 'username': value['username'], }; }