public TResource Modify(TResource resource) { if (resource == null) { throw new ArgumentNullException(nameof(resource)); } return(client.Update(resource.Links["Self"], resource)); }
public virtual TResource Modify(TResource resource) { if (resource == null) { throw new ArgumentNullException(nameof(resource)); } AssertSpaceIdMatchesResource(resource); return(client.Update(resource.Links["Self"], resource)); }
public virtual TResource Modify(TResource resource) { ThrowIfServerVersionIsNotCompatible(); if (resource == null) { throw new ArgumentNullException(nameof(resource)); } AssertSpaceIdMatchesResource(resource); return(client.Update(resource.Links["Self"], resource)); }
public DeploymentProcessResource Modify(ProjectResource projectResource, DeploymentProcessResource resource, string commitMessage = null) { if (!projectResource.IsVersionControlled) { return(client.Update(projectResource.Link("DeploymentProcess"), resource)); } var commitResource = new CommitResource <DeploymentProcessResource> { Resource = resource, CommitMessage = commitMessage }; client.Put(resource.Link("Self"), commitResource); return(client.Get <DeploymentProcessResource>(resource.Link("Self"))); }
public TResource Modify(TResource resource) { return(client.Update(resource.Links["Self"], resource)); }
public T Modify <T>(T configurationResource) where T : class, IResource, new() { var configurationItem = GetConfigurationItem(configurationResource); return(client.Update(configurationItem.Link("Values"), configurationResource)); }
public DashboardConfigurationResource ModifyDashboardConfiguration(DashboardConfigurationResource resource) { return(client.Update(client.RootDocument.Link("DashboardConfiguration"), resource)); }
public BackupConfigurationResource ModifyConfiguration(BackupConfigurationResource backupConfiguration) { return(client.Update(backupConfiguration.Link("Self"), backupConfiguration)); }
public PerformanceConfigurationResource Modify(PerformanceConfigurationResource resource) { return(client.Update(client.RootDocument.Link("PerformanceConfiguration"), resource)); }
public ActionTemplateResource Modify(ActionTemplateResource resource) { return(client.Update(resource.Links["Self"], resource)); }
public FeaturesConfigurationResource ModifyFeaturesConfiguration(FeaturesConfigurationResource resource) { return(client.Update(client.RootDocument.Link("FeaturesConfiguration"), resource)); }