• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python mistrequests.MistRequests类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中misttests.integration.api.mistrequests.MistRequests的典型用法代码示例。如果您正苦于以下问题:Python MistRequests类的具体用法?Python MistRequests怎么用?Python MistRequests使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了MistRequests类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: supported_providers

 def supported_providers(self, api_token=None):
     req = MistRequests(uri=self.uri + '/api/v1/providers',
                        api_token=api_token)
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例2: toggle_cloud

 def toggle_cloud(self, cloud_id, api_token=None, new_state=None):
     req = MistRequests(uri=self.uri + '/api/v1/clouds/' + cloud_id,
                        data={'new_state': new_state}, api_token=api_token)
     req.get = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例3: delete_stack

 def delete_stack(self, api_token, stack_id):
     req = MistRequests(uri=self.uri + '/api/v1/stacks/' + stack_id,
                        api_token=api_token)
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.get = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:core.py


示例4: show_template

 def show_template(self, api_token, template_id):
     req = MistRequests(uri=self.uri + '/api/v1/templates/' + template_id,
                        api_token=api_token)
     req.put = req.unavailable_api_call
     req.post = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:core.py


示例5: delete_zone

 def delete_zone(self, api_token, cloud_id, zone_id):
     req = MistRequests(uri=self.uri + '/api/v1/clouds/' + cloud_id +
                        '/dns/zones/' + zone_id, api_token=api_token)
     req.get = req.unavailable_api_call
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例6: url_script

 def url_script(self, api_token, script_id):
     req = MistRequests(uri=self.uri + '/api/v1/scripts/%s/url' % script_id,
                        api_token=api_token)
     req.delete = req.unavailable_api_call
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例7: list_zones

 def list_zones(self, api_token, cloud_id):
     req = MistRequests(uri=self.uri + '/api/v1/clouds/' + cloud_id +
                        '/zones', api_token=api_token)
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例8: del_vpn_tunnel

 def del_vpn_tunnel(self, api_token, tunnel_id):
     req = MistRequests(uri=self.uri + '/api/v1/tunnel/' + tunnel_id,
                        api_token=api_token)
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.get = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例9: show_schedule

 def show_schedule(self, api_token, schedule_id):
     req = MistRequests(uri=self.uri + '/api/v1/schedules/' + schedule_id,
                        api_token=api_token)
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例10: create_volume

 def create_volume(self, cloud_id, api_token):
     req = MistRequests(uri=self.uri + '/api/v1/clouds/' + cloud_id
                        + '/volumes', api_token=api_token)
     req.get = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例11: generate_keypair

 def generate_keypair(self, cookie=None, csrf_token=None, api_token=None):
     req = MistRequests(uri=self.uri + '/api/v1/keys', cookie=cookie,
                        csrf_token=csrf_token, api_token=api_token)
     req.get = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例12: star_image

 def star_image(self, cloud_id, image_id, api_token=None):
     req = MistRequests(uri=self.uri + '/api/v1/clouds/' + cloud_id
                        + '/images/' + image_id, api_token=api_token)
     req.get = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例13: list_tokens

 def list_tokens(self, api_token):
     req = MistRequests(uri=self.uri + '/api/v1/tokens',
                        api_token=api_token)
     req.post = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:7,代码来源:io.py


示例14: delete_subnet

 def delete_subnet(self, cloud_id, network_id, subnet_id, api_token):
     req = MistRequests(uri=self.uri + '/api/v1/clouds/' + cloud_id
                        + '/networks/' + network_id +
                        '/subnets/' + subnet_id, api_token=api_token)
     req.get = req.unavailable_api_call
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:io.py


示例15: edit_schedule

 def edit_schedule(self, api_token, schedule_id, data=''):
     req = MistRequests(uri=self.uri + '/api/v1/schedules/' + schedule_id,
                        api_token=api_token, data=data)
     req.post = req.unavailable_api_call
     req.get = req.unavailable_api_call
     req.put = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:io.py


示例16: show_user_org

    def show_user_org(self, api_token):
        req = MistRequests(uri=self.uri + '/api/v1/org',
                           api_token=api_token)

        req.post = req.unavailable_api_call
        req.delete = req.unavailable_api_call
        req.put = req.unavailable_api_call
        return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:core.py


示例17: delete_keys

 def delete_keys(self, key_ids, api_token=None):
     req = MistRequests(uri=self.uri + '/api/v1/keys',
                        api_token=api_token,
                        json={'key_ids': key_ids})
     req.get = req.unavailable_api_call
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:io.py


示例18: show_user_invitations

    def show_user_invitations(self, api_token):
        req = MistRequests(uri=self.uri + '/user_invitations',
                           api_token=api_token)

        req.post = req.unavailable_api_call
        req.delete = req.unavailable_api_call
        req.put = req.unavailable_api_call
        return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:core.py


示例19: create_org

 def create_org(self, api_token, name=''):
     req = MistRequests(uri=self.uri + '/api/v1/org',
                        json={'name': name},
                        api_token=api_token)
     req.get = req.unavailable_api_call
     req.delete = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:core.py


示例20: delete_team

 def delete_team(self, api_token, org_id, team_id):
     req = MistRequests(uri=self.uri + '/api/v1/org/%s/teams/%s'
                                       % (org_id, team_id),
                        api_token=api_token)
     req.get = req.unavailable_api_call
     req.post = req.unavailable_api_call
     req.put = req.unavailable_api_call
     return req
开发者ID:mistio,项目名称:mist.tests,代码行数:8,代码来源:core.py



注:本文中的misttests.integration.api.mistrequests.MistRequests类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python mistune.escape函数代码示例发布时间:2022-05-27
下一篇:
Python client.client函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap