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

Version Path
auser-poolparty-1.3.0 examples/thrift/thrift_example.py
auser-poolparty-1.3.1 examples/thrift/thrift_example.py
auser-poolparty-1.3.10 examples/thrift/thrift_example.py
auser-poolparty-1.3.11 examples/thrift/thrift_example.py
auser-poolparty-1.3.12 examples/thrift/thrift_example.py
auser-poolparty-1.3.13 examples/thrift/thrift_example.py
auser-poolparty-1.3.14 examples/thrift/thrift_example.py
auser-poolparty-1.3.15 examples/thrift/thrift_example.py
auser-poolparty-1.3.16 examples/thrift/thrift_example.py
auser-poolparty-1.3.17 examples/thrift/thrift_example.py
auser-poolparty-1.3.2 examples/thrift/thrift_example.py
auser-poolparty-1.3.3 examples/thrift/thrift_example.py
auser-poolparty-1.3.4 examples/thrift/thrift_example.py
auser-poolparty-1.3.5 examples/thrift/thrift_example.py
auser-poolparty-1.3.6 examples/thrift/thrift_example.py
auser-poolparty-1.3.7 examples/thrift/thrift_example.py
auser-poolparty-1.3.8 examples/thrift/thrift_example.py
fairchild-poolparty-1.3.17 examples/thrift/thrift_example.py
fairchild-poolparty-1.3.5 examples/thrift/thrift_example.py
poolparty-1.3.15 examples/thrift/thrift_example.py