class Tinybucket::Api::BranchRestrictionsApi
BranchRestrictions API client
branch-restrictions Resource
@!attribute [rw] repo_owner
@return [String] repository owner name.
@!attribute [rw] repo_slug
@return [String] {https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D repository slug}.
Attributes
repo_owner[RW]
repo_slug[RW]
Public Instance Methods
find(restriction_id, options = {})
click to toggle source
Send 'GET a specific restriction' request.
GET a specific restriction
@param restriction_id [String] The restriction's identifier @param options [Hash] @return [Tinybucket::Model::BranchRestriction]
# File lib/tinybucket/api/branch_restrictions_api.rb, line 42 def find(restriction_id, options = {}) get_path( path_to_find(restriction_id), options, get_parser(:object, Tinybucket::Model::BranchRestriction) ) end
list(options = {})
click to toggle source
Send 'GET the branch-restrictions' request.
GET the branch-restrictions
@param options [Hash] @return [Tinybucket::Model::Page]
# File lib/tinybucket/api/branch_restrictions_api.rb, line 26 def list(options = {}) get_path( path_to_list, options, get_parser(:collection, Tinybucket::Model::BranchRestriction) ) end