mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 00:21:07 +02:00
59 lines
2.4 KiB
JavaScript
59 lines
2.4 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.instanceOfLeasesReadLeaseResponse = instanceOfLeasesReadLeaseResponse;
|
|
exports.LeasesReadLeaseResponseFromJSON = LeasesReadLeaseResponseFromJSON;
|
|
exports.LeasesReadLeaseResponseFromJSONTyped = LeasesReadLeaseResponseFromJSONTyped;
|
|
exports.LeasesReadLeaseResponseToJSON = LeasesReadLeaseResponseToJSON;
|
|
exports.LeasesReadLeaseResponseToJSONTyped = LeasesReadLeaseResponseToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the LeasesReadLeaseResponse interface.
|
|
*/
|
|
function instanceOfLeasesReadLeaseResponse(value) {
|
|
return true;
|
|
}
|
|
function LeasesReadLeaseResponseFromJSON(json) {
|
|
return LeasesReadLeaseResponseFromJSONTyped(json, false);
|
|
}
|
|
function LeasesReadLeaseResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'expireTime': json['expire_time'] == null ? undefined : (new Date(json['expire_time'])),
|
|
'id': json['id'] == null ? undefined : json['id'],
|
|
'issueTime': json['issue_time'] == null ? undefined : (new Date(json['issue_time'])),
|
|
'lastRenewal': json['last_renewal'] == null ? undefined : (new Date(json['last_renewal'])),
|
|
'renewable': json['renewable'] == null ? undefined : json['renewable'],
|
|
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
};
|
|
}
|
|
function LeasesReadLeaseResponseToJSON(json) {
|
|
return LeasesReadLeaseResponseToJSONTyped(json, false);
|
|
}
|
|
function LeasesReadLeaseResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'expire_time': value['expireTime'] == null ? undefined : ((value['expireTime']).toISOString()),
|
|
'id': value['id'],
|
|
'issue_time': value['issueTime'] == null ? undefined : ((value['issueTime']).toISOString()),
|
|
'last_renewal': value['lastRenewal'] == null ? undefined : ((value['lastRenewal']).toISOString()),
|
|
'renewable': value['renewable'],
|
|
'ttl': value['ttl'],
|
|
};
|
|
}
|