| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.Batch.Protocol.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// An inbound endpoint on a Compute Node. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class InboundEndpoint |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the InboundEndpoint class. |
| | | 23 | | /// </summary> |
| | 993 | 24 | | public InboundEndpoint() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 993 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the InboundEndpoint class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="name">The name of the endpoint.</param> |
| | | 33 | | /// <param name="protocol">The protocol of the endpoint.</param> |
| | | 34 | | /// <param name="publicIPAddress">The public IP address of the Compute |
| | | 35 | | /// Node.</param> |
| | | 36 | | /// <param name="publicFQDN">The public fully qualified domain name for |
| | | 37 | | /// the Compute Node.</param> |
| | | 38 | | /// <param name="frontendPort">The public port number of the |
| | | 39 | | /// endpoint.</param> |
| | | 40 | | /// <param name="backendPort">The backend port number of the |
| | | 41 | | /// endpoint.</param> |
| | 0 | 42 | | public InboundEndpoint(string name, InboundEndpointProtocol protocol, string publicIPAddress, string publicFQDN, |
| | | 43 | | { |
| | 0 | 44 | | Name = name; |
| | 0 | 45 | | Protocol = protocol; |
| | 0 | 46 | | PublicIPAddress = publicIPAddress; |
| | 0 | 47 | | PublicFQDN = publicFQDN; |
| | 0 | 48 | | FrontendPort = frontendPort; |
| | 0 | 49 | | BackendPort = backendPort; |
| | | 50 | | CustomInit(); |
| | 0 | 51 | | } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | | 55 | | /// </summary> |
| | | 56 | | partial void CustomInit(); |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets or sets the name of the endpoint. |
| | | 60 | | /// </summary> |
| | | 61 | | [JsonProperty(PropertyName = "name")] |
| | 2482 | 62 | | public string Name { get; set; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Gets or sets the protocol of the endpoint. |
| | | 66 | | /// </summary> |
| | | 67 | | /// <remarks> |
| | | 68 | | /// Possible values include: 'tcp', 'udp' |
| | | 69 | | /// </remarks> |
| | | 70 | | [JsonProperty(PropertyName = "protocol")] |
| | 2468 | 71 | | public InboundEndpointProtocol Protocol { get; set; } |
| | | 72 | | |
| | | 73 | | /// <summary> |
| | | 74 | | /// Gets or sets the public IP address of the Compute Node. |
| | | 75 | | /// </summary> |
| | | 76 | | [JsonProperty(PropertyName = "publicIPAddress")] |
| | 2475 | 77 | | public string PublicIPAddress { get; set; } |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Gets or sets the public fully qualified domain name for the Compute |
| | | 81 | | /// Node. |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "publicFQDN")] |
| | 2458 | 84 | | public string PublicFQDN { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets the public port number of the endpoint. |
| | | 88 | | /// </summary> |
| | | 89 | | [JsonProperty(PropertyName = "frontendPort")] |
| | 2478 | 90 | | public int FrontendPort { get; set; } |
| | | 91 | | |
| | | 92 | | /// <summary> |
| | | 93 | | /// Gets or sets the backend port number of the endpoint. |
| | | 94 | | /// </summary> |
| | | 95 | | [JsonProperty(PropertyName = "backendPort")] |
| | 2482 | 96 | | public int BackendPort { get; set; } |
| | | 97 | | |
| | | 98 | | } |
| | | 99 | | } |