Class: PlatformAPI::OrganizationApp

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

Overview

Deprecated: An organization app encapsulates the organization specific functionality of Heroku apps.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ OrganizationApp

Returns a new instance of OrganizationApp.



1901
1902
1903
# File 'lib/platform-api/client.rb', line 1901

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new app in the specified organization, in the default organization if unspecified, or in personal account, if default organization is not set.

Parameters:

  • body:

    the object to pass as the request payload



1908
1909
1910
# File 'lib/platform-api/client.rb', line 1908

def create(body = {})
  @client.organization_app.create(body)
end

#info(app_name) ⇒ Object

Info for an organization app.

Parameters:

  • app_name:

    unique name of app



1927
1928
1929
# File 'lib/platform-api/client.rb', line 1927

def info(app_name)
  @client.organization_app.info(app_name)
end

#listObject

List apps in the default organization, or in personal account, if default organization is not set.



1913
1914
1915
# File 'lib/platform-api/client.rb', line 1913

def list()
  @client.organization_app.list()
end

#list_for_organization(organization_name_or_organization_id) ⇒ Object

List organization apps.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization



1920
1921
1922
# File 'lib/platform-api/client.rb', line 1920

def list_for_organization(organization_name_or_organization_id)
  @client.organization_app.list_for_organization(organization_name_or_organization_id)
end

#transfer_to_account(app_name, body = {}) ⇒ Object

Transfer an existing organization app to another Heroku account.

Parameters:

  • app_name:

    unique name of app

  • body:

    the object to pass as the request payload



1943
1944
1945
# File 'lib/platform-api/client.rb', line 1943

def (app_name, body = {})
  @client.organization_app.(app_name, body)
end

#transfer_to_organization(app_name, body = {}) ⇒ Object

Transfer an existing organization app to another organization.

Parameters:

  • app_name:

    unique name of app

  • body:

    the object to pass as the request payload



1951
1952
1953
# File 'lib/platform-api/client.rb', line 1951

def transfer_to_organization(app_name, body = {})
  @client.organization_app.transfer_to_organization(app_name, body)
end

#update_locked(app_name, body = {}) ⇒ Object

Lock or unlock an organization app.

Parameters:

  • app_name:

    unique name of app

  • body:

    the object to pass as the request payload



1935
1936
1937
# File 'lib/platform-api/client.rb', line 1935

def update_locked(app_name, body = {})
  @client.organization_app.update_locked(app_name, body)
end