clc.APIv2.account
index
/Users//clc_git/src/clc/APIv2/account.py

Account related functions.  
 
These account related functions generally align one-for-one with published API calls categorized in the account category
 
API v2 - https://t3n.zendesk.com/forums/21645944-Account
 
Account object variables:
 
        account.account_alias (synonym for account.alias)
        account.address_line1
        account.address_line2
        account.business_name
        account.city
        account.state_province
        account.postal_code
        account.telephone
        account.country
        account.status
        account.primary_data_center
        account.is_managed

 
Modules
       
clc
re

 
Classes
       
Account

 
class Account
     Methods defined here:
ParentAccount(self)
Return the parent account object or None if at the root level for provided credentials.
 
# sub-account
>>> clc.v2.Account(alias='KRAP').ParentAccount()
<clc.APIv2.account.Account instance at 0x10b77ab90>
 
# trying to reach above root level
>>> clc.v2.Account(alias='KRAP').ParentAccount().ParentAccount()
None
PrimaryDatacenter(self)
Returns the primary datacenter object associated with the account.
 
>>> clc.v2.Account(alias='BTDI').PrimaryDatacenter()
<clc.APIv2.datacenter.Datacenter instance at 0x10a45ce18>
>>> print _
WA1
__getattr__(self, var)
__init__(self, alias=None)
Create account object.
 
>>> clc.v2.Account()
<clc.APIv2.account.Account instance at 0x1065a2e60>
__str__(self)

Static methods defined here:
GetAlias()
Return specified alias or if none the alias associated with the provided credentials.
 
>>> clc.v2.Account.GetAlias()
u'BTDI'
GetLocation()
Return specified location or if none the default location associated with the provided credentials and alias.
 
>>> clc.v2.Account.GetLocation()
u'WA1'