예제 #1
0
 internal BranchRestriction PutBranchRestriction(string accountName, string repository, BranchRestriction restriction)
 {
     var overrideUrl = GetRepositoryUrl(accountName, repository, "branch-restrictions/" + restriction.id);
     return _sharpBucketV2.Put(restriction, overrideUrl);
 }
 /// <summary>
 /// Updates a specific branch restriction. You cannot change the kind value with this call. 
 /// </summary>
 /// <param name="restriction">The branch restriction.</param>
 /// <returns></returns>
 public BranchRestriction PutBranchRestriction(BranchRestriction restriction)
 {
     return _repositoriesEndPoint.PutBranchRestriction(_accountName, _repository, restriction);
 }