SandboxNetworkPolicy¶
-
class
oci.generative_ai.models.SandboxNetworkPolicy(**kwargs)¶ Bases:
objectBase network policy for sandboxes in a project using Oracle-managed outbound networking.
Attributes
MODE_ALLOWA constant which can be used with the mode property of a SandboxNetworkPolicy. MODE_ALLOW_ALLA constant which can be used with the mode property of a SandboxNetworkPolicy. MODE_DENY_ALLA constant which can be used with the mode property of a SandboxNetworkPolicy. mode[Required] Gets the mode of this SandboxNetworkPolicy. Methods
__init__(**kwargs)Initializes a new SandboxNetworkPolicy 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'¶ A constant which can be used with the mode property of a SandboxNetworkPolicy. This constant has a value of “ALLOW”
-
MODE_ALLOW_ALL= 'ALLOW_ALL'¶ A constant which can be used with the mode property of a SandboxNetworkPolicy. This constant has a value of “ALLOW_ALL”
-
MODE_DENY_ALL= 'DENY_ALL'¶ A constant which can be used with the mode property of a SandboxNetworkPolicy. This constant has a value of “DENY_ALL”
-
__init__(**kwargs)¶ Initializes a new SandboxNetworkPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 SandboxNetworkPolicy. 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’.
-
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
-