"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.instanceOfPkiGenerateEabKeyForRoleResponse = instanceOfPkiGenerateEabKeyForRoleResponse; exports.PkiGenerateEabKeyForRoleResponseFromJSON = PkiGenerateEabKeyForRoleResponseFromJSON; exports.PkiGenerateEabKeyForRoleResponseFromJSONTyped = PkiGenerateEabKeyForRoleResponseFromJSONTyped; exports.PkiGenerateEabKeyForRoleResponseToJSON = PkiGenerateEabKeyForRoleResponseToJSON; exports.PkiGenerateEabKeyForRoleResponseToJSONTyped = PkiGenerateEabKeyForRoleResponseToJSONTyped; /** * Check if a given object implements the PkiGenerateEabKeyForRoleResponse interface. */ function instanceOfPkiGenerateEabKeyForRoleResponse(value) { return true; } function PkiGenerateEabKeyForRoleResponseFromJSON(json) { return PkiGenerateEabKeyForRoleResponseFromJSONTyped(json, false); } function PkiGenerateEabKeyForRoleResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { acmeDirectory: json['acme_directory'] == null ? undefined : json['acme_directory'], createdOn: json['created_on'] == null ? undefined : new Date(json['created_on']), id: json['id'] == null ? undefined : json['id'], key: json['key'] == null ? undefined : json['key'], keyType: json['key_type'] == null ? undefined : json['key_type'], }; } function PkiGenerateEabKeyForRoleResponseToJSON(json) { return PkiGenerateEabKeyForRoleResponseToJSONTyped(json, false); } function PkiGenerateEabKeyForRoleResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { acme_directory: value['acmeDirectory'], created_on: value['createdOn'] == null ? undefined : value['createdOn'].toISOString(), id: value['id'], key: value['key'], key_type: value['keyType'], }; }