Class: LabClient::Tags
- Defined in:
 - lib/labclient/tags/list.rb,
lib/labclient/tags/show.rb,
lib/labclient/tags/create.rb,
lib/labclient/tags/delete.rb,
lib/labclient/tags/update.rb,
lib/labclient/tags/release.rb 
Overview
Specifics
Constant Summary
Constants included from AccessLevel
AccessLevel::HUMAN_ACCESS_LEVELS, AccessLevel::MACHINE_ACCESS_LEVELS
Instance Attribute Summary
Attributes inherited from Common
Instance Method Summary collapse
- #create(project_id, query) ⇒ Object
 - #delete(project_id, tag_id) ⇒ Object
 - #list(project_id, query = {}) ⇒ Object
 - #release(project_id, tag_id, description) ⇒ Object
 - #show(project_id, tag_id) ⇒ Object
 - #update(project_id, tag_id, description) ⇒ Object
 
Methods inherited from Common
#api_methods, #api_methods_help, #format_id, #format_query_id, #format_query_ids, #format_time?, #group_name, #help, #initialize, #inspect, #klass, #protected_query_access_level, #query_access_level, #query_format_time
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from AccessLevel
#human_access_level, #human_protected_access_level, #machine_access_level, #machine_protected_access_level
Constructor Details
This class inherits a constructor from LabClient::Common
Instance Method Details
#create(project_id, query) ⇒ Object
      28 29 30 31 32  | 
    
      # File 'lib/labclient/tags/create.rb', line 28 def create(project_id, query) project_id = format_id(project_id) client.request(:post, "projects/#{project_id}/repository/tags", klass: Tag, body: query) end  | 
  
#delete(project_id, tag_id) ⇒ Object
      18 19 20 21 22 23  | 
    
      # File 'lib/labclient/tags/delete.rb', line 18 def delete(project_id, tag_id) project_id = format_id(project_id) tag_id = format_id(tag_id) client.request(:delete, "projects/#{project_id}/repository/tags/#{tag_id}", klass: Tag) end  | 
  
#list(project_id, query = {}) ⇒ Object
      28 29 30 31 32  | 
    
      # File 'lib/labclient/tags/list.rb', line 28 def list(project_id, query = {}) project_id = format_id(project_id) client.request(:get, "projects/#{project_id}/repository/tags", klass: Tag, body: query) end  | 
  
#release(project_id, tag_id, description) ⇒ Object
      20 21 22 23 24 25  | 
    
      # File 'lib/labclient/tags/release.rb', line 20 def release(project_id, tag_id, description) project_id = format_id(project_id) tag_id = format_id(tag_id) client.request(:post, "projects/#{project_id}/repository/tags/#{tag_id}/release", body: { description: description }) end  | 
  
#show(project_id, tag_id) ⇒ Object
      19 20 21 22 23 24  | 
    
      # File 'lib/labclient/tags/show.rb', line 19 def show(project_id, tag_id) project_id = format_id(project_id) tag_id = format_id(tag_id) client.request(:get, "projects/#{project_id}/repository/tags/#{tag_id}", klass: Tag) end  | 
  
#update(project_id, tag_id, description) ⇒ Object
      20 21 22 23 24 25  | 
    
      # File 'lib/labclient/tags/update.rb', line 20 def update(project_id, tag_id, description) project_id = format_id(project_id) tag_id = format_id(tag_id) client.request(:put, "projects/#{project_id}/repository/tags/#{tag_id}/release", body: { description: description }) end  |