// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // namespace k8s.Models { using Newtonsoft.Json; using System.Linq; /// /// ServiceReference holds a reference to Service.legacy.k8s.io /// public partial class Apiregistrationv1beta1ServiceReference { /// /// Initializes a new instance of the /// Apiregistrationv1beta1ServiceReference class. /// public Apiregistrationv1beta1ServiceReference() { CustomInit(); } /// /// Initializes a new instance of the /// Apiregistrationv1beta1ServiceReference class. /// /// Name is the name of the service /// Namespace is the namespace of the /// service /// If specified, the port on the service that /// hosting webhook. Default to 443 for backward compatibility. `port` /// should be a valid port number (1-65535, inclusive). public Apiregistrationv1beta1ServiceReference(string name = default(string), string namespaceProperty = default(string), int? port = default(int?)) { Name = name; NamespaceProperty = namespaceProperty; Port = port; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets name is the name of the service /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets namespace is the namespace of the service /// [JsonProperty(PropertyName = "namespace")] public string NamespaceProperty { get; set; } /// /// Gets or sets if specified, the port on the service that hosting /// webhook. Default to 443 for backward compatibility. `port` should /// be a valid port number (1-65535, inclusive). /// [JsonProperty(PropertyName = "port")] public int? Port { get; set; } } }