Skip to content

Commit

Permalink
[Purview Accounts] SDK Team Feedback on Operation IDs (Azure#15669)
Browse files Browse the repository at this point in the history
This change updates the operation ids for operations in the Purview
Accounts service. These names are used when generating clients and so
for some we've added suffxes (based on their groupings) to make
generated method names a little clearler when you see just the method
name in code e.g.:

```
var client = new PurviewAccountsClient();
...
client.GetAccountProperties() // Nicer than just client.Get();
```

In addition, we noticed that the `Collections_GetCollectionPath`
operation took a `$skipToken` parameter, even though the operation is
not pageable. After following up with the service team we learned this
was a mistake, so I have removed the parameter from the specification.
  • Loading branch information
ellismg authored Aug 18, 2021
1 parent 60d6c39 commit 1325617
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"Account"
],
"description": "Get an account",
"operationId": "Accounts_Get",
"operationId": "Accounts_GetAccountProperties",
"parameters": [
{
"$ref": "#/parameters/api-version"
Expand All @@ -52,8 +52,8 @@
}
},
"x-ms-examples": {
"Accounts_Get": {
"$ref": "./examples/Accounts_Get.json"
"Accounts_GetAccountProperties": {
"$ref": "./examples/Accounts_GetAccountProperties.json"
}
}
},
Expand All @@ -62,7 +62,7 @@
"Account"
],
"description": "Updates an account",
"operationId": "Accounts_Update",
"operationId": "Accounts_UpdateAccountProperties",
"parameters": [
{
"name": "accountUpdateParameters",
Expand Down Expand Up @@ -91,8 +91,8 @@
}
},
"x-ms-examples": {
"Accounts_Update": {
"$ref": "./examples/Accounts_Update.json"
"Accounts_UpdateAccountProperties": {
"$ref": "./examples/Accounts_UpdateAccountProperties.json"
}
}
}
Expand All @@ -103,7 +103,7 @@
"Account"
],
"description": "List the authorization keys associated with this account.",
"operationId": "Accounts_ListKeys",
"operationId": "Accounts_GetAccessKeys",
"parameters": [
{
"$ref": "#/parameters/api-version"
Expand All @@ -124,8 +124,8 @@
}
},
"x-ms-examples": {
"Accounts_ListKeys": {
"$ref": "./examples/Accounts_ListKeys.json"
"Accounts_GetAccessKeys": {
"$ref": "./examples/Accounts_GetAccessKeys.json"
}
}
}
Expand All @@ -136,7 +136,7 @@
"Account"
],
"description": "Regenerate the authorization keys associated with this data catalog.",
"operationId": "Accounts_RegenerateKeys",
"operationId": "Accounts_RegenerateAccessKey",
"parameters": [
{
"name": "keyOptions",
Expand Down Expand Up @@ -166,7 +166,7 @@
},
"x-ms-examples": {
"Accounts_RegenerateKeys": {
"$ref": "./examples/Accounts_RegenerateKeys.json"
"$ref": "./examples/Accounts_RegenerateAccessKey.json"
}
}
}
Expand All @@ -177,7 +177,7 @@
"Collection"
],
"description": "Get a collection",
"operationId": "Collections_Get",
"operationId": "Collections_GetCollection",
"parameters": [
{
"name": "collectionName",
Expand All @@ -204,8 +204,8 @@
}
},
"x-ms-examples": {
"Collections_Get": {
"$ref": "./examples/Collections_Get.json"
"Collections_GetCollection": {
"$ref": "./examples/Collections_GetCollection.json"
}
}
},
Expand All @@ -214,7 +214,7 @@
"Collection"
],
"description": "Creates or updates a collection entity.",
"operationId": "Collections_CreateOrUpdate",
"operationId": "Collections_CreateOrUpdateCollection",
"parameters": [
{
"name": "collectionName",
Expand Down Expand Up @@ -249,8 +249,8 @@
}
},
"x-ms-examples": {
"Collections_CreateOrUpdate": {
"$ref": "./examples/Collections_CreateOrUpdate.json"
"Collections_CreateOrUpdateCollection": {
"$ref": "./examples/Collections_CreateOrUpdateCollection.json"
}
}
},
Expand All @@ -259,7 +259,7 @@
"Collection"
],
"description": "Deletes a Collection entity.",
"operationId": "Collections_Delete",
"operationId": "Collections_DeleteCollection",
"parameters": [
{
"name": "collectionName",
Expand All @@ -283,8 +283,8 @@
}
},
"x-ms-examples": {
"Collections_Delete": {
"$ref": "./examples/Collections_Delete.json"
"Collections_DeleteCollection": {
"$ref": "./examples/Collections_DeleteCollection.json"
}
}
}
Expand All @@ -295,7 +295,7 @@
"Collection"
],
"description": "List the collections in the account.",
"operationId": "Collections_ListByAccount",
"operationId": "Collections_ListCollections",
"parameters": [
{
"$ref": "#/parameters/api-version"
Expand Down Expand Up @@ -325,8 +325,8 @@
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Collections_ListByAccount": {
"$ref": "./examples/Collections_ListByAccount.json"
"Collections_ListCollections": {
"$ref": "./examples/Collections_ListCollections.json"
}
}
}
Expand All @@ -337,7 +337,7 @@
"Collection"
],
"description": "Lists the child collections names in the collection.",
"operationId": "Collections_GetChildCollectionNames",
"operationId": "Collections_ListChildCollectionNames",
"parameters": [
{
"name": "collectionName",
Expand Down Expand Up @@ -373,8 +373,8 @@
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Collections_GetChildCollectionNames": {
"$ref": "./examples/Collections_GetChildCollectionNames.json"
"Collections_ListChildCollectionNames": {
"$ref": "./examples/Collections_ListChildCollectionNames.json"
}
}
}
Expand All @@ -395,12 +395,6 @@
},
{
"$ref": "#/parameters/api-version"
},
{
"name": "$skipToken",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -430,7 +424,7 @@
"ResourceSetRuleConfig"
],
"description": "Get a resource set config service model.",
"operationId": "ResourceSetRuleConfigs_Get",
"operationId": "ResourceSetRules_GetResourceSetRule",
"parameters": [
{
"$ref": "#/parameters/api-version"
Expand All @@ -451,8 +445,8 @@
}
},
"x-ms-examples": {
"ResourceSetRuleConfigs_Get": {
"$ref": "./examples/ResourceSetRuleConfigs_Get.json"
"ResourceSetRules_GetResourceSetRule": {
"$ref": "./examples/ResourceSetRules_GetResourceSetRule.json"
}
}
},
Expand All @@ -461,7 +455,7 @@
"ResourceSetRuleConfig"
],
"description": "Creates or updates an resource set config.",
"operationId": "ResourceSetRuleConfigs_CreateOrUpdate",
"operationId": "ResourceSetRules_CreateOrUpdateResourceSetRule",
"parameters": [
{
"name": "resourceSetRuleConfig",
Expand Down Expand Up @@ -490,8 +484,8 @@
}
},
"x-ms-examples": {
"ResourceSetRuleConfigs_CreateOrUpdate": {
"$ref": "./examples/ResourceSetRuleConfigs_CreateOrUpdate.json"
"ResourceSetRules_CreateOrUpdateResourceSetRule": {
"$ref": "./examples/ResourceSetRules_CreateOrUpdateResourceSetRule.json"
}
}
},
Expand All @@ -500,7 +494,7 @@
"ResourceSetRuleConfig"
],
"description": "Deletes a ResourceSetRuleConfig resource.",
"operationId": "ResourceSetRuleConfigs_Delete",
"operationId": "ResourceSetRules_DeleteResourceSetRule",
"parameters": [
{
"$ref": "#/parameters/api-version"
Expand All @@ -521,8 +515,8 @@
}
},
"x-ms-examples": {
"ResourceSetRuleConfigs_Delete": {
"$ref": "./examples/ResourceSetRuleConfigs_Delete.json"
"ResourceSetRules_DeleteResourceSetRule": {
"$ref": "./examples/ResourceSetRules_DeleteResourceSetRule.json"
}
}
}
Expand All @@ -533,7 +527,7 @@
"ResourceSetRuleConfig"
],
"description": "Get a resource set config service model.",
"operationId": "ResourceSetRuleConfigs_ListByAccount",
"operationId": "ResourceSetRules_ListResourceSetRules",
"parameters": [
{
"$ref": "#/parameters/api-version"
Expand Down Expand Up @@ -563,8 +557,8 @@
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"ResourceSetRuleConfigs_ListByAccount": {
"$ref": "./examples/ResourceSetRuleConfigs_ListByAccount.json"
"ResourceSetRules_ListResourceSetRules": {
"$ref": "./examples/ResourceSetRules_ListResourceSetRules.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2018-12-01-preview"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2018-12-01-preview"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2018-12-01-preview",
"keyOptions": {
"keyType": "PrimaryKey"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "SampleResourceGroup",
"accountName": "account1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"collectionName": "myCollection1",
"api-version": "2019-11-01-preview",
"collection": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"collectionName": "myCollection1",
"api-version": "2019-11-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"collectionName": "myCollection1",
"api-version": "2019-11-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"collectionName": "myCollection1",
"api-version": "2019-11-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"collectionName": "myCollection1",
"api-version": "2019-11-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2019-11-01-preview"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b",
"resourceSetRuleConfigName": "myNewresourceSetRuleConfigName",
"api-version": "2019-11-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b",
"resourceSetRuleConfigName": "myNewresourceSetRuleConfigName",
"api-version": "2019-11-01-preview"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b",
"resourceSetRuleConfigName": "myNewresourceSetRuleConfigName",
"api-version": "2019-11-01-preview"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"endpoint": "{endpoint}",
"accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b",
"resourceSetRuleConfigName": "myNewresourceSetRuleConfigName",
"api-version": "2019-11-01-preview"
Expand Down

0 comments on commit 1325617

Please sign in to comment.