Skip to content

Commit 3098b29

Browse files
committed
Add override for [de]serialization of null properties
1 parent 499ca34 commit 3098b29

19 files changed

+260133
-225381
lines changed

src/azure-cli/azure/cli/command_modules/resource/policy.py

Lines changed: 291 additions & 22 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_create_policy_assignment_random.yaml

Lines changed: 7001 additions & 2699 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policy_arg_validate.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interactions:
1313
ParameterSetName:
1414
- --name
1515
User-Agent:
16-
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
16+
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
1717
method: GET
1818
uri: https://management.azure.com/providers/Microsoft.Authorization/policyDefinitions/somePolicyDefinition?api-version=2024-05-01
1919
response:
@@ -28,7 +28,7 @@ interactions:
2828
content-type:
2929
- application/json
3030
date:
31-
- Thu, 22 May 2025 19:52:31 GMT
31+
- Wed, 19 Nov 2025 02:17:27 GMT
3232
expires:
3333
- '-1'
3434
pragma:
@@ -42,7 +42,7 @@ interactions:
4242
x-ms-operation-identifier:
4343
- ''
4444
x-msedge-ref:
45-
- 'Ref A: 7B6CE64B8DAD4B09977EC0FA7E565D20 Ref B: CO6AA3150217045 Ref C: 2025-05-22T19:52:31Z'
45+
- 'Ref A: 0173D0B9212E43F397D7862BF78EA7CF Ref B: CO6AA3150217029 Ref C: 2025-11-19T02:17:27Z'
4646
status:
4747
code: 404
4848
message: Not Found
@@ -60,7 +60,7 @@ interactions:
6060
ParameterSetName:
6161
- --name
6262
User-Agent:
63-
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
63+
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
6464
method: GET
6565
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/somePolicyDefinition?api-version=2024-05-01
6666
response:
@@ -75,7 +75,7 @@ interactions:
7575
content-type:
7676
- application/json
7777
date:
78-
- Thu, 22 May 2025 19:52:31 GMT
78+
- Wed, 19 Nov 2025 02:17:27 GMT
7979
expires:
8080
- '-1'
8181
pragma:
@@ -87,11 +87,11 @@ interactions:
8787
x-content-type-options:
8888
- nosniff
8989
x-ms-operation-identifier:
90-
- tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=3d826307-2481-45a0-a271-bcf9333f914a/westus2/53f7c5dd-b73f-4fd4-8c8d-a331a41c343a
90+
- tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=3d826307-2481-45a0-a271-bcf9333f914a/westus/4bc6635d-e71f-4bf9-91ac-f0a25c824283
9191
x-ms-ratelimit-remaining-subscription-global-reads:
9292
- '16499'
9393
x-msedge-ref:
94-
- 'Ref A: 29CD3A9D0A3441E3B6B51443F9BD4A0F Ref B: CO6AA3150217045 Ref C: 2025-05-22T19:52:31Z'
94+
- 'Ref A: C953DD83D25543269F4AD4CAAA4077F3 Ref B: MWH011020806029 Ref C: 2025-11-19T02:17:28Z'
9595
status:
9696
code: 404
9797
message: Not Found
@@ -109,7 +109,7 @@ interactions:
109109
ParameterSetName:
110110
- -n
111111
User-Agent:
112-
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
112+
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
113113
method: GET
114114
uri: https://management.azure.com/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004?api-version=2024-05-01
115115
response:
@@ -130,7 +130,7 @@ interactions:
130130
content-type:
131131
- application/json; charset=utf-8
132132
date:
133-
- Thu, 22 May 2025 19:52:31 GMT
133+
- Wed, 19 Nov 2025 02:17:28 GMT
134134
expires:
135135
- '-1'
136136
pragma:
@@ -144,7 +144,7 @@ interactions:
144144
x-ms-operation-identifier:
145145
- ''
146146
x-msedge-ref:
147-
- 'Ref A: 4E5051DBCD1A4DF29BF531DFC0AAD566 Ref B: CO6AA3150220039 Ref C: 2025-05-22T19:52:31Z'
147+
- 'Ref A: 00208A4C14E14AC9A6992220A599F795 Ref B: MWH011020809060 Ref C: 2025-11-19T02:17:28Z'
148148
status:
149149
code: 200
150150
message: OK
@@ -162,7 +162,7 @@ interactions:
162162
ParameterSetName:
163163
- --name --management-group
164164
User-Agent:
165-
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
165+
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
166166
method: GET
167167
uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/fee5cb2b-9d9b-410e-afe3-2902d90d0004/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004?api-version=2024-05-01
168168
response:
@@ -177,7 +177,7 @@ interactions:
177177
content-type:
178178
- application/json
179179
date:
180-
- Thu, 22 May 2025 19:52:32 GMT
180+
- Wed, 19 Nov 2025 02:17:28 GMT
181181
expires:
182182
- '-1'
183183
pragma:
@@ -191,7 +191,7 @@ interactions:
191191
x-ms-operation-identifier:
192192
- ''
193193
x-msedge-ref:
194-
- 'Ref A: EB0208447711464FAF3C14B6303C6CA7 Ref B: MWH011020806060 Ref C: 2025-05-22T19:52:32Z'
194+
- 'Ref A: 60DC27A66C674EAE8B42A554E2A9BD8E Ref B: CO6AA3150219031 Ref C: 2025-11-19T02:17:28Z'
195195
status:
196196
code: 404
197197
message: Not Found

0 commit comments

Comments
 (0)