mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
48 lines
2.0 KiB
JavaScript
48 lines
2.0 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 RateLimitQuotasConfigureRequest interface.
|
|
*/
|
|
export function instanceOfRateLimitQuotasConfigureRequest(value) {
|
|
return true;
|
|
}
|
|
export function RateLimitQuotasConfigureRequestFromJSON(json) {
|
|
return RateLimitQuotasConfigureRequestFromJSONTyped(json, false);
|
|
}
|
|
export function RateLimitQuotasConfigureRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'absoluteRateLimitExemptPaths': json['absolute_rate_limit_exempt_paths'] == null ? undefined : json['absolute_rate_limit_exempt_paths'],
|
|
'enableRateLimitAuditLogging': json['enable_rate_limit_audit_logging'] == null ? undefined : json['enable_rate_limit_audit_logging'],
|
|
'enableRateLimitResponseHeaders': json['enable_rate_limit_response_headers'] == null ? undefined : json['enable_rate_limit_response_headers'],
|
|
'rateLimitExemptPaths': json['rate_limit_exempt_paths'] == null ? undefined : json['rate_limit_exempt_paths'],
|
|
};
|
|
}
|
|
export function RateLimitQuotasConfigureRequestToJSON(json) {
|
|
return RateLimitQuotasConfigureRequestToJSONTyped(json, false);
|
|
}
|
|
export function RateLimitQuotasConfigureRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'absolute_rate_limit_exempt_paths': value['absoluteRateLimitExemptPaths'],
|
|
'enable_rate_limit_audit_logging': value['enableRateLimitAuditLogging'],
|
|
'enable_rate_limit_response_headers': value['enableRateLimitResponseHeaders'],
|
|
'rate_limit_exempt_paths': value['rateLimitExemptPaths'],
|
|
};
|
|
}
|