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

55 lines
2.1 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.instanceOfLdapLibraryConfigureRequest = instanceOfLdapLibraryConfigureRequest;
exports.LdapLibraryConfigureRequestFromJSON = LdapLibraryConfigureRequestFromJSON;
exports.LdapLibraryConfigureRequestFromJSONTyped = LdapLibraryConfigureRequestFromJSONTyped;
exports.LdapLibraryConfigureRequestToJSON = LdapLibraryConfigureRequestToJSON;
exports.LdapLibraryConfigureRequestToJSONTyped = LdapLibraryConfigureRequestToJSONTyped;
/**
* Check if a given object implements the LdapLibraryConfigureRequest interface.
*/
function instanceOfLdapLibraryConfigureRequest(value) {
return true;
}
function LdapLibraryConfigureRequestFromJSON(json) {
return LdapLibraryConfigureRequestFromJSONTyped(json, false);
}
function LdapLibraryConfigureRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'disableCheckInEnforcement': json['disable_check_in_enforcement'] == null ? undefined : json['disable_check_in_enforcement'],
'maxTtl': json['max_ttl'] == null ? undefined : json['max_ttl'],
'serviceAccountNames': json['service_account_names'] == null ? undefined : json['service_account_names'],
'ttl': json['ttl'] == null ? undefined : json['ttl'],
};
}
function LdapLibraryConfigureRequestToJSON(json) {
return LdapLibraryConfigureRequestToJSONTyped(json, false);
}
function LdapLibraryConfigureRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'disable_check_in_enforcement': value['disableCheckInEnforcement'],
'max_ttl': value['maxTtl'],
'service_account_names': value['serviceAccountNames'],
'ttl': value['ttl'],
};
}