vault/ui/api-client/dist/models/LeasesListResponse.js

51 lines
1.6 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.instanceOfLeasesListResponse = instanceOfLeasesListResponse;
exports.LeasesListResponseFromJSON = LeasesListResponseFromJSON;
exports.LeasesListResponseFromJSONTyped = LeasesListResponseFromJSONTyped;
exports.LeasesListResponseToJSON = LeasesListResponseToJSON;
exports.LeasesListResponseToJSONTyped = LeasesListResponseToJSONTyped;
/**
* Check if a given object implements the LeasesListResponse interface.
*/
function instanceOfLeasesListResponse(value) {
return true;
}
function LeasesListResponseFromJSON(json) {
return LeasesListResponseFromJSONTyped(json, false);
}
function LeasesListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'counts': json['counts'] == null ? undefined : json['counts'],
'leaseCount': json['lease_count'] == null ? undefined : json['lease_count'],
};
}
function LeasesListResponseToJSON(json) {
return LeasesListResponseToJSONTyped(json, false);
}
function LeasesListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'counts': value['counts'],
'lease_count': value['leaseCount'],
};
}