def get_cluster_data(self, id: str) -> cluster_data.ClusterData: """Gets the ClusterData object to manage data related to the given cluster Args: id (:obj:`str`): the id of the cluster to get Returns: :obj:`aztk.models.ClusterData`: Object used to manage the data and storage functions for a cluster """ return cluster_data.ClusterData(self.blob_client, id)
def _get_cluster_data(self, cluster_id: str) -> cluster_data.ClusterData: """ Returns ClusterData object to manage data related to the given cluster id """ return cluster_data.ClusterData(self.blob_client, cluster_id)
def read_cluster_config(): data = cluster_data.ClusterData(config.blob_client, config.cluster_id) cluster_config = data.read_cluster_config() print("Got cluster config", cluster_config) return cluster_config