File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/network_firewall/models/nat_configuration_response.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230501 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class NatConfigurationResponse(object): """ Response to a request to configure Network Address Translation (NAT) on a firewall. To perform NAT on traffic passing the private NAT IPs to the firewall, the attached network firewall policy must also have NAT rules and NAT configuration must be enabled. If NAT configuration is enabled and the attached firewall policy does not contain NAT rule then NAT IPs will get allocated but NAT will not be performed on any traffic. """ def __init__(self, **kwargs): """ Initializes a new NatConfigurationResponse object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param must_enable_private_nat: The value to assign to the must_enable_private_nat property of this NatConfigurationResponse. :type must_enable_private_nat: bool :param nat_ip_address_list: The value to assign to the nat_ip_address_list property of this NatConfigurationResponse. :type nat_ip_address_list: list[str] """ self.swagger_types = { 'must_enable_private_nat': 'bool', 'nat_ip_address_list': 'list[str]' } self.attribute_map = { 'must_enable_private_nat': 'mustEnablePrivateNat', 'nat_ip_address_list': 'natIpAddressList' } self._must_enable_private_nat = None self._nat_ip_address_list = None @property def must_enable_private_nat(self): """ Gets the must_enable_private_nat of this NatConfigurationResponse. True indicates that NAT configuration is enabled. False indicates NAT configuration is disabled. :return: The must_enable_private_nat of this NatConfigurationResponse. :rtype: bool """ return self._must_enable_private_nat @must_enable_private_nat.setter def must_enable_private_nat(self, must_enable_private_nat): """ Sets the must_enable_private_nat of this NatConfigurationResponse. True indicates that NAT configuration is enabled. False indicates NAT configuration is disabled. :param must_enable_private_nat: The must_enable_private_nat of this NatConfigurationResponse. :type: bool """ self._must_enable_private_nat = must_enable_private_nat @property def nat_ip_address_list(self): """ Gets the nat_ip_address_list of this NatConfigurationResponse. An array of Private NAT IP addresses that are associated with the Network Firewall. These IP addresses are reserved for NAT and shouldn't be used for any other purpose in the subnet. This list contains IP addresses when NAT configuration is enabled. This list is empty or null IP when NAT configuration is disabled. :return: The nat_ip_address_list of this NatConfigurationResponse. :rtype: list[str] """ return self._nat_ip_address_list @nat_ip_address_list.setter def nat_ip_address_list(self, nat_ip_address_list): """ Sets the nat_ip_address_list of this NatConfigurationResponse. An array of Private NAT IP addresses that are associated with the Network Firewall. These IP addresses are reserved for NAT and shouldn't be used for any other purpose in the subnet. This list contains IP addresses when NAT configuration is enabled. This list is empty or null IP when NAT configuration is disabled. :param nat_ip_address_list: The nat_ip_address_list of this NatConfigurationResponse. :type: list[str] """ self._nat_ip_address_list = nat_ip_address_list def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings