mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 16:41:08 +02:00
53 lines
2.0 KiB
JavaScript
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.instanceOfTransitSetCertificateForKeyRequest = instanceOfTransitSetCertificateForKeyRequest;
|
|
exports.TransitSetCertificateForKeyRequestFromJSON = TransitSetCertificateForKeyRequestFromJSON;
|
|
exports.TransitSetCertificateForKeyRequestFromJSONTyped = TransitSetCertificateForKeyRequestFromJSONTyped;
|
|
exports.TransitSetCertificateForKeyRequestToJSON = TransitSetCertificateForKeyRequestToJSON;
|
|
exports.TransitSetCertificateForKeyRequestToJSONTyped = TransitSetCertificateForKeyRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the TransitSetCertificateForKeyRequest interface.
|
|
*/
|
|
function instanceOfTransitSetCertificateForKeyRequest(value) {
|
|
if (!('certificateChain' in value) || value['certificateChain'] === undefined)
|
|
return false;
|
|
return true;
|
|
}
|
|
function TransitSetCertificateForKeyRequestFromJSON(json) {
|
|
return TransitSetCertificateForKeyRequestFromJSONTyped(json, false);
|
|
}
|
|
function TransitSetCertificateForKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'certificateChain': json['certificate_chain'],
|
|
'version': json['version'] == null ? undefined : json['version'],
|
|
};
|
|
}
|
|
function TransitSetCertificateForKeyRequestToJSON(json) {
|
|
return TransitSetCertificateForKeyRequestToJSONTyped(json, false);
|
|
}
|
|
function TransitSetCertificateForKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'certificate_chain': value['certificateChain'],
|
|
'version': value['version'],
|
|
};
|
|
}
|