Class: PlatformAPI::TeamApp

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

A team app encapsulates the team specific functionality of Heroku apps.

Instance Method Summary collapse

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.

Parameters:

  • body:

    the object to pass as the request payload



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.

Parameters:

  • team_app_identity:


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.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



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.

Parameters:

  • team_app_identity:
  • body:

    the object to pass as the request payload



3167
3168
3169
# File 'lib/platform-api/client.rb', line 3167

def (team_app_identity, body = {})
  @client.team_app.(team_app_identity, body)
end

#transfer_to_team(team_app_identity, body = {}) ⇒ Object

Transfer an existing team app to another team.

Parameters:

  • team_app_identity:
  • body:

    the object to pass as the request payload



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.

Parameters:

  • team_app_identity:
  • body:

    the object to pass as the request payload



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