How to use the pydomo.common.DomoObject function in pydomo

To help you get started, we’ve selected a few pydomo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github domoinc / domo-python-sdk / pydomo / groups / GroupsModel.py View on Github external
from ..common import DomoObject


class CreateGroupRequest(DomoObject):
    accepted_attrs = [
        'name',
        'active',
        'default',
        'memberCount'
    ]
github domoinc / domo-python-sdk / pydomo / datasets / DataSetModel.py View on Github external
def __init__(self, column_type, name):
        super().__init__()
        self.type = column_type
        self.name = name


class ColumnType:
    STRING = 'STRING'
    DECIMAL = 'DECIMAL'
    LONG = 'LONG'
    DOUBLE = 'DOUBLE'
    DATE = 'DATE'
    DATETIME = 'DATETIME'


class DataSetRequest(DomoObject):
    accepted_attrs = [
        'name',
        'description',
        'schema'
    ]


class FilterOperator:
    EQUALS = 'EQUALS'
    LIKE = 'LIKE'
    GREATER_THAN = 'GREATER_THAN'
    LESS_THAN = 'LESS_THAN'
    GREATER_THAN_EQUAL = 'GREATER_THAN_EQUAL'
    LESS_THAN_EQUAL = 'LESS_THAN_EQUAL'
    BETWEEN = 'BETWEEN'
    BEGINS_WITH = 'BEGINS_WITH'
github domoinc / domo-python-sdk / pydomo / datasets / DataSetModel.py View on Github external
from ..common import DomoObject


class Column(DomoObject):
    accepted_attrs = [
        'type',
        'name'
    ]

    def __init__(self, column_type, name):
        super().__init__()
        self.type = column_type
        self.name = name


class ColumnType:
    STRING = 'STRING'
    DECIMAL = 'DECIMAL'
    LONG = 'LONG'
    DOUBLE = 'DOUBLE'
github domoinc / domo-python-sdk / pydomo / datasets / DataSetModel.py View on Github external
accepted_attrs = [
        'id',
        'type',
        'name',
        'filters',
        'users',
        'groups'
    ]


class PolicyType:
    USER = 'user'
    SYSTEM = 'system'


class PolicyFilter(DomoObject):
    accepted_attrs = [
        'column',
        'values',
        'operator',
        'not'
    ]


class Schema(DomoObject):
    accepted_attrs = [
        'columns'
    ]
    def __init__(self, columns):
        self.columns = columns
github domoinc / domo-python-sdk / pydomo / datasets / DataSetModel.py View on Github external
class FilterOperator:
    EQUALS = 'EQUALS'
    LIKE = 'LIKE'
    GREATER_THAN = 'GREATER_THAN'
    LESS_THAN = 'LESS_THAN'
    GREATER_THAN_EQUAL = 'GREATER_THAN_EQUAL'
    LESS_THAN_EQUAL = 'LESS_THAN_EQUAL'
    BETWEEN = 'BETWEEN'
    BEGINS_WITH = 'BEGINS_WITH'
    ENDS_WITH = 'ENDS_WITH'
    CONTAINS = 'CONTAINS'


class Policy(DomoObject):
    accepted_attrs = [
        'id',
        'type',
        'name',
        'filters',
        'users',
        'groups'
    ]


class PolicyType:
    USER = 'user'
    SYSTEM = 'system'


class PolicyFilter(DomoObject):
github domoinc / domo-python-sdk / pydomo / streams / StreamsModel.py View on Github external
from ..common import DomoObject


class CreateStreamRequest(DomoObject):
    accepted_attrs = [
        'dataSet',
        'updateMethod'
    ]
    def __init__(self, data_set_request, update_method):
        super().__init__()
        self.dataSet = data_set_request
        self.updateMethod = update_method


class UpdateMethod:
    APPEND = 'APPEND'
    REPLACE = 'REPLACE'
github domoinc / domo-python-sdk / pydomo / users / UsersModel.py View on Github external
from ..common import DomoObject


class CreateUserRequest(DomoObject):
    accepted_attrs = [
        'name',
        'email',
        'role'
    ]
github domoinc / domo-python-sdk / pydomo / datasets / DataSetModel.py View on Github external
class PolicyType:
    USER = 'user'
    SYSTEM = 'system'


class PolicyFilter(DomoObject):
    accepted_attrs = [
        'column',
        'values',
        'operator',
        'not'
    ]


class Schema(DomoObject):
    accepted_attrs = [
        'columns'
    ]
    def __init__(self, columns):
        self.columns = columns


class Sorting:
    CARD_COUNT = 'cardCount'
    DEFAULT = None
    NAME = 'name'
    STATUS = 'errorState'
    UPDATED = 'lastUpdated'


class UpdateMethod: