當前位置: 首頁>>代碼示例>>Python>>正文


Python CloudManLauncher.get_clusters_pd方法代碼示例

本文整理匯總了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()
開發者ID:pli888,項目名稱:cloudlaunch,代碼行數:10,代碼來源:tasks.py

示例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()
開發者ID:gvlproject,項目名稱:gvl.utilities,代碼行數:19,代碼來源:generate_cleanup_list.py


注:本文中的bioblend.cloudman.launch.CloudManLauncher.get_clusters_pd方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。