Blame view

Instance.py 942 Bytes
2382daaac   Thanasis Naskos   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  class Instance(object): 
  	def __init__(self,
  			id = "",
  			image_id = "",
  			dns_name = "",
  			ip_address = "",
  			mac_address = "",
  			vpn = "",
  			state = "",
  			instance_type = "",
  			launch_time = "",
  			placement = "",
  			username="ubuntu",
  			password="secretpw"):
  		self.id = id
  		self.image_id = image_id
  		self.dns_name = dns_name
  		self.ip_address = ip_address
  		self.vpn = vpn
  		self.mac_address = mac_address
  		self.state = state
  		self.instance_type = instance_type
  		self.launch_time = launch_time
  		self.placement = placement
  		self.username = username
  		self.password = password
  
  	def __str__(self):
  		return str(self.id) + " " + str(self.image_id) + " " + str(self.dns_name) + " " + str(self.ip_address) + " " + str(self.mac_address) + " " + str(self.vpn) + " " + str(self.state) + " " + str(self.instance_type) + " " + str(self.launch_time) + " " + str(self.placement) + " " + str(self.username) + " " + str(self.password)