mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
54 lines
1.9 KiB
JavaScript
54 lines
1.9 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 KmipSignClientCertificateRequestRequestFormatEnum;
|
|
(function (KmipSignClientCertificateRequestRequestFormatEnum) {
|
|
KmipSignClientCertificateRequestRequestFormatEnum["PEM"] = "pem";
|
|
KmipSignClientCertificateRequestRequestFormatEnum["DER"] = "der";
|
|
KmipSignClientCertificateRequestRequestFormatEnum["PEM_BUNDLE"] = "pem_bundle";
|
|
})(KmipSignClientCertificateRequestRequestFormatEnum || (KmipSignClientCertificateRequestRequestFormatEnum = {}));
|
|
/**
|
|
* Check if a given object implements the KmipSignClientCertificateRequestRequest interface.
|
|
*/
|
|
export function instanceOfKmipSignClientCertificateRequestRequest(value) {
|
|
return true;
|
|
}
|
|
export function KmipSignClientCertificateRequestRequestFromJSON(json) {
|
|
return KmipSignClientCertificateRequestRequestFromJSONTyped(json, false);
|
|
}
|
|
export function KmipSignClientCertificateRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'csr': json['csr'] == null ? undefined : json['csr'],
|
|
'format': json['format'] == null ? undefined : json['format'],
|
|
};
|
|
}
|
|
export function KmipSignClientCertificateRequestRequestToJSON(json) {
|
|
return KmipSignClientCertificateRequestRequestToJSONTyped(json, false);
|
|
}
|
|
export function KmipSignClientCertificateRequestRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'csr': value['csr'],
|
|
'format': value['format'],
|
|
};
|
|
}
|