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