Пример #1
0
 /// <summary>
 /// Deletes the key specified by the key_id value. This call requires authentication. 
 /// </summary>
 /// <param name="key">The key identifier assigned by Bitbucket. Use the GET call to obtain this value.</param>
 /// <returns></returns>
 public SSH DeleteDeployKey(SSH key)
 {
     var overrideUrl = _baserUrl + "deploy-keys/" + key.pk + "/";
     return _sharpBucketV1.Delete(key, overrideUrl);
 }
Пример #2
0
 /// <summary>
 /// Creates a key on the specified account. You must supply a valid key that is unique across the Bitbucket service. 
 /// A public key contains characters need to be escaped before sending it as a POST data. So, use the proper escaping ( urlencode ), 
 /// if you are testing to add a key via your terminal. This call requires authentication. 
 /// </summary>
 /// <param name="key">The key.</param>
 /// <returns></returns>
 public SSH PostDeployKey(SSH key)
 {
     var overrideUrl = _baserUrl + "deploy-keys/";
     return _sharpBucketV1.Post(key, overrideUrl);
 }