How to use the azure-storage-common.azure.storage.common.models.ResourceTypes function in azure-storage-common

To help you get started, we’ve selected a few azure-storage-common 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-storage-python / azure-storage-common / azure / storage / common / models.py View on Github external
def __or__(self, other):
        return ResourceTypes(_str=str(self) + str(other))

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

    def __str__(self):
        return (('s' if self.service else '') +
                ('c' if self.container else '') +
                ('o' if self.object else ''))


ResourceTypes.SERVICE = ResourceTypes(service=True)
ResourceTypes.CONTAINER = ResourceTypes(container=True)
ResourceTypes.OBJECT = ResourceTypes(object=True)


class Services(object):
    '''
    Specifies the services accessible with the account SAS.

    :ivar Services Services.BLOB: The blob service.
    :ivar Services Services.FILE: The file service
    :ivar Services Services.QUEUE: The queue service.
    :ivar Services Services.TABLE: The table service.
    '''

    def __init__(self, blob=False, queue=False, file=False, table=False, _str=None):
        '''
        :param bool blob:
            Access to any blob service, for example, the `.BlockBlobService`
github Azure / azure-storage-python / azure-storage-common / azure / storage / common / models.py View on Github external
self.container = container or ('c' in _str)
        self.object = object or ('o' in _str)

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

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

    def __str__(self):
        return (('s' if self.service else '') +
                ('c' if self.container else '') +
                ('o' if self.object else ''))


ResourceTypes.SERVICE = ResourceTypes(service=True)
ResourceTypes.CONTAINER = ResourceTypes(container=True)
ResourceTypes.OBJECT = ResourceTypes(object=True)


class Services(object):
    '''
    Specifies the services accessible with the account SAS.

    :ivar Services Services.BLOB: The blob service.
    :ivar Services Services.FILE: The file service
    :ivar Services Services.QUEUE: The queue service.
    :ivar Services Services.TABLE: The table service.
    '''

    def __init__(self, blob=False, queue=False, file=False, table=False, _str=None):
        '''
github Azure / azure-storage-python / azure-storage-common / azure / storage / common / models.py View on Github external
self.object = object or ('o' in _str)

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

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

    def __str__(self):
        return (('s' if self.service else '') +
                ('c' if self.container else '') +
                ('o' if self.object else ''))


ResourceTypes.SERVICE = ResourceTypes(service=True)
ResourceTypes.CONTAINER = ResourceTypes(container=True)
ResourceTypes.OBJECT = ResourceTypes(object=True)


class Services(object):
    '''
    Specifies the services accessible with the account SAS.

    :ivar Services Services.BLOB: The blob service.
    :ivar Services Services.FILE: The file service
    :ivar Services Services.QUEUE: The queue service.
    :ivar Services Services.TABLE: The table service.
    '''

    def __init__(self, blob=False, queue=False, file=False, table=False, _str=None):
        '''
        :param bool blob:
github Azure / azure-storage-python / azure-storage-common / azure / storage / common / models.py View on Github external
def __or__(self, other):
        return ResourceTypes(_str=str(self) + str(other))
github Azure / azure-storage-python / azure-storage-common / azure / storage / common / models.py View on Github external
def __add__(self, other):
        return ResourceTypes(_str=str(self) + str(other))

azure-storage-common

Microsoft Azure Storage Common Client Library for Python

MIT
Latest version published 5 years ago

Package Health Score

85 / 100
Full package analysis

Similar packages