| | 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 | | /// Specifies a file upload destination within an Azure blob storage container. |
| | 22 | | /// </summary> |
| | 23 | | public partial class OutputFileBlobContainerDestination : ITransportObjectProvider<Models.OutputFileBlobContainerDes |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the <see cref="OutputFileBlobContainerDestination"/> class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name='containerUrl'>The URL of the container within Azure Blob Storage to which to upload the file(s) |
| | 30 | | /// <param name='path'>The destination blob or virtual directory within the Azure Storage container to which to |
| 101 | 31 | | public OutputFileBlobContainerDestination( |
| 101 | 32 | | string containerUrl, |
| 101 | 33 | | string path = default(string)) |
| | 34 | | { |
| 101 | 35 | | this.ContainerUrl = containerUrl; |
| 101 | 36 | | this.Path = path; |
| 101 | 37 | | } |
| | 38 | |
|
| 1446 | 39 | | internal OutputFileBlobContainerDestination(Models.OutputFileBlobContainerDestination protocolObject) |
| | 40 | | { |
| 1446 | 41 | | this.ContainerUrl = protocolObject.ContainerUrl; |
| 1446 | 42 | | this.Path = protocolObject.Path; |
| 1446 | 43 | | } |
| | 44 | |
|
| | 45 | | #endregion Constructors |
| | 46 | |
|
| | 47 | | #region OutputFileBlobContainerDestination |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the URL of the container within Azure Blob Storage to which to upload the file(s). |
| | 51 | | /// </summary> |
| | 52 | | /// <remarks> |
| | 53 | | /// The URL must include a Shared Access Signature (SAS) granting write permissions to the container. |
| | 54 | | /// </remarks> |
| 2086 | 55 | | public string ContainerUrl { get; } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets the destination blob or virtual directory within the Azure Storage container to which to upload the fil |
| | 59 | | /// </summary> |
| | 60 | | /// <remarks> |
| | 61 | | /// <para>If <see cref="OutputFile.FilePattern"/> refers to a specific file (i.e. it contains no wildcards), the |
| | 62 | | /// this is the name of the blob to which to upload that file.</para><para>If <see cref="OutputFile.FilePattern" |
| | 63 | | /// contains wildcards (and may therefore match multiple files), then this then this is the name of the blob vir |
| | 64 | | /// directory (which is prepended to each blob name) to which to upload the file(s).</para><para>If omitted, fil |
| | 65 | | /// are uploaded to the root of the container with a blob name matching their file name.</para> |
| | 66 | | /// </remarks> |
| 2086 | 67 | | public string Path { get; } |
| | 68 | |
|
| | 69 | | #endregion // OutputFileBlobContainerDestination |
| | 70 | |
|
| | 71 | | #region IPropertyMetadata |
| | 72 | |
|
| | 73 | | bool IModifiable.HasBeenModified |
| | 74 | | { |
| | 75 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 76 | | get { return false; } |
| | 77 | | } |
| | 78 | |
|
| | 79 | | bool IReadOnly.IsReadOnly |
| | 80 | | { |
| 0 | 81 | | get { return true; } |
| | 82 | | set |
| | 83 | | { |
| | 84 | | // This class is compile time readonly already |
| 1447 | 85 | | } |
| | 86 | | } |
| | 87 | |
|
| | 88 | | #endregion // IPropertyMetadata |
| | 89 | |
|
| | 90 | | #region Internal/private methods |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Return a protocol object of the requested type. |
| | 94 | | /// </summary> |
| | 95 | | /// <returns>The protocol object of the requested type.</returns> |
| | 96 | | Models.OutputFileBlobContainerDestination ITransportObjectProvider<Models.OutputFileBlobContainerDestination>.Ge |
| | 97 | | { |
| 540 | 98 | | Models.OutputFileBlobContainerDestination result = new Models.OutputFileBlobContainerDestination() |
| 540 | 99 | | { |
| 540 | 100 | | ContainerUrl = this.ContainerUrl, |
| 540 | 101 | | Path = this.Path, |
| 540 | 102 | | }; |
| | 103 | |
|
| 540 | 104 | | return result; |
| | 105 | | } |
| | 106 | |
|
| | 107 | |
|
| | 108 | | #endregion // Internal/private methods |
| | 109 | | } |
| | 110 | | } |