w.clean_room_auto_approval_rules: Auto-approval Rules¶
- class databricks.sdk.service.cleanrooms.CleanRoomAutoApprovalRulesAPI¶
Clean room auto-approval rules automatically create an approval on your behalf when an asset (e.g. notebook) meeting specific criteria is shared in a clean room.
- create(clean_room_name: str, auto_approval_rule: CleanRoomAutoApprovalRule) CleanRoomAutoApprovalRule¶
Create an auto-approval rule
- Parameters:
clean_room_name – str The name of the clean room this auto-approval rule belongs to.
auto_approval_rule –
CleanRoomAutoApprovalRule
- Returns:
- delete(clean_room_name: str, rule_id: str)¶
Delete a auto-approval rule by rule ID
- Parameters:
clean_room_name – str
rule_id – str
- get(clean_room_name: str, rule_id: str) CleanRoomAutoApprovalRule¶
Get a auto-approval rule by rule ID
- Parameters:
clean_room_name – str
rule_id – str
- Returns:
- list(clean_room_name: str [, page_size: Optional[int], page_token: Optional[str]]) Iterator[CleanRoomAutoApprovalRule]¶
List all auto-approval rules for the caller
- Parameters:
clean_room_name – str
page_size – int (optional) Maximum number of auto-approval rules to return. Defaults to 100.
page_token – str (optional) Opaque pagination token to go to next page based on previous query.
- Returns:
Iterator over
CleanRoomAutoApprovalRule
- update(clean_room_name: str, rule_id: str, auto_approval_rule: CleanRoomAutoApprovalRule) CleanRoomAutoApprovalRule¶
Update a auto-approval rule by rule ID
- Parameters:
clean_room_name – str The name of the clean room this auto-approval rule belongs to.
rule_id – str A generated UUID identifying the rule.
auto_approval_rule –
CleanRoomAutoApprovalRuleThe auto-approval rule to update. The rule_id field is used to identify the rule to update.
- Returns: