public virtual Response <VMwareCluster> Update(ResourcePatch body = null, CancellationToken cancellationToken = default) { using var scope = _vMwareClusterClustersClientDiagnostics.CreateScope("VMwareCluster.Update"); scope.Start(); try { var response = _vMwareClusterClustersRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken); return(Response.FromValue(new VMwareCluster(ArmClient, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual Response <VMwareClusterResource> Update(ResourcePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); using var scope = _vMwareClusterClustersClientDiagnostics.CreateScope("VMwareClusterResource.Update"); scope.Start(); try { var response = _vMwareClusterClustersRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); return(Response.FromValue(new VMwareClusterResource(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }