mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
50 lines
1.8 KiB
JavaScript
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 PkiGenerateEabKeyForIssuerResponse interface.
|
|
*/
|
|
export function instanceOfPkiGenerateEabKeyForIssuerResponse(value) {
|
|
return true;
|
|
}
|
|
export function PkiGenerateEabKeyForIssuerResponseFromJSON(json) {
|
|
return PkiGenerateEabKeyForIssuerResponseFromJSONTyped(json, false);
|
|
}
|
|
export function PkiGenerateEabKeyForIssuerResponseFromJSONTyped(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 PkiGenerateEabKeyForIssuerResponseToJSON(json) {
|
|
return PkiGenerateEabKeyForIssuerResponseToJSONTyped(json, false);
|
|
}
|
|
export function PkiGenerateEabKeyForIssuerResponseToJSONTyped(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'],
|
|
};
|
|
}
|