2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// EndpointSubset is a group of addresses with a common set of ports. The
|
|
|
|
|
/// expanded set of endpoints is the Cartesian product of Addresses x
|
|
|
|
|
/// Ports. For example, given:
|
|
|
|
|
/// {
|
|
|
|
|
/// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
|
|
|
|
|
/// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
|
|
|
|
|
/// }
|
|
|
|
|
/// The resulting set of endpoints can be viewed as:
|
|
|
|
|
/// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
|
|
|
|
|
/// b: [ 10.10.1.1:309, 10.10.2.2:309 ]
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1EndpointSubset
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1EndpointSubset class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1EndpointSubset()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1EndpointSubset class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="addresses">IP addresses which offer the related ports
|
|
|
|
|
/// that are marked as ready. These endpoints should be considered safe
|
|
|
|
|
/// for load balancers and clients to utilize.</param>
|
|
|
|
|
/// <param name="notReadyAddresses">IP addresses which offer the
|
|
|
|
|
/// related ports but are not currently marked as ready because they
|
|
|
|
|
/// have not yet finished starting, have recently failed a readiness
|
|
|
|
|
/// check, or have recently failed a liveness check.</param>
|
|
|
|
|
/// <param name="ports">Port numbers available on the related IP
|
|
|
|
|
/// addresses.</param>
|
2021-04-09 13:37:17 -07:00
|
|
|
public V1EndpointSubset(IList<V1EndpointAddress> addresses = default(IList<V1EndpointAddress>), IList<V1EndpointAddress> notReadyAddresses = default(IList<V1EndpointAddress>), IList<Corev1EndpointPort> ports = default(IList<Corev1EndpointPort>))
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
Addresses = addresses;
|
|
|
|
|
NotReadyAddresses = notReadyAddresses;
|
|
|
|
|
Ports = ports;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets IP addresses which offer the related ports that are
|
|
|
|
|
/// marked as ready. These endpoints should be considered safe for load
|
|
|
|
|
/// balancers and clients to utilize.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "addresses")]
|
2017-11-24 12:10:51 +08:00
|
|
|
public IList<V1EndpointAddress> Addresses { get; set; }
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets IP addresses which offer the related ports but are not
|
|
|
|
|
/// currently marked as ready because they have not yet finished
|
|
|
|
|
/// starting, have recently failed a readiness check, or have recently
|
|
|
|
|
/// failed a liveness check.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "notReadyAddresses")]
|
2017-11-24 12:10:51 +08:00
|
|
|
public IList<V1EndpointAddress> NotReadyAddresses { get; set; }
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets port numbers available on the related IP addresses.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "ports")]
|
2021-04-09 13:37:17 -07:00
|
|
|
public IList<Corev1EndpointPort> Ports { get; set; }
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|