"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.instanceOfSystemWritePoliciesEgpNameRequest = instanceOfSystemWritePoliciesEgpNameRequest; exports.SystemWritePoliciesEgpNameRequestFromJSON = SystemWritePoliciesEgpNameRequestFromJSON; exports.SystemWritePoliciesEgpNameRequestFromJSONTyped = SystemWritePoliciesEgpNameRequestFromJSONTyped; exports.SystemWritePoliciesEgpNameRequestToJSON = SystemWritePoliciesEgpNameRequestToJSON; exports.SystemWritePoliciesEgpNameRequestToJSONTyped = SystemWritePoliciesEgpNameRequestToJSONTyped; /** * Check if a given object implements the SystemWritePoliciesEgpNameRequest interface. */ function instanceOfSystemWritePoliciesEgpNameRequest(value) { return true; } function SystemWritePoliciesEgpNameRequestFromJSON(json) { return SystemWritePoliciesEgpNameRequestFromJSONTyped(json, false); } function SystemWritePoliciesEgpNameRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'enforcementLevel': json['enforcement_level'] == null ? undefined : json['enforcement_level'], 'paths': json['paths'] == null ? undefined : json['paths'], 'policy': json['policy'] == null ? undefined : json['policy'], }; } function SystemWritePoliciesEgpNameRequestToJSON(json) { return SystemWritePoliciesEgpNameRequestToJSONTyped(json, false); } function SystemWritePoliciesEgpNameRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'enforcement_level': value['enforcementLevel'], 'paths': value['paths'], 'policy': value['policy'], }; }