Skip to content

Commit b75f081

Browse files
shaileshsk94Shailesh Kelkarmsyyc
authored
Updated SKU property to be read only (#15965)
* Updated SKU property to be read only * Added missing x-ms-secret attribute * Update readme.python.md Co-authored-by: Shailesh Kelkar <shkelkar@microsoft.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
1 parent 33435f8 commit b75f081

File tree

13 files changed

+73
-50
lines changed

13 files changed

+73
-50
lines changed

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/Accounts_CreateOrUpdate.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
"api-version": "2018-12-01-preview",
77
"account": {
88
"location": "West US 2",
9-
"sku": {
10-
"name": "Standard",
11-
"capacity": 4
12-
},
139
"properties": {
1410
"managedResourceGroupName": "custom-rgname"
1511
}
@@ -29,6 +25,10 @@
2925
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
3026
"name": "account1",
3127
"type": "Microsoft.Purview/accounts",
28+
"sku": {
29+
"name": "Standard",
30+
"capacity": 1
31+
},
3232
"properties": {
3333
"friendlyName": "friendly-account1",
3434
"createdBy": "client-name",
@@ -57,6 +57,10 @@
5757
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
5858
"name": "account1",
5959
"type": "Microsoft.Purview/accounts",
60+
"sku": {
61+
"name": "Standard",
62+
"capacity": 1
63+
},
6064
"properties": {
6165
"friendlyName": "friendly-account1",
6266
"createdBy": "client-name",

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/Accounts_Get.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"type": "Microsoft.Purview/accounts",
2222
"sku": {
2323
"name": "Standard",
24-
"capacity": 4
24+
"capacity": 1
2525
},
2626
"properties": {
2727
"friendlyName": "friendly-account1",

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/Accounts_ListByResourceGroup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"type": "Microsoft.Purview/accounts",
2323
"sku": {
2424
"name": "Standard",
25-
"capacity": 4
25+
"capacity": 1
2626
},
2727
"properties": {
2828
"friendlyName": "friendly-account1",
@@ -53,7 +53,7 @@
5353
"type": "Microsoft.Purview/accounts",
5454
"sku": {
5555
"name": "Standard",
56-
"capacity": 4
56+
"capacity": 1
5757
},
5858
"properties": {
5959
"friendlyName": "friendly-account1",

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/Accounts_ListBySubscription.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"type": "Microsoft.Purview/accounts",
2222
"sku": {
2323
"name": "Standard",
24-
"capacity": 4
24+
"capacity": 1
2525
},
2626
"properties": {
2727
"friendlyName": "friendly-account1",
@@ -52,7 +52,7 @@
5252
"type": "Microsoft.Purview/accounts",
5353
"sku": {
5454
"name": "Standard",
55-
"capacity": 4
55+
"capacity": 1
5656
},
5757
"properties": {
5858
"friendlyName": "friendly-account1",

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/Accounts_Update.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "Microsoft.Purview/accounts",
2727
"sku": {
2828
"name": "Standard",
29-
"capacity": 4
29+
"capacity": 1
3030
},
3131
"properties": {
3232
"friendlyName": "friendly-account1",
@@ -76,7 +76,7 @@
7676
"type": "Microsoft.Purview/accounts",
7777
"sku": {
7878
"name": "Standard",
79-
"capacity": 4
79+
"capacity": 1
8080
},
8181
"properties": {
8282
"friendlyName": "friendly-account1",

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/purview.json

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,13 @@
970970
"x-ms-client-flatten": true
971971
},
972972
"sku": {
973-
"$ref": "#/definitions/AccountSku",
974-
"description": "Gets or sets the Sku."
973+
"description": "Gets or sets the Sku.",
974+
"allOf": [
975+
{
976+
"$ref": "#/definitions/AccountSku"
977+
}
978+
],
979+
"readOnly": true
975980
}
976981
}
977982
},
@@ -981,7 +986,7 @@
981986
"properties": {
982987
"capacity": {
983988
"format": "int32",
984-
"description": "Gets or sets the sku capacity. Possible values include: 4, 16",
989+
"description": "Gets or sets the sku capacity.",
985990
"type": "integer"
986991
},
987992
"name": {
@@ -1848,10 +1853,10 @@
18481853
}
18491854
},
18501855
"parameters": {
1851-
"api-version": {
1852-
"name": "api-version",
1853-
"in": "query",
1854-
"description": "The api version to use.",
1856+
"subscriptionId": {
1857+
"name": "subscriptionId",
1858+
"in": "path",
1859+
"description": "The subscription identifier",
18551860
"required": true,
18561861
"type": "string"
18571862
},
@@ -1863,20 +1868,20 @@
18631868
"type": "string",
18641869
"x-ms-parameter-location": "method"
18651870
},
1871+
"api-version": {
1872+
"name": "api-version",
1873+
"in": "query",
1874+
"description": "The api version to use.",
1875+
"required": true,
1876+
"type": "string"
1877+
},
18661878
"resourceGroupName": {
18671879
"name": "resourceGroupName",
18681880
"in": "path",
18691881
"description": "The resource group name.",
18701882
"required": true,
18711883
"type": "string",
18721884
"x-ms-parameter-location": "method"
1873-
},
1874-
"subscriptionId": {
1875-
"name": "subscriptionId",
1876-
"in": "path",
1877-
"description": "The subscription identifier",
1878-
"required": true,
1879-
"type": "string"
18801885
}
18811886
},
18821887
"securityDefinitions": {

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_CreateOrUpdate.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
"api-version": "2021-07-01",
77
"account": {
88
"location": "West US 2",
9-
"sku": {
10-
"name": "Standard",
11-
"capacity": 4
12-
},
139
"properties": {
1410
"managedResourceGroupName": "custom-rgname"
1511
}
@@ -29,6 +25,10 @@
2925
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
3026
"name": "account1",
3127
"type": "Microsoft.Purview/accounts",
28+
"sku": {
29+
"name": "Standard",
30+
"capacity": 1
31+
},
3232
"properties": {
3333
"friendlyName": "friendly-account1",
3434
"createdBy": "client-name",
@@ -57,6 +57,10 @@
5757
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
5858
"name": "account1",
5959
"type": "Microsoft.Purview/accounts",
60+
"sku": {
61+
"name": "Standard",
62+
"capacity": 1
63+
},
6064
"systemData": {
6165
"createdBy": "client-name",
6266
"createdByType": "User",

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_Get.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"type": "Microsoft.Purview/accounts",
2222
"sku": {
2323
"name": "Standard",
24-
"capacity": 4
24+
"capacity": 1
2525
},
2626
"systemData": {
2727
"createdBy": "client-name",

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListByResourceGroup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"type": "Microsoft.Purview/accounts",
2323
"sku": {
2424
"name": "Standard",
25-
"capacity": 4
25+
"capacity": 1
2626
},
2727
"systemData": {
2828
"createdBy": "client-name",
@@ -53,7 +53,7 @@
5353
"type": "Microsoft.Purview/accounts",
5454
"sku": {
5555
"name": "Standard",
56-
"capacity": 4
56+
"capacity": 1
5757
},
5858
"systemData": {
5959
"createdBy": "client-name",

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_ListBySubscription.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"type": "Microsoft.Purview/accounts",
2222
"sku": {
2323
"name": "Standard",
24-
"capacity": 4
24+
"capacity": 1
2525
},
2626
"systemData": {
2727
"createdBy": "client-name",
@@ -52,7 +52,7 @@
5252
"type": "Microsoft.Purview/accounts",
5353
"sku": {
5454
"name": "Standard",
55-
"capacity": 4
55+
"capacity": 1
5656
},
5757
"systemData": {
5858
"createdBy": "client-name",

0 commit comments

Comments
 (0)