Struct TagPatchMode
- Namespace
- Azure.ResourceManager.Resources.Models
- Assembly
- Azure.ResourceManager.dll
The operation type for the patch API.
public readonly struct TagPatchMode : IEquatable<TagPatchMode>
- Implements
- Inherited Members
Constructors
TagPatchMode(string)
Initializes a new instance of TagPatchMode.
public TagPatchMode(string value)
Parameters
value
string
Exceptions
- ArgumentNullException
value
is null.
Properties
Delete
The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
public static TagPatchMode Delete { get; }
Property Value
Merge
The 'merge' option allows adding tags with new names and updating the values of tags with existing names.
public static TagPatchMode Merge { get; }
Property Value
Replace
The 'replace' option replaces the entire set of existing tags with a new set.
public static TagPatchMode Replace { get; }
Property Value
Methods
Equals(TagPatchMode)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TagPatchMode other)
Parameters
other
TagPatchModeAn object to compare with this object.
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(TagPatchMode, TagPatchMode)
Determines if two TagPatchMode values are the same.
public static bool operator ==(TagPatchMode left, TagPatchMode right)
Parameters
left
TagPatchModeright
TagPatchMode
Returns
implicit operator TagPatchMode(string)
Converts a string to a TagPatchMode.
public static implicit operator TagPatchMode(string value)
Parameters
value
string
Returns
operator !=(TagPatchMode, TagPatchMode)
Determines if two TagPatchMode values are not the same.
public static bool operator !=(TagPatchMode left, TagPatchMode right)
Parameters
left
TagPatchModeright
TagPatchMode