Class: PlatformAPI::Organization

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

Overview

Deprecated: Organizations allow you to manage access to a shared group of applications across your development team.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Organization

Returns a new instance of Organization.



2131
2132
2133
# File 'lib/platform-api/client.rb', line 2131

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new organization.

Parameters:

  • body:

    the object to pass as the request payload



2158
2159
2160
# File 'lib/platform-api/client.rb', line 2158

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

#delete(organization_name_or_organization_id) ⇒ Object

Delete an existing organization.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization



2165
2166
2167
# File 'lib/platform-api/client.rb', line 2165

def delete(organization_name_or_organization_id)
  @client.organization.delete(organization_name_or_organization_id)
end

#info(organization_name_or_organization_id) ⇒ Object

Info for an organization.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization



2143
2144
2145
# File 'lib/platform-api/client.rb', line 2143

def info(organization_name_or_organization_id)
  @client.organization.info(organization_name_or_organization_id)
end

#listObject

List organizations in which you are a member.



2136
2137
2138
# File 'lib/platform-api/client.rb', line 2136

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

#update(organization_name_or_organization_id, body = {}) ⇒ Object

Update organization properties.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization

  • body:

    the object to pass as the request payload



2151
2152
2153
# File 'lib/platform-api/client.rb', line 2151

def update(organization_name_or_organization_id, body = {})
  @client.organization.update(organization_name_or_organization_id, body)
end