| | 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.Resources.Models; |
| | 15 | |
|
| | 16 | | namespace Azure.ResourceManager.Resources |
| | 17 | | { |
| | 18 | | /// <summary> The ApplicationDefinitions service client. </summary> |
| | 19 | | public partial class ApplicationDefinitionsOperations |
| | 20 | | { |
| | 21 | | private readonly ClientDiagnostics _clientDiagnostics; |
| | 22 | | private readonly HttpPipeline _pipeline; |
| 0 | 23 | | internal ApplicationDefinitionsRestOperations RestClient { get; } |
| | 24 | | /// <summary> Initializes a new instance of ApplicationDefinitionsOperations for mocking. </summary> |
| 0 | 25 | | protected ApplicationDefinitionsOperations() |
| | 26 | | { |
| 0 | 27 | | } |
| | 28 | | /// <summary> Initializes a new instance of ApplicationDefinitionsOperations. </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"> The ID of the target subscription. </param> |
| | 32 | | /// <param name="endpoint"> server parameter. </param> |
| 0 | 33 | | internal ApplicationDefinitionsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string sub |
| | 34 | | { |
| 0 | 35 | | RestClient = new ApplicationDefinitionsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint) |
| 0 | 36 | | _clientDiagnostics = clientDiagnostics; |
| 0 | 37 | | _pipeline = pipeline; |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Gets the managed application definition. </summary> |
| | 41 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 42 | | /// <param name="applicationDefinitionName"> The name of the managed application definition. </param> |
| | 43 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 44 | | public virtual async Task<Response<ApplicationDefinition>> GetAsync(string resourceGroupName, string application |
| | 45 | | { |
| 0 | 46 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.Get"); |
| 0 | 47 | | scope.Start(); |
| | 48 | | try |
| | 49 | | { |
| 0 | 50 | | return await RestClient.GetAsync(resourceGroupName, applicationDefinitionName, cancellationToken).Config |
| | 51 | | } |
| 0 | 52 | | catch (Exception e) |
| | 53 | | { |
| 0 | 54 | | scope.Failed(e); |
| 0 | 55 | | throw; |
| | 56 | | } |
| 0 | 57 | | } |
| | 58 | |
|
| | 59 | | /// <summary> Gets the managed application definition. </summary> |
| | 60 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 61 | | /// <param name="applicationDefinitionName"> The name of the managed application definition. </param> |
| | 62 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 63 | | public virtual Response<ApplicationDefinition> Get(string resourceGroupName, string applicationDefinitionName, C |
| | 64 | | { |
| 0 | 65 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.Get"); |
| 0 | 66 | | scope.Start(); |
| | 67 | | try |
| | 68 | | { |
| 0 | 69 | | return RestClient.Get(resourceGroupName, applicationDefinitionName, cancellationToken); |
| | 70 | | } |
| 0 | 71 | | catch (Exception e) |
| | 72 | | { |
| 0 | 73 | | scope.Failed(e); |
| 0 | 74 | | throw; |
| | 75 | | } |
| 0 | 76 | | } |
| | 77 | |
|
| | 78 | | /// <summary> Gets the managed application definition. </summary> |
| | 79 | | /// <param name="applicationDefinitionId"> The fully qualified ID of the managed application definition, includi |
| | 80 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 81 | | public virtual async Task<Response<ApplicationDefinition>> GetByIdAsync(string applicationDefinitionId, Cancella |
| | 82 | | { |
| 0 | 83 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.GetById"); |
| 0 | 84 | | scope.Start(); |
| | 85 | | try |
| | 86 | | { |
| 0 | 87 | | return await RestClient.GetByIdAsync(applicationDefinitionId, cancellationToken).ConfigureAwait(false); |
| | 88 | | } |
| 0 | 89 | | catch (Exception e) |
| | 90 | | { |
| 0 | 91 | | scope.Failed(e); |
| 0 | 92 | | throw; |
| | 93 | | } |
| 0 | 94 | | } |
| | 95 | |
|
| | 96 | | /// <summary> Gets the managed application definition. </summary> |
| | 97 | | /// <param name="applicationDefinitionId"> The fully qualified ID of the managed application definition, includi |
| | 98 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 99 | | public virtual Response<ApplicationDefinition> GetById(string applicationDefinitionId, CancellationToken cancell |
| | 100 | | { |
| 0 | 101 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.GetById"); |
| 0 | 102 | | scope.Start(); |
| | 103 | | try |
| | 104 | | { |
| 0 | 105 | | return RestClient.GetById(applicationDefinitionId, cancellationToken); |
| | 106 | | } |
| 0 | 107 | | catch (Exception e) |
| | 108 | | { |
| 0 | 109 | | scope.Failed(e); |
| 0 | 110 | | throw; |
| | 111 | | } |
| 0 | 112 | | } |
| | 113 | |
|
| | 114 | | /// <summary> Lists the managed application definitions in a resource group. </summary> |
| | 115 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 116 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 117 | | public virtual AsyncPageable<ApplicationDefinition> ListByResourceGroupAsync(string resourceGroupName, Cancellat |
| | 118 | | { |
| 0 | 119 | | if (resourceGroupName == null) |
| | 120 | | { |
| 0 | 121 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 122 | | } |
| | 123 | |
|
| | 124 | | async Task<Page<ApplicationDefinition>> FirstPageFunc(int? pageSizeHint) |
| | 125 | | { |
| 0 | 126 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.ListByResourceGroup") |
| 0 | 127 | | scope.Start(); |
| | 128 | | try |
| | 129 | | { |
| 0 | 130 | | var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, cancellationToken).Confi |
| 0 | 131 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 132 | | } |
| 0 | 133 | | catch (Exception e) |
| | 134 | | { |
| 0 | 135 | | scope.Failed(e); |
| 0 | 136 | | throw; |
| | 137 | | } |
| 0 | 138 | | } |
| | 139 | | async Task<Page<ApplicationDefinition>> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 140 | | { |
| 0 | 141 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.ListByResourceGroup") |
| 0 | 142 | | scope.Start(); |
| | 143 | | try |
| | 144 | | { |
| 0 | 145 | | var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, cancel |
| 0 | 146 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 147 | | } |
| 0 | 148 | | catch (Exception e) |
| | 149 | | { |
| 0 | 150 | | scope.Failed(e); |
| 0 | 151 | | throw; |
| | 152 | | } |
| 0 | 153 | | } |
| 0 | 154 | | return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); |
| | 155 | | } |
| | 156 | |
|
| | 157 | | /// <summary> Lists the managed application definitions in a resource group. </summary> |
| | 158 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 159 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 160 | | public virtual Pageable<ApplicationDefinition> ListByResourceGroup(string resourceGroupName, CancellationToken c |
| | 161 | | { |
| 0 | 162 | | if (resourceGroupName == null) |
| | 163 | | { |
| 0 | 164 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 165 | | } |
| | 166 | |
|
| | 167 | | Page<ApplicationDefinition> FirstPageFunc(int? pageSizeHint) |
| | 168 | | { |
| 0 | 169 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.ListByResourceGroup") |
| 0 | 170 | | scope.Start(); |
| | 171 | | try |
| | 172 | | { |
| 0 | 173 | | var response = RestClient.ListByResourceGroup(resourceGroupName, cancellationToken); |
| 0 | 174 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 175 | | } |
| 0 | 176 | | catch (Exception e) |
| | 177 | | { |
| 0 | 178 | | scope.Failed(e); |
| 0 | 179 | | throw; |
| | 180 | | } |
| 0 | 181 | | } |
| | 182 | | Page<ApplicationDefinition> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 183 | | { |
| 0 | 184 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.ListByResourceGroup") |
| 0 | 185 | | scope.Start(); |
| | 186 | | try |
| | 187 | | { |
| 0 | 188 | | var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, cancellationToken |
| 0 | 189 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 190 | | } |
| 0 | 191 | | catch (Exception e) |
| | 192 | | { |
| 0 | 193 | | scope.Failed(e); |
| 0 | 194 | | throw; |
| | 195 | | } |
| 0 | 196 | | } |
| 0 | 197 | | return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); |
| | 198 | | } |
| | 199 | |
|
| | 200 | | /// <summary> Deletes the managed application definition. </summary> |
| | 201 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 202 | | /// <param name="applicationDefinitionName"> The name of the managed application definition to delete. </param> |
| | 203 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 204 | | public virtual async Task<ApplicationDefinitionsDeleteOperation> StartDeleteAsync(string resourceGroupName, stri |
| | 205 | | { |
| 0 | 206 | | if (resourceGroupName == null) |
| | 207 | | { |
| 0 | 208 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 209 | | } |
| 0 | 210 | | if (applicationDefinitionName == null) |
| | 211 | | { |
| 0 | 212 | | throw new ArgumentNullException(nameof(applicationDefinitionName)); |
| | 213 | | } |
| | 214 | |
|
| 0 | 215 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartDelete"); |
| 0 | 216 | | scope.Start(); |
| | 217 | | try |
| | 218 | | { |
| 0 | 219 | | var originalResponse = await RestClient.DeleteAsync(resourceGroupName, applicationDefinitionName, cancel |
| 0 | 220 | | return new ApplicationDefinitionsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteR |
| | 221 | | } |
| 0 | 222 | | catch (Exception e) |
| | 223 | | { |
| 0 | 224 | | scope.Failed(e); |
| 0 | 225 | | throw; |
| | 226 | | } |
| 0 | 227 | | } |
| | 228 | |
|
| | 229 | | /// <summary> Deletes the managed application definition. </summary> |
| | 230 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 231 | | /// <param name="applicationDefinitionName"> The name of the managed application definition to delete. </param> |
| | 232 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 233 | | public virtual ApplicationDefinitionsDeleteOperation StartDelete(string resourceGroupName, string applicationDef |
| | 234 | | { |
| 0 | 235 | | if (resourceGroupName == null) |
| | 236 | | { |
| 0 | 237 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 238 | | } |
| 0 | 239 | | if (applicationDefinitionName == null) |
| | 240 | | { |
| 0 | 241 | | throw new ArgumentNullException(nameof(applicationDefinitionName)); |
| | 242 | | } |
| | 243 | |
|
| 0 | 244 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartDelete"); |
| 0 | 245 | | scope.Start(); |
| | 246 | | try |
| | 247 | | { |
| 0 | 248 | | var originalResponse = RestClient.Delete(resourceGroupName, applicationDefinitionName, cancellationToken |
| 0 | 249 | | return new ApplicationDefinitionsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteR |
| | 250 | | } |
| 0 | 251 | | catch (Exception e) |
| | 252 | | { |
| 0 | 253 | | scope.Failed(e); |
| 0 | 254 | | throw; |
| | 255 | | } |
| 0 | 256 | | } |
| | 257 | |
|
| | 258 | | /// <summary> Creates a new managed application definition. </summary> |
| | 259 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 260 | | /// <param name="applicationDefinitionName"> The name of the managed application definition. </param> |
| | 261 | | /// <param name="parameters"> Parameters supplied to the create or update an managed application definition. </p |
| | 262 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 263 | | public virtual async Task<ApplicationDefinitionsCreateOrUpdateOperation> StartCreateOrUpdateAsync(string resourc |
| | 264 | | { |
| 0 | 265 | | if (resourceGroupName == null) |
| | 266 | | { |
| 0 | 267 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 268 | | } |
| 0 | 269 | | if (applicationDefinitionName == null) |
| | 270 | | { |
| 0 | 271 | | throw new ArgumentNullException(nameof(applicationDefinitionName)); |
| | 272 | | } |
| 0 | 273 | | if (parameters == null) |
| | 274 | | { |
| 0 | 275 | | throw new ArgumentNullException(nameof(parameters)); |
| | 276 | | } |
| | 277 | |
|
| 0 | 278 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartCreateOrUpdate"); |
| 0 | 279 | | scope.Start(); |
| | 280 | | try |
| | 281 | | { |
| 0 | 282 | | var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, applicationDefinitionName |
| 0 | 283 | | return new ApplicationDefinitionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.Creat |
| | 284 | | } |
| 0 | 285 | | catch (Exception e) |
| | 286 | | { |
| 0 | 287 | | scope.Failed(e); |
| 0 | 288 | | throw; |
| | 289 | | } |
| 0 | 290 | | } |
| | 291 | |
|
| | 292 | | /// <summary> Creates a new managed application definition. </summary> |
| | 293 | | /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param> |
| | 294 | | /// <param name="applicationDefinitionName"> The name of the managed application definition. </param> |
| | 295 | | /// <param name="parameters"> Parameters supplied to the create or update an managed application definition. </p |
| | 296 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 297 | | public virtual ApplicationDefinitionsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, strin |
| | 298 | | { |
| 0 | 299 | | if (resourceGroupName == null) |
| | 300 | | { |
| 0 | 301 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 302 | | } |
| 0 | 303 | | if (applicationDefinitionName == null) |
| | 304 | | { |
| 0 | 305 | | throw new ArgumentNullException(nameof(applicationDefinitionName)); |
| | 306 | | } |
| 0 | 307 | | if (parameters == null) |
| | 308 | | { |
| 0 | 309 | | throw new ArgumentNullException(nameof(parameters)); |
| | 310 | | } |
| | 311 | |
|
| 0 | 312 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartCreateOrUpdate"); |
| 0 | 313 | | scope.Start(); |
| | 314 | | try |
| | 315 | | { |
| 0 | 316 | | var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, applicationDefinitionName, parameter |
| 0 | 317 | | return new ApplicationDefinitionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.Creat |
| | 318 | | } |
| 0 | 319 | | catch (Exception e) |
| | 320 | | { |
| 0 | 321 | | scope.Failed(e); |
| 0 | 322 | | throw; |
| | 323 | | } |
| 0 | 324 | | } |
| | 325 | |
|
| | 326 | | /// <summary> Deletes the managed application definition. </summary> |
| | 327 | | /// <param name="applicationDefinitionId"> The fully qualified ID of the managed application definition, includi |
| | 328 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 329 | | public virtual async Task<ApplicationDefinitionsDeleteByIdOperation> StartDeleteByIdAsync(string applicationDefi |
| | 330 | | { |
| 0 | 331 | | if (applicationDefinitionId == null) |
| | 332 | | { |
| 0 | 333 | | throw new ArgumentNullException(nameof(applicationDefinitionId)); |
| | 334 | | } |
| | 335 | |
|
| 0 | 336 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartDeleteById"); |
| 0 | 337 | | scope.Start(); |
| | 338 | | try |
| | 339 | | { |
| 0 | 340 | | var originalResponse = await RestClient.DeleteByIdAsync(applicationDefinitionId, cancellationToken).Conf |
| 0 | 341 | | return new ApplicationDefinitionsDeleteByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateDel |
| | 342 | | } |
| 0 | 343 | | catch (Exception e) |
| | 344 | | { |
| 0 | 345 | | scope.Failed(e); |
| 0 | 346 | | throw; |
| | 347 | | } |
| 0 | 348 | | } |
| | 349 | |
|
| | 350 | | /// <summary> Deletes the managed application definition. </summary> |
| | 351 | | /// <param name="applicationDefinitionId"> The fully qualified ID of the managed application definition, includi |
| | 352 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 353 | | public virtual ApplicationDefinitionsDeleteByIdOperation StartDeleteById(string applicationDefinitionId, Cancell |
| | 354 | | { |
| 0 | 355 | | if (applicationDefinitionId == null) |
| | 356 | | { |
| 0 | 357 | | throw new ArgumentNullException(nameof(applicationDefinitionId)); |
| | 358 | | } |
| | 359 | |
|
| 0 | 360 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartDeleteById"); |
| 0 | 361 | | scope.Start(); |
| | 362 | | try |
| | 363 | | { |
| 0 | 364 | | var originalResponse = RestClient.DeleteById(applicationDefinitionId, cancellationToken); |
| 0 | 365 | | return new ApplicationDefinitionsDeleteByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateDel |
| | 366 | | } |
| 0 | 367 | | catch (Exception e) |
| | 368 | | { |
| 0 | 369 | | scope.Failed(e); |
| 0 | 370 | | throw; |
| | 371 | | } |
| 0 | 372 | | } |
| | 373 | |
|
| | 374 | | /// <summary> Creates a new managed application definition. </summary> |
| | 375 | | /// <param name="applicationDefinitionId"> The fully qualified ID of the managed application definition, includi |
| | 376 | | /// <param name="parameters"> Parameters supplied to the create or update a managed application definition. </pa |
| | 377 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 378 | | public virtual async Task<ApplicationDefinitionsCreateOrUpdateByIdOperation> StartCreateOrUpdateByIdAsync(string |
| | 379 | | { |
| 0 | 380 | | if (applicationDefinitionId == null) |
| | 381 | | { |
| 0 | 382 | | throw new ArgumentNullException(nameof(applicationDefinitionId)); |
| | 383 | | } |
| 0 | 384 | | if (parameters == null) |
| | 385 | | { |
| 0 | 386 | | throw new ArgumentNullException(nameof(parameters)); |
| | 387 | | } |
| | 388 | |
|
| 0 | 389 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartCreateOrUpdateById") |
| 0 | 390 | | scope.Start(); |
| | 391 | | try |
| | 392 | | { |
| 0 | 393 | | var originalResponse = await RestClient.CreateOrUpdateByIdAsync(applicationDefinitionId, parameters, can |
| 0 | 394 | | return new ApplicationDefinitionsCreateOrUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.C |
| | 395 | | } |
| 0 | 396 | | catch (Exception e) |
| | 397 | | { |
| 0 | 398 | | scope.Failed(e); |
| 0 | 399 | | throw; |
| | 400 | | } |
| 0 | 401 | | } |
| | 402 | |
|
| | 403 | | /// <summary> Creates a new managed application definition. </summary> |
| | 404 | | /// <param name="applicationDefinitionId"> The fully qualified ID of the managed application definition, includi |
| | 405 | | /// <param name="parameters"> Parameters supplied to the create or update a managed application definition. </pa |
| | 406 | | /// <param name="cancellationToken"> The cancellation token to use. </param> |
| | 407 | | public virtual ApplicationDefinitionsCreateOrUpdateByIdOperation StartCreateOrUpdateById(string applicationDefin |
| | 408 | | { |
| 0 | 409 | | if (applicationDefinitionId == null) |
| | 410 | | { |
| 0 | 411 | | throw new ArgumentNullException(nameof(applicationDefinitionId)); |
| | 412 | | } |
| 0 | 413 | | if (parameters == null) |
| | 414 | | { |
| 0 | 415 | | throw new ArgumentNullException(nameof(parameters)); |
| | 416 | | } |
| | 417 | |
|
| 0 | 418 | | using var scope = _clientDiagnostics.CreateScope("ApplicationDefinitionsOperations.StartCreateOrUpdateById") |
| 0 | 419 | | scope.Start(); |
| | 420 | | try |
| | 421 | | { |
| 0 | 422 | | var originalResponse = RestClient.CreateOrUpdateById(applicationDefinitionId, parameters, cancellationTo |
| 0 | 423 | | return new ApplicationDefinitionsCreateOrUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.C |
| | 424 | | } |
| 0 | 425 | | catch (Exception e) |
| | 426 | | { |
| 0 | 427 | | scope.Failed(e); |
| 0 | 428 | | throw; |
| | 429 | | } |
| 0 | 430 | | } |
| | 431 | | } |
| | 432 | | } |