Api Discovery plugin returns the supported APIs of a CloudStack endpoint. @return: The classes in cloudstackAPI/ formed from api discovery json
(self, endpointUrl)
| 431 | return cmds |
| 432 | |
| 433 | def generateCodeFromJSON(self, endpointUrl): |
| 434 | """ |
| 435 | Api Discovery plugin returns the supported APIs of a CloudStack |
| 436 | endpoint. |
| 437 | @return: The classes in cloudstackAPI/ formed from api discovery json |
| 438 | """ |
| 439 | if endpointUrl.find('response=json') >= 0: |
| 440 | apiStream = urlopen(endpointUrl) |
| 441 | cmds = self.loadCmdFromJSON(apiStream) |
| 442 | for cmd in cmds: |
| 443 | self.generate(cmd) |
| 444 | self.finalize() |
| 445 | |
| 446 | |
| 447 | def getText(elements): |
no test coverage detected