< Summary

Class:Azure.ResourceManager.Resources.ApplicationsOperations
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\ApplicationsOperations.cs
Covered lines:0
Uncovered lines:232
Coverable lines:232
Total lines:584
Line coverage:0% (0 of 232)
Covered branches:0
Total branches:36
Branch coverage:0% (0 of 36)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_RestClient()-0%100%
.ctor()-0%100%
.ctor(...)-0%100%
GetAsync()-0%100%
Get(...)-0%100%
UpdateAsync()-0%100%
Update(...)-0%100%
GetByIdAsync()-0%100%
GetById(...)-0%100%
UpdateByIdAsync()-0%100%
UpdateById(...)-0%100%
ListByResourceGroupAsync(...)-0%0%
<ListByResourceGroupAsync()-0%100%
<ListByResourceGroupAsync()-0%100%
ListByResourceGroup(...)-0%0%
<ListBySubscriptionAsync()-0%100%
<ListBySubscriptionAsync()-0%100%
ListBySubscriptionAsync(...)-0%100%
ListBySubscription(...)-0%100%
StartDeleteAsync()-0%0%
StartDelete(...)-0%0%
StartCreateOrUpdateAsync()-0%0%
StartCreateOrUpdate(...)-0%0%
StartDeleteByIdAsync()-0%0%
StartDeleteById(...)-0%0%
StartCreateOrUpdateByIdAsync()-0%0%
StartCreateOrUpdateById(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\ApplicationsOperations.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Threading;
 10using System.Threading.Tasks;
 11using Azure;
 12using Azure.Core;
 13using Azure.Core.Pipeline;
 14using Azure.ResourceManager.Resources.Models;
 15
 16namespace Azure.ResourceManager.Resources
 17{
 18    /// <summary> The Applications service client. </summary>
 19    public partial class ApplicationsOperations
 20    {
 21        private readonly ClientDiagnostics _clientDiagnostics;
 22        private readonly HttpPipeline _pipeline;
 023        internal ApplicationsRestOperations RestClient { get; }
 24        /// <summary> Initializes a new instance of ApplicationsOperations for mocking. </summary>
 025        protected ApplicationsOperations()
 26        {
 027        }
 28        /// <summary> Initializes a new instance of ApplicationsOperations. </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>
 033        internal ApplicationsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionI
 34        {
 035            RestClient = new ApplicationsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
 036            _clientDiagnostics = clientDiagnostics;
 037            _pipeline = pipeline;
 038        }
 39
 40        /// <summary> Gets the managed application. </summary>
 41        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 42        /// <param name="applicationName"> The name of the managed application. </param>
 43        /// <param name="cancellationToken"> The cancellation token to use. </param>
 44        public virtual async Task<Response<Application>> GetAsync(string resourceGroupName, string applicationName, Canc
 45        {
 046            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.Get");
 047            scope.Start();
 48            try
 49            {
 050                return await RestClient.GetAsync(resourceGroupName, applicationName, cancellationToken).ConfigureAwait(f
 51            }
 052            catch (Exception e)
 53            {
 054                scope.Failed(e);
 055                throw;
 56            }
 057        }
 58
 59        /// <summary> Gets the managed application. </summary>
 60        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 61        /// <param name="applicationName"> The name of the managed application. </param>
 62        /// <param name="cancellationToken"> The cancellation token to use. </param>
 63        public virtual Response<Application> Get(string resourceGroupName, string applicationName, CancellationToken can
 64        {
 065            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.Get");
 066            scope.Start();
 67            try
 68            {
 069                return RestClient.Get(resourceGroupName, applicationName, cancellationToken);
 70            }
 071            catch (Exception e)
 72            {
 073                scope.Failed(e);
 074                throw;
 75            }
 076        }
 77
 78        /// <summary> Updates an existing managed application. The only value that can be updated via PATCH currently is
 79        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 80        /// <param name="applicationName"> The name of the managed application. </param>
 81        /// <param name="parameters"> Parameters supplied to update an existing managed application. </param>
 82        /// <param name="cancellationToken"> The cancellation token to use. </param>
 83        public virtual async Task<Response<Application>> UpdateAsync(string resourceGroupName, string applicationName, A
 84        {
 085            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.Update");
 086            scope.Start();
 87            try
 88            {
 089                return await RestClient.UpdateAsync(resourceGroupName, applicationName, parameters, cancellationToken).C
 90            }
 091            catch (Exception e)
 92            {
 093                scope.Failed(e);
 094                throw;
 95            }
 096        }
 97
 98        /// <summary> Updates an existing managed application. The only value that can be updated via PATCH currently is
 99        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 100        /// <param name="applicationName"> The name of the managed application. </param>
 101        /// <param name="parameters"> Parameters supplied to update an existing managed application. </param>
 102        /// <param name="cancellationToken"> The cancellation token to use. </param>
 103        public virtual Response<Application> Update(string resourceGroupName, string applicationName, Application parame
 104        {
 0105            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.Update");
 0106            scope.Start();
 107            try
 108            {
 0109                return RestClient.Update(resourceGroupName, applicationName, parameters, cancellationToken);
 110            }
 0111            catch (Exception e)
 112            {
 0113                scope.Failed(e);
 0114                throw;
 115            }
 0116        }
 117
 118        /// <summary> Gets the managed application. </summary>
 119        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 120        /// <param name="cancellationToken"> The cancellation token to use. </param>
 121        public virtual async Task<Response<Application>> GetByIdAsync(string applicationId, CancellationToken cancellati
 122        {
 0123            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.GetById");
 0124            scope.Start();
 125            try
 126            {
 0127                return await RestClient.GetByIdAsync(applicationId, cancellationToken).ConfigureAwait(false);
 128            }
 0129            catch (Exception e)
 130            {
 0131                scope.Failed(e);
 0132                throw;
 133            }
 0134        }
 135
 136        /// <summary> Gets the managed application. </summary>
 137        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 138        /// <param name="cancellationToken"> The cancellation token to use. </param>
 139        public virtual Response<Application> GetById(string applicationId, CancellationToken cancellationToken = default
 140        {
 0141            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.GetById");
 0142            scope.Start();
 143            try
 144            {
 0145                return RestClient.GetById(applicationId, cancellationToken);
 146            }
 0147            catch (Exception e)
 148            {
 0149                scope.Failed(e);
 0150                throw;
 151            }
 0152        }
 153
 154        /// <summary> Updates an existing managed application. The only value that can be updated via PATCH currently is
 155        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 156        /// <param name="parameters"> Parameters supplied to update an existing managed application. </param>
 157        /// <param name="cancellationToken"> The cancellation token to use. </param>
 158        public virtual async Task<Response<Application>> UpdateByIdAsync(string applicationId, Application parameters = 
 159        {
 0160            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.UpdateById");
 0161            scope.Start();
 162            try
 163            {
 0164                return await RestClient.UpdateByIdAsync(applicationId, parameters, cancellationToken).ConfigureAwait(fal
 165            }
 0166            catch (Exception e)
 167            {
 0168                scope.Failed(e);
 0169                throw;
 170            }
 0171        }
 172
 173        /// <summary> Updates an existing managed application. The only value that can be updated via PATCH currently is
 174        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 175        /// <param name="parameters"> Parameters supplied to update an existing managed application. </param>
 176        /// <param name="cancellationToken"> The cancellation token to use. </param>
 177        public virtual Response<Application> UpdateById(string applicationId, Application parameters = null, Cancellatio
 178        {
 0179            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.UpdateById");
 0180            scope.Start();
 181            try
 182            {
 0183                return RestClient.UpdateById(applicationId, parameters, cancellationToken);
 184            }
 0185            catch (Exception e)
 186            {
 0187                scope.Failed(e);
 0188                throw;
 189            }
 0190        }
 191
 192        /// <summary> Gets all the applications within a resource group. </summary>
 193        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 194        /// <param name="cancellationToken"> The cancellation token to use. </param>
 195        public virtual AsyncPageable<Application> ListByResourceGroupAsync(string resourceGroupName, CancellationToken c
 196        {
 0197            if (resourceGroupName == null)
 198            {
 0199                throw new ArgumentNullException(nameof(resourceGroupName));
 200            }
 201
 202            async Task<Page<Application>> FirstPageFunc(int? pageSizeHint)
 203            {
 0204                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListByResourceGroup");
 0205                scope.Start();
 206                try
 207                {
 0208                    var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, cancellationToken).Confi
 0209                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 210                }
 0211                catch (Exception e)
 212                {
 0213                    scope.Failed(e);
 0214                    throw;
 215                }
 0216            }
 217            async Task<Page<Application>> NextPageFunc(string nextLink, int? pageSizeHint)
 218            {
 0219                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListByResourceGroup");
 0220                scope.Start();
 221                try
 222                {
 0223                    var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, cancel
 0224                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 225                }
 0226                catch (Exception e)
 227                {
 0228                    scope.Failed(e);
 0229                    throw;
 230                }
 0231            }
 0232            return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc);
 233        }
 234
 235        /// <summary> Gets all the applications within a resource group. </summary>
 236        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 237        /// <param name="cancellationToken"> The cancellation token to use. </param>
 238        public virtual Pageable<Application> ListByResourceGroup(string resourceGroupName, CancellationToken cancellatio
 239        {
 0240            if (resourceGroupName == null)
 241            {
 0242                throw new ArgumentNullException(nameof(resourceGroupName));
 243            }
 244
 245            Page<Application> FirstPageFunc(int? pageSizeHint)
 246            {
 0247                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListByResourceGroup");
 0248                scope.Start();
 249                try
 250                {
 0251                    var response = RestClient.ListByResourceGroup(resourceGroupName, cancellationToken);
 0252                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 253                }
 0254                catch (Exception e)
 255                {
 0256                    scope.Failed(e);
 0257                    throw;
 258                }
 0259            }
 260            Page<Application> NextPageFunc(string nextLink, int? pageSizeHint)
 261            {
 0262                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListByResourceGroup");
 0263                scope.Start();
 264                try
 265                {
 0266                    var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, cancellationToken
 0267                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 268                }
 0269                catch (Exception e)
 270                {
 0271                    scope.Failed(e);
 0272                    throw;
 273                }
 0274            }
 0275            return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc);
 276        }
 277
 278        /// <summary> Gets all the applications within a subscription. </summary>
 279        /// <param name="cancellationToken"> The cancellation token to use. </param>
 280        public virtual AsyncPageable<Application> ListBySubscriptionAsync(CancellationToken cancellationToken = default)
 281        {
 282            async Task<Page<Application>> FirstPageFunc(int? pageSizeHint)
 283            {
 0284                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListBySubscription");
 0285                scope.Start();
 286                try
 287                {
 0288                    var response = await RestClient.ListBySubscriptionAsync(cancellationToken).ConfigureAwait(false);
 0289                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 290                }
 0291                catch (Exception e)
 292                {
 0293                    scope.Failed(e);
 0294                    throw;
 295                }
 0296            }
 297            async Task<Page<Application>> NextPageFunc(string nextLink, int? pageSizeHint)
 298            {
 0299                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListBySubscription");
 0300                scope.Start();
 301                try
 302                {
 0303                    var response = await RestClient.ListBySubscriptionNextPageAsync(nextLink, cancellationToken).Configu
 0304                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 305                }
 0306                catch (Exception e)
 307                {
 0308                    scope.Failed(e);
 0309                    throw;
 310                }
 0311            }
 0312            return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc);
 313        }
 314
 315        /// <summary> Gets all the applications within a subscription. </summary>
 316        /// <param name="cancellationToken"> The cancellation token to use. </param>
 317        public virtual Pageable<Application> ListBySubscription(CancellationToken cancellationToken = default)
 318        {
 319            Page<Application> FirstPageFunc(int? pageSizeHint)
 320            {
 0321                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListBySubscription");
 0322                scope.Start();
 323                try
 324                {
 0325                    var response = RestClient.ListBySubscription(cancellationToken);
 0326                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 327                }
 0328                catch (Exception e)
 329                {
 0330                    scope.Failed(e);
 0331                    throw;
 332                }
 0333            }
 334            Page<Application> NextPageFunc(string nextLink, int? pageSizeHint)
 335            {
 0336                using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.ListBySubscription");
 0337                scope.Start();
 338                try
 339                {
 0340                    var response = RestClient.ListBySubscriptionNextPage(nextLink, cancellationToken);
 0341                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 342                }
 0343                catch (Exception e)
 344                {
 0345                    scope.Failed(e);
 0346                    throw;
 347                }
 0348            }
 0349            return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc);
 350        }
 351
 352        /// <summary> Deletes the managed application. </summary>
 353        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 354        /// <param name="applicationName"> The name of the managed application. </param>
 355        /// <param name="cancellationToken"> The cancellation token to use. </param>
 356        public virtual async Task<ApplicationsDeleteOperation> StartDeleteAsync(string resourceGroupName, string applica
 357        {
 0358            if (resourceGroupName == null)
 359            {
 0360                throw new ArgumentNullException(nameof(resourceGroupName));
 361            }
 0362            if (applicationName == null)
 363            {
 0364                throw new ArgumentNullException(nameof(applicationName));
 365            }
 366
 0367            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartDelete");
 0368            scope.Start();
 369            try
 370            {
 0371                var originalResponse = await RestClient.DeleteAsync(resourceGroupName, applicationName, cancellationToke
 0372                return new ApplicationsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(res
 373            }
 0374            catch (Exception e)
 375            {
 0376                scope.Failed(e);
 0377                throw;
 378            }
 0379        }
 380
 381        /// <summary> Deletes the managed application. </summary>
 382        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 383        /// <param name="applicationName"> The name of the managed application. </param>
 384        /// <param name="cancellationToken"> The cancellation token to use. </param>
 385        public virtual ApplicationsDeleteOperation StartDelete(string resourceGroupName, string applicationName, Cancell
 386        {
 0387            if (resourceGroupName == null)
 388            {
 0389                throw new ArgumentNullException(nameof(resourceGroupName));
 390            }
 0391            if (applicationName == null)
 392            {
 0393                throw new ArgumentNullException(nameof(applicationName));
 394            }
 395
 0396            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartDelete");
 0397            scope.Start();
 398            try
 399            {
 0400                var originalResponse = RestClient.Delete(resourceGroupName, applicationName, cancellationToken);
 0401                return new ApplicationsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(res
 402            }
 0403            catch (Exception e)
 404            {
 0405                scope.Failed(e);
 0406                throw;
 407            }
 0408        }
 409
 410        /// <summary> Creates a new managed application. </summary>
 411        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 412        /// <param name="applicationName"> The name of the managed application. </param>
 413        /// <param name="parameters"> Parameters supplied to the create or update a managed application. </param>
 414        /// <param name="cancellationToken"> The cancellation token to use. </param>
 415        public virtual async Task<ApplicationsCreateOrUpdateOperation> StartCreateOrUpdateAsync(string resourceGroupName
 416        {
 0417            if (resourceGroupName == null)
 418            {
 0419                throw new ArgumentNullException(nameof(resourceGroupName));
 420            }
 0421            if (applicationName == null)
 422            {
 0423                throw new ArgumentNullException(nameof(applicationName));
 424            }
 0425            if (parameters == null)
 426            {
 0427                throw new ArgumentNullException(nameof(parameters));
 428            }
 429
 0430            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartCreateOrUpdate");
 0431            scope.Start();
 432            try
 433            {
 0434                var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, applicationName, paramete
 0435                return new ApplicationsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrU
 436            }
 0437            catch (Exception e)
 438            {
 0439                scope.Failed(e);
 0440                throw;
 441            }
 0442        }
 443
 444        /// <summary> Creates a new managed application. </summary>
 445        /// <param name="resourceGroupName"> The name of the resource group. The name is case insensitive. </param>
 446        /// <param name="applicationName"> The name of the managed application. </param>
 447        /// <param name="parameters"> Parameters supplied to the create or update a managed application. </param>
 448        /// <param name="cancellationToken"> The cancellation token to use. </param>
 449        public virtual ApplicationsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string applicat
 450        {
 0451            if (resourceGroupName == null)
 452            {
 0453                throw new ArgumentNullException(nameof(resourceGroupName));
 454            }
 0455            if (applicationName == null)
 456            {
 0457                throw new ArgumentNullException(nameof(applicationName));
 458            }
 0459            if (parameters == null)
 460            {
 0461                throw new ArgumentNullException(nameof(parameters));
 462            }
 463
 0464            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartCreateOrUpdate");
 0465            scope.Start();
 466            try
 467            {
 0468                var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, applicationName, parameters, cancell
 0469                return new ApplicationsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrU
 470            }
 0471            catch (Exception e)
 472            {
 0473                scope.Failed(e);
 0474                throw;
 475            }
 0476        }
 477
 478        /// <summary> Deletes the managed application. </summary>
 479        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 480        /// <param name="cancellationToken"> The cancellation token to use. </param>
 481        public virtual async Task<ApplicationsDeleteByIdOperation> StartDeleteByIdAsync(string applicationId, Cancellati
 482        {
 0483            if (applicationId == null)
 484            {
 0485                throw new ArgumentNullException(nameof(applicationId));
 486            }
 487
 0488            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartDeleteById");
 0489            scope.Start();
 490            try
 491            {
 0492                var originalResponse = await RestClient.DeleteByIdAsync(applicationId, cancellationToken).ConfigureAwait
 0493                return new ApplicationsDeleteByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteByIdReq
 494            }
 0495            catch (Exception e)
 496            {
 0497                scope.Failed(e);
 0498                throw;
 499            }
 0500        }
 501
 502        /// <summary> Deletes the managed application. </summary>
 503        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 504        /// <param name="cancellationToken"> The cancellation token to use. </param>
 505        public virtual ApplicationsDeleteByIdOperation StartDeleteById(string applicationId, CancellationToken cancellat
 506        {
 0507            if (applicationId == null)
 508            {
 0509                throw new ArgumentNullException(nameof(applicationId));
 510            }
 511
 0512            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartDeleteById");
 0513            scope.Start();
 514            try
 515            {
 0516                var originalResponse = RestClient.DeleteById(applicationId, cancellationToken);
 0517                return new ApplicationsDeleteByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteByIdReq
 518            }
 0519            catch (Exception e)
 520            {
 0521                scope.Failed(e);
 0522                throw;
 523            }
 0524        }
 525
 526        /// <summary> Creates a new managed application. </summary>
 527        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 528        /// <param name="parameters"> Parameters supplied to the create or update a managed application. </param>
 529        /// <param name="cancellationToken"> The cancellation token to use. </param>
 530        public virtual async Task<ApplicationsCreateOrUpdateByIdOperation> StartCreateOrUpdateByIdAsync(string applicati
 531        {
 0532            if (applicationId == null)
 533            {
 0534                throw new ArgumentNullException(nameof(applicationId));
 535            }
 0536            if (parameters == null)
 537            {
 0538                throw new ArgumentNullException(nameof(parameters));
 539            }
 540
 0541            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartCreateOrUpdateById");
 0542            scope.Start();
 543            try
 544            {
 0545                var originalResponse = await RestClient.CreateOrUpdateByIdAsync(applicationId, parameters, cancellationT
 0546                return new ApplicationsCreateOrUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreat
 547            }
 0548            catch (Exception e)
 549            {
 0550                scope.Failed(e);
 0551                throw;
 552            }
 0553        }
 554
 555        /// <summary> Creates a new managed application. </summary>
 556        /// <param name="applicationId"> The fully qualified ID of the managed application, including the managed applic
 557        /// <param name="parameters"> Parameters supplied to the create or update a managed application. </param>
 558        /// <param name="cancellationToken"> The cancellation token to use. </param>
 559        public virtual ApplicationsCreateOrUpdateByIdOperation StartCreateOrUpdateById(string applicationId, Application
 560        {
 0561            if (applicationId == null)
 562            {
 0563                throw new ArgumentNullException(nameof(applicationId));
 564            }
 0565            if (parameters == null)
 566            {
 0567                throw new ArgumentNullException(nameof(parameters));
 568            }
 569
 0570            using var scope = _clientDiagnostics.CreateScope("ApplicationsOperations.StartCreateOrUpdateById");
 0571            scope.Start();
 572            try
 573            {
 0574                var originalResponse = RestClient.CreateOrUpdateById(applicationId, parameters, cancellationToken);
 0575                return new ApplicationsCreateOrUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreat
 576            }
 0577            catch (Exception e)
 578            {
 0579                scope.Failed(e);
 0580                throw;
 581            }
 0582        }
 583    }
 584}