vault/ui/api-client/dist/esm/models/SystemWriteSyncDestinationsInMemNameRequest.js
Jordan Reimer 5905f43e1f
[UI] Check-in Built API Client (#29955)
* removes dist from api-client gitignore

* ignores api-client/dist directory for eslint and prettier

* builds api client
2025-03-19 11:50:15 -06:00

54 lines
2.3 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.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.
*/
/**
* Check if a given object implements the SystemWriteSyncDestinationsInMemNameRequest interface.
*/
export function instanceOfSystemWriteSyncDestinationsInMemNameRequest(value) {
return true;
}
export function SystemWriteSyncDestinationsInMemNameRequestFromJSON(json) {
return SystemWriteSyncDestinationsInMemNameRequestFromJSONTyped(json, false);
}
export function SystemWriteSyncDestinationsInMemNameRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'],
allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'],
allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'],
disableStrictNetworking: json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'],
granularity: json['granularity'] == null ? undefined : json['granularity'],
purge: json['purge'] == null ? undefined : json['purge'],
secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'],
};
}
export function SystemWriteSyncDestinationsInMemNameRequestToJSON(json) {
return SystemWriteSyncDestinationsInMemNameRequestToJSONTyped(json, false);
}
export function SystemWriteSyncDestinationsInMemNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
allowed_ipv4_addresses: value['allowedIpv4Addresses'],
allowed_ipv6_addresses: value['allowedIpv6Addresses'],
allowed_ports: value['allowedPorts'],
disable_strict_networking: value['disableStrictNetworking'],
granularity: value['granularity'],
purge: value['purge'],
secret_name_template: value['secretNameTemplate'],
};
}