File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from typing import Any , Optional
4
4
5
- from ocp_resources .project_project_openshift_io import Project
6
5
from ocp_resources .resource import Resource
6
+ from ocp_resources .project_project_openshift_io import Project
7
7
8
8
9
9
class ProjectRequest (Resource ):
@@ -45,5 +45,18 @@ def to_dict(self) -> None:
45
45
46
46
# End of generated code
47
47
48
+ def deploy (self , wait : bool = False ) -> Project :
49
+ super ().deploy (wait = wait )
50
+
51
+ project = Project (
52
+ name = self .name ,
53
+ client = self .client ,
54
+ teardown = self .teardown ,
55
+ delete_timeout = self .delete_timeout ,
56
+ )
57
+ project .wait_for_status (status = project .Status .ACTIVE )
58
+
59
+ return project
60
+
48
61
def clean_up (self , wait : bool = True , timeout : Optional [int ] = None ) -> bool :
49
62
return Project (name = self .name , client = self .client ).clean_up (wait = wait , timeout = timeout )
You can’t perform that action at this time.
0 commit comments