Move projects to subdirectories of /src and /tests (#134)
kubernetes-client/csharp#127
This commit is contained in:
committed by
Brendan Burns
parent
dc97164332
commit
ea62ca00e0
73
src/KubernetesClient/generated/Models/V1HTTPHeader.cs
Normal file
73
src/KubernetesClient/generated/Models/V1HTTPHeader.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// HTTPHeader describes a custom header to be used in HTTP probes
|
||||
/// </summary>
|
||||
public partial class V1HTTPHeader
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1HTTPHeader class.
|
||||
/// </summary>
|
||||
public V1HTTPHeader()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1HTTPHeader class.
|
||||
/// </summary>
|
||||
/// <param name="name">The header field name</param>
|
||||
/// <param name="value">The header field value</param>
|
||||
public V1HTTPHeader(string name, string value)
|
||||
{
|
||||
Name = name;
|
||||
Value = value;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the header field name
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the header field value
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (Value == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Value");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user