mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
68 lines
3.2 KiB
JavaScript
68 lines
3.2 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 PkiWriteExternalPolicyIssueRequestFormatEnum;
|
|
(function (PkiWriteExternalPolicyIssueRequestFormatEnum) {
|
|
PkiWriteExternalPolicyIssueRequestFormatEnum["PEM"] = "pem";
|
|
PkiWriteExternalPolicyIssueRequestFormatEnum["DER"] = "der";
|
|
PkiWriteExternalPolicyIssueRequestFormatEnum["PEM_BUNDLE"] = "pem_bundle";
|
|
})(PkiWriteExternalPolicyIssueRequestFormatEnum || (PkiWriteExternalPolicyIssueRequestFormatEnum = {}));
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
export var PkiWriteExternalPolicyIssueRequestKeyTypeEnum;
|
|
(function (PkiWriteExternalPolicyIssueRequestKeyTypeEnum) {
|
|
PkiWriteExternalPolicyIssueRequestKeyTypeEnum["RSA"] = "rsa";
|
|
PkiWriteExternalPolicyIssueRequestKeyTypeEnum["EC"] = "ec";
|
|
PkiWriteExternalPolicyIssueRequestKeyTypeEnum["ED25519"] = "ed25519";
|
|
})(PkiWriteExternalPolicyIssueRequestKeyTypeEnum || (PkiWriteExternalPolicyIssueRequestKeyTypeEnum = {}));
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
export var PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum;
|
|
(function (PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum) {
|
|
PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum["DER"] = "der";
|
|
PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum["PEM"] = "pem";
|
|
PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum["PKCS8"] = "pkcs8";
|
|
})(PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum || (PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum = {}));
|
|
/**
|
|
* Check if a given object implements the PkiWriteExternalPolicyIssueRequest interface.
|
|
*/
|
|
export function instanceOfPkiWriteExternalPolicyIssueRequest(value) {
|
|
return true;
|
|
}
|
|
export function PkiWriteExternalPolicyIssueRequestFromJSON(json) {
|
|
return PkiWriteExternalPolicyIssueRequestFromJSONTyped(json, false);
|
|
}
|
|
export function PkiWriteExternalPolicyIssueRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return Object.assign(Object.assign({}, json), { 'format': json['format'] == null ? undefined : json['format'], 'keyBits': json['key_bits'] == null ? undefined : json['key_bits'], 'keyType': json['key_type'] == null ? undefined : json['key_type'], 'privateKeyFormat': json['private_key_format'] == null ? undefined : json['private_key_format'], 'removeRootsFromChain': json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'] });
|
|
}
|
|
export function PkiWriteExternalPolicyIssueRequestToJSON(json) {
|
|
return PkiWriteExternalPolicyIssueRequestToJSONTyped(json, false);
|
|
}
|
|
export function PkiWriteExternalPolicyIssueRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return Object.assign(Object.assign({}, value), { 'format': value['format'], 'key_bits': value['keyBits'], 'key_type': value['keyType'], 'private_key_format': value['privateKeyFormat'], 'remove_roots_from_chain': value['removeRootsFromChain'] });
|
|
}
|