Skip to content

Commit c9c4048

Browse files
authored
Merge pull request #249 from jear/import-with-json
feat(import): import cluster with json
2 parents 655f1e6 + 1f8334a commit c9c4048

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

hpecp/k8s_cluster.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,3 +582,27 @@ def import_generic_cluster(
582582
data=data,
583583
)
584584
return response.json()
585+
586+
def import_generic_cluster_with_json(
587+
self, json
588+
):
589+
"""Import a generic k8s cluster.
590+
591+
TODO
592+
593+
Returns
594+
-------
595+
TODO
596+
597+
Raises
598+
------
599+
APIException
600+
"""
601+
602+
response = self.client._request(
603+
url="/api/v2/k8scluster/import",
604+
http_method="post",
605+
description="K8sClusterController/import_generic_cluster",
606+
data=json,
607+
)
608+
return response.json()

0 commit comments

Comments
 (0)