Skip to content

Commit

Permalink
Updated SKU property to be read only (Azure#15965)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Sep 10, 2021
1 parent 33435f8 commit b75f081
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"api-version": "2018-12-01-preview",
"account": {
"location": "West US 2",
"sku": {
"name": "Standard",
"capacity": 4
},
"properties": {
"managedResourceGroupName": "custom-rgname"
}
Expand All @@ -29,6 +25,10 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
"name": "account1",
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
"createdBy": "client-name",
Expand Down Expand Up @@ -57,6 +57,10 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
"name": "account1",
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
"createdBy": "client-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down Expand Up @@ -53,7 +53,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down Expand Up @@ -52,7 +52,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down Expand Up @@ -76,7 +76,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,13 @@
"x-ms-client-flatten": true
},
"sku": {
"$ref": "#/definitions/AccountSku",
"description": "Gets or sets the Sku."
"description": "Gets or sets the Sku.",
"allOf": [
{
"$ref": "#/definitions/AccountSku"
}
],
"readOnly": true
}
}
},
Expand All @@ -981,7 +986,7 @@
"properties": {
"capacity": {
"format": "int32",
"description": "Gets or sets the sku capacity. Possible values include: 4, 16",
"description": "Gets or sets the sku capacity.",
"type": "integer"
},
"name": {
Expand Down Expand Up @@ -1848,10 +1853,10 @@
}
},
"parameters": {
"api-version": {
"name": "api-version",
"in": "query",
"description": "The api version to use.",
"subscriptionId": {
"name": "subscriptionId",
"in": "path",
"description": "The subscription identifier",
"required": true,
"type": "string"
},
Expand All @@ -1863,20 +1868,20 @@
"type": "string",
"x-ms-parameter-location": "method"
},
"api-version": {
"name": "api-version",
"in": "query",
"description": "The api version to use.",
"required": true,
"type": "string"
},
"resourceGroupName": {
"name": "resourceGroupName",
"in": "path",
"description": "The resource group name.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"subscriptionId": {
"name": "subscriptionId",
"in": "path",
"description": "The subscription identifier",
"required": true,
"type": "string"
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"api-version": "2021-07-01",
"account": {
"location": "West US 2",
"sku": {
"name": "Standard",
"capacity": 4
},
"properties": {
"managedResourceGroupName": "custom-rgname"
}
Expand All @@ -29,6 +25,10 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
"name": "account1",
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 1
},
"properties": {
"friendlyName": "friendly-account1",
"createdBy": "client-name",
Expand Down Expand Up @@ -57,6 +57,10 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1",
"name": "account1",
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
"createdByType": "User",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down Expand Up @@ -53,7 +53,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down Expand Up @@ -52,7 +52,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down Expand Up @@ -76,7 +76,7 @@
"type": "Microsoft.Purview/accounts",
"sku": {
"name": "Standard",
"capacity": 4
"capacity": 1
},
"systemData": {
"createdBy": "client-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,13 @@
"x-ms-client-flatten": true
},
"sku": {
"$ref": "#/definitions/AccountSku",
"description": "Gets or sets the Sku."
"description": "Gets or sets the Sku.",
"allOf": [
{
"$ref": "#/definitions/AccountSku"
}
],
"readOnly": true
}
}
},
Expand All @@ -1030,7 +1035,7 @@
"properties": {
"capacity": {
"format": "int32",
"description": "Gets or sets the sku capacity. Possible values include: 4, 16",
"description": "Gets or sets the sku capacity.",
"type": "integer"
},
"name": {
Expand Down Expand Up @@ -1916,13 +1921,12 @@
"required": true,
"type": "string"
},
"accountName": {
"name": "accountName",
"in": "path",
"description": "The name of the account.",
"api-version": {
"name": "api-version",
"in": "query",
"description": "The api version to use.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
"type": "string"
},
"resourceGroupName": {
"name": "resourceGroupName",
Expand All @@ -1932,12 +1936,13 @@
"type": "string",
"x-ms-parameter-location": "method"
},
"api-version": {
"name": "api-version",
"in": "query",
"description": "The api version to use.",
"accountName": {
"name": "accountName",
"in": "path",
"description": "The name of the account.",
"required": true,
"type": "string"
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down
5 changes: 5 additions & 0 deletions specification/purview/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview/azure/mgmt/purvi
basic-setup-py: true
output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview
```
``` yaml $(python) && $(track2)
modelerfour:
lenient-model-deduplication: true
```

0 comments on commit b75f081

Please sign in to comment.