mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
53 lines
1.6 KiB
JavaScript
53 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.
|
|
*/
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
export var PkiWriteAcmeKeyIdRequestStatusEnum;
|
|
(function (PkiWriteAcmeKeyIdRequestStatusEnum) {
|
|
PkiWriteAcmeKeyIdRequestStatusEnum["VALID"] = "valid";
|
|
PkiWriteAcmeKeyIdRequestStatusEnum["REVOKED"] = "revoked";
|
|
})(PkiWriteAcmeKeyIdRequestStatusEnum || (PkiWriteAcmeKeyIdRequestStatusEnum = {}));
|
|
/**
|
|
* Check if a given object implements the PkiWriteAcmeKeyIdRequest interface.
|
|
*/
|
|
export function instanceOfPkiWriteAcmeKeyIdRequest(value) {
|
|
if (!('status' in value) || value['status'] === undefined)
|
|
return false;
|
|
return true;
|
|
}
|
|
export function PkiWriteAcmeKeyIdRequestFromJSON(json) {
|
|
return PkiWriteAcmeKeyIdRequestFromJSONTyped(json, false);
|
|
}
|
|
export function PkiWriteAcmeKeyIdRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'status': json['status'],
|
|
};
|
|
}
|
|
export function PkiWriteAcmeKeyIdRequestToJSON(json) {
|
|
return PkiWriteAcmeKeyIdRequestToJSONTyped(json, false);
|
|
}
|
|
export function PkiWriteAcmeKeyIdRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'status': value['status'],
|
|
};
|
|
}
|