Class: PlatformAPI::TeamApp
- Inherits:
-
Object
- Object
- PlatformAPI::TeamApp
- Defined in:
- lib/platform-api/client.rb
Overview
A team app encapsulates the team specific functionality of Heroku apps.
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new app in the specified team, in the default team if unspecified, or in personal account, if default team is not set.
-
#info(team_app_identity) ⇒ Object
Info for a team app.
-
#initialize(client) ⇒ TeamApp
constructor
A new instance of TeamApp.
-
#list_by_team(team_name_or_team_id) ⇒ Object
List team apps.
-
#transfer_to_account(team_app_identity, body = {}) ⇒ Object
Transfer an existing team app to another Heroku account.
-
#transfer_to_team(team_app_identity, body = {}) ⇒ Object
Transfer an existing team app to another team.
-
#update_locked(team_app_identity, body = {}) ⇒ Object
Lock or unlock a team app.
Constructor Details
#initialize(client) ⇒ TeamApp
Returns a new instance of TeamApp.
3137 3138 3139 |
# File 'lib/platform-api/client.rb', line 3137 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new app in the specified team, in the default team if unspecified, or in personal account, if default team is not set.
3144 3145 3146 |
# File 'lib/platform-api/client.rb', line 3144 def create(body = {}) @client.team_app.create(body) end |
#info(team_app_identity) ⇒ Object
Info for a team app.
3151 3152 3153 |
# File 'lib/platform-api/client.rb', line 3151 def info(team_app_identity) @client.team_app.info(team_app_identity) end |
#list_by_team(team_name_or_team_id) ⇒ Object
List team apps.
3182 3183 3184 |
# File 'lib/platform-api/client.rb', line 3182 def list_by_team(team_name_or_team_id) @client.team_app.list_by_team(team_name_or_team_id) end |
#transfer_to_account(team_app_identity, body = {}) ⇒ Object
Transfer an existing team app to another Heroku account.
3167 3168 3169 |
# File 'lib/platform-api/client.rb', line 3167 def transfer_to_account(team_app_identity, body = {}) @client.team_app.transfer_to_account(team_app_identity, body) end |
#transfer_to_team(team_app_identity, body = {}) ⇒ Object
Transfer an existing team app to another team.
3175 3176 3177 |
# File 'lib/platform-api/client.rb', line 3175 def transfer_to_team(team_app_identity, body = {}) @client.team_app.transfer_to_team(team_app_identity, body) end |
#update_locked(team_app_identity, body = {}) ⇒ Object
Lock or unlock a team app.
3159 3160 3161 |
# File 'lib/platform-api/client.rb', line 3159 def update_locked(team_app_identity, body = {}) @client.team_app.update_locked(team_app_identity, body) end |