File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ jobs:
109109 CHANGED_FILE="masking/global-masking-rule.json"
110110 echo "Processing: $CHANGED_FILE"
111111
112- response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allow_missing =true&update_mask =payload" \
112+ response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allowMissing =true&updateMask =payload" \
113113 --header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
114114 --header "Content-Type: application/json" \
115115 --data @"$CHANGED_FILE")
Original file line number Diff line number Diff line change 9999 PROJECT_NAME=$(echo "$CHANGED_FILE" | sed -n 's/masking\/projects\/\([^/]*\).*/\1/p')
100100 echo "PROJECT_NAME=$PROJECT_NAME"
101101
102- response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/projects/${PROJECT_NAME}/policies/masking_exemption?allow_missing =true&update_mask =payload" \
102+ response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/projects/${PROJECT_NAME}/policies/masking_exemption?allowMissing =true&updateMask =payload" \
103103 --header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
104104 --header "Content-Type: application/json" \
105105 --data @"$CHANGED_FILE")
Original file line number Diff line number Diff line change 9191 CHANGED_FILE="masking/global-masking-rule-classification.json"
9292 echo "Processing: $CHANGED_FILE"
9393
94- response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allow_missing =true&update_mask =payload" \
94+ response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allowMissing =true&updateMask =payload" \
9595 --header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
9696 --header "Content-Type: application/json" \
9797 --data @"$CHANGED_FILE")
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Docs: https://www.bytebase.com/docs/security/data-masking/global-masking-rule/
2525API: https://api.bytebase.com/#tag/orgpolicyservice/PATCH/v1/policies/{policy}
2626
2727``` bash
28- curl --request PATCH " ${bytebase_url} /v1/workspaces/-/policies/masking_rule?allow_missing =true&update_mask =payload" \
28+ curl --request PATCH " ${bytebase_url} /v1/workspaces/-/policies/masking_rule?allowMissing =true&updateMask =payload" \
2929 --header ' Authorization: Bearer ' ${bytebase_token} \
3030 --data @global-masking-rule.json
3131```
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ API: https://api.bytebase.com/#tag/orgpolicyservice/PATCH/v1/projects/{project}/
66
77``` bash
88export project_id=project-sample
9- curl --request PATCH " ${bytebase_url} /v1/projects/${project_id} /policies/masking_exemption?allow_missing =true&update_mask =payload" \
9+ curl --request PATCH " ${bytebase_url} /v1/projects/${project_id} /policies/masking_exemption?allowMissing =true&updateMask =payload" \
1010 --header ' Authorization: Bearer ' ${bytebase_token} \
1111 --data @masking-exemption.json
1212```
You can’t perform that action at this time.
0 commit comments