Sha256: 784da188325548e844e61b15e3460f5322b0b7e36c7272b60561685790e06faa
Contents?: true
Size: 791 Bytes
Versions: 28
Compression:
Stored size: 791 Bytes
Contents
import sys,os gen_py_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'lib', 'proto', 'gen-py') sys.path.append(gen_py_path) from cloudthrift import CommandInterface from cloudthrift.constants import * from thrift import Thrift from thrift.transport import TSocket from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol transport = TSocket.TSocket('localhost', 11223) transport = TTransport.TBufferedTransport(transport) protocol = TBinaryProtocol.TBinaryProtocol(transport) ci = CommandInterface.Client(protocol) transport.open() cloudquery = CloudQuery() cloudquery.name = "app" resp = ci.run_command(cloudquery, "name", "") print resp.response resp = ci.run_command(cloudquery, "maximum_instances", "") print resp.response
Version data entries
28 entries across 28 versions & 3 rubygems