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

53 lines
2.0 KiB
JavaScript

"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.instanceOfPkiRevokeWithKeyResponse = instanceOfPkiRevokeWithKeyResponse;
exports.PkiRevokeWithKeyResponseFromJSON = PkiRevokeWithKeyResponseFromJSON;
exports.PkiRevokeWithKeyResponseFromJSONTyped = PkiRevokeWithKeyResponseFromJSONTyped;
exports.PkiRevokeWithKeyResponseToJSON = PkiRevokeWithKeyResponseToJSON;
exports.PkiRevokeWithKeyResponseToJSONTyped = PkiRevokeWithKeyResponseToJSONTyped;
/**
* Check if a given object implements the PkiRevokeWithKeyResponse interface.
*/
function instanceOfPkiRevokeWithKeyResponse(value) {
return true;
}
function PkiRevokeWithKeyResponseFromJSON(json) {
return PkiRevokeWithKeyResponseFromJSONTyped(json, false);
}
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'],
};
}
function PkiRevokeWithKeyResponseToJSON(json) {
return PkiRevokeWithKeyResponseToJSONTyped(json, false);
}
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'],
};
}