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

48 lines
1.7 KiB
JavaScript

/* 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.21.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Check if a given object implements the LdapLibraryConfigureRequest interface.
*/
export function instanceOfLdapLibraryConfigureRequest(value) {
return true;
}
export function LdapLibraryConfigureRequestFromJSON(json) {
return LdapLibraryConfigureRequestFromJSONTyped(json, false);
}
export 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'],
};
}
export function LdapLibraryConfigureRequestToJSON(json) {
return LdapLibraryConfigureRequestToJSONTyped(json, false);
}
export 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'],
};
}