| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | | 3 | | // |
| | | 4 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 5 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 6 | | // regenerated. |
| | | 7 | | |
| | | 8 | | // |
| | | 9 | | // This file was autogenerated by a tool. |
| | | 10 | | // Do not modify it. |
| | | 11 | | // |
| | | 12 | | |
| | | 13 | | namespace Microsoft.Azure.Batch |
| | | 14 | | { |
| | | 15 | | using Models = Microsoft.Azure.Batch.Protocol.Models; |
| | | 16 | | using System; |
| | | 17 | | using System.Collections.Generic; |
| | | 18 | | using System.Linq; |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The endpoint configuration for a pool. |
| | | 22 | | /// </summary> |
| | | 23 | | public partial class PoolEndpointConfiguration : ITransportObjectProvider<Models.PoolEndpointConfiguration>, IProper |
| | | 24 | | { |
| | | 25 | | #region Constructors |
| | | 26 | | /// <summary> |
| | | 27 | | /// Initializes a new instance of the <see cref="PoolEndpointConfiguration"/> class. |
| | | 28 | | /// </summary> |
| | | 29 | | /// <param name='inboundNatPools'>A list of inbound NAT pools that can be used to address specific ports on an i |
| | 224 | 30 | | public PoolEndpointConfiguration( |
| | 224 | 31 | | IReadOnlyList<InboundNatPool> inboundNatPools) |
| | | 32 | | { |
| | 224 | 33 | | this.InboundNatPools = inboundNatPools; |
| | 224 | 34 | | } |
| | | 35 | | |
| | 295 | 36 | | internal PoolEndpointConfiguration(Models.PoolEndpointConfiguration protocolObject) |
| | | 37 | | { |
| | 295 | 38 | | this.InboundNatPools = InboundNatPool.ConvertFromProtocolCollectionReadOnly(protocolObject.InboundNATPools); |
| | 295 | 39 | | } |
| | | 40 | | |
| | | 41 | | #endregion Constructors |
| | | 42 | | |
| | | 43 | | #region PoolEndpointConfiguration |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// Gets a list of inbound NAT pools that can be used to address specific ports on an individual compute node ex |
| | | 47 | | /// </summary> |
| | | 48 | | /// <remarks> |
| | | 49 | | /// The maximum number of inbound NAT pools per Batch pool is 5. |
| | | 50 | | /// </remarks> |
| | 742 | 51 | | public IReadOnlyList<InboundNatPool> InboundNatPools { get; } |
| | | 52 | | |
| | | 53 | | #endregion // PoolEndpointConfiguration |
| | | 54 | | |
| | | 55 | | #region IPropertyMetadata |
| | | 56 | | |
| | | 57 | | bool IModifiable.HasBeenModified |
| | | 58 | | { |
| | | 59 | | //This class is compile time readonly so it cannot have been modified |
| | 0 | 60 | | get { return false; } |
| | | 61 | | } |
| | | 62 | | |
| | | 63 | | bool IReadOnly.IsReadOnly |
| | | 64 | | { |
| | 0 | 65 | | get { return true; } |
| | | 66 | | set |
| | | 67 | | { |
| | | 68 | | // This class is compile time readonly already |
| | 591 | 69 | | } |
| | | 70 | | } |
| | | 71 | | |
| | | 72 | | #endregion // IPropertyMetadata |
| | | 73 | | |
| | | 74 | | #region Internal/private methods |
| | | 75 | | |
| | | 76 | | /// <summary> |
| | | 77 | | /// Return a protocol object of the requested type. |
| | | 78 | | /// </summary> |
| | | 79 | | /// <returns>The protocol object of the requested type.</returns> |
| | | 80 | | Models.PoolEndpointConfiguration ITransportObjectProvider<Models.PoolEndpointConfiguration>.GetTransportObject() |
| | | 81 | | { |
| | 223 | 82 | | Models.PoolEndpointConfiguration result = new Models.PoolEndpointConfiguration() |
| | 223 | 83 | | { |
| | 223 | 84 | | InboundNATPools = UtilitiesInternal.ConvertToProtocolCollection(this.InboundNatPools), |
| | 223 | 85 | | }; |
| | | 86 | | |
| | 223 | 87 | | return result; |
| | | 88 | | } |
| | | 89 | | |
| | | 90 | | |
| | | 91 | | #endregion // Internal/private methods |
| | | 92 | | } |
| | | 93 | | } |