def _print_file_completions(self, param_num, argv): if param_num < 3: self._print_entity_completions(param_num, argv) elif len(argv) > 2 and param_num == 3: completions.print_identifiers(self._client.get_host(argv[0], argv[1], argv[2]).applications()) elif len(argv) > 3 and param_num == 4: completions.print_identifiers(self._client.get_application(argv[0], argv[3]).files())
def _print_purchase_completions(self, param_num, argv): if param_num == 0: completions.print_identifiers( self.get_collection(argv), parameters=self._get_filter_parameters()) elif param_num == 1: completions.print_identifiers(self._client.organizations())
def _print_collection_completions(self, param_num, argv): if param_num == 0: completions.print_identifiers(self._client.organizations()) elif len(argv) > 0 and param_num == 1: completions.print_identifiers(self._client.environments(argv[0])) elif len(argv) > 1 and param_num == 2: completions.print_identifiers(self._client.hosts(argv[0], argv[1]))
def _print_entity_completions(self, param_num, argv): if param_num < 2: self._print_collection_completions(param_num, argv) elif len(argv) > 1 and param_num == 2: completions.print_identifiers(self.get_collection(argv))
def _print_purchase_completions(self, param_num, argv): if param_num == 0: completions.print_identifiers(self.get_collection(argv), parameters = self._get_filter_parameters()) elif param_num == 1: completions.print_identifiers(self._client.organizations())
def _print_entity_completions(self, param_num, argv): if param_num == 0: completions.print_identifiers(self.get_collection(argv), parameters = self._get_filter_parameters())
def _print_entity_completions(self, param_num, argv): if param_num == 0: completions.print_identifiers( self.get_collection(argv), parameters=self._get_filter_parameters())