Skip to content

Commit 95e66c0

Browse files
committed
add examples
Signed-off-by: Chris Snow <[email protected]>
1 parent 3651254 commit 95e66c0

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

hpecp/cli/install.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ class InstallProxy(object):
3737

3838
def __dir__(self):
3939
"""Return the CLI method names."""
40-
return [
41-
# "examples",
42-
"get"
43-
]
40+
return ["examples", "get"]
4441

4542
@base.intercept_exception
4643
def get(self, output="yaml", query=None):
@@ -95,6 +92,9 @@ def examples(self):
9592
dedent(
9693
"""\
9794
95+
$ hpecp install get --query 'objects.[cpu_allocation_ratio]' --output json
96+
1
97+
9898
""" # noqa: E501
9999
)
100100
)

hpecp/install.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,26 @@ def get(self):
4343
description="install/get",
4444
)
4545
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()

0 commit comments

Comments
 (0)