Class: Gitabu::Api::V3::Projects
- Inherits:
-
Object
- Object
- Gitabu::Api::V3::Projects
- Defined in:
- lib/gitabu/api/v3/projects.rb
Overview
Projects endpoints.
Class Method Summary collapse
- .add_project_collaborator(project_id: nil, username: nil, permission: nil, options: nil) ⇒ Object
- .create_a_project_card(column_id: nil, note: nil, content_id: nil, content_type: nil, options: nil) ⇒ Object
- .create_a_project_column(project_id: nil, name: nil, options: nil) ⇒ Object
- .create_a_repository_project(owner: nil, repo: nil, name: nil, body: nil, options: nil) ⇒ Object
- .create_a_user_project(name: nil, body: nil, options: nil) ⇒ Object
- .create_an_organization_project(org: nil, name: nil, body: nil, options: nil) ⇒ Object
- .delete_a_project(project_id: nil, options: nil) ⇒ Object
- .delete_a_project_card(card_id: nil, options: nil) ⇒ Object
- .delete_a_project_column(column_id: nil, options: nil) ⇒ Object
- .get_a_project(project_id: nil, options: nil) ⇒ Object
- .get_a_project_card(card_id: nil, options: nil) ⇒ Object
- .get_a_project_column(column_id: nil, options: nil) ⇒ Object
- .get_project_permission_for_a_user(project_id: nil, username: nil, options: nil) ⇒ Object
- .list_organization_projects(org: nil, options: nil) ⇒ Object
- .list_project_cards(column_id: nil, options: nil) ⇒ Object
- .list_project_collaborators(project_id: nil, options: nil) ⇒ Object
- .list_project_columns(project_id: nil, options: nil) ⇒ Object
- .list_repository_projects(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_user_projects(username: nil, options: nil) ⇒ Object
- .move_a_project_card(card_id: nil, position: nil, column_id: nil, options: nil) ⇒ Object
- .move_a_project_column(column_id: nil, position: nil, options: nil) ⇒ Object
- .remove_user_as_a_collaborator(project_id: nil, username: nil, options: nil) ⇒ Object
- .update_a_project(project_id: nil, name: nil, body: nil, state: nil, organization_permission: nil, private: nil, options: nil) ⇒ Object
- .update_an_existing_project_card(card_id: nil, note: nil, archived: nil, options: nil) ⇒ Object
- .update_an_existing_project_column(column_id: nil, name: nil, options: nil) ⇒ Object
Class Method Details
.add_project_collaborator(project_id: nil, username: nil, permission: nil, options: nil) ⇒ Object
102 103 104 |
# File 'lib/gitabu/api/v3/projects.rb', line 102 def self.add_project_collaborator(project_id: nil, username: nil, permission: nil, options: nil) new.add_project_collaborator(project_id, username, , ) end |
.create_a_project_card(column_id: nil, note: nil, content_id: nil, content_type: nil, options: nil) ⇒ Object
94 95 96 |
# File 'lib/gitabu/api/v3/projects.rb', line 94 def self.create_a_project_card(column_id: nil, note: nil, content_id: nil, content_type: nil, options: nil) new.create_a_project_card(column_id, note, content_id, content_type, ) end |
.create_a_project_column(project_id: nil, name: nil, options: nil) ⇒ Object
134 135 136 |
# File 'lib/gitabu/api/v3/projects.rb', line 134 def self.create_a_project_column(project_id: nil, name: nil, options: nil) new.create_a_project_column(project_id, name, ) end |
.create_a_repository_project(owner: nil, repo: nil, name: nil, body: nil, options: nil) ⇒ Object
62 63 64 |
# File 'lib/gitabu/api/v3/projects.rb', line 62 def self.create_a_repository_project(owner: nil, repo: nil, name: nil, body: nil, options: nil) new.create_a_repository_project(owner, repo, name, body, ) end |
.create_a_user_project(name: nil, body: nil, options: nil) ⇒ Object
66 67 68 |
# File 'lib/gitabu/api/v3/projects.rb', line 66 def self.create_a_user_project(name: nil, body: nil, options: nil) new.create_a_user_project(name, body, ) end |
.create_an_organization_project(org: nil, name: nil, body: nil, options: nil) ⇒ Object
42 43 44 |
# File 'lib/gitabu/api/v3/projects.rb', line 42 def self.create_an_organization_project(org: nil, name: nil, body: nil, options: nil) new.create_an_organization_project(org, name, body, ) end |
.delete_a_project(project_id: nil, options: nil) ⇒ Object
54 55 56 |
# File 'lib/gitabu/api/v3/projects.rb', line 54 def self.delete_a_project(project_id: nil, options: nil) new.delete_a_project(project_id, ) end |
.delete_a_project_card(card_id: nil, options: nil) ⇒ Object
82 83 84 |
# File 'lib/gitabu/api/v3/projects.rb', line 82 def self.delete_a_project_card(card_id: nil, options: nil) new.delete_a_project_card(card_id, ) end |
.delete_a_project_column(column_id: nil, options: nil) ⇒ Object
122 123 124 |
# File 'lib/gitabu/api/v3/projects.rb', line 122 def self.delete_a_project_column(column_id: nil, options: nil) new.delete_a_project_column(column_id, ) end |
.get_a_project(project_id: nil, options: nil) ⇒ Object
46 47 48 |
# File 'lib/gitabu/api/v3/projects.rb', line 46 def self.get_a_project(project_id: nil, options: nil) new.get_a_project(project_id, ) end |
.get_a_project_card(card_id: nil, options: nil) ⇒ Object
74 75 76 |
# File 'lib/gitabu/api/v3/projects.rb', line 74 def self.get_a_project_card(card_id: nil, options: nil) new.get_a_project_card(card_id, ) end |
.get_a_project_column(column_id: nil, options: nil) ⇒ Object
114 115 116 |
# File 'lib/gitabu/api/v3/projects.rb', line 114 def self.get_a_project_column(column_id: nil, options: nil) new.get_a_project_column(column_id, ) end |
.get_project_permission_for_a_user(project_id: nil, username: nil, options: nil) ⇒ Object
110 111 112 |
# File 'lib/gitabu/api/v3/projects.rb', line 110 def self.(project_id: nil, username: nil, options: nil) new.(project_id, username, ) end |
.list_organization_projects(org: nil, options: nil) ⇒ Object
38 39 40 |
# File 'lib/gitabu/api/v3/projects.rb', line 38 def self.list_organization_projects(org: nil, options: nil) new.list_organization_projects(org, ) end |
.list_project_cards(column_id: nil, options: nil) ⇒ Object
90 91 92 |
# File 'lib/gitabu/api/v3/projects.rb', line 90 def self.list_project_cards(column_id: nil, options: nil) new.list_project_cards(column_id, ) end |
.list_project_collaborators(project_id: nil, options: nil) ⇒ Object
98 99 100 |
# File 'lib/gitabu/api/v3/projects.rb', line 98 def self.list_project_collaborators(project_id: nil, options: nil) new.list_project_collaborators(project_id, ) end |
.list_project_columns(project_id: nil, options: nil) ⇒ Object
130 131 132 |
# File 'lib/gitabu/api/v3/projects.rb', line 130 def self.list_project_columns(project_id: nil, options: nil) new.list_project_columns(project_id, ) end |
.list_repository_projects(owner: nil, repo: nil, options: nil) ⇒ Object
58 59 60 |
# File 'lib/gitabu/api/v3/projects.rb', line 58 def self.list_repository_projects(owner: nil, repo: nil, options: nil) new.list_repository_projects(owner, repo, ) end |
.list_user_projects(username: nil, options: nil) ⇒ Object
70 71 72 |
# File 'lib/gitabu/api/v3/projects.rb', line 70 def self.list_user_projects(username: nil, options: nil) new.list_user_projects(username, ) end |
.move_a_project_card(card_id: nil, position: nil, column_id: nil, options: nil) ⇒ Object
86 87 88 |
# File 'lib/gitabu/api/v3/projects.rb', line 86 def self.move_a_project_card(card_id: nil, position: nil, column_id: nil, options: nil) new.move_a_project_card(card_id, position, column_id, ) end |
.move_a_project_column(column_id: nil, position: nil, options: nil) ⇒ Object
126 127 128 |
# File 'lib/gitabu/api/v3/projects.rb', line 126 def self.move_a_project_column(column_id: nil, position: nil, options: nil) new.move_a_project_column(column_id, position, ) end |
.remove_user_as_a_collaborator(project_id: nil, username: nil, options: nil) ⇒ Object
106 107 108 |
# File 'lib/gitabu/api/v3/projects.rb', line 106 def self.remove_user_as_a_collaborator(project_id: nil, username: nil, options: nil) new.remove_user_as_a_collaborator(project_id, username, ) end |
.update_a_project(project_id: nil, name: nil, body: nil, state: nil, organization_permission: nil, private: nil, options: nil) ⇒ Object
50 51 52 |
# File 'lib/gitabu/api/v3/projects.rb', line 50 def self.update_a_project(project_id: nil, name: nil, body: nil, state: nil, organization_permission: nil, private: nil, options: nil) new.update_a_project(project_id, name, body, state, , private, ) end |
.update_an_existing_project_card(card_id: nil, note: nil, archived: nil, options: nil) ⇒ Object
78 79 80 |
# File 'lib/gitabu/api/v3/projects.rb', line 78 def self.update_an_existing_project_card(card_id: nil, note: nil, archived: nil, options: nil) new.update_an_existing_project_card(card_id, note, archived, ) end |
.update_an_existing_project_column(column_id: nil, name: nil, options: nil) ⇒ Object
118 119 120 |
# File 'lib/gitabu/api/v3/projects.rb', line 118 def self.update_an_existing_project_column(column_id: nil, name: nil, options: nil) new.update_an_existing_project_column(column_id, name, ) end |