vault/ui/api-client/dist/esm/models/PkiGenerateEabKeyForIssuerAndRoleResponse.js

50 lines
1.8 KiB
JavaScript

/* 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.21.0
*
*
* 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 PkiGenerateEabKeyForIssuerAndRoleResponse interface.
*/
export function instanceOfPkiGenerateEabKeyForIssuerAndRoleResponse(value) {
return true;
}
export function PkiGenerateEabKeyForIssuerAndRoleResponseFromJSON(json) {
return PkiGenerateEabKeyForIssuerAndRoleResponseFromJSONTyped(json, false);
}
export function PkiGenerateEabKeyForIssuerAndRoleResponseFromJSONTyped(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'],
};
}
export function PkiGenerateEabKeyForIssuerAndRoleResponseToJSON(json) {
return PkiGenerateEabKeyForIssuerAndRoleResponseToJSONTyped(json, false);
}
export function PkiGenerateEabKeyForIssuerAndRoleResponseToJSONTyped(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'],
};
}