Class: Gitabu::Api::V3::Orgs

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/api/v3/orgs.rb

Overview

Orgs endpoints.

Class Method Summary collapse

Class Method Details

.block_a_user_from_an_organization(org: nil, username: nil, options: nil) ⇒ Object



82
83
84
# File 'lib/gitabu/api/v3/orgs.rb', line 82

def self.block_a_user_from_an_organization(org: nil, username: nil, options: nil)
  new.block_a_user_from_an_organization(org, username, options)
end

.cancel_an_organization_invitation(org: nil, invitation_id: nil, options: nil) ⇒ Object



106
107
108
# File 'lib/gitabu/api/v3/orgs.rb', line 106

def self.cancel_an_organization_invitation(org: nil, invitation_id: nil, options: nil)
  new.cancel_an_organization_invitation(org, invitation_id, options)
end

.check_if_a_user_is_blocked_by_an_organization(org: nil, username: nil, options: nil) ⇒ Object



78
79
80
# File 'lib/gitabu/api/v3/orgs.rb', line 78

def self.check_if_a_user_is_blocked_by_an_organization(org: nil, username: nil, options: nil)
  new.check_if_a_user_is_blocked_by_an_organization(org, username, options)
end

.check_organization_membership_for_a_user(org: nil, username: nil, options: nil) ⇒ Object



118
119
120
# File 'lib/gitabu/api/v3/orgs.rb', line 118

def self.check_organization_membership_for_a_user(org: nil, username: nil, options: nil)
  new.check_organization_membership_for_a_user(org, username, options)
end

.check_public_organization_membership_for_a_user(org: nil, username: nil, options: nil) ⇒ Object



142
143
144
# File 'lib/gitabu/api/v3/orgs.rb', line 142

def self.check_public_organization_membership_for_a_user(org: nil, username: nil, options: nil)
  new.check_public_organization_membership_for_a_user(org, username, options)
end

.convert_an_organization_member_to_outside_collaborator(org: nil, username: nil, options: nil) ⇒ Object



170
171
172
# File 'lib/gitabu/api/v3/orgs.rb', line 170

def self.convert_an_organization_member_to_outside_collaborator(org: nil, username: nil, options: nil)
  new.convert_an_organization_member_to_outside_collaborator(org, username, options)
end

.create_an_organization_invitation(org: nil, invitee_id: nil, email: nil, role: nil, team_ids: nil, options: nil) ⇒ Object



102
103
104
# File 'lib/gitabu/api/v3/orgs.rb', line 102

def self.create_an_organization_invitation(org: nil, invitee_id: nil, email: nil, role: nil, team_ids: nil, options: nil)
  new.create_an_organization_invitation(org, invitee_id, email, role, team_ids, options)
end

.create_an_organization_webhook(org: nil, name: nil, config: nil, events: nil, active: nil, options: nil) ⇒ Object



182
183
184
# File 'lib/gitabu/api/v3/orgs.rb', line 182

def self.create_an_organization_webhook(org: nil, name: nil, config: nil, events: nil, active: nil, options: nil)
  new.create_an_organization_webhook(org, name, config, events, active, options)
end

.delete_an_organization_webhook(org: nil, hook_id: nil, options: nil) ⇒ Object



194
195
196
# File 'lib/gitabu/api/v3/orgs.rb', line 194

def self.delete_an_organization_webhook(org: nil, hook_id: nil, options: nil)
  new.delete_an_organization_webhook(org, hook_id, options)
end

.get_a_webhook_configuration_for_an_organization(org: nil, hook_id: nil, options: nil) ⇒ Object



198
199
200
# File 'lib/gitabu/api/v3/orgs.rb', line 198

def self.get_a_webhook_configuration_for_an_organization(org: nil, hook_id: nil, options: nil)
  new.get_a_webhook_configuration_for_an_organization(org, hook_id, options)
end

.get_a_webhook_delivery_for_an_organization_webhook(org: nil, hook_id: nil, delivery_id: nil, options: nil) ⇒ Object



210
211
212
# File 'lib/gitabu/api/v3/orgs.rb', line 210

def self.get_a_webhook_delivery_for_an_organization_webhook(org: nil, hook_id: nil, delivery_id: nil, options: nil)
  new.get_a_webhook_delivery_for_an_organization_webhook(org, hook_id, delivery_id, options)
end

.get_an_organization(org: nil, options: nil) ⇒ Object



42
43
44
# File 'lib/gitabu/api/v3/orgs.rb', line 42

def self.get_an_organization(org: nil, options: nil)
  new.get_an_organization(org, options)
end

.get_an_organization_membership_for_the_authenticated_user(org: nil, options: nil) ⇒ Object



158
159
160
# File 'lib/gitabu/api/v3/orgs.rb', line 158

def self.get_an_organization_membership_for_the_authenticated_user(org: nil, options: nil)
  new.get_an_organization_membership_for_the_authenticated_user(org, options)
end

.get_an_organization_webhook(org: nil, hook_id: nil, options: nil) ⇒ Object



186
187
188
# File 'lib/gitabu/api/v3/orgs.rb', line 186

def self.get_an_organization_webhook(org: nil, hook_id: nil, options: nil)
  new.get_an_organization_webhook(org, hook_id, options)
end

.get_organization_membership_for_a_user(org: nil, username: nil, options: nil) ⇒ Object



126
127
128
# File 'lib/gitabu/api/v3/orgs.rb', line 126

def self.get_organization_membership_for_a_user(org: nil, username: nil, options: nil)
  new.get_organization_membership_for_a_user(org, username, options)
end

.get_the_audit_log_for_an_organization(org: nil, options: nil) ⇒ Object



50
51
52
# File 'lib/gitabu/api/v3/orgs.rb', line 50

def self.get_the_audit_log_for_an_organization(org: nil, options: nil)
  new.get_the_audit_log_for_an_organization(org, options)
end

.list_app_installations_for_an_organization(org: nil, options: nil) ⇒ Object



62
63
64
# File 'lib/gitabu/api/v3/orgs.rb', line 62

def self.list_app_installations_for_an_organization(org: nil, options: nil)
  new.list_app_installations_for_an_organization(org, options)
end

.list_custom_repository_roles_in_an_organization(organization_id: nil, options: nil) ⇒ Object



90
91
92
# File 'lib/gitabu/api/v3/orgs.rb', line 90

def self.list_custom_repository_roles_in_an_organization(organization_id: nil, options: nil)
  new.list_custom_repository_roles_in_an_organization(organization_id, options)
end

.list_deliveries_for_an_organization_webhook(org: nil, hook_id: nil, options: nil) ⇒ Object



206
207
208
# File 'lib/gitabu/api/v3/orgs.rb', line 206

def self.list_deliveries_for_an_organization_webhook(org: nil, hook_id: nil, options: nil)
  new.list_deliveries_for_an_organization_webhook(org, hook_id, options)
end

.list_failed_organization_invitations(org: nil, options: nil) ⇒ Object



94
95
96
# File 'lib/gitabu/api/v3/orgs.rb', line 94

def self.list_failed_organization_invitations(org: nil, options: nil)
  new.list_failed_organization_invitations(org, options)
end

.list_organization_invitation_teams(org: nil, invitation_id: nil, options: nil) ⇒ Object



110
111
112
# File 'lib/gitabu/api/v3/orgs.rb', line 110

def self.list_organization_invitation_teams(org: nil, invitation_id: nil, options: nil)
  new.list_organization_invitation_teams(org, invitation_id, options)
end

.list_organization_members(org: nil, options: nil) ⇒ Object



114
115
116
# File 'lib/gitabu/api/v3/orgs.rb', line 114

def self.list_organization_members(org: nil, options: nil)
  new.list_organization_members(org, options)
end

.list_organization_memberships_for_the_authenticated_user(options: nil) ⇒ Object



154
155
156
# File 'lib/gitabu/api/v3/orgs.rb', line 154

def self.list_organization_memberships_for_the_authenticated_user(options: nil)
  new.list_organization_memberships_for_the_authenticated_user(options)
end

.list_organization_webhooks(org: nil, options: nil) ⇒ Object



178
179
180
# File 'lib/gitabu/api/v3/orgs.rb', line 178

def self.list_organization_webhooks(org: nil, options: nil)
  new.list_organization_webhooks(org, options)
end

.list_organizations(options: nil) ⇒ Object



38
39
40
# File 'lib/gitabu/api/v3/orgs.rb', line 38

def self.list_organizations(options: nil)
  new.list_organizations(options)
end

.list_organizations_for_a_user(username: nil, options: nil) ⇒ Object



70
71
72
# File 'lib/gitabu/api/v3/orgs.rb', line 70

def self.list_organizations_for_a_user(username: nil, options: nil)
  new.list_organizations_for_a_user(username, options)
end

.list_organizations_for_the_authenticated_user(options: nil) ⇒ Object



66
67
68
# File 'lib/gitabu/api/v3/orgs.rb', line 66

def self.list_organizations_for_the_authenticated_user(options: nil)
  new.list_organizations_for_the_authenticated_user(options)
end

.list_outside_collaborators_for_an_organization(org: nil, options: nil) ⇒ Object



166
167
168
# File 'lib/gitabu/api/v3/orgs.rb', line 166

def self.list_outside_collaborators_for_an_organization(org: nil, options: nil)
  new.list_outside_collaborators_for_an_organization(org, options)
end

.list_pending_organization_invitations(org: nil, options: nil) ⇒ Object



98
99
100
# File 'lib/gitabu/api/v3/orgs.rb', line 98

def self.list_pending_organization_invitations(org: nil, options: nil)
  new.list_pending_organization_invitations(org, options)
end

.list_public_organization_members(org: nil, options: nil) ⇒ Object



138
139
140
# File 'lib/gitabu/api/v3/orgs.rb', line 138

def self.list_public_organization_members(org: nil, options: nil)
  new.list_public_organization_members(org, options)
end

.list_saml_sso_authorizations_for_an_organization(org: nil, options: nil) ⇒ Object



54
55
56
# File 'lib/gitabu/api/v3/orgs.rb', line 54

def self.list_saml_sso_authorizations_for_an_organization(org: nil, options: nil)
  new.list_saml_sso_authorizations_for_an_organization(org, options)
end

.list_users_blocked_by_an_organization(org: nil, options: nil) ⇒ Object



74
75
76
# File 'lib/gitabu/api/v3/orgs.rb', line 74

def self.list_users_blocked_by_an_organization(org: nil, options: nil)
  new.list_users_blocked_by_an_organization(org, options)
end

.ping_an_organization_webhook(org: nil, hook_id: nil, options: nil) ⇒ Object



218
219
220
# File 'lib/gitabu/api/v3/orgs.rb', line 218

def self.ping_an_organization_webhook(org: nil, hook_id: nil, options: nil)
  new.ping_an_organization_webhook(org, hook_id, options)
end

.redeliver_a_delivery_for_an_organization_webhook(org: nil, hook_id: nil, delivery_id: nil, options: nil) ⇒ Object



214
215
216
# File 'lib/gitabu/api/v3/orgs.rb', line 214

def self.redeliver_a_delivery_for_an_organization_webhook(org: nil, hook_id: nil, delivery_id: nil, options: nil)
  new.redeliver_a_delivery_for_an_organization_webhook(org, hook_id, delivery_id, options)
end

.remove_a_saml_sso_authorization_for_an_organization(org: nil, credential_id: nil, options: nil) ⇒ Object



58
59
60
# File 'lib/gitabu/api/v3/orgs.rb', line 58

def self.remove_a_saml_sso_authorization_for_an_organization(org: nil, credential_id: nil, options: nil)
  new.remove_a_saml_sso_authorization_for_an_organization(org, credential_id, options)
end

.remove_an_organization_member(org: nil, username: nil, options: nil) ⇒ Object



122
123
124
# File 'lib/gitabu/api/v3/orgs.rb', line 122

def self.remove_an_organization_member(org: nil, username: nil, options: nil)
  new.remove_an_organization_member(org, username, options)
end

.remove_organization_membership_for_a_user(org: nil, username: nil, options: nil) ⇒ Object



134
135
136
# File 'lib/gitabu/api/v3/orgs.rb', line 134

def self.remove_organization_membership_for_a_user(org: nil, username: nil, options: nil)
  new.remove_organization_membership_for_a_user(org, username, options)
end

.remove_outside_collaborator_from_an_organization(org: nil, username: nil, options: nil) ⇒ Object



174
175
176
# File 'lib/gitabu/api/v3/orgs.rb', line 174

def self.remove_outside_collaborator_from_an_organization(org: nil, username: nil, options: nil)
  new.remove_outside_collaborator_from_an_organization(org, username, options)
end

.remove_public_organization_membership_for_the_authenticated_user(org: nil, username: nil, options: nil) ⇒ Object



150
151
152
# File 'lib/gitabu/api/v3/orgs.rb', line 150

def self.remove_public_organization_membership_for_the_authenticated_user(org: nil, username: nil, options: nil)
  new.remove_public_organization_membership_for_the_authenticated_user(org, username, options)
end

.set_organization_membership_for_a_user(org: nil, username: nil, role: nil, options: nil) ⇒ Object



130
131
132
# File 'lib/gitabu/api/v3/orgs.rb', line 130

def self.set_organization_membership_for_a_user(org: nil, username: nil, role: nil, options: nil)
  new.set_organization_membership_for_a_user(org, username, role, options)
end

.set_public_organization_membership_for_the_authenticated_user(org: nil, username: nil, options: nil) ⇒ Object



146
147
148
# File 'lib/gitabu/api/v3/orgs.rb', line 146

def self.set_public_organization_membership_for_the_authenticated_user(org: nil, username: nil, options: nil)
  new.set_public_organization_membership_for_the_authenticated_user(org, username, options)
end

.unblock_a_user_from_an_organization(org: nil, username: nil, options: nil) ⇒ Object



86
87
88
# File 'lib/gitabu/api/v3/orgs.rb', line 86

def self.unblock_a_user_from_an_organization(org: nil, username: nil, options: nil)
  new.unblock_a_user_from_an_organization(org, username, options)
end

.update_a_webhook_configuration_for_an_organization(org: nil, hook_id: nil, url: nil, content_type: nil, secret: nil, insecure_ssl: nil, options: nil) ⇒ Object



202
203
204
# File 'lib/gitabu/api/v3/orgs.rb', line 202

def self.update_a_webhook_configuration_for_an_organization(org: nil, hook_id: nil, url: nil, content_type: nil, secret: nil, insecure_ssl: nil, options: nil)
  new.update_a_webhook_configuration_for_an_organization(org, hook_id, url, content_type, secret, insecure_ssl, options)
end

.update_an_organization(org: nil, billing_email: nil, company: nil, email: nil, twitter_username: nil, location: nil, name: nil, description: nil, has_organization_projects: nil, has_repository_projects: nil, default_repository_permission: nil, members_can_create_repositories: nil, members_can_create_internal_repositories: nil, members_can_create_private_repositories: nil, members_can_create_public_repositories: nil, members_allowed_repository_creation_type: nil, members_can_create_pages: nil, members_can_create_public_pages: nil, members_can_create_private_pages: nil, members_can_fork_private_repositories: nil, blog: nil, options: nil) ⇒ Object



46
47
48
# File 'lib/gitabu/api/v3/orgs.rb', line 46

def self.update_an_organization(org: nil, billing_email: nil, company: nil, email: nil, twitter_username: nil, location: nil, name: nil, description: nil, has_organization_projects: nil, has_repository_projects: nil, default_repository_permission: nil, members_can_create_repositories: nil, members_can_create_internal_repositories: nil, members_can_create_private_repositories: nil, members_can_create_public_repositories: nil, members_allowed_repository_creation_type: nil, members_can_create_pages: nil, members_can_create_public_pages: nil, members_can_create_private_pages: nil, members_can_fork_private_repositories: nil, blog: nil, options: nil)
  new.update_an_organization(org, billing_email, company, email, twitter_username, location, name, description, has_organization_projects, has_repository_projects, default_repository_permission, members_can_create_repositories, members_can_create_internal_repositories, members_can_create_private_repositories, members_can_create_public_repositories, members_allowed_repository_creation_type, members_can_create_pages, members_can_create_public_pages, members_can_create_private_pages, members_can_fork_private_repositories, blog, options)
end

.update_an_organization_membership_for_the_authenticated_user(org: nil, state: nil, options: nil) ⇒ Object



162
163
164
# File 'lib/gitabu/api/v3/orgs.rb', line 162

def self.update_an_organization_membership_for_the_authenticated_user(org: nil, state: nil, options: nil)
  new.update_an_organization_membership_for_the_authenticated_user(org, state, options)
end

.update_an_organization_webhook(org: nil, hook_id: nil, config: nil, events: nil, active: nil, name: nil, options: nil) ⇒ Object



190
191
192
# File 'lib/gitabu/api/v3/orgs.rb', line 190

def self.update_an_organization_webhook(org: nil, hook_id: nil, config: nil, events: nil, active: nil, name: nil, options: nil)
  new.update_an_organization_webhook(org, hook_id, config, events, active, name, options)
end