public virtual async Task <Response <ApplicationGateway> > UpdateTagsAsync(TagsObject parameters, CancellationToken cancellationToken = default) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } using var scope = _clientDiagnostics.CreateScope("ApplicationGateway.UpdateTags"); scope.Start(); try { var response = await _restClient.UpdateTagsAsync(Id.ResourceGroupName, Id.Name, parameters, cancellationToken).ConfigureAwait(false); return(Response.FromValue(new ApplicationGateway(this, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }