| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Threading; |
| | 10 | | using System.Threading.Tasks; |
| | 11 | | using Azure; |
| | 12 | | using Azure.Core; |
| | 13 | | using Azure.Core.Pipeline; |
| | 14 | | using Azure.ResourceManager.Compute.Models; |
| | 15 | |
|
| | 16 | | namespace Azure.ResourceManager.Compute |
| | 17 | | { |
| | 18 | | /// <summary> The GalleryApplicationVersions service client. </summary> |
| | 19 | | public partial class GalleryApplicationVersionsOperations |
| | 20 | | { |
| | 21 | | private readonly ClientDiagnostics _clientDiagnostics; |
| | 22 | | private readonly HttpPipeline _pipeline; |
| 0 | 23 | | internal GalleryApplicationVersionsRestOperations RestClient { get; } |
| | 24 | | /// <summary> Initializes a new instance of GalleryApplicationVersionsOperations for mocking. </summary> |
| 396 | 25 | | protected GalleryApplicationVersionsOperations() |
| | 26 | | { |
| 396 | 27 | | } |
| | 28 | | /// <summary> Initializes a new instance of GalleryApplicationVersionsOperations. </summary> |
| | 29 | | /// <param name="clientDiagnostics"> The handler for diagnostic messaging in the client. </param> |
| | 30 | | /// <param name="pipeline"> The HTTP pipeline for sending and receiving REST requests and responses. </param> |
| | 31 | | /// <param name="subscriptionId"> Subscription credentials which uniquely identify Microsoft Azure subscription. |
| | 32 | | /// <param name="endpoint"> server parameter. </param> |
| 396 | 33 | | internal GalleryApplicationVersionsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string |
| | 34 | | { |
| 396 | 35 | | RestClient = new GalleryApplicationVersionsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpo |
| 396 | 36 | | _clientDiagnostics = clientDiagnostics; |
| 396 | 37 | | _pipeline = pipeline; |
| 396 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Retrieves information about a gallery Application Version. </summary> |
| | 41 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 42 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 43 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 44 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be retrieved. </ |
| | 45 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 46 | | public virtual async Task<Response<GalleryApplicationVersion>> GetAsync(string resourceGroupName, string gallery |
| | 47 | | { |
| 0 | 48 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.Get"); |
| 0 | 49 | | scope.Start(); |
| | 50 | | try |
| | 51 | | { |
| 0 | 52 | | return await RestClient.GetAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicat |
| | 53 | | } |
| 0 | 54 | | catch (Exception e) |
| | 55 | | { |
| 0 | 56 | | scope.Failed(e); |
| 0 | 57 | | throw; |
| | 58 | | } |
| 0 | 59 | | } |
| | 60 | |
|
| | 61 | | /// <summary> Retrieves information about a gallery Application Version. </summary> |
| | 62 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 63 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 64 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 65 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be retrieved. </ |
| | 66 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 67 | | public virtual Response<GalleryApplicationVersion> Get(string resourceGroupName, string galleryName, string gall |
| | 68 | | { |
| 0 | 69 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.Get"); |
| 0 | 70 | | scope.Start(); |
| | 71 | | try |
| | 72 | | { |
| 0 | 73 | | return RestClient.Get(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionN |
| | 74 | | } |
| 0 | 75 | | catch (Exception e) |
| | 76 | | { |
| 0 | 77 | | scope.Failed(e); |
| 0 | 78 | | throw; |
| | 79 | | } |
| 0 | 80 | | } |
| | 81 | |
|
| | 82 | | /// <summary> List gallery Application Versions in a gallery Application Definition. </summary> |
| | 83 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 84 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 85 | | /// <param name="galleryApplicationName"> The name of the Shared Application Gallery Application Definition from |
| | 86 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 87 | | public virtual AsyncPageable<GalleryApplicationVersion> ListByGalleryApplicationAsync(string resourceGroupName, |
| | 88 | | { |
| 0 | 89 | | if (resourceGroupName == null) |
| | 90 | | { |
| 0 | 91 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 92 | | } |
| 0 | 93 | | if (galleryName == null) |
| | 94 | | { |
| 0 | 95 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 96 | | } |
| 0 | 97 | | if (galleryApplicationName == null) |
| | 98 | | { |
| 0 | 99 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 100 | | } |
| | 101 | |
|
| | 102 | | async Task<Page<GalleryApplicationVersion>> FirstPageFunc(int? pageSizeHint) |
| | 103 | | { |
| 0 | 104 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.ListByGalleryAppl |
| 0 | 105 | | scope.Start(); |
| | 106 | | try |
| | 107 | | { |
| 0 | 108 | | var response = await RestClient.ListByGalleryApplicationAsync(resourceGroupName, galleryName, galler |
| 0 | 109 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 110 | | } |
| 0 | 111 | | catch (Exception e) |
| | 112 | | { |
| 0 | 113 | | scope.Failed(e); |
| 0 | 114 | | throw; |
| | 115 | | } |
| 0 | 116 | | } |
| | 117 | | async Task<Page<GalleryApplicationVersion>> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 118 | | { |
| 0 | 119 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.ListByGalleryAppl |
| 0 | 120 | | scope.Start(); |
| | 121 | | try |
| | 122 | | { |
| 0 | 123 | | var response = await RestClient.ListByGalleryApplicationNextPageAsync(nextLink, resourceGroupName, g |
| 0 | 124 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 125 | | } |
| 0 | 126 | | catch (Exception e) |
| | 127 | | { |
| 0 | 128 | | scope.Failed(e); |
| 0 | 129 | | throw; |
| | 130 | | } |
| 0 | 131 | | } |
| 0 | 132 | | return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); |
| | 133 | | } |
| | 134 | |
|
| | 135 | | /// <summary> List gallery Application Versions in a gallery Application Definition. </summary> |
| | 136 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 137 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 138 | | /// <param name="galleryApplicationName"> The name of the Shared Application Gallery Application Definition from |
| | 139 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 140 | | public virtual Pageable<GalleryApplicationVersion> ListByGalleryApplication(string resourceGroupName, string gal |
| | 141 | | { |
| 0 | 142 | | if (resourceGroupName == null) |
| | 143 | | { |
| 0 | 144 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 145 | | } |
| 0 | 146 | | if (galleryName == null) |
| | 147 | | { |
| 0 | 148 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 149 | | } |
| 0 | 150 | | if (galleryApplicationName == null) |
| | 151 | | { |
| 0 | 152 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 153 | | } |
| | 154 | |
|
| | 155 | | Page<GalleryApplicationVersion> FirstPageFunc(int? pageSizeHint) |
| | 156 | | { |
| 0 | 157 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.ListByGalleryAppl |
| 0 | 158 | | scope.Start(); |
| | 159 | | try |
| | 160 | | { |
| 0 | 161 | | var response = RestClient.ListByGalleryApplication(resourceGroupName, galleryName, galleryApplicatio |
| 0 | 162 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 163 | | } |
| 0 | 164 | | catch (Exception e) |
| | 165 | | { |
| 0 | 166 | | scope.Failed(e); |
| 0 | 167 | | throw; |
| | 168 | | } |
| 0 | 169 | | } |
| | 170 | | Page<GalleryApplicationVersion> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 171 | | { |
| 0 | 172 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.ListByGalleryAppl |
| 0 | 173 | | scope.Start(); |
| | 174 | | try |
| | 175 | | { |
| 0 | 176 | | var response = RestClient.ListByGalleryApplicationNextPage(nextLink, resourceGroupName, galleryName, |
| 0 | 177 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 178 | | } |
| 0 | 179 | | catch (Exception e) |
| | 180 | | { |
| 0 | 181 | | scope.Failed(e); |
| 0 | 182 | | throw; |
| | 183 | | } |
| 0 | 184 | | } |
| 0 | 185 | | return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); |
| | 186 | | } |
| | 187 | |
|
| | 188 | | /// <summary> Create or update a gallery Application Version. </summary> |
| | 189 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 190 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 191 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 192 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be created. Need |
| | 193 | | /// <param name="galleryApplicationVersion"> Parameters supplied to the create or update gallery Application Ver |
| | 194 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 195 | | public virtual async Task<GalleryApplicationVersionsCreateOrUpdateOperation> StartCreateOrUpdateAsync(string res |
| | 196 | | { |
| 0 | 197 | | if (resourceGroupName == null) |
| | 198 | | { |
| 0 | 199 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 200 | | } |
| 0 | 201 | | if (galleryName == null) |
| | 202 | | { |
| 0 | 203 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 204 | | } |
| 0 | 205 | | if (galleryApplicationName == null) |
| | 206 | | { |
| 0 | 207 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 208 | | } |
| 0 | 209 | | if (galleryApplicationVersionName == null) |
| | 210 | | { |
| 0 | 211 | | throw new ArgumentNullException(nameof(galleryApplicationVersionName)); |
| | 212 | | } |
| 0 | 213 | | if (galleryApplicationVersion == null) |
| | 214 | | { |
| 0 | 215 | | throw new ArgumentNullException(nameof(galleryApplicationVersion)); |
| | 216 | | } |
| | 217 | |
|
| 0 | 218 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.StartCreateOrUpdate") |
| 0 | 219 | | scope.Start(); |
| | 220 | | try |
| | 221 | | { |
| 0 | 222 | | var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, galleryName, galleryAppli |
| 0 | 223 | | return new GalleryApplicationVersionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.C |
| | 224 | | } |
| 0 | 225 | | catch (Exception e) |
| | 226 | | { |
| 0 | 227 | | scope.Failed(e); |
| 0 | 228 | | throw; |
| | 229 | | } |
| 0 | 230 | | } |
| | 231 | |
|
| | 232 | | /// <summary> Create or update a gallery Application Version. </summary> |
| | 233 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 234 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 235 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 236 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be created. Need |
| | 237 | | /// <param name="galleryApplicationVersion"> Parameters supplied to the create or update gallery Application Ver |
| | 238 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 239 | | public virtual GalleryApplicationVersionsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, s |
| | 240 | | { |
| 0 | 241 | | if (resourceGroupName == null) |
| | 242 | | { |
| 0 | 243 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 244 | | } |
| 0 | 245 | | if (galleryName == null) |
| | 246 | | { |
| 0 | 247 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 248 | | } |
| 0 | 249 | | if (galleryApplicationName == null) |
| | 250 | | { |
| 0 | 251 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 252 | | } |
| 0 | 253 | | if (galleryApplicationVersionName == null) |
| | 254 | | { |
| 0 | 255 | | throw new ArgumentNullException(nameof(galleryApplicationVersionName)); |
| | 256 | | } |
| 0 | 257 | | if (galleryApplicationVersion == null) |
| | 258 | | { |
| 0 | 259 | | throw new ArgumentNullException(nameof(galleryApplicationVersion)); |
| | 260 | | } |
| | 261 | |
|
| 0 | 262 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.StartCreateOrUpdate") |
| 0 | 263 | | scope.Start(); |
| | 264 | | try |
| | 265 | | { |
| 0 | 266 | | var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, galleryName, galleryApplicationName, |
| 0 | 267 | | return new GalleryApplicationVersionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.C |
| | 268 | | } |
| 0 | 269 | | catch (Exception e) |
| | 270 | | { |
| 0 | 271 | | scope.Failed(e); |
| 0 | 272 | | throw; |
| | 273 | | } |
| 0 | 274 | | } |
| | 275 | |
|
| | 276 | | /// <summary> Update a gallery Application Version. </summary> |
| | 277 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 278 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 279 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 280 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be updated. Need |
| | 281 | | /// <param name="galleryApplicationVersion"> Parameters supplied to the update gallery Application Version opera |
| | 282 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 283 | | public virtual async Task<GalleryApplicationVersionsUpdateOperation> StartUpdateAsync(string resourceGroupName, |
| | 284 | | { |
| 0 | 285 | | if (resourceGroupName == null) |
| | 286 | | { |
| 0 | 287 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 288 | | } |
| 0 | 289 | | if (galleryName == null) |
| | 290 | | { |
| 0 | 291 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 292 | | } |
| 0 | 293 | | if (galleryApplicationName == null) |
| | 294 | | { |
| 0 | 295 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 296 | | } |
| 0 | 297 | | if (galleryApplicationVersionName == null) |
| | 298 | | { |
| 0 | 299 | | throw new ArgumentNullException(nameof(galleryApplicationVersionName)); |
| | 300 | | } |
| 0 | 301 | | if (galleryApplicationVersion == null) |
| | 302 | | { |
| 0 | 303 | | throw new ArgumentNullException(nameof(galleryApplicationVersion)); |
| | 304 | | } |
| | 305 | |
|
| 0 | 306 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.StartUpdate"); |
| 0 | 307 | | scope.Start(); |
| | 308 | | try |
| | 309 | | { |
| 0 | 310 | | var originalResponse = await RestClient.UpdateAsync(resourceGroupName, galleryName, galleryApplicationNa |
| 0 | 311 | | return new GalleryApplicationVersionsUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateUpd |
| | 312 | | } |
| 0 | 313 | | catch (Exception e) |
| | 314 | | { |
| 0 | 315 | | scope.Failed(e); |
| 0 | 316 | | throw; |
| | 317 | | } |
| 0 | 318 | | } |
| | 319 | |
|
| | 320 | | /// <summary> Update a gallery Application Version. </summary> |
| | 321 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 322 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 323 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 324 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be updated. Need |
| | 325 | | /// <param name="galleryApplicationVersion"> Parameters supplied to the update gallery Application Version opera |
| | 326 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 327 | | public virtual GalleryApplicationVersionsUpdateOperation StartUpdate(string resourceGroupName, string galleryNam |
| | 328 | | { |
| 0 | 329 | | if (resourceGroupName == null) |
| | 330 | | { |
| 0 | 331 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 332 | | } |
| 0 | 333 | | if (galleryName == null) |
| | 334 | | { |
| 0 | 335 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 336 | | } |
| 0 | 337 | | if (galleryApplicationName == null) |
| | 338 | | { |
| 0 | 339 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 340 | | } |
| 0 | 341 | | if (galleryApplicationVersionName == null) |
| | 342 | | { |
| 0 | 343 | | throw new ArgumentNullException(nameof(galleryApplicationVersionName)); |
| | 344 | | } |
| 0 | 345 | | if (galleryApplicationVersion == null) |
| | 346 | | { |
| 0 | 347 | | throw new ArgumentNullException(nameof(galleryApplicationVersion)); |
| | 348 | | } |
| | 349 | |
|
| 0 | 350 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.StartUpdate"); |
| 0 | 351 | | scope.Start(); |
| | 352 | | try |
| | 353 | | { |
| 0 | 354 | | var originalResponse = RestClient.Update(resourceGroupName, galleryName, galleryApplicationName, gallery |
| 0 | 355 | | return new GalleryApplicationVersionsUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateUpd |
| | 356 | | } |
| 0 | 357 | | catch (Exception e) |
| | 358 | | { |
| 0 | 359 | | scope.Failed(e); |
| 0 | 360 | | throw; |
| | 361 | | } |
| 0 | 362 | | } |
| | 363 | |
|
| | 364 | | /// <summary> Delete a gallery Application Version. </summary> |
| | 365 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 366 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 367 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 368 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be deleted. </pa |
| | 369 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 370 | | public virtual async Task<GalleryApplicationVersionsDeleteOperation> StartDeleteAsync(string resourceGroupName, |
| | 371 | | { |
| 0 | 372 | | if (resourceGroupName == null) |
| | 373 | | { |
| 0 | 374 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 375 | | } |
| 0 | 376 | | if (galleryName == null) |
| | 377 | | { |
| 0 | 378 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 379 | | } |
| 0 | 380 | | if (galleryApplicationName == null) |
| | 381 | | { |
| 0 | 382 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 383 | | } |
| 0 | 384 | | if (galleryApplicationVersionName == null) |
| | 385 | | { |
| 0 | 386 | | throw new ArgumentNullException(nameof(galleryApplicationVersionName)); |
| | 387 | | } |
| | 388 | |
|
| 0 | 389 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.StartDelete"); |
| 0 | 390 | | scope.Start(); |
| | 391 | | try |
| | 392 | | { |
| 0 | 393 | | var originalResponse = await RestClient.DeleteAsync(resourceGroupName, galleryName, galleryApplicationNa |
| 0 | 394 | | return new GalleryApplicationVersionsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDel |
| | 395 | | } |
| 0 | 396 | | catch (Exception e) |
| | 397 | | { |
| 0 | 398 | | scope.Failed(e); |
| 0 | 399 | | throw; |
| | 400 | | } |
| 0 | 401 | | } |
| | 402 | |
|
| | 403 | | /// <summary> Delete a gallery Application Version. </summary> |
| | 404 | | /// <param name="resourceGroupName"> The name of the resource group. </param> |
| | 405 | | /// <param name="galleryName"> The name of the Shared Application Gallery in which the Application Definition re |
| | 406 | | /// <param name="galleryApplicationName"> The name of the gallery Application Definition in which the Applicatio |
| | 407 | | /// <param name="galleryApplicationVersionName"> The name of the gallery Application Version to be deleted. </pa |
| | 408 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 409 | | public virtual GalleryApplicationVersionsDeleteOperation StartDelete(string resourceGroupName, string galleryNam |
| | 410 | | { |
| 0 | 411 | | if (resourceGroupName == null) |
| | 412 | | { |
| 0 | 413 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 414 | | } |
| 0 | 415 | | if (galleryName == null) |
| | 416 | | { |
| 0 | 417 | | throw new ArgumentNullException(nameof(galleryName)); |
| | 418 | | } |
| 0 | 419 | | if (galleryApplicationName == null) |
| | 420 | | { |
| 0 | 421 | | throw new ArgumentNullException(nameof(galleryApplicationName)); |
| | 422 | | } |
| 0 | 423 | | if (galleryApplicationVersionName == null) |
| | 424 | | { |
| 0 | 425 | | throw new ArgumentNullException(nameof(galleryApplicationVersionName)); |
| | 426 | | } |
| | 427 | |
|
| 0 | 428 | | using var scope = _clientDiagnostics.CreateScope("GalleryApplicationVersionsOperations.StartDelete"); |
| 0 | 429 | | scope.Start(); |
| | 430 | | try |
| | 431 | | { |
| 0 | 432 | | var originalResponse = RestClient.Delete(resourceGroupName, galleryName, galleryApplicationName, gallery |
| 0 | 433 | | return new GalleryApplicationVersionsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDel |
| | 434 | | } |
| 0 | 435 | | catch (Exception e) |
| | 436 | | { |
| 0 | 437 | | scope.Failed(e); |
| 0 | 438 | | throw; |
| | 439 | | } |
| 0 | 440 | | } |
| | 441 | | } |
| | 442 | | } |