| | 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 | | /// Details about an output file upload operation, including under what conditions to perform the upload. |
| | 22 | | /// </summary> |
| | 23 | | public partial class OutputFileUploadOptions : ITransportObjectProvider<Models.OutputFileUploadOptions>, IPropertyMe |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the <see cref="OutputFileUploadOptions"/> class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name='uploadCondition'>The conditions under which the file(s) should be uploaded.</param> |
| 899 | 30 | | public OutputFileUploadOptions( |
| 899 | 31 | | Common.OutputFileUploadCondition uploadCondition) |
| | 32 | | { |
| 899 | 33 | | this.UploadCondition = uploadCondition; |
| 899 | 34 | | } |
| | 35 | |
|
| 1881 | 36 | | internal OutputFileUploadOptions(Models.OutputFileUploadOptions protocolObject) |
| | 37 | | { |
| 1881 | 38 | | this.UploadCondition = UtilitiesInternal.MapEnum<Models.OutputFileUploadCondition, Common.OutputFileUploadCo |
| 1881 | 39 | | } |
| | 40 | |
|
| | 41 | | #endregion Constructors |
| | 42 | |
|
| | 43 | | #region OutputFileUploadOptions |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// Gets the conditions under which the file(s) should be uploaded. |
| | 47 | | /// </summary> |
| 3676 | 48 | | public Common.OutputFileUploadCondition UploadCondition { get; } |
| | 49 | |
|
| | 50 | | #endregion // OutputFileUploadOptions |
| | 51 | |
|
| | 52 | | #region IPropertyMetadata |
| | 53 | |
|
| | 54 | | bool IModifiable.HasBeenModified |
| | 55 | | { |
| | 56 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 57 | | get { return false; } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | bool IReadOnly.IsReadOnly |
| | 61 | | { |
| 0 | 62 | | get { return true; } |
| | 63 | | set |
| | 64 | | { |
| | 65 | | // This class is compile time readonly already |
| 1882 | 66 | | } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | #endregion // IPropertyMetadata |
| | 70 | |
|
| | 71 | | #region Internal/private methods |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Return a protocol object of the requested type. |
| | 75 | | /// </summary> |
| | 76 | | /// <returns>The protocol object of the requested type.</returns> |
| | 77 | | Models.OutputFileUploadOptions ITransportObjectProvider<Models.OutputFileUploadOptions>.GetTransportObject() |
| | 78 | | { |
| 897 | 79 | | Models.OutputFileUploadOptions result = new Models.OutputFileUploadOptions() |
| 897 | 80 | | { |
| 897 | 81 | | UploadCondition = UtilitiesInternal.MapEnum<Common.OutputFileUploadCondition, Models.OutputFileUploadCon |
| 897 | 82 | | }; |
| | 83 | |
|
| 897 | 84 | | return result; |
| | 85 | | } |
| | 86 | |
|
| | 87 | |
|
| | 88 | | #endregion // Internal/private methods |
| | 89 | | } |
| | 90 | | } |