/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * Check if a given object implements the StsCredentials interface.
 */
export function instanceOfStsCredentials(value) {
    return true;
}
export function StsCredentialsFromJSON(json) {
    return StsCredentialsFromJSONTyped(json, false);
}
export function StsCredentialsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'bucket': json['bucket'] == null ? undefined : json['bucket'],
        'baseKey': json['baseKey'] == null ? undefined : json['baseKey'],
        'accessKeyId': json['accessKeyId'] == null ? undefined : json['accessKeyId'],
        'secretAccessKey': json['secretAccessKey'] == null ? undefined : json['secretAccessKey'],
        'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
        'expiration': json['expiration'] == null ? undefined : json['expiration'],
    };
}
export function StsCredentialsToJSON(json) {
    return StsCredentialsToJSONTyped(json, false);
}
export function StsCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'bucket': value['bucket'],
        'baseKey': value['baseKey'],
        'accessKeyId': value['accessKeyId'],
        'secretAccessKey': value['secretAccessKey'],
        'sessionToken': value['sessionToken'],
        'expiration': value['expiration'],
    };
}
//# sourceMappingURL=StsCredentials.js.map