mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
50 lines
2.1 KiB
JavaScript
50 lines
2.1 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 PkiWriteExternalPolicySignPolicyRequestFormatEnum;
|
|
(function (PkiWriteExternalPolicySignPolicyRequestFormatEnum) {
|
|
PkiWriteExternalPolicySignPolicyRequestFormatEnum["PEM"] = "pem";
|
|
PkiWriteExternalPolicySignPolicyRequestFormatEnum["DER"] = "der";
|
|
PkiWriteExternalPolicySignPolicyRequestFormatEnum["PEM_BUNDLE"] = "pem_bundle";
|
|
})(PkiWriteExternalPolicySignPolicyRequestFormatEnum || (PkiWriteExternalPolicySignPolicyRequestFormatEnum = {}));
|
|
/**
|
|
* Check if a given object implements the PkiWriteExternalPolicySignPolicyRequest interface.
|
|
*/
|
|
export function instanceOfPkiWriteExternalPolicySignPolicyRequest(value) {
|
|
if (!('csr' in value) || value['csr'] === undefined)
|
|
return false;
|
|
return true;
|
|
}
|
|
export function PkiWriteExternalPolicySignPolicyRequestFromJSON(json) {
|
|
return PkiWriteExternalPolicySignPolicyRequestFromJSONTyped(json, false);
|
|
}
|
|
export function PkiWriteExternalPolicySignPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return Object.assign(Object.assign({}, json), { 'csr': json['csr'], 'format': json['format'] == null ? undefined : json['format'], 'removeRootsFromChain': json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'] });
|
|
}
|
|
export function PkiWriteExternalPolicySignPolicyRequestToJSON(json) {
|
|
return PkiWriteExternalPolicySignPolicyRequestToJSONTyped(json, false);
|
|
}
|
|
export function PkiWriteExternalPolicySignPolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return Object.assign(Object.assign({}, value), { 'csr': value['csr'], 'format': value['format'], 'remove_roots_from_chain': value['removeRootsFromChain'] });
|
|
}
|