SourceVcnIdCondition¶
- class oci.load_balancer.models.SourceVcnIdCondition(**kwargs)¶
Bases:
RuleConditionAn access control rule condition that requires a match on the specified source VCN OCID.
Attributes:
A constant which can be used with the attribute_name property of a RuleCondition.
A constant which can be used with the attribute_name property of a RuleCondition.
A constant which can be used with the attribute_name property of a RuleCondition.
A constant which can be used with the attribute_name property of a RuleCondition.
[Required] Gets the attribute_name of this RuleCondition.
[Required] Gets the attribute_value of this SourceVcnIdCondition.
Methods:
__init__(**kwargs)Initializes a new SourceVcnIdCondition 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.
- ATTRIBUTE_NAME_PATH = 'PATH'¶
A constant which can be used with the attribute_name property of a RuleCondition. This constant has a value of “PATH”
- ATTRIBUTE_NAME_SOURCE_IP_ADDRESS = 'SOURCE_IP_ADDRESS'¶
A constant which can be used with the attribute_name property of a RuleCondition. This constant has a value of “SOURCE_IP_ADDRESS”
- ATTRIBUTE_NAME_SOURCE_VCN_ID = 'SOURCE_VCN_ID'¶
A constant which can be used with the attribute_name property of a RuleCondition. This constant has a value of “SOURCE_VCN_ID”
- ATTRIBUTE_NAME_SOURCE_VCN_IP_ADDRESS = 'SOURCE_VCN_IP_ADDRESS'¶
A constant which can be used with the attribute_name property of a RuleCondition. This constant has a value of “SOURCE_VCN_IP_ADDRESS”
- __init__(**kwargs)¶
Initializes a new SourceVcnIdCondition object with values from keyword arguments. The default value of the
attribute_nameattribute of this class isSOURCE_VCN_IDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
attribute_name (str) – The value to assign to the attribute_name property of this SourceVcnIdCondition. Allowed values for this property are: “SOURCE_IP_ADDRESS”, “SOURCE_VCN_ID”, “SOURCE_VCN_IP_ADDRESS”, “PATH”
attribute_value (str) – The value to assign to the attribute_value property of this SourceVcnIdCondition.
- property attribute_name¶
[Required] Gets the attribute_name of this RuleCondition. Allowed values for this property are: “SOURCE_IP_ADDRESS”, “SOURCE_VCN_ID”, “SOURCE_VCN_IP_ADDRESS”, “PATH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The attribute_name of this RuleCondition.
- Return type
str
- property attribute_value¶
[Required] Gets the attribute_value of this SourceVcnIdCondition. The OCID of the originating VCN that an incoming packet must match.
You can use this condition in conjunction with SourceVcnIpAddressCondition.
NOTE: If you define this condition for a rule without a SourceVcnIpAddressCondition, this condition matches all incoming traffic in the specified VCN.
- Returns
The attribute_value of this SourceVcnIdCondition.
- Return type
str
- 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.