SandboxAllowNetworkPolicy¶
-
class
oci.generative_ai.models.SandboxAllowNetworkPolicy(**kwargs)¶ Bases:
oci.generative_ai.models.sandbox_network_policy.SandboxNetworkPolicyNetwork policy that allows access only to specified domains for sandboxes in this project.
Attributes
MODE_ALLOWstr(object=’’) -> str MODE_ALLOW_ALLstr(object=’’) -> str MODE_DENY_ALLstr(object=’’) -> str allowed_domains[Required] Gets the allowed_domains of this SandboxAllowNetworkPolicy. mode[Required] Gets the mode of this SandboxNetworkPolicy. Methods
__init__(**kwargs)Initializes a new SandboxAllowNetworkPolicy 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. -
MODE_ALLOW= 'ALLOW'¶
-
MODE_ALLOW_ALL= 'ALLOW_ALL'¶
-
MODE_DENY_ALL= 'DENY_ALL'¶
-
__init__(**kwargs)¶ Initializes a new SandboxAllowNetworkPolicy object with values from keyword arguments. The default value of the
modeattribute of this class isALLOWand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - mode (str) – The value to assign to the mode property of this SandboxAllowNetworkPolicy. Allowed values for this property are: “DENY_ALL”, “ALLOW_ALL”, “ALLOW”
- allowed_domains (list[oci.generative_ai.models.AllowedDomain]) – The value to assign to the allowed_domains property of this SandboxAllowNetworkPolicy.
-
allowed_domains¶ [Required] Gets the allowed_domains of this SandboxAllowNetworkPolicy. Domain allow list used when mode is ALLOW.
Returns: The allowed_domains of this SandboxAllowNetworkPolicy. Return type: list[oci.generative_ai.models.AllowedDomain]
-
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.
-
mode¶ [Required] Gets the mode of this SandboxNetworkPolicy. The default network access mode for sandboxes in this project.
Allowed values for this property are: “DENY_ALL”, “ALLOW_ALL”, “ALLOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The mode of this SandboxNetworkPolicy. Return type: str
-