CustomSandboxOutboundNetworkingConfig¶
- class oci.generative_ai.models.CustomSandboxOutboundNetworkingConfig(**kwargs)¶
Bases:
SandboxOutboundNetworkingConfigOutbound networking configuration that uses a customer subnet for sandboxes in this project. Oracle applies an effective ALLOW_ALL network policy and the customer controls egress through VCN controls, such as NSGs, route tables, and security lists.
Attributes:
A constant which can be used with the network_mode property of a SandboxOutboundNetworkingConfig.
A constant which can be used with the network_mode property of a SandboxOutboundNetworkingConfig.
[Required] Gets the network_mode of this SandboxOutboundNetworkingConfig.
Gets the nsg_ids of this CustomSandboxOutboundNetworkingConfig.
[Required] Gets the subnet_id of this CustomSandboxOutboundNetworkingConfig.
Methods:
__init__(**kwargs)Initializes a new CustomSandboxOutboundNetworkingConfig object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- NETWORK_MODE_CUSTOM = 'CUSTOM'¶
A constant which can be used with the network_mode property of a SandboxOutboundNetworkingConfig. This constant has a value of “CUSTOM”
- NETWORK_MODE_MANAGED = 'MANAGED'¶
A constant which can be used with the network_mode property of a SandboxOutboundNetworkingConfig. This constant has a value of “MANAGED”
- __init__(**kwargs)¶
Initializes a new CustomSandboxOutboundNetworkingConfig object with values from keyword arguments. The default value of the
network_modeattribute of this class isCUSTOMand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
network_mode (str) – The value to assign to the network_mode property of this CustomSandboxOutboundNetworkingConfig. Allowed values for this property are: “MANAGED”, “CUSTOM”
subnet_id (str) – The value to assign to the subnet_id property of this CustomSandboxOutboundNetworkingConfig.
nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CustomSandboxOutboundNetworkingConfig.
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property network_mode¶
[Required] Gets the network_mode of this SandboxOutboundNetworkingConfig. The outbound networking mode for sandboxes in this project.
Allowed values for this property are: “MANAGED”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The network_mode of this SandboxOutboundNetworkingConfig.
- Return type
str
- property nsg_ids¶
Gets the nsg_ids of this CustomSandboxOutboundNetworkingConfig. A list of the OCIDs of the network security groups to apply to sandbox outbound networking.
- Returns
The nsg_ids of this CustomSandboxOutboundNetworkingConfig.
- Return type
list[str]
- property subnet_id¶
[Required] Gets the subnet_id of this CustomSandboxOutboundNetworkingConfig. The OCID of the customer subnet to use for sandbox outbound networking.
- Returns
The subnet_id of this CustomSandboxOutboundNetworkingConfig.
- Return type
str