public DeploymentSettingsResource Modify(ProjectResource projectResource, DeploymentSettingsResource resource, string commitMessage = null)
        {
            if (!projectResource.IsVersionControlled)
            {
                return(client.Update(projectResource.Link("DeploymentSettings"), resource));
            }

            var commitResource = new CommitResource <DeploymentSettingsResource>
            {
                Resource      = resource,
                CommitMessage = commitMessage
            };

            client.Put(resource.Link("Self"), commitResource);

            return(client.Get <DeploymentSettingsResource>(resource.Link("Self")));
        }
 public DeploymentSettingsResource Modify(DeploymentSettingsResource deploymentSettings)
 {
     client.Put(deploymentSettings.Link("Self"), deploymentSettings);
     return(client.Get <DeploymentSettingsResource>(deploymentSettings.Link("Self")));
 }
Example #3
0
        public async Task <DeploymentSettingsResource> Modify(DeploymentSettingsResource deploymentSettings)
        {
            await client.Put(deploymentSettings.Link("Self"), deploymentSettings);

            return(await client.Get <DeploymentSettingsResource>(deploymentSettings.Link("Self")));
        }