@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
93 lines (82 loc) • 2.74 kB
text/typescript
/* 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 Azure Blob Storage
* @export
* @interface AZUREBLOBAuthConfig
*/
export interface AZUREBLOBAuthConfig {
/**
* Storage Account Name. Example: Enter Storage Account Name
* @type {string}
* @memberof AZUREBLOBAuthConfig
*/
storageAccountName: string;
/**
* Storage Account Key. Example: Enter Storage Account Key
* @type {string}
* @memberof AZUREBLOBAuthConfig
*/
storageAccountKey: string;
/**
* Container. Example: Enter Container Name
* @type {string}
* @memberof AZUREBLOBAuthConfig
*/
container: string;
/**
* Endpoint. Example: Enter Endpoint URL
* @type {string}
* @memberof AZUREBLOBAuthConfig
*/
endpoint?: string;
}
/**
* Check if a given object implements the AZUREBLOBAuthConfig interface.
*/
export function instanceOfAZUREBLOBAuthConfig(value: object): value is AZUREBLOBAuthConfig {
if (!('storageAccountName' in value) || value['storageAccountName'] === undefined) return false;
if (!('storageAccountKey' in value) || value['storageAccountKey'] === undefined) return false;
if (!('container' in value) || value['container'] === undefined) return false;
return true;
}
export function AZUREBLOBAuthConfigFromJSON(json: any): AZUREBLOBAuthConfig {
return AZUREBLOBAuthConfigFromJSONTyped(json, false);
}
export function AZUREBLOBAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AZUREBLOBAuthConfig {
if (json == null) {
return json;
}
return {
'storageAccountName': json['storage-account-name'],
'storageAccountKey': json['storage-account-key'],
'container': json['container'],
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
};
}
export function AZUREBLOBAuthConfigToJSON(json: any): AZUREBLOBAuthConfig {
return AZUREBLOBAuthConfigToJSONTyped(json, false);
}
export function AZUREBLOBAuthConfigToJSONTyped(value?: AZUREBLOBAuthConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'storage-account-name': value['storageAccountName'],
'storage-account-key': value['storageAccountKey'],
'container': value['container'],
'endpoint': value['endpoint'],
};
}