Skip to content

Commit

Permalink
Update VW and Data Viz api parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Enright <jenright@cloudera.com>
  • Loading branch information
jimright committed Jan 7, 2025
1 parent 54707ae commit 5209e64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 5 additions & 3 deletions plugins/modules/dw_data_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@
description: Version of the Cloudera Data Visualization.
type: str
template_name:
description: The template size for the Cloudera Data Visualization.
description: The name of the available resource template to use for the Cloudera Data Visualization.
type: str
aliases:
- resource_template
wait:
description:
- Flag to enable internal polling to wait for the Data Visualization Instance to achieve the declared state.
Expand Down Expand Up @@ -327,7 +329,7 @@ def process(self):
cluster_id=self.cluster["id"],
name=self.name,
config=self.config,
template_name=self.template_name,
resource_template=self.template_name,
image_version=self.image_version,
)
if self.wait:
Expand Down Expand Up @@ -356,7 +358,7 @@ def main():
id=dict(type="str"),
name=dict(type="str"),
config=dict(type="dict"),
template_name=dict(type="str"),
template_name=dict(type="str", aliases=["resource_template"]),
image_version=dict(type="str"),
state=dict(type="str", choices=["present", "absent"], default="present"),
wait=dict(type="bool", default=True),
Expand Down
10 changes: 7 additions & 3 deletions plugins/modules/dw_virtual_warehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,17 @@
- Required if C(state=present)
type: str
template:
description: The name of deployment template for the Virtual Warehouse
description:
- The name of deployment T-shirt size to use.
- This will determine the number of nodes.
type: str
choices:
- xsmall
- small
- medium
- large
aliases:
- tshirt_size
autoscaling:
description:
- Auto-scaling configuration for a Virtual Warehouse
Expand Down Expand Up @@ -546,7 +550,7 @@ def process(self):
dbc_id=self.dbc_id,
vw_type=self.type,
name=self.name,
template=self.template,
tshirt_size=self.template,
autoscaling_min_cluster=self.autoscaling_min_nodes,
autoscaling_max_cluster=self.autoscaling_max_nodes,
autoscaling_auto_suspend_timeout_seconds=self.autoscaling_auto_suspend_timeout_seconds,
Expand Down Expand Up @@ -600,7 +604,7 @@ def main():
catalog_id=dict(type="str", aliases=["dbc_id"]),
type=dict(type="str"),
name=dict(type="str"),
template=dict(type="str", choices=["xsmall", "small", "medium", "large"]),
template=dict(type="str", choices=["xsmall", "small", "medium", "large"], aliases=["tshirt_size"]),
autoscaling=dict(
type="dict",
options=dict(
Expand Down

0 comments on commit 5209e64

Please # to comment.