-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Azure Search] Resolve Swagger linter errors for management API (#2242)
* [Azure Search] Adding PATCH Services to Swagger Support for PATCH was added to the Azure Search RP. This change adds it to the Swagger spec so it will be documented and included in generated SDK code. * [Azure Search] Adding x-ms-examples to Management plane Swagger spec * [Azure Search] Removing required properties to resolve PATCH linter errors * [Azure Search] Removing x-ms-long-running-operation from PATCH It doesn't seem to be supported by the .NET ClientRuntime for resource-based polling. * [Azure Search] Fixing a few Swagger linter warnings * [Azure Search] Adding Operations API to management plane Swagger * [Azure Search] Fixing validation error in Management API example * [Azure Search] Fixing broken delete query key example * [Azure Search] Clarifying in spec that location and sku are required on Create
- Loading branch information
1 parent
21ecc34
commit 894d0d8
Showing
12 changed files
with
492 additions
and
186 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...urce-manager/Microsoft.Search/stable/2015-08-19/examples/SearchCheckNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid", | ||
"checkNameAvailabilityInput": { | ||
"name": "mysearchservice", | ||
"type": "searchServices" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...urce-manager/Microsoft.Search/stable/2015-08-19/examples/SearchCreateOrUpdateService.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid", | ||
"service": { | ||
"location": "westus", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "standard" | ||
}, | ||
"properties": { | ||
"replicaCount": 3, | ||
"partitionCount": 1, | ||
"hostingMode": "default" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice", | ||
"name": "mysearchservice", | ||
"location": "westus", | ||
"type": "Microsoft.Search/searchServices", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "standard" | ||
}, | ||
"properties":{ | ||
"replicaCount": 3, | ||
"partitionCount": 1, | ||
"status": "provisioning", | ||
"statusDetails": "", | ||
"hostingMode": "default", | ||
"provisioningState": "provisioning" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice", | ||
"name": "mysearchservice", | ||
"location": "westus", | ||
"type": "Microsoft.Search/searchServices", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "standard" | ||
}, | ||
"properties":{ | ||
"replicaCount": 3, | ||
"partitionCount": 1, | ||
"status": "provisioning", | ||
"statusDetails": "", | ||
"hostingMode": "default", | ||
"provisioningState": "provisioning" | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ch/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchCreateQueryKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"name": "Query key for browser-based clients", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "Query key for browser-based clients", | ||
"key": "<a query API key>" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ch/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchDeleteQueryKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"key": "<a query API key>", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { }, | ||
"204": { }, | ||
"404": { } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rch/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchDeleteService.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { }, | ||
"204": { }, | ||
"404": { } | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...arch/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchGetAdminKeys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "<your primary admin API key>", | ||
"secondaryKey": "<your secondary admin API key>" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...search/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchGetService.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice", | ||
"name": "mysearchservice", | ||
"location": "westus", | ||
"type": "Microsoft.Search/searchServices", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "standard" | ||
}, | ||
"properties":{ | ||
"replicaCount": 3, | ||
"partitionCount": 1, | ||
"status": "running", | ||
"statusDetails": "", | ||
"hostingMode": "default", | ||
"provisioningState": "succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...nager/Microsoft.Search/stable/2015-08-19/examples/SearchListQueryKeysBySearchService.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Query key for browser-based clients", | ||
"key": "<a query API key>" | ||
}, | ||
{ | ||
"name": "Query key for mobile clients", | ||
"key": "<another query API key>" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...anager/Microsoft.Search/stable/2015-08-19/examples/SearchListServicesByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice", | ||
"name": "mysearchservice", | ||
"location": "westus", | ||
"type": "Microsoft.Search/searchServices", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "standard" | ||
}, | ||
"properties":{ | ||
"replicaCount": 3, | ||
"partitionCount": 1, | ||
"status": "running", | ||
"statusDetails": "", | ||
"hostingMode": "default", | ||
"provisioningState": "succeeded" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice2", | ||
"name": "mysearchservice2", | ||
"location": "eastus", | ||
"type": "Microsoft.Search/searchServices", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "basic" | ||
}, | ||
"properties":{ | ||
"replicaCount": 1, | ||
"partitionCount": 1, | ||
"status": "running", | ||
"statusDetails": "", | ||
"hostingMode": "default", | ||
"provisioningState": "succeeded" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...esource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchRegenerateAdminKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"keyKind": "primary", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "<your primary admin API key>", | ||
"secondaryKey": "<your secondary admin API key>" | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...rch/resource-manager/Microsoft.Search/stable/2015-08-19/examples/SearchUpdateService.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-08-19", | ||
"subscriptionId": "subid", | ||
"service": { | ||
"tags": { | ||
"app-name": "My e-commerce app", | ||
"new-tag": "Adding a new tag" | ||
}, | ||
"properties": { | ||
"replicaCount": 2 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice", | ||
"name": "mysearchservice", | ||
"location": "westus", | ||
"type": "Microsoft.Search/searchServices", | ||
"tags": { | ||
"app-name": "My e-commerce app" | ||
}, | ||
"sku": { | ||
"name": "standard" | ||
}, | ||
"properties":{ | ||
"replicaCount": 3, | ||
"partitionCount": 1, | ||
"status": "provisioning", | ||
"statusDetails": "", | ||
"hostingMode": "default", | ||
"provisioningState": "provisioning" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
894d0d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a commit to SDK for Python:
Azure/azure-sdk-for-python@b6d4f3b