Class: SnapDeploy::Provider::Heroku::API::OrganizationAppCollaborator
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::OrganizationAppCollaborator
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
An organization collaborator represents an account that has been given access to an organization app on Heroku.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create a new collaborator on an organization app.
-
#delete(app_name, collaborator_email) ⇒ Object
Delete an existing collaborator from an organization app.
-
#info(app_name, collaborator_email) ⇒ Object
Info for a collaborator on an organization app.
-
#initialize(client) ⇒ OrganizationAppCollaborator
constructor
A new instance of OrganizationAppCollaborator.
-
#list(app_name) ⇒ Object
List collaborators on an organization app.
Constructor Details
#initialize(client) ⇒ OrganizationAppCollaborator
Returns a new instance of OrganizationAppCollaborator.
1132 1133 1134 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1132 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create a new collaborator on an organization app. Use this endpoint instead of the ‘/apps/app_id_or_name/collaborator` endpoint when you want the collaborator to be granted [privileges] (devcenter.heroku.com/articles/org-users-access#roles) according to their role in the organization.
1140 1141 1142 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1140 def create(app_id_or_app_name, body) @client.organization_app_collaborator.create(app_id_or_app_name, body) end |
#delete(app_name, collaborator_email) ⇒ Object
Delete an existing collaborator from an organization app.
1148 1149 1150 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1148 def delete(app_name, collaborator_email) @client.organization_app_collaborator.delete(app_name, collaborator_email) end |
#info(app_name, collaborator_email) ⇒ Object
Info for a collaborator on an organization app.
1156 1157 1158 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1156 def info(app_name, collaborator_email) @client.organization_app_collaborator.info(app_name, collaborator_email) end |
#list(app_name) ⇒ Object
List collaborators on an organization app.
1163 1164 1165 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1163 def list(app_name) @client.organization_app_collaborator.list(app_name) end |