How to use the azure-cosmosdb-table.azure.cosmosdb.table.models.TablePermissions function in azure-cosmosdb-table

To help you get started, we’ve selected a few azure-cosmosdb-table 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 Azure / azure-cosmos-table-python / azure-cosmosdb-table / azure / cosmosdb / table / models.py View on Github external
return TablePermissions(_str=str(self) + str(other))

    def __add__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __str__(self):
        return (('r' if self.query else '') +
                ('a' if self.add else '') +
                ('u' if self.update else '') +
                ('d' if self.delete else ''))


TablePermissions.QUERY = TablePermissions(query=True)
TablePermissions.ADD = TablePermissions(add=True)
TablePermissions.UPDATE = TablePermissions(update=True)
TablePermissions.DELETE = TablePermissions(delete=True)


class TableServices(Services):
    def __init__(self):

        '''
        :param bool table:
            Access to the `.TableService`
        :param str _str:
            A string representing the services.
        '''

        self.table = True

    def __str__(self):
        return 't'
github Azure / azure-cosmos-table-python / azure-cosmosdb-table / azure / cosmosdb / table / models.py View on Github external
self.delete = delete or ('d' in _str)

    def __or__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __add__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __str__(self):
        return (('r' if self.query else '') +
                ('a' if self.add else '') +
                ('u' if self.update else '') +
                ('d' if self.delete else ''))


TablePermissions.QUERY = TablePermissions(query=True)
TablePermissions.ADD = TablePermissions(add=True)
TablePermissions.UPDATE = TablePermissions(update=True)
TablePermissions.DELETE = TablePermissions(delete=True)


class TableServices(Services):
    def __init__(self):

        '''
        :param bool table:
            Access to the `.TableService`
        :param str _str:
            A string representing the services.
        '''

        self.table = True
github Azure / azure-cosmos-table-python / azure-cosmosdb-table / azure / cosmosdb / table / models.py View on Github external
def __or__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __add__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __str__(self):
        return (('r' if self.query else '') +
                ('a' if self.add else '') +
                ('u' if self.update else '') +
                ('d' if self.delete else ''))


TablePermissions.QUERY = TablePermissions(query=True)
TablePermissions.ADD = TablePermissions(add=True)
TablePermissions.UPDATE = TablePermissions(update=True)
TablePermissions.DELETE = TablePermissions(delete=True)


class TableServices(Services):
    def __init__(self):

        '''
        :param bool table:
            Access to the `.TableService`
        :param str _str:
            A string representing the services.
        '''

        self.table = True

    def __str__(self):
github Azure / azure-cosmos-table-python / azure-cosmosdb-table / azure / cosmosdb / table / models.py View on Github external
def __add__(self, other):
        return TablePermissions(_str=str(self) + str(other))
github Azure / azure-cosmos-table-python / azure-cosmosdb-table / azure / cosmosdb / table / models.py View on Github external
def __or__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __add__(self, other):
        return TablePermissions(_str=str(self) + str(other))

    def __str__(self):
        return (('r' if self.query else '') +
                ('a' if self.add else '') +
                ('u' if self.update else '') +
                ('d' if self.delete else ''))


TablePermissions.QUERY = TablePermissions(query=True)
TablePermissions.ADD = TablePermissions(add=True)
TablePermissions.UPDATE = TablePermissions(update=True)
TablePermissions.DELETE = TablePermissions(delete=True)


class TableServices(Services):
    def __init__(self):

        '''
        :param bool table:
            Access to the `.TableService`
        :param str _str:
            A string representing the services.
        '''

        self.table = True

azure-cosmosdb-table

Microsoft Azure CosmosDB Table Client Library for Python

Apache-2.0
Latest version published 5 years ago

Package Health Score

55 / 100
Full package analysis

Popular azure-cosmosdb-table functions

Similar packages