sessions.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:python-freezerclient 作者: openstack 项目源码 文件源码
def add_job(self, session_id, job_id):
        # endpoint /v1/sessions/{sessions_id}/jobs/{job_id}
        endpoint = '{0}{1}/jobs/{2}'.format(self.endpoint, session_id, job_id)
        r = requests.put(endpoint,
                         headers=self.headers, verify=self.verify)
        if r.status_code != 204:
            raise exceptions.ApiClientException(r)
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号