2017-10-19 19:53:02 +00:00
|
|
|
// <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 Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// NetworkPolicyPort describes a port to allow traffic on
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1NetworkPolicyPort
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1NetworkPolicyPort class.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1NetworkPolicyPort()
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1NetworkPolicyPort class.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="port">The port on the given protocol. This can either
|
|
|
|
|
/// be a numerical or named port on a pod. If this field is not
|
|
|
|
|
/// provided, this matches all port names and numbers.</param>
|
2018-10-03 13:38:37 -07:00
|
|
|
/// <param name="protocol">The protocol (TCP, UDP, or SCTP) which
|
|
|
|
|
/// traffic must match. If not specified, this field defaults to
|
|
|
|
|
/// TCP.</param>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1NetworkPolicyPort(IntstrIntOrString port = default(IntstrIntOrString), string protocol = default(string))
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
Port = port;
|
|
|
|
|
Protocol = protocol;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the port on the given protocol. This can either be a
|
|
|
|
|
/// numerical or named port on a pod. If this field is not provided,
|
|
|
|
|
/// this matches all port names and numbers.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "port")]
|
2017-11-24 12:10:51 +08:00
|
|
|
public IntstrIntOrString Port { get; set; }
|
2017-10-19 19:53:02 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
2018-10-03 13:38:37 -07:00
|
|
|
/// Gets or sets the protocol (TCP, UDP, or SCTP) which traffic must
|
|
|
|
|
/// match. If not specified, this field defaults to TCP.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "protocol")]
|
|
|
|
|
public string Protocol { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|