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

Python base.getid函数代码示例

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

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



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

示例1: delete

    def delete(self, vsm_type):
        """
        Delete a specific vsm_type.

        :param vsm_type: The ID of the :class:`VolumeType` to get.
        """
        self._delete("/types/%s" % base.getid(vsm_type))
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:7,代码来源:vsm_types.py


示例2: delete

    def delete(self, cluster):
        """
        Delete a cluster.

        :param cluster: The :class:`Cluster` to delete.
        """
        self._delete("/clusters/%s" % base.getid(cluster))
开发者ID:ChunHungLiu,项目名称:virtual-storage-manager,代码行数:7,代码来源:clusters.py


示例3: delete

    def delete(self, appnode):
        """
        Delete an app node.

        :param appnode: The :class:`AppNode` to delete.
        """
        self._delete("/appnodes/%s" % base.getid(appnode))
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:7,代码来源:appnodes.py


示例4: delete

    def delete(self, vsm):
        """
        Delete a vsm.

        :param vsm: The :class:`Cluster` to delete.
        """
        self._delete("/clusters/%s" % base.getid(vsm))
开发者ID:mehulsbhatt,项目名称:virtual-storage-manager,代码行数:7,代码来源:clusters.py


示例5: delete

    def delete(self, zone):
        """
        Delete a zone.

        :param zone: The :class:`Zone` to delete.
        """
        self._delete("/zones/%s" % base.getid(zone))
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:7,代码来源:zones.py


示例6: delete

    def delete(self, vsm):
        """
        Delete a vsm.

        :param vsm: The :class:`Zone` to delete.
        """
        self._delete("/zones/%s" % base.getid(vsm))
开发者ID:dev-alex-alex2006hw,项目名称:virtual-storage-manager,代码行数:7,代码来源:zones.py


示例7: delete

    def delete(self, vsm):
        """
        Delete a vsm.

        :param vsm: The :class:`Volume` to delete.
        """
        self._delete("/vsms/%s" % base.getid(vsm))
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:7,代码来源:vsms.py


示例8: delete

    def delete(self, poolusage):
        """
        Delete an pool usage.

        :param poolusage: The :class:`PoolUsage` to delete.
        """
        self._delete("/poolusages/%s" % base.getid(poolusage))
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:7,代码来源:pool_usages.py


示例9: delete

    def delete(self, snapshot):
        """
        Delete a snapshot.

        :param snapshot: The :class:`Snapshot` to delete.
        """
        self._delete("/snapshots/%s" % base.getid(snapshot))
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:7,代码来源:vsm_snapshots.py


示例10: get

    def get(self, vsm_type):
        """
        Get a specific vsm type.

        :param vsm_type: The ID of the :class:`VolumeType` to get.
        :rtype: :class:`VolumeType`
        """
        return self._get("/types/%s" % base.getid(vsm_type), "vsm_type")
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:8,代码来源:vsm_types.py


示例11: _action

 def _action(self, action, rbd_pool, info=None, **kwargs):
     """
     Perform a rbd_pool "action."
     """
     body = {action: info}
     self.run_hooks('modify_body_for_action', body, **kwargs)
     url = '/rbd_pools/%s/action' % base.getid(rbd_pool)
     return self.api.client.post(url, body=body)
开发者ID:BetterLu,项目名称:virtual-storage-manager,代码行数:8,代码来源:rbd_pools.py


示例12: _action

 def _action(self, action, vsm, info=None, **kwargs):
     """
     Perform a vsm "action."
     """
     body = {action: info}
     self.run_hooks('modify_body_for_action', body, **kwargs)
     url = '/vsms/%s/action' % base.getid(vsm)
     return self.api.client.post(url, body=body)
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:8,代码来源:vsms.py


示例13: _action

 def _action(self, action, storage_group, info=None, **kwargs):
     """
     Perform a storage_group "action."
     """
     body = {action: info}
     self.run_hooks('modify_body_for_action', body, **kwargs)
     url = '/storage_groups/%s/action' % base.getid(storage_group)
     return self.api.client.post(url, body=body)
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:8,代码来源:storage_groups.py


示例14: _action

 def _action(self, action, osd, info=None, **kwargs):
     """
     Perform a osd "action."
     """
     body = {action: info}
     self.run_hooks("modify_body_for_action", body, **kwargs)
     url = "/storage_pools/%s/action" % base.getid(osd)
     return self.api.client.post(url, body=body)
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:8,代码来源:storage_pools.py


示例15: _action

 def _action(self, action, monitor, info=None, **kwargs):
     """
     Perform a monitor "action."
     """
     body = {action: info}
     self.run_hooks('modify_body_for_action', body, **kwargs)
     url = '/monitors/%s/action' % base.getid(monitor)
     return self.api.client.post(url, body=body)
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:8,代码来源:monitors.py


示例16: update

    def update(self, poolusage, **kargs):
        """
        Update the attach_status and time for a set of pool usages.

        """
        if not kargs:
            return

        body = {"poolusages": kargs}
        self._update("/poolusages/%s" % base.getid(poolusage), body)
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:10,代码来源:pool_usages.py


示例17: get_keys

    def get_keys(self):
        """
        Get extra specs from a vsm type.

        :param vol_type: The :class:`VolumeType` to get extra specs from
        """
        _resp, body = self.manager.api.client.get(
            "/types/%s/extra_specs" %
            base.getid(self))
        return body["extra_specs"]
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:10,代码来源:vsm_types.py


示例18: update

    def update(self, appnode, **kargs):
        """
        Update the ssh_status or log_info for an appnode.

        """
        if not kargs:
            return

        body = {"appnode": kargs}
        self._update("/appnodes/%s" % base.getid(appnode), body)
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:10,代码来源:appnodes.py


示例19: update

    def update(self, appnode, appnode_info):
        """
        Update the ssh_status or log_info for an appnode.

        """
        if not appnode_info:
            return

        body = {"appnode": appnode_info}
        self._update("/appnodes/%s" % base.getid(appnode), body)
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:10,代码来源:appnodes.py


示例20: update

    def update(self, zone, **kwargs):
        """

        :param vsm: The :class:`Zone` to delete.
        """
        if not kwargs:
            return

        body = {"zone": kwargs}

        self._update("/zones/%s" % base.getid(zone), body)
开发者ID:01org,项目名称:virtual-storage-manager,代码行数:11,代码来源:zones.py



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Python vsrandom.random函数代码示例发布时间:2022-05-26
下一篇:
Python utils.get_time_delta函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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