@@ -72,41 +72,36 @@ directive:
72
72
- from: types.json
73
73
where: $.definitions.Resource
74
74
transform: >
75
- $["x-ms-mgmt-referenceType"] = true;
76
- $["x-ms-mgmt-propertyReferenceType"] = true;
77
75
$["x-namespace"] = "Azure.ResourceManager.Models";
76
+ $["x-ms-client-name"] = "ResourceData";
78
77
$["x-accessibility"] = "public";
79
78
$["x-csharp-formats"] = "json";
80
79
$["x-csharp-usage"] = "model,input,output";
81
80
- from: types.json
82
81
where: $.definitions.TrackedResource
83
82
transform: >
84
- $["x-ms-mgmt-referenceType"] = true;
85
- $["x-ms-mgmt-propertyReferenceType"] = true;
86
83
$["x-namespace"] = "Azure.ResourceManager.Models";
84
+ $["x-ms-client-name"] = "TrackedResourceData";
87
85
$["x-accessibility"] = "public";
88
86
$["x-csharp-formats"] = "json";
89
87
$["x-csharp-usage"] = "model,input,output";
90
88
- from: types.json
91
89
where: $.definitions.Plan
92
90
transform: >
93
- $["x-ms-mgmt-propertyReferenceType"] = true;
94
91
$["x-namespace"] = "Azure.ResourceManager.Models";
95
92
$["x-accessibility"] = "public";
96
93
$["x-csharp-formats"] = "json";
97
94
$["x-csharp-usage"] = "model,input,output";
98
95
- from: types.json
99
96
where: $.definitions.Sku
100
97
transform: >
101
- $["x-ms-mgmt-propertyReferenceType"] = true;
102
98
$["x-namespace"] = "Azure.ResourceManager.Models";
103
99
$["x-accessibility"] = "public";
104
100
$["x-csharp-formats"] = "json";
105
101
$["x-csharp-usage"] = "model,input,output";
106
102
- from: types.json
107
103
where: $.definitions.systemData
108
104
transform: >
109
- $["x-ms-mgmt-propertyReferenceType"] = true;
110
105
$["x-namespace"] = "Azure.ResourceManager.Models";
111
106
$["x-accessibility"] = "public";
112
107
$["x-csharp-formats"] = "json";
@@ -119,15 +114,13 @@ directive:
119
114
- from: types.json
120
115
where: $.definitions.encryptionProperties
121
116
transform: >
122
- $["x-ms-mgmt-propertyReferenceType"] = true;
123
117
$["x-namespace"] = "Azure.ResourceManager.Models";
124
118
$["x-accessibility"] = "public";
125
119
$["x-csharp-formats"] = "json";
126
120
$["x-csharp-usage"] = "model,input,output";
127
121
- from: types.json
128
122
where: $.definitions.KeyVaultProperties
129
123
transform: >
130
- $["x-ms-mgmt-propertyReferenceType"] = true;
131
124
$["x-namespace"] = "Azure.ResourceManager.Models";
132
125
$["x-accessibility"] = "public";
133
126
$["x-csharp-formats"] = "json";
@@ -140,8 +133,6 @@ directive:
140
133
- from: types.json
141
134
where: $.definitions.OperationStatusResult
142
135
transform: >
143
- $["x-ms-mgmt-propertyReferenceType"] = false;
144
- $["x-ms-mgmt-typeReferenceType"] = true;
145
136
$["x-csharp-formats"] = "json";
146
137
$["x-csharp-usage"] = "model,input,output";
147
138
- from: types.json
@@ -151,7 +142,6 @@ directive:
151
142
- from: managedidentity.json
152
143
where: $.definitions.SystemAssignedServiceIdentity
153
144
transform: >
154
- $["x-ms-mgmt-propertyReferenceType"] = true;
155
145
$["x-namespace"] = "Azure.ResourceManager.Models";
156
146
$["x-accessibility"] = "public";
157
147
$["x-csharp-formats"] = "json";
@@ -160,7 +150,6 @@ directive:
160
150
- from: managedidentity.json
161
151
where: $.definitions.UserAssignedIdentity
162
152
transform: >
163
- $["x-ms-mgmt-propertyReferenceType"] = true;
164
153
$["x-namespace"] = "Azure.ResourceManager.Models";
165
154
$["x-accessibility"] = "public";
166
155
$["x-csharp-formats"] = "json";
@@ -302,6 +291,8 @@ rename-mapping:
302
291
ResourceName: ResourceNameValidationContent
303
292
ResourceName.type: ResourceType|resource-type
304
293
ResourceNameStatus: ResourceNameValidationStatus
294
+ Resource: ResourceData
295
+ TrackedResource: TrackedResourceData
305
296
306
297
directive:
307
298
# These methods can be replaced by using other methods in the same operation group, remove for Preview.
@@ -332,10 +323,6 @@ directive:
332
323
- remove-operation: Providers_RegisterAtManagementGroupScope
333
324
- remove-operation: Subscriptions_CheckZonePeers
334
325
- remove-operation: AuthorizationOperations_List
335
- - from: swagger-document
336
- where: $.definitions.ExtendedLocation
337
- transform: >
338
- $["x-ms-mgmt-propertyReferenceType"] = true;
339
326
# Deduplicate
340
327
- from: subscriptions.json
341
328
where: '$.paths["/providers/Microsoft.Resources/operations"].get'
@@ -593,10 +580,6 @@ directive:
593
580
$.GenericResource.properties["changedTime"] = $.GenericResourceExpanded.properties["changedTime"];
594
581
$.GenericResource.properties["provisioningState"] = $.GenericResourceExpanded.properties["provisioningState"];
595
582
delete $.GenericResourceExpanded;
596
- # - from: resources.json
597
- # where: $.definitions['Provider']
598
- # transform: >
599
- # $["x-ms-mgmt-propertyReferenceType"] = true # not supported with ResourceData yet, use custom code first
600
583
- from: locks.json
601
584
where: $.definitions.ManagementLockObject
602
585
transform: $["x-ms-client-name"] = "ManagementLock"
0 commit comments