Show / Hide Table of Contents

Class PatchSubnetReplaceInstruction

Replaces 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.
Inheritance
object
PatchSubnetInstruction
PatchSubnetReplaceInstruction
Inherited Members
PatchSubnetInstruction.Selection
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class PatchSubnetReplaceInstruction : PatchSubnetInstruction

Properties

Value

Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public object Value { get; set; }
Property Value
Type Description
object

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" } }
Remarks

Required

In this article
Back to top