UNPKG

@vectorize-io/vectorize-client

Version:
103 lines (88 loc) 2.46 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'; import type { AZUREBLOBAuthConfig } from './AZUREBLOBAuthConfig'; import { AZUREBLOBAuthConfigFromJSON, AZUREBLOBAuthConfigFromJSONTyped, AZUREBLOBAuthConfigToJSON, AZUREBLOBAuthConfigToJSONTyped, } from './AZUREBLOBAuthConfig'; /** * * @export * @interface AzureBlob */ export interface AzureBlob { /** * Name of the connector * @type {string} * @memberof AzureBlob */ name: string; /** * Connector type (must be "AZURE_BLOB") * @type {string} * @memberof AzureBlob */ type: AzureBlobTypeEnum; /** * * @type {AZUREBLOBAuthConfig} * @memberof AzureBlob */ config: AZUREBLOBAuthConfig; } /** * @export */ export const AzureBlobTypeEnum = { AzureBlob: 'AZURE_BLOB' } as const; export type AzureBlobTypeEnum = typeof AzureBlobTypeEnum[keyof typeof AzureBlobTypeEnum]; /** * Check if a given object implements the AzureBlob interface. */ export function instanceOfAzureBlob(value: object): value is AzureBlob { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('config' in value) || value['config'] === undefined) return false; return true; } export function AzureBlobFromJSON(json: any): AzureBlob { return AzureBlobFromJSONTyped(json, false); } export function AzureBlobFromJSONTyped(json: any, ignoreDiscriminator: boolean): AzureBlob { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': AZUREBLOBAuthConfigFromJSON(json['config']), }; } export function AzureBlobToJSON(json: any): AzureBlob { return AzureBlobToJSONTyped(json, false); } export function AzureBlobToJSONTyped(value?: AzureBlob | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': AZUREBLOBAuthConfigToJSON(value['config']), }; }