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

46 lines
1.6 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 PkiRevokeWithKeyResponse interface.
*/
export function instanceOfPkiRevokeWithKeyResponse(value) {
return true;
}
export function PkiRevokeWithKeyResponseFromJSON(json) {
return PkiRevokeWithKeyResponseFromJSONTyped(json, false);
}
export function PkiRevokeWithKeyResponseFromJSONTyped(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 PkiRevokeWithKeyResponseToJSON(json) {
return PkiRevokeWithKeyResponseToJSONTyped(json, false);
}
export function PkiRevokeWithKeyResponseToJSONTyped(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'],
};
}