Package comodit_client :: Package api :: Module store :: Class AppStoreCollection

Class AppStoreCollection


Collection of published applications. This is a root collection.

Instance Methods
 
__init__(self, client)
Creates an instance of collection.
PublishedApplication
new(self, app_uuid, authorized_orgs=None)
Instantiates a new published application representation.
PublishedApplication
create(self, app_uuid, authorized_orgs=None)
Creates a remote published application and returns its representation.
PublishedApplication
get(self, identifier='', parameters={}, org_name=None)
Fetches a published application.

Inherited from collection.Collection: __iter__, clear, delete, list, refresh

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, client)
(Constructor)

 

Creates an instance of collection. Note that Collection class should never be instantiated directly.

Parameters:
  • client - ComodIT client.
  • url - URL of remote collection on ComodIT server. This URL must be relative to ComodIT server's API URL and should not start with a slash.
Overrides: object.__init__
(inherited documentation)

new(self, app_uuid, authorized_orgs=None)

 

Instantiates a new published application representation.

Parameters:
  • app_uuid (string) - The UUID of the application to publish.
  • authorized_orgs (list of string) - The list of organizations that have access to this application. If left None or empty, application is public.
Returns: PublishedApplication
New published application.

create(self, app_uuid, authorized_orgs=None)

 

Creates a remote published application and returns its representation.

Parameters:
  • app_uuid (string) - The UUID of the application to publish.
  • authorized_orgs (list of string) - The list of organizations that have access to this application. If left None or empty, application is public.
Returns: PublishedApplication
New published application.

get(self, identifier='', parameters={}, org_name=None)

 

Fetches a published application. Giving an organization name can give access to published applications with restricted access.

Parameters:
  • identifier - The identifier of the entity to retrieve.
  • parameters - Query parameters to send to ComodIT server.
Returns: PublishedApplication
Fetched published application.
Raises:
Overrides: collection.Collection.get