| | 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 | | // |
| 0 | 12 | |
|
| | 13 | | namespace Microsoft.Azure.Batch |
| 0 | 14 | | { |
| 0 | 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 destination to which a file should be uploaded. |
| | 22 | | /// </summary> |
| | 23 | | public partial class OutputFileDestination : ITransportObjectProvider<Models.OutputFileDestination>, IPropertyMetada |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 2864 | 27 | | internal OutputFileDestination(Models.OutputFileDestination protocolObject) |
| | 28 | | { |
| 4310 | 29 | | this.Container = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Container, o => new OutputFileBl |
| 2864 | 30 | | } |
| | 31 | |
|
| | 32 | | #endregion Constructors |
| | 33 | |
|
| | 34 | | #region OutputFileDestination |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// Gets a location in Azure blob storage to which files are uploaded. |
| | 38 | | /// </summary> |
| 3760 | 39 | | public OutputFileBlobContainerDestination Container { get; } |
| | 40 | |
|
| | 41 | | #endregion // OutputFileDestination |
| | 42 | |
|
| | 43 | | #region IPropertyMetadata |
| | 44 | |
|
| | 45 | | bool IModifiable.HasBeenModified |
| | 46 | | { |
| | 47 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 48 | | get { return false; } |
| | 49 | | } |
| | 50 | |
|
| | 51 | | bool IReadOnly.IsReadOnly |
| | 52 | | { |
| 0 | 53 | | get { return true; } |
| | 54 | | set |
| | 55 | | { |
| | 56 | | // This class is compile time readonly already |
| 1966 | 57 | | } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | #endregion // IPropertyMetadata |
| | 61 | |
|
| | 62 | | #region Internal/private methods |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Return a protocol object of the requested type. |
| | 66 | | /// </summary> |
| | 67 | | /// <returns>The protocol object of the requested type.</returns> |
| | 68 | | Models.OutputFileDestination ITransportObjectProvider<Models.OutputFileDestination>.GetTransportObject() |
| | 69 | | { |
| 897 | 70 | | Models.OutputFileDestination result = new Models.OutputFileDestination() |
| 897 | 71 | | { |
| 1337 | 72 | | Container = UtilitiesInternal.CreateObjectWithNullCheck(this.Container, (o) => o.GetTransportObject()), |
| 897 | 73 | | }; |
| | 74 | |
|
| 897 | 75 | | return result; |
| | 76 | | } |
| | 77 | |
|
| | 78 | |
|
| | 79 | | #endregion // Internal/private methods |
| | 80 | | } |
| | 81 | | } |