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

68 lines
3.2 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 SystemWriteSyncDestinationsAzureKvNameRequest interface.
*/
export function instanceOfSystemWriteSyncDestinationsAzureKvNameRequest(value) {
return true;
}
export function SystemWriteSyncDestinationsAzureKvNameRequestFromJSON(json) {
return SystemWriteSyncDestinationsAzureKvNameRequestFromJSONTyped(json, false);
}
export function SystemWriteSyncDestinationsAzureKvNameRequestFromJSONTyped(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'],
'clientId': json['client_id'] == null ? undefined : json['client_id'],
'clientSecret': json['client_secret'] == null ? undefined : json['client_secret'],
'cloud': json['cloud'] == null ? undefined : json['cloud'],
'customTags': json['custom_tags'] == null ? undefined : json['custom_tags'],
'disableStrictNetworking': json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'],
'granularity': json['granularity'] == null ? undefined : json['granularity'],
'keyVaultUri': json['key_vault_uri'] == null ? undefined : json['key_vault_uri'],
'purge': json['purge'] == null ? undefined : json['purge'],
'secretNameTemplate': json['secret_name_template'] == null ? undefined : json['secret_name_template'],
'tagsToRemove': json['tags_to_remove'] == null ? undefined : json['tags_to_remove'],
'tenantId': json['tenant_id'] == null ? undefined : json['tenant_id'],
};
}
export function SystemWriteSyncDestinationsAzureKvNameRequestToJSON(json) {
return SystemWriteSyncDestinationsAzureKvNameRequestToJSONTyped(json, false);
}
export function SystemWriteSyncDestinationsAzureKvNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'allowed_ipv4_addresses': value['allowedIpv4Addresses'],
'allowed_ipv6_addresses': value['allowedIpv6Addresses'],
'allowed_ports': value['allowedPorts'],
'client_id': value['clientId'],
'client_secret': value['clientSecret'],
'cloud': value['cloud'],
'custom_tags': value['customTags'],
'disable_strict_networking': value['disableStrictNetworking'],
'granularity': value['granularity'],
'key_vault_uri': value['keyVaultUri'],
'purge': value['purge'],
'secret_name_template': value['secretNameTemplate'],
'tags_to_remove': value['tagsToRemove'],
'tenant_id': value['tenantId'],
};
}