-
Notifications
You must be signed in to change notification settings - Fork 4
/
interfaces.py
53 lines (44 loc) · 1.9 KB
/
interfaces.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##############################################################################
#
# Copyright (C) Zenoss, Inc. 2010, all rights reserved.
#
# This content is made available according to terms specified in
# License.zenoss under the directory where your Zenoss product is installed.
#
##############################################################################
from Products.Zuul.interfaces import IRRDDataSourceInfo
from Products.Zuul.interfaces import IBasicDataSourceInfo, IFacade,\
IComponentInfo
from Products.Zuul.form import schema
from Products.Zuul.utils import ZuulMessageFactory as _t
class IAWSFacade(IFacade):
"""
A facade for AWS
"""
def configure(access_id, secret, devicePath='', devicePathForWindows=''):
"""
@param access_id: AWS id
@param secret: AWS secret for authentication
@param devicePath:
@param devicePathForWindows:
"""
class ICWMonitorDataSourceInfo(IRRDDataSourceInfo):
timeout = schema.Int(title=_t(u'Timeout (seconds)'))
cycletime = schema.Int(title=_t(u'Cycle Time (seconds)'))
class IEC2InstanceTypeInfo(IComponentInfo):
"""
Info adapter for EC2InstanceType components.
"""
name = schema.TextLine(title=u"Name", readonly=True)
class IEC2InstanceInfo(IComponentInfo):
"""
Info adapter for C2Instance components.
"""
instance_id = schema.TextLine(title=u"Instance ID", readonly=True)
device = schema.Entity(title=u"Device", readonly=True)
dns_name = schema.TextLine(title=u"DNS Name", readonly=True)
aws_name = schema.TextLine(title=u"AWS Name", readonly=True)
placement = schema.TextLine(title=u"Placement", readonly=True)
instance_type = schema.Entity(title=u"Instance Type", readonly=True)
state = schema.TextLine(title=u"state", readonly=True)
private_ip_addresses = schema.List(title=u"Private IP Addresses", readonly=True)