Skip to content

Commit 9033976

Browse files
authored
Add list and describe cluster definitions to datahub.py (#18)
Signed-off-by: Chris Perro <[email protected]>
1 parent ce93cf0 commit 9033976

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cdpy/datahub.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ def create_cluster_template(self, name, description, content):
4848
svc='datahub', func='create_cluster_template', ret_field='clusterTemplate',
4949
clusterTemplateName=name, description=description, clusterTemplateContent=content
5050
)
51+
52+
def list_cluster_definitions(self):
53+
return self.sdk.call(svc='datahub', func='list_cluster_definitions', ret_field='clusterDefinitions')
54+
55+
def describe_cluster_definition(self, name):
56+
return self.sdk.call(svc='datahub', func='describe_cluster_definition', ret_field='clusterDefinition', squelch=[
57+
Squelch(value='NOT_FOUND')], clusterDefinitionName=name)

0 commit comments

Comments
 (0)