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

57 lines
2.3 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.instanceOfSystemWriteQuotasLeaseCountNameRequest = instanceOfSystemWriteQuotasLeaseCountNameRequest;
exports.SystemWriteQuotasLeaseCountNameRequestFromJSON = SystemWriteQuotasLeaseCountNameRequestFromJSON;
exports.SystemWriteQuotasLeaseCountNameRequestFromJSONTyped = SystemWriteQuotasLeaseCountNameRequestFromJSONTyped;
exports.SystemWriteQuotasLeaseCountNameRequestToJSON = SystemWriteQuotasLeaseCountNameRequestToJSON;
exports.SystemWriteQuotasLeaseCountNameRequestToJSONTyped = SystemWriteQuotasLeaseCountNameRequestToJSONTyped;
/**
* Check if a given object implements the SystemWriteQuotasLeaseCountNameRequest interface.
*/
function instanceOfSystemWriteQuotasLeaseCountNameRequest(value) {
return true;
}
function SystemWriteQuotasLeaseCountNameRequestFromJSON(json) {
return SystemWriteQuotasLeaseCountNameRequestFromJSONTyped(json, false);
}
function SystemWriteQuotasLeaseCountNameRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'inheritable': json['inheritable'] == null ? undefined : json['inheritable'],
'maxLeases': json['max_leases'] == null ? undefined : json['max_leases'],
'path': json['path'] == null ? undefined : json['path'],
'role': json['role'] == null ? undefined : json['role'],
'type': json['type'] == null ? undefined : json['type'],
};
}
function SystemWriteQuotasLeaseCountNameRequestToJSON(json) {
return SystemWriteQuotasLeaseCountNameRequestToJSONTyped(json, false);
}
function SystemWriteQuotasLeaseCountNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'inheritable': value['inheritable'],
'max_leases': value['maxLeases'],
'path': value['path'],
'role': value['role'],
'type': value['type'],
};
}