vault/ui/api-client/dist/models/SystemPatchSyncDestinationsGcpSmNameRequest.js
Jordan Reimer d90653042d
[UI] API Client Update - Patch Support (#30619)
* adds patch endpoints to api client and missing params for sync

* adds namespace param to sync activation api client method
2025-05-14 11:30:45 -06:00

75 lines
3.9 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.instanceOfSystemPatchSyncDestinationsGcpSmNameRequest = instanceOfSystemPatchSyncDestinationsGcpSmNameRequest;
exports.SystemPatchSyncDestinationsGcpSmNameRequestFromJSON = SystemPatchSyncDestinationsGcpSmNameRequestFromJSON;
exports.SystemPatchSyncDestinationsGcpSmNameRequestFromJSONTyped = SystemPatchSyncDestinationsGcpSmNameRequestFromJSONTyped;
exports.SystemPatchSyncDestinationsGcpSmNameRequestToJSON = SystemPatchSyncDestinationsGcpSmNameRequestToJSON;
exports.SystemPatchSyncDestinationsGcpSmNameRequestToJSONTyped = SystemPatchSyncDestinationsGcpSmNameRequestToJSONTyped;
/**
* Check if a given object implements the SystemPatchSyncDestinationsGcpSmNameRequest interface.
*/
function instanceOfSystemPatchSyncDestinationsGcpSmNameRequest(value) {
return true;
}
function SystemPatchSyncDestinationsGcpSmNameRequestFromJSON(json) {
return SystemPatchSyncDestinationsGcpSmNameRequestFromJSONTyped(json, false);
}
function SystemPatchSyncDestinationsGcpSmNameRequestFromJSONTyped(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'],
'credentials': json['credentials'] == null ? undefined : json['credentials'],
'customTags': json['custom_tags'] == null ? undefined : json['custom_tags'],
'disableStrictNetworking': json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'],
'globalKmsKey': json['global_kms_key'] == null ? undefined : json['global_kms_key'],
'granularity': json['granularity'] == null ? undefined : json['granularity'],
'locationalKmsKeys': json['locational_kms_keys'] == null ? undefined : json['locational_kms_keys'],
'projectId': json['project_id'] == null ? undefined : json['project_id'],
'purge': json['purge'] == null ? undefined : json['purge'],
'replicationLocations': json['replication_locations'] == null ? undefined : json['replication_locations'],
'secretNameTemplate': json['secret_name_template'] == null ? undefined : json['secret_name_template'],
'tagsToRemove': json['tags_to_remove'] == null ? undefined : json['tags_to_remove'],
};
}
function SystemPatchSyncDestinationsGcpSmNameRequestToJSON(json) {
return SystemPatchSyncDestinationsGcpSmNameRequestToJSONTyped(json, false);
}
function SystemPatchSyncDestinationsGcpSmNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'allowed_ipv4_addresses': value['allowedIpv4Addresses'],
'allowed_ipv6_addresses': value['allowedIpv6Addresses'],
'allowed_ports': value['allowedPorts'],
'credentials': value['credentials'],
'custom_tags': value['customTags'],
'disable_strict_networking': value['disableStrictNetworking'],
'global_kms_key': value['globalKmsKey'],
'granularity': value['granularity'],
'locational_kms_keys': value['locationalKmsKeys'],
'project_id': value['projectId'],
'purge': value['purge'],
'replication_locations': value['replicationLocations'],
'secret_name_template': value['secretNameTemplate'],
'tags_to_remove': value['tagsToRemove'],
};
}