public virtual Response <VpnServerConfigurationResource> Update(TagsObject vpnServerConfigurationParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNull(vpnServerConfigurationParameters, nameof(vpnServerConfigurationParameters)); using var scope = _vpnServerConfigurationClientDiagnostics.CreateScope("VpnServerConfigurationResource.Update"); scope.Start(); try { var response = _vpnServerConfigurationRestClient.UpdateTags(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vpnServerConfigurationParameters, cancellationToken); return(Response.FromValue(new VpnServerConfigurationResource(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual Response <VpnServerConfiguration> UpdateTags(TagsObject vpnServerConfigurationParameters, CancellationToken cancellationToken = default) { if (vpnServerConfigurationParameters == null) { throw new ArgumentNullException(nameof(vpnServerConfigurationParameters)); } using var scope = _clientDiagnostics.CreateScope("VpnServerConfiguration.UpdateTags"); scope.Start(); try { var response = _restClient.UpdateTags(Id.ResourceGroupName, Id.Name, vpnServerConfigurationParameters, cancellationToken); return(Response.FromValue(new VpnServerConfiguration(this, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }