Class HeaderOperations
HeaderOperations Describes the header manipulations to apply.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class HeaderOperations
Constructors
HeaderOperations()
Initializes a new instance of the HeaderOperations class.
Declaration
public HeaderOperations()
Properties
Add
Append the given values to the headers specified by keys (will create a comma-separated list of values).
Declaration
[JsonProperty(PropertyName = "add", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public Dictionary<string, string> Add { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Remove
Remove a the specified headers.
Declaration
[JsonProperty(PropertyName = "remove", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<string> Remove { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Set
Overwrite the headers specified by key with the given values.
Declaration
[JsonProperty(PropertyName = "set", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public Dictionary<string, string> Set { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate()
Exceptions
Type | Condition |
---|---|
ValidationException | Thrown if validation fails. |