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

46 lines
1.5 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 PkiRevokeResponse interface.
*/
export function instanceOfPkiRevokeResponse(value) {
return true;
}
export function PkiRevokeResponseFromJSON(json) {
return PkiRevokeResponseFromJSONTyped(json, false);
}
export function PkiRevokeResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'revocationTime': json['revocation_time'] == null ? undefined : json['revocation_time'],
'revocationTimeRfc3339': json['revocation_time_rfc3339'] == null ? undefined : (new Date(json['revocation_time_rfc3339'])),
'state': json['state'] == null ? undefined : json['state'],
};
}
export function PkiRevokeResponseToJSON(json) {
return PkiRevokeResponseToJSONTyped(json, false);
}
export function PkiRevokeResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'revocation_time': value['revocationTime'],
'revocation_time_rfc3339': value['revocationTimeRfc3339'] == null ? undefined : ((value['revocationTimeRfc3339']).toISOString()),
'state': value['state'],
};
}