Providers

Intro

Providers.

Module docs

class lerna.providers.EventFieldDefinition(_optional=False, _description=None, **properties)[source]

Bases: req.schema.schema.Schema

class lerna.providers.IdentityUserProvider(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers.Provider

class lerna.providers.KeyProvider(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers.Provider

class lerna.providers.KeysProvider(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers.Provider

validate(data)[source]

Validate data against this Schema.

Raises:ValidationError – When the dictionary fails to validate.
Parameters:data (dict) –
Returns:On success.
Return type:None
class lerna.providers.OAuth2Provider(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers.KeysProvider

class lerna.providers.OAuthCallbackTokenKeySetting(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers._BaseProviderSetting

class lerna.providers.OAuthCallbackVerifierKeySetting(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers._BaseProviderSetting

class lerna.providers.OAuthProvider(_optional=False, _description=None, **properties)[source]

Bases: lerna.providers.KeysProvider

class lerna.providers.Provider(_optional=False, _description=None, **properties)[source]

Bases: req.schema.schema.Schema

class lerna.providers.ProviderCapability[source]
READ = 'read'
WRITE = 'write'
class lerna.providers.ProviderCategory[source]
AVE81_SERVICES = 'Ave81Services'
CUSTOMER_RELATIONSHIP_MANAGEMENT = 'CustomerRelationshipManagement'
ECOMMERCE = 'ECommerce'
EMAIL_SERVICES = 'EmailServices'
FORMS = 'Forms'
MEDIA_SERVICES = 'MediaServices'
PAYMENT_SERVICES = 'PaymentServices'
SUPPORT_DESK = 'SupportDesk'
UNCATEGORIZED = 'Uncategorized'
WEBINAR_SERVICES = 'WebinarServices'
class lerna.providers.ProviderCredentials[source]
IDENTITY_USER = 'IdentityUser'
KEY = 'Key'
KEYS = 'Keys'
OAUTH = 'OAuth'
OAUTH2 = 'OAuth2'
class lerna.providers.ProviderFeature[source]
AUTO_CONNECTS = 'auto-connects'
CREATES_COLLECTIONS = 'creates-collections'
CREATES_FIELDS = 'creates-fields'
DELETES_COLLECTIONS = 'deletes-collections'
GREEDY = 'greedy'
TAGS_LEADS = 'tags-leads'
TAGS_LEADS_SIMPLE = 'tags-leads-simple'
WEBHOOK = 'webhook'
class lerna.providers.ProviderMetadata(_optional=False, _description=None, **properties)[source]

Bases: req.schema.schema.Schema

classmethod build_identity_user_provider(**properties)[source]

Builds and returns the JSON representation of an IdentityUserProvider.

classmethod build_key_provider(**properties)[source]

Builds and returns the JSON representation of a KeyProvider.

classmethod build_keys_provider(**properties)[source]

Builds and returns the JSON representation of a KeysProvider.

classmethod build_oauth2_provider(**properties)[source]

Builds and returns the JSON representation of a OAuth2Provider.

classmethod build_oauth_provider(**properties)[source]

Builds and returns the JSON representation of a OAuthProvider.

validate(data)[source]

Validate data against this Schema.

Raises:ValidationError – When the dictionary fails to validate.
Parameters:data (dict) –
Returns:On success.
Return type:None
class lerna.providers.ProviderReadMode[source]
POLLING = 'polling'
STREAMING = 'streaming'
class lerna.providers.ProviderSetting(_optional=False, _description=None, **properties)[source]

Bases: req.schema.schema.Schema

validate(data)[source]

Validate data against this Schema.

Raises:ValidationError – When the dictionary fails to validate.
Parameters:data (dict) –
Returns:On success.
Return type:None
class lerna.providers.ReadEventDefinition(_optional=False, _description=None, **properties)[source]

Bases: req.schema.schema.Schema

validate(data)[source]

Validate data against this Schema.

Raises:ValidationError – When the dictionary fails to validate.
Parameters:data (dict) –
Returns:On success.
Return type:None