/* tslint:disable */
/* eslint-disable */
/**
 * Hexiosec Transfer API
 * API description for Hexiosec Transfer  ## Testing Requests  Endpoints that require authentication will use your session cookie from the main application if an API key is not provided. This is fine for testing GET requests, however POST/DELETE requests will require a CSRF token when using a session cookie. It is not possible to provide a CSRF token from this page, and so an API key must be used.
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: support@hexiosec.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @export
 */
export const TenantStorageConfigTypeEnum = {
    Gcs: 'gcs',
};
/**
 * Check if a given object implements the TenantStorageConfig interface.
 */
export function instanceOfTenantStorageConfig(value) {
    if (!('type' in value) || value['type'] === undefined)
        return false;
    if (!('bucket' in value) || value['bucket'] === undefined)
        return false;
    if (!('credentials' in value) || value['credentials'] === undefined)
        return false;
    return true;
}
export function TenantStorageConfigFromJSON(json) {
    return TenantStorageConfigFromJSONTyped(json, false);
}
export function TenantStorageConfigFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        type: json['type'],
        bucket: json['bucket'],
        region: json['region'] == null ? undefined : json['region'],
        endpoint: json['endpoint'] == null ? undefined : json['endpoint'],
        credentials: json['credentials'],
    };
}
export function TenantStorageConfigToJSON(json) {
    return TenantStorageConfigToJSONTyped(json, false);
}
export function TenantStorageConfigToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        type: value['type'],
        bucket: value['bucket'],
        region: value['region'],
        endpoint: value['endpoint'],
        credentials: value['credentials'],
    };
}
