Skip to content

Commit 13b5eff

Browse files
authored
Merge pull request #100 from myakove/infrastructure-resource
Add Infrastructure resource
2 parents 4c90dd9 + ea53097 commit 13b5eff

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ocp_resources/infrastructure.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from ocp_resources.resource import Resource
2+
3+
4+
class Infrastructure(Resource):
5+
"""
6+
Infrastructure object.
7+
"""
8+
9+
api_group = Resource.ApiGroup.CONFIG_OPENSHIFT_IO
10+
11+
class Type:
12+
BARE_METAL = "BareMetal"
13+
AWS = "AWS"
14+
OPENSTACK = "OpenStack"
15+
16+
@property
17+
def platform(self):
18+
return self.instance.status.platformStatus.type

0 commit comments

Comments
 (0)