def _print_host_completions(self, param_num, argv): if param_num == 0: completions.print_entity_identifiers(self._client.organizations().list()) elif len(argv) > 0 and param_num == 1: completions.print_entity_identifiers(self._client.environments(argv[0]).list()) elif len(argv) > 1 and param_num == 2: completions.print_entity_identifiers(self._client.hosts(argv[0], argv[1]).list()) elif len(argv) > 2 and param_num == 3: completions.print_entity_identifiers(self._client.get_host(argv[0], argv[1], argv[2]).applications())
def _print_identifiers(self, collection, parameters = {}): completions.print_entity_identifiers(collection.list(parameters))
def _print_run_completions(self, param_num, argv): if param_num < 4: self._print_entity_completions(param_num, argv) elif len(argv) > 3 and param_num == 4: completions.print_entity_identifiers(self._client.get_application(argv[0], argv[3]).actions)
def _print_identifiers(self, collection, parameters={}): completions.print_entity_identifiers(collection.list(parameters))