UNPKG

@vectorize-io/vectorize-client

Version:
67 lines (56 loc) 1.68 kB
/* tslint:disable */ /* eslint-disable */ /** * Vectorize API * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.1.2 * * * 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'; /** * Authentication configuration for GitHub * @export * @interface GITHUBAuthConfig */ export interface GITHUBAuthConfig { /** * Personal Access Token. Example: Enter your GitHub personal access token * @type {string} * @memberof GITHUBAuthConfig */ oauthToken: string; } /** * Check if a given object implements the GITHUBAuthConfig interface. */ export function instanceOfGITHUBAuthConfig(value: object): value is GITHUBAuthConfig { if (!('oauthToken' in value) || value['oauthToken'] === undefined) return false; return true; } export function GITHUBAuthConfigFromJSON(json: any): GITHUBAuthConfig { return GITHUBAuthConfigFromJSONTyped(json, false); } export function GITHUBAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GITHUBAuthConfig { if (json == null) { return json; } return { 'oauthToken': json['oauth-token'], }; } export function GITHUBAuthConfigToJSON(json: any): GITHUBAuthConfig { return GITHUBAuthConfigToJSONTyped(json, false); } export function GITHUBAuthConfigToJSONTyped(value?: GITHUBAuthConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'oauth-token': value['oauthToken'], }; }