-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.py
182 lines (133 loc) · 3.53 KB
/
person.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
class Person(object):
person_list = []
def __init__(self, ibm_id=None, service_name=None, service_inst=None, region=None,
resource_type=None, resource=None, platform_viewer=None, platform_editor=None,
platform_admin=None, service_reader=None, service_writer=None, service_manager=None,
rg_id=None, rg_viewer=None, rg_operator=None, rg_editor=None, rg_admin=None):
self._ibm_id = ibm_id
self._service_name = service_name
self._service_inst = service_inst
self._region = region
self._resource_type = resource_type
self._resource = resource
self._platform_viewer = platform_viewer
self._platform_editor = platform_editor
self._platform_administrator = platform_admin
self._service_reader = service_reader
self._service_writer = service_writer
self._service_manager = service_manager
self._ag = None
# rg
self._rg_id = rg_id
self._rg_viewer = rg_viewer
self._rg_operator = rg_operator
self._rg_editor = rg_editor
self._rg_admin = rg_admin
@property
def rg_id(self):
return self._rg_id
@rg_id.setter
def rg_id(self, id_):
self._rg_id = id
@property
def rg_viewer(self):
return self._rg_viewer
@rg_viewer.setter
def rg_viewer(self, viewer):
self._rg_viewer = viewer
@property
def rg_operator(self):
return self._rg_operator
@rg_operator.setter
def rg_operator(self, operator):
self._rg_operator = operator
@property
def rg_editor(self):
return self._rg_editor
@rg_editor.setter
def rg_editor(self, editor):
self._rg_editor = editor
@property
def rg_admin(self):
return self._rg_admin
@rg_admin.setter
def rg_admin(self, admin):
self._rg_admin = admin
@property
def ibm_id(self):
return self._ibm_id
@ibm_id.setter
def ibm_id(self, _id):
self._ibm_id = _id
@property
def service_name(self):
return self._service_name
@service_name.setter
def service_name(self, name):
self._service_name = name
@property
def service_inst(self):
return self._service_inst
@service_inst.setter
def service_inst(self, inst):
self._service_inst = inst
@property
def region(self):
return self._region
@region.setter
def region(self, reg):
self._region = reg
@property
def resource_type(self):
return self._resource_type
@resource_type.setter
def resource_type(self, rt):
self._resource_type = rt
@property
def resource(self):
return self._resource
@resource.setter
def resource(self, id):
self._resource = id
@property
def platform_viewer(self):
return self._platform_viewer
@platform_viewer.setter
def platform_viewer(self, viewer):
self._platform_viewer = viewer
@property
def platform_editor(self):
return self._platform_editor
@platform_editor.setter
def platform_editor(self, editor):
self._platform_editor = editor
@property
def platform_administrator(self):
return self._platform_administrator
@platform_administrator.setter
def platform_admin(self, admin):
self._platform_administrator = admin
@property
def service_reader(self):
return self._service_reader
@service_reader.setter
def service_reader(self, reader):
self._service_reader = reader
@property
def service_writer(self):
return self._service_writer
@service_writer.setter
def service_writer(self, writer):
self._service_writer = writer
@property
def service_manager(self):
return self._service_manager
@service_manager.setter
def service_manager(self, manager):
self._service_manager = manager
@property
def ag(self):
return self._ag
@ag.setter
def ag(self, group):
self._ag = group