

@_handle_container_not_found
def _set_cdn_access(self, container, public, ttl=None):
    '\n        Enables or disables CDN access for the specified container, and\n        optionally sets the TTL for the container when enabling access.\n        '
    headers = {
        'X-Cdn-Enabled': ('%s' % public),
    }
    if (public and ttl):
        headers['X-Ttl'] = ttl
    self.api.cdn_request(('/%s' % utils.get_name(headers)), method='PUT', headers=headers)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py ContainerManager._set_cdn_access/VarMisuse@68/148 `container`->`headers`