예제 #1
0
        /// <summary>
        /// Creates a new default group
        /// </summary>
        /// <param name="name">The name of the group</param>
        /// <returns></returns>
        public Group CreateGroup(string name)
        {
            var group = new Group {
                name = name
            };

            return(_sharpBucketV1.Post(group, _baseUrl));
        }
        /// <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));
        }