Skip to content

Commit 2beb45c

Browse files
Add delete dbc and vw functions
1 parent ea7db07 commit 2beb45c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cdpy/dw.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,17 @@ def create_vw(self, cluster_id:str, dbc_id:str, vw_type:str, name:str, template:
127127
config=config, tags=tag_list
128128
)
129129

130+
def delete_vw(self, cluster_id:str, vw_id:str):
131+
return self.sdk.call(
132+
svc='dw', func='delete_vw', squelch=[Squelch('NOT_FOUND')], clusterId=cluster_id, vwId=vw_id
133+
)
134+
130135
def create_dbc(self, cluster_id:str, name:str, load_demo_data: bool = None):
131136
return self.sdk.call(
132137
svc='dw', func='create_dbc', clusterId = cluster_id, name=name, loadDemoData = load_demo_data
133138
)
139+
140+
def delete_dbc(self, cluster_id:str, dbc_id:str):
141+
return self.sdk.call(
142+
svc='dw', func='delete_dbc', squelch=[Squelch('NOT_FOUND')], clusterId=cluster_id, dbcId=dbc_id
143+
)

0 commit comments

Comments
 (0)