public virtual Response <FlowLogResource> Update(TagsObject tagsObject, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tagsObject, nameof(tagsObject)); using var scope = _flowLogClientDiagnostics.CreateScope("FlowLogResource.Update"); scope.Start(); try { var response = _flowLogRestClient.UpdateTags(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, tagsObject, cancellationToken); return(Response.FromValue(new FlowLogResource(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual Response <FlowLog> Update(TagsObject parameters, CancellationToken cancellationToken = default) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } using var scope = _flowLogClientDiagnostics.CreateScope("FlowLog.Update"); scope.Start(); try { var response = _flowLogRestClient.UpdateTags(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, parameters, cancellationToken); return(Response.FromValue(new FlowLog(ArmClient, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }