PatchSubnetReplaceInstruction¶
-
class
oci.core.models.PatchSubnetReplaceInstruction(**kwargs)¶ Bases:
oci.core.models.patch_subnet_instruction.PatchSubnetInstructionReplaces the entire value of the selected subnet CIDR field with the specified final state. For IPv6 CIDR list selections (for example, ipv6CidrBlocks), the supplied array is treated as the authoritative set of CIDRs for that field: * CIDRs present in both the existing list and the new list remain unchanged. * CIDRs present in the existing list but not in the new list are removed. * CIDRs present in the new list but not in the existing list are added.
Attributes
OPERATION_REPLACEstr(object=’’) -> str operation[Required] Gets the operation of this PatchSubnetInstruction. selection[Required] Gets the selection of this PatchSubnetInstruction. value[Required] Gets the value of this PatchSubnetReplaceInstruction. Methods
__init__(**kwargs)Initializes a new PatchSubnetReplaceInstruction 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. -
OPERATION_REPLACE= 'REPLACE'¶
-
__init__(**kwargs)¶ Initializes a new PatchSubnetReplaceInstruction object with values from keyword arguments. The default value of the
operationattribute of this class isREPLACEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - operation (str) – The value to assign to the operation property of this PatchSubnetReplaceInstruction. Allowed values for this property are: “REPLACE”
- selection (str) – The value to assign to the selection property of this PatchSubnetReplaceInstruction.
- value (object) – The value to assign to the value property of this PatchSubnetReplaceInstruction.
-
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.
-
operation¶ [Required] Gets the operation of this PatchSubnetInstruction. The operation to apply. Values are capitalized per OCI convention but should be compared case-insensitively.
Allowed values for this property are: “REPLACE”
Returns: The operation of this PatchSubnetInstruction. Return type: str
-
selection¶ [Required] Gets the selection of this PatchSubnetInstruction. The set of values to which the operation applies as a JMESPath expression for evaluation against the Subnet resource representation. The PatchSubnet operation restricts supported selections (see PatchSubnet documentation). Example: “ipv6CidrBlocks”
Returns: The selection of this PatchSubnetInstruction. Return type: str
-
value¶ [Required] Gets the value of this PatchSubnetReplaceInstruction. The desired final IPv6 CIDR value(s) to apply to the selected field. This field must always be a JSON object. For fields that take a single CIDR (for example, ipv6CidrBlock), specify a single element. For list fields (for example, ipv6CidrBlocks), specify the full desired list. Examples: - { “operation”: “REPLACE”, “selection”: “ipv6CidrBlocks”, “value”: { “cidrs”: [ “2001:db8:1234:1111::/64”, “2001:db8:1234:2121::/64” ] } } - { “operation”: “REPLACE”, “selection”: “ipv6CidrBlock”, “value”: { “cidr”: “2001:db8:1234:1111::/64” } }
Returns: The value of this PatchSubnetReplaceInstruction. Return type: object
-