本文整理汇总了Python中mixcoatl.resource.Resource.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Resource.__init__方法的具体用法?Python Resource.__init__怎么用?Python Resource.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mixcoatl.resource.Resource
的用法示例。
在下文中一共展示了Resource.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, firewall_id=None, endpoint=None, **kwargs):
Resource.__init__(self, endpoint=endpoint)
if 'detail' in kwargs:
self.request_details = kwargs['detail']
self.__firewall_id = firewall_id
示例2: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, network_id = None, *args, **kwargs):
Resource.__init__(self)
if 'detail' in kwargs:
self.request_details = kwargs['detail']
self.__network_id = network_id
示例3: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, storage_object_id=None, endpoint=None, *args, **kwargs):
Resource.__init__(self, endpoint=endpoint)
self.__storage_object_id = storage_object_id
示例4: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, cloud_id=None, *args, **kwargs):
Resource.__init__(self)
self.__cloud_id = cloud_id
示例5: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, account_id=None, endpoint=None, *args, **kwargs):
Resource.__init__(self, endpoint=endpoint)
self.__account_id = account_id
示例6: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, firewall_rule_id = None, *args, **kwargs):
if 'detail' in kwargs:
self.request_details = kwargs['detail']
Resource.__init__(self)
self.__firewall_rule_id = firewall_rule_id
示例7: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, account_id=None, *args, **kwargs):
Resource.__init__(self)
self.__account_id = account_id
示例8: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, user_id=None, *args, **kwargs):
Resource.__init__(self)
self.__user_id = user_id
示例9: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, job_id=None, endpoint=None, **kwargs):
Resource.__init__(self, endpoint=endpoint)
self.__job_id = job_id
示例10: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, role_id=None, *args, **kwargs):
Resource.__init__(self)
self.__role_id = role_id
示例11: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, snapshot_id=None, *args, **kwargs):
# pylint: disable-msg=W0613
Resource.__init__(self)
self.__snapshot_id = snapshot_id
示例12: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, deployment_id=None, *args, **kwargs):
Resource.__init__(self)
self.__deployment_id = deployment_id
示例13: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, product_id = None, *args, **kwargs):
Resource.__init__(self)
self.__product_id = product_id
示例14: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, environmentId=None, endpoint=None, *args, **kwargs):
Resource.__init__(self, endpoint=endpoint)
self.__environmentId = environmentId
示例15: __init__
# 需要导入模块: from mixcoatl.resource import Resource [as 别名]
# 或者: from mixcoatl.resource.Resource import __init__ [as 别名]
def __init__(self, cloud_id=None, endpoint=None, *args, **kwargs):
Resource.__init__(self, endpoint=endpoint)
self.__cloud_id = cloud_id