"use strict"; /* tslint:disable */ /* eslint-disable */ /** * HashiCorp Vault API * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. * * The version of the OpenAPI document: 1.20.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCorsConfigureRequest = instanceOfCorsConfigureRequest; exports.CorsConfigureRequestFromJSON = CorsConfigureRequestFromJSON; exports.CorsConfigureRequestFromJSONTyped = CorsConfigureRequestFromJSONTyped; exports.CorsConfigureRequestToJSON = CorsConfigureRequestToJSON; exports.CorsConfigureRequestToJSONTyped = CorsConfigureRequestToJSONTyped; /** * Check if a given object implements the CorsConfigureRequest interface. */ function instanceOfCorsConfigureRequest(value) { return true; } function CorsConfigureRequestFromJSON(json) { return CorsConfigureRequestFromJSONTyped(json, false); } function CorsConfigureRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'allowedHeaders': json['allowed_headers'] == null ? undefined : json['allowed_headers'], 'allowedOrigins': json['allowed_origins'] == null ? undefined : json['allowed_origins'], 'enable': json['enable'] == null ? undefined : json['enable'], }; } function CorsConfigureRequestToJSON(json) { return CorsConfigureRequestToJSONTyped(json, false); } function CorsConfigureRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'allowed_headers': value['allowedHeaders'], 'allowed_origins': value['allowedOrigins'], 'enable': value['enable'], }; }