本文整理匯總了Python中vas.util.LinkUtils.LinkUtils類的典型用法代碼示例。如果您正苦於以下問題:Python LinkUtils類的具體用法?Python LinkUtils怎麽用?Python LinkUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了LinkUtils類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
def __init__(self, client, location):
super(NodeRevision, self).__init__(client, location)
self.__version = self._details['version']
self.__application_location = LinkUtils.get_link_href(self._details, 'node-application')
self.__group_revision_location = LinkUtils.get_link_href(self._details, 'group-revision')
示例2: __init__
def __init__(self, client, location):
super(Statistic, self).__init__(client, location)
self.__path = self._details['path']
self.__instance_location = LinkUtils.get_link_href(self._details, 'cache-server-node-instance')
self.__content_location = LinkUtils.get_link_href(self._details, 'content')
示例3: __init__
def __init__(self, client, location):
super(CacheServerNodeInstance, self).__init__(client, location, Node, CacheServerLogs, CacheServerInstance,
'cache-server-group-instance', CacheServerNodeLiveConfigurations)
self.__disk_stores_location = LinkUtils.get_link_href(self._details, 'disk-stores')
self.__state_location = LinkUtils.get_link_href(self._details, 'state')
self.__statistics_location = LinkUtils.get_link_href(self._details, 'statistics')
示例4: __init__
def __init__(self, client, location):
self.__client = client
self.__location = location
json = client.get(location)
self.__agent_image = AgentImage(client, LinkUtils.get_link_href(json, 'agent-image'))
self.__nodes = Nodes(client, LinkUtils.get_link_href(json, 'nodes'))
示例5: __init__
def __init__(self, client, location, instance_type, instance_class):
super(Log, self).__init__(client, location)
self.__content_location = LinkUtils.get_link_href(self._details, 'content')
self.__instance_location = LinkUtils.get_link_href(self._details, instance_type)
self.__instance_class = instance_class
示例6: __init__
def __init__(self, client, location):
super(Revision, self).__init__(client, location)
self.__version = self._details['version']
self.__application_location = LinkUtils.get_link_href(self._details, 'group-application')
self.__revision_image_location = LinkUtils.get_link_href(self._details, 'revision-image')
示例7: __init__
def __init__(self, client, location):
super(DiskStore, self).__init__(client, location)
self.__name = self._details['name']
self.__instance_location = LinkUtils.get_link_href(self._details, 'cache-server-node-instance')
self.__content_location = LinkUtils.get_link_href(self._details, 'content')
示例8: __init__
def __init__(self, client, location):
self.__client = client
self.__location = location
json = client.get(location)
self.__groups = Groups(client, LinkUtils.get_link_href(json, 'groups'))
self.__installation_images = InstallationImages(client, LinkUtils.get_link_href(json, 'installation-images'))
self.__nodes = Nodes(client, LinkUtils.get_link_href(json, 'nodes'))
示例9: __init__
def __init__(self, client, location):
super(Template, self).__init__(client, location)
self.__name = self._details['name']
self.__version = self._details['version']
self.__installation_location = LinkUtils.get_link_href(self._details, 'installation')
self.__template_image_location = LinkUtils.get_link_href(self._details, 'template-image')
示例10: __init__
def __init__(self, client, location):
super(ApplicationCode, self).__init__(client, location)
self.__name = self._details['name']
self.__version = self._details['version']
self.__application_code_image_location = LinkUtils.get_link_href(self._details, 'application-code-image')
self.__instance_location = LinkUtils.get_link_href(self._details, 'cache-server-group-instance')
示例11: __init__
def __init__(self, client, location):
super(Plugin, self).__init__(client, location)
self.__name = self._details['name']
self.__version = self._details['version']
self.__instance_location = LinkUtils.get_link_href(self._details, 'group-instance')
self.__plugin_image_location = LinkUtils.get_link_href(self._details, 'plugin-image')
self.__state_location = LinkUtils.get_link_href(self._details, 'state')
示例12: __init__
def __init__(self, client, location):
super(Application, self).__init__(client, location)
self.__context_path = self._details['context-path']
self.__host = self._details['host']
self.__name = self._details['name']
self.__service = self._details['service']
self.__revisions_location = LinkUtils.get_link_href(self._details, 'group-revisions')
self.__instance_location = LinkUtils.get_link_href(self._details, 'group-instance')
示例13: __init__
def __init__(self, client, location, installation_image_class, group_class):
super(Installation, self).__init__(client, location)
self.__installation_image_location = LinkUtils.get_link_href(self._details, 'installation-image')
self.__group_location = LinkUtils.get_link_href(self._details, 'group')
self.__installation_image_class = installation_image_class
self.__group_class = group_class
self.__version = self._details['version']
示例14: __init__
def __init__(self, client, location):
self.__client = client
self.__location = location
json = client.get(location)
self.__groups = Groups(client, LinkUtils.get_link_href(json, "groups"))
self.__installation_images = InstallationImages(client, LinkUtils.get_link_href(json, "installation-images"))
self.__nodes = Nodes(client, LinkUtils.get_link_href(json, "nodes"))
self.__revision_images = RevisionImages(client, LinkUtils.get_link_href(json, "revision-images"))
self.__template_images = TemplateImages(client, LinkUtils.get_link_href(json, "template-images"))
示例15: __init__
def __init__(self, client, location, instance_type, instance_class, group_configuration_class):
super(NodeConfiguration, self).__init__(client, location)
self.__instance_class = instance_class
self.__group_configuration_class = group_configuration_class
self.__instance_location = LinkUtils.get_link_href(self._details, instance_type)
self.__group_configuration_location = LinkUtils.get_link_href(self._details, 'group-live-configuration')
self.__content_location = LinkUtils.get_link_href(self._details, 'content')
self.__path = self._details['path']