Skip to content

Commit 8052426

Browse files
Kumareshan009Kumareshan P
andauthored
Allowing put patch delete for schemareferences (#37941)
* Allowing put patch delete on schemareferences * Adding examples to 2025-06-01 * Adding example to 2025-08-01 * Removed duplicate * Updating examples * Fixing indentation * Adding example refs * Fixing errors --------- Co-authored-by: Kumareshan P <[email protected]>
1 parent f64c53b commit 8052426

23 files changed

+894
-27
lines changed

specification/edge/Microsoft.Edge.ConfigurationManager.Management/SchemaReference.tsp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ model SchemaReferenceProperties {
2727

2828
@doc("Schema Reference Resource")
2929
model SchemaReference is ExtensionResource<SchemaReferenceProperties> {
30-
...ResourceNameParameter<SchemaReference>;
30+
...ResourceNameParameter<SchemaReference, NamePattern = "^default$">;
3131
...EntityTagProperty;
3232
}
3333

@@ -36,6 +36,15 @@ interface SchemaReferences {
3636
@doc("Get a Schema Reference Resource")
3737
get is ArmResourceRead<SchemaReference>;
3838

39+
@doc("Create or update a Schema Reference Resource")
40+
createOrUpdate is ArmResourceCreateOrReplaceAsync<SchemaReference>;
41+
42+
@doc("update a Schema Reference Resource")
43+
update is ArmResourcePatchSync<SchemaReference, SchemaReferenceProperties>;
44+
45+
@doc("Delete a Schema Reference Resource")
46+
delete is ArmResourceDeleteWithoutOkAsync<SchemaReference>;
47+
3948
@doc("List by specified resource group")
4049
listByResourceGroup is ArmResourceListByParent<SchemaReference>;
4150
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"title": "SchemaReferences_CreateOrUpdate_MaximumSet",
3+
"operationId": "SchemaReferences_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2025-06-01",
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default",
8+
"resource": {
9+
"properties": {
10+
"schemaId": "vxgxfkfws"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"properties": {
18+
"schemaId": "vxgxfkfws",
19+
"provisioningState": "Succeeded"
20+
},
21+
"eTag": "rpblituadyvurec",
22+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
23+
"name": "brijvbbrrzgtttybezvtrjzu",
24+
"type": "jbdfmlyogaxxys",
25+
"systemData": {
26+
"createdBy": "nvjczgdguyvllp",
27+
"createdByType": "User",
28+
"createdAt": "2025-06-09T10:11:50.747Z",
29+
"lastModifiedBy": "uzbznzjgvaspvtqhyg",
30+
"lastModifiedByType": "User",
31+
"lastModifiedAt": "2025-06-09T10:11:50.747Z"
32+
}
33+
}
34+
},
35+
"201": {
36+
"headers": {
37+
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
38+
},
39+
"body": {
40+
"properties": {
41+
"schemaId": "vxgxfkfws",
42+
"provisioningState": "Succeeded"
43+
},
44+
"eTag": "rpblituadyvurec",
45+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
46+
"name": "brijvbbrrzgtttybezvtrjzu",
47+
"type": "jbdfmlyogaxxys",
48+
"systemData": {
49+
"createdBy": "nvjczgdguyvllp",
50+
"createdByType": "User",
51+
"createdAt": "2025-06-09T10:11:50.747Z",
52+
"lastModifiedBy": "uzbznzjgvaspvtqhyg",
53+
"lastModifiedByType": "User",
54+
"lastModifiedAt": "2025-06-09T10:11:50.747Z"
55+
}
56+
}
57+
}
58+
}
59+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"title": "SchemaReferences_Delete_MaximumSet",
3+
"operationId": "SchemaReferences_Delete",
4+
"parameters": {
5+
"api-version": "2025-06-01",
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"location": "https://contoso.com/operationstatus"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}

specification/edge/Microsoft.Edge.ConfigurationManager.Management/examples/2025-06-01/SchemaReferences_Get_MaximumSet_Gen.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"title": "SchemaReferences_Get_MaximumSet",
2+
"title": "SchemaReferences_Get_MaximumSet - generated by [MaximumSet] rule",
33
"operationId": "SchemaReferences_Get",
44
"parameters": {
55
"api-version": "2025-06-01",
6-
"resourceUri": "jdvtghygpz",
7-
"schemaReferenceName": "testname"
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default"
88
},
99
"responses": {
1010
"200": {

specification/edge/Microsoft.Edge.ConfigurationManager.Management/examples/2025-06-01/SchemaReferences_ListByResourceGroup_MaximumSet_Gen.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"title": "SchemaReferences_ListByResourceGroup_MaximumSet",
2+
"title": "SchemaReferences_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule",
33
"operationId": "SchemaReferences_ListByResourceGroup",
44
"parameters": {
55
"api-version": "2025-06-01",
6-
"resourceUri": "jdvtghygpz"
6+
"resourceUri": "gt"
77
},
88
"responses": {
99
"200": {
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"title": "SchemaReferences_Update_MaximumSet",
3+
"operationId": "SchemaReferences_Update",
4+
"parameters": {
5+
"api-version": "2025-06-01",
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default",
8+
"properties": {
9+
"properties": {
10+
"schemaId": "kxrcdqabzlzgd"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"properties": {
18+
"schemaId": "vxgxfkfws",
19+
"provisioningState": "Succeeded"
20+
},
21+
"eTag": "rpblituadyvurec",
22+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
23+
"name": "brijvbbrrzgtttybezvtrjzu",
24+
"type": "jbdfmlyogaxxys",
25+
"systemData": {
26+
"createdBy": "nvjczgdguyvllp",
27+
"createdByType": "User",
28+
"createdAt": "2025-06-09T10:11:50.747Z",
29+
"lastModifiedBy": "uzbznzjgvaspvtqhyg",
30+
"lastModifiedByType": "User",
31+
"lastModifiedAt": "2025-06-09T10:11:50.747Z"
32+
}
33+
}
34+
}
35+
}
36+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"title": "SchemaReferences_CreateOrUpdate_MaximumSet",
3+
"operationId": "SchemaReferences_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2025-08-01",
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default",
8+
"resource": {
9+
"properties": {
10+
"schemaId": "vxgxfkfws"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"properties": {
18+
"schemaId": "vxgxfkfws",
19+
"provisioningState": "Succeeded"
20+
},
21+
"eTag": "rpblituadyvurec",
22+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
23+
"name": "brijvbbrrzgtttybezvtrjzu",
24+
"type": "jbdfmlyogaxxys",
25+
"systemData": {
26+
"createdBy": "nvjczgdguyvllp",
27+
"createdByType": "User",
28+
"createdAt": "2025-06-09T10:11:50.747Z",
29+
"lastModifiedBy": "uzbznzjgvaspvtqhyg",
30+
"lastModifiedByType": "User",
31+
"lastModifiedAt": "2025-06-09T10:11:50.747Z"
32+
}
33+
}
34+
},
35+
"201": {
36+
"headers": {
37+
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
38+
},
39+
"body": {
40+
"properties": {
41+
"schemaId": "vxgxfkfws",
42+
"provisioningState": "Succeeded"
43+
},
44+
"eTag": "rpblituadyvurec",
45+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
46+
"name": "brijvbbrrzgtttybezvtrjzu",
47+
"type": "jbdfmlyogaxxys",
48+
"systemData": {
49+
"createdBy": "nvjczgdguyvllp",
50+
"createdByType": "User",
51+
"createdAt": "2025-06-09T10:11:50.747Z",
52+
"lastModifiedBy": "uzbznzjgvaspvtqhyg",
53+
"lastModifiedByType": "User",
54+
"lastModifiedAt": "2025-06-09T10:11:50.747Z"
55+
}
56+
}
57+
}
58+
}
59+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"title": "SchemaReferences_Delete_MaximumSet",
3+
"operationId": "SchemaReferences_Delete",
4+
"parameters": {
5+
"api-version": "2025-08-01",
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"location": "https://contoso.com/operationstatus"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}

specification/edge/Microsoft.Edge.ConfigurationManager.Management/examples/2025-08-01/SchemaReferences_Get_MaximumSet_Gen.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"title": "SchemaReferences_Get_MaximumSet",
2+
"title": "SchemaReferences_Get_MaximumSet - generated by [MaximumSet] rule",
33
"operationId": "SchemaReferences_Get",
44
"parameters": {
55
"api-version": "2025-08-01",
6-
"resourceUri": "jdvtghygpz",
7-
"schemaReferenceName": "testname"
6+
"resourceUri": "gt",
7+
"schemaReferenceName": "default"
88
},
99
"responses": {
1010
"200": {

specification/edge/Microsoft.Edge.ConfigurationManager.Management/examples/2025-08-01/SchemaReferences_ListByResourceGroup_MaximumSet_Gen.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"title": "SchemaReferences_ListByResourceGroup_MaximumSet",
2+
"title": "SchemaReferences_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule",
33
"operationId": "SchemaReferences_ListByResourceGroup",
44
"parameters": {
55
"api-version": "2025-08-01",
6-
"resourceUri": "jdvtghygpz"
6+
"resourceUri": "gt"
77
},
88
"responses": {
99
"200": {

0 commit comments

Comments
 (0)