File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ class InstallProxy(object):
37
37
38
38
def __dir__ (self ):
39
39
"""Return the CLI method names."""
40
- return [
41
- # "examples",
42
- "get"
43
- ]
40
+ return ["examples" , "get" ]
44
41
45
42
@base .intercept_exception
46
43
def get (self , output = "yaml" , query = None ):
@@ -95,6 +92,9 @@ def examples(self):
95
92
dedent (
96
93
"""\
97
94
95
+ $ hpecp install get --query 'objects.[cpu_allocation_ratio]' --output json
96
+ 1
97
+
98
98
""" # noqa: E501
99
99
)
100
100
)
Original file line number Diff line number Diff line change @@ -43,3 +43,26 @@ def get(self):
43
43
description = "install/get" ,
44
44
)
45
45
return response .json ()
46
+
47
+ # def set_gateway_ssl(self, ):
48
+ # """Set Gateway SSL."""
49
+ # _data = {
50
+ # "gateway_ssl_cert_info": {
51
+ # "cert_file": {
52
+ # "content": "-----BEGIN CERTIFICATE-----XXXX-----END CERTIFICATE-----\n",
53
+ # "file_name": "cert.pem",
54
+ # },
55
+ # "key_file": {
56
+ # "content": "-----BEGIN RSA PRIVATE KEY-----XXXX-----END RSA PRIVATE KEY-----\n",
57
+ # "file_name": "key.pem",
58
+ # },
59
+ # }
60
+ # }
61
+
62
+ # response = self.client._request(
63
+ # url="/api/v1/install?install_reconfig",
64
+ # http_method="put",
65
+ # data=_data,
66
+ # description="install/set_gateway_ssl",
67
+ # )
68
+ # return response.json()
You can’t perform that action at this time.
0 commit comments