| | 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 |
| | 12 | | { |
| | 13 | | using Microsoft.Rest; |
| | 14 | | using Microsoft.Rest.Azure; |
| | 15 | | using Models; |
| | 16 | | using System.Threading; |
| | 17 | | using System.Threading.Tasks; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Extension methods for ApplicationOperations. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class ApplicationOperationsExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Lists all of the applications available in the specified Account. |
| | 26 | | /// </summary> |
| | 27 | | /// <remarks> |
| | 28 | | /// This operation returns only Applications and versions that are available |
| | 29 | | /// for use on Compute Nodes; that is, that can be used in an Package |
| | 30 | | /// reference. For administrator information about applications and versions |
| | 31 | | /// that are not yet available to Compute Nodes, use the Azure portal or the |
| | 32 | | /// Azure Resource Manager API. |
| | 33 | | /// </remarks> |
| | 34 | | /// <param name='operations'> |
| | 35 | | /// The operations group for this extension method. |
| | 36 | | /// </param> |
| | 37 | | /// <param name='applicationListOptions'> |
| | 38 | | /// Additional parameters for the operation |
| | 39 | | /// </param> |
| | 40 | | public static IPage<ApplicationSummary> List(this IApplicationOperations operations, ApplicationListOptions |
| | 41 | | { |
| 0 | 42 | | return operations.ListAsync(applicationListOptions).GetAwaiter().GetResult(); |
| | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// Lists all of the applications available in the specified Account. |
| | 47 | | /// </summary> |
| | 48 | | /// <remarks> |
| | 49 | | /// This operation returns only Applications and versions that are available |
| | 50 | | /// for use on Compute Nodes; that is, that can be used in an Package |
| | 51 | | /// reference. For administrator information about applications and versions |
| | 52 | | /// that are not yet available to Compute Nodes, use the Azure portal or the |
| | 53 | | /// Azure Resource Manager API. |
| | 54 | | /// </remarks> |
| | 55 | | /// <param name='operations'> |
| | 56 | | /// The operations group for this extension method. |
| | 57 | | /// </param> |
| | 58 | | /// <param name='applicationListOptions'> |
| | 59 | | /// Additional parameters for the operation |
| | 60 | | /// </param> |
| | 61 | | /// <param name='cancellationToken'> |
| | 62 | | /// The cancellation token. |
| | 63 | | /// </param> |
| | 64 | | public static async Task<IPage<ApplicationSummary>> ListAsync(this IApplicationOperations operations, Applic |
| | 65 | | { |
| 0 | 66 | | using (var _result = await operations.ListWithHttpMessagesAsync(applicationListOptions, null, cancellati |
| | 67 | | { |
| 0 | 68 | | return _result.Body; |
| | 69 | | } |
| 0 | 70 | | } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets information about the specified Application. |
| | 74 | | /// </summary> |
| | 75 | | /// <remarks> |
| | 76 | | /// This operation returns only Applications and versions that are available |
| | 77 | | /// for use on Compute Nodes; that is, that can be used in an Package |
| | 78 | | /// reference. For administrator information about Applications and versions |
| | 79 | | /// that are not yet available to Compute Nodes, use the Azure portal or the |
| | 80 | | /// Azure Resource Manager API. |
| | 81 | | /// </remarks> |
| | 82 | | /// <param name='operations'> |
| | 83 | | /// The operations group for this extension method. |
| | 84 | | /// </param> |
| | 85 | | /// <param name='applicationId'> |
| | 86 | | /// The ID of the Application. |
| | 87 | | /// </param> |
| | 88 | | /// <param name='applicationGetOptions'> |
| | 89 | | /// Additional parameters for the operation |
| | 90 | | /// </param> |
| | 91 | | public static ApplicationSummary Get(this IApplicationOperations operations, string applicationId, Applicati |
| | 92 | | { |
| 0 | 93 | | return operations.GetAsync(applicationId, applicationGetOptions).GetAwaiter().GetResult(); |
| | 94 | | } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets information about the specified Application. |
| | 98 | | /// </summary> |
| | 99 | | /// <remarks> |
| | 100 | | /// This operation returns only Applications and versions that are available |
| | 101 | | /// for use on Compute Nodes; that is, that can be used in an Package |
| | 102 | | /// reference. For administrator information about Applications and versions |
| | 103 | | /// that are not yet available to Compute Nodes, use the Azure portal or the |
| | 104 | | /// Azure Resource Manager API. |
| | 105 | | /// </remarks> |
| | 106 | | /// <param name='operations'> |
| | 107 | | /// The operations group for this extension method. |
| | 108 | | /// </param> |
| | 109 | | /// <param name='applicationId'> |
| | 110 | | /// The ID of the Application. |
| | 111 | | /// </param> |
| | 112 | | /// <param name='applicationGetOptions'> |
| | 113 | | /// Additional parameters for the operation |
| | 114 | | /// </param> |
| | 115 | | /// <param name='cancellationToken'> |
| | 116 | | /// The cancellation token. |
| | 117 | | /// </param> |
| | 118 | | public static async Task<ApplicationSummary> GetAsync(this IApplicationOperations operations, string applica |
| | 119 | | { |
| 0 | 120 | | using (var _result = await operations.GetWithHttpMessagesAsync(applicationId, applicationGetOptions, nul |
| | 121 | | { |
| 0 | 122 | | return _result.Body; |
| | 123 | | } |
| 0 | 124 | | } |
| | 125 | |
|
| | 126 | | /// <summary> |
| | 127 | | /// Lists all of the applications available in the specified Account. |
| | 128 | | /// </summary> |
| | 129 | | /// <remarks> |
| | 130 | | /// This operation returns only Applications and versions that are available |
| | 131 | | /// for use on Compute Nodes; that is, that can be used in an Package |
| | 132 | | /// reference. For administrator information about applications and versions |
| | 133 | | /// that are not yet available to Compute Nodes, use the Azure portal or the |
| | 134 | | /// Azure Resource Manager API. |
| | 135 | | /// </remarks> |
| | 136 | | /// <param name='operations'> |
| | 137 | | /// The operations group for this extension method. |
| | 138 | | /// </param> |
| | 139 | | /// <param name='nextPageLink'> |
| | 140 | | /// The NextLink from the previous successful call to List operation. |
| | 141 | | /// </param> |
| | 142 | | /// <param name='applicationListNextOptions'> |
| | 143 | | /// Additional parameters for the operation |
| | 144 | | /// </param> |
| | 145 | | public static IPage<ApplicationSummary> ListNext(this IApplicationOperations operations, string nextPageLink |
| | 146 | | { |
| 0 | 147 | | return operations.ListNextAsync(nextPageLink, applicationListNextOptions).GetAwaiter().GetResult(); |
| | 148 | | } |
| | 149 | |
|
| | 150 | | /// <summary> |
| | 151 | | /// Lists all of the applications available in the specified Account. |
| | 152 | | /// </summary> |
| | 153 | | /// <remarks> |
| | 154 | | /// This operation returns only Applications and versions that are available |
| | 155 | | /// for use on Compute Nodes; that is, that can be used in an Package |
| | 156 | | /// reference. For administrator information about applications and versions |
| | 157 | | /// that are not yet available to Compute Nodes, use the Azure portal or the |
| | 158 | | /// Azure Resource Manager API. |
| | 159 | | /// </remarks> |
| | 160 | | /// <param name='operations'> |
| | 161 | | /// The operations group for this extension method. |
| | 162 | | /// </param> |
| | 163 | | /// <param name='nextPageLink'> |
| | 164 | | /// The NextLink from the previous successful call to List operation. |
| | 165 | | /// </param> |
| | 166 | | /// <param name='applicationListNextOptions'> |
| | 167 | | /// Additional parameters for the operation |
| | 168 | | /// </param> |
| | 169 | | /// <param name='cancellationToken'> |
| | 170 | | /// The cancellation token. |
| | 171 | | /// </param> |
| | 172 | | public static async Task<IPage<ApplicationSummary>> ListNextAsync(this IApplicationOperations operations, st |
| | 173 | | { |
| 0 | 174 | | using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, applicationListNextOpt |
| | 175 | | { |
| 0 | 176 | | return _result.Body; |
| | 177 | | } |
| 0 | 178 | | } |
| | 179 | |
|
| | 180 | | } |
| | 181 | | } |