File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -663,4 +663,13 @@ public function getHypervisorsDetail(): array
663
663
$ definition ['path ' ] .= '/detail ' ;
664
664
return $ definition ;
665
665
}
666
+
667
+ public function getHypervisor (): array
668
+ {
669
+ return [
670
+ 'method ' => 'GET ' ,
671
+ 'path ' => 'os-hypervisor/{id} ' ,
672
+ 'params ' => ['id ' => $ this ->params ->urlId ('hypervisor ' )]
673
+ ];
674
+ }
666
675
}
Original file line number Diff line number Diff line change @@ -67,4 +67,13 @@ class Hypervisor extends OperatorResource implements
67
67
protected $ resourceKey = 'hypervisor ' ;
68
68
protected $ resourcesKey = 'hypervisors ' ;
69
69
protected $ markerKey = 'id ' ;
70
+
71
+ /**
72
+ * {@inheritDoc}
73
+ */
74
+ public function retrieve ()
75
+ {
76
+ $ response = $ this ->execute ($ this ->api ->getHypervisor (), $ this ->getAttrs (['id ' ]));
77
+ $ this ->populateFromResponse ($ response );
78
+ }
70
79
}
You can’t perform that action at this time.
0 commit comments