本文整理匯總了Python中bioblend.cloudman.launch.CloudManLauncher.get_clusters_pd方法的典型用法代碼示例。如果您正苦於以下問題:Python CloudManLauncher.get_clusters_pd方法的具體用法?Python CloudManLauncher.get_clusters_pd怎麽用?Python CloudManLauncher.get_clusters_pd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類bioblend.cloudman.launch.CloudManLauncher
的用法示例。
在下文中一共展示了CloudManLauncher.get_clusters_pd方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: fetch_clusters
# 需要導入模塊: from bioblend.cloudman.launch import CloudManLauncher [as 別名]
# 或者: from bioblend.cloudman.launch.CloudManLauncher import get_clusters_pd [as 別名]
def fetch_clusters(cloud, a_key, s_key):
"""
Given a cloud object and appropriate credentials, retrieve a list of
clusters associated with the given account. Return a dict of clusters'
persistent data.
"""
cml = CloudManLauncher(a_key, s_key, cloud)
return cml.get_clusters_pd()
示例2: get_cluster_pd
# 需要導入模塊: from bioblend.cloudman.launch import CloudManLauncher [as 別名]
# 或者: from bioblend.cloudman.launch.CloudManLauncher import get_clusters_pd [as 別名]
def get_cluster_pd(a_key, s_key):
cloud = Bunch(id='-1',
name="NeCTAR",
cloud_type='openstack',
bucket_default='cloudman-os',
region_name='NeCTAR',
region_endpoint='nova.rc.nectar.org.au',
ec2_port=8773,
ec2_conn_path='/services/Cloud',
cidr_range='115.146.92.0/22',
is_secure=True,
s3_host='swift.rc.nectar.org.au',
s3_port=8888,
s3_conn_path='/')
cml = CloudManLauncher(a_key, s_key, cloud)
return cml.get_clusters_pd()