PatchVcnReplaceInstruction

class oci.core.models.PatchVcnReplaceInstruction(**kwargs)

Bases: oci.core.models.patch_vcn_instruction.PatchVcnInstruction

Replaces the entire value of the selected VCN IPv6 CIDR field with the specified final state. For CIDR list selections (for example, ipv6PrivateCidrBlocks, byoipv6CidrDetails), 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_REPLACE str(object=’’) -> str
operation [Required] Gets the operation of this PatchVcnInstruction.
selection [Required] Gets the selection of this PatchVcnInstruction.
value [Required] Gets the value of this PatchVcnReplaceInstruction.

Methods

__init__(**kwargs) Initializes a new PatchVcnReplaceInstruction 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 PatchVcnReplaceInstruction object with values from keyword arguments. The default value of the operation attribute of this class is REPLACE and 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 PatchVcnReplaceInstruction. Allowed values for this property are: “REPLACE”
  • selection (str) – The value to assign to the selection property of this PatchVcnReplaceInstruction.
  • value (object) – The value to assign to the value property of this PatchVcnReplaceInstruction.
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 PatchVcnInstruction. 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 PatchVcnInstruction.
Return type:str
selection

[Required] Gets the selection of this PatchVcnInstruction. The set of values to which the operation applies as a JMESPath expression for evaluation against the VCN resource representation. The PatchVcn operation restricts supported selections (see PatchVcn documentation). Example: “ipv6PrivateCidrBlocks”

Returns:The selection of this PatchVcnInstruction.
Return type:str
value

[Required] Gets the value of this PatchVcnReplaceInstruction. 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 the CIDR. For fields that take multiple CIDRs (for example, ipv6PrivateCidrBlocks,`byoipv6CidrDetails`), specify the full desired list. Examples: - { “operation”: “REPLACE”, “selection”: “ipv6PrivateCidrBlocks”, “value”: { “cidrs”: [ “fd00:1000:0:1::/64”, “fd00:1000:0:2::/64” ] } } - { “operation”: “REPLACE”, “selection”: “ipv6CidrBlock”, “value”: { “cidr”: “2001:db8:1234:1111::/64” } }

Returns:The value of this PatchVcnReplaceInstruction.
Return type:object