forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Management Plane][Azure Search] Adding new API version 2021-01-04. (A…
…zure#13355) * [Management Plane][Azure Search] Adding new API version for exposing Encryption with CMK. * Fixing prittier and model validation errors * Fixing errors raised by lintdiff and ModelValidations
- Loading branch information
1 parent
d3102a5
commit 5c2185a
Showing
33 changed files
with
3,604 additions
and
1 deletion.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
.../Microsoft.Search/stable/2021-01-04/examples/CreateOrUpdateSharedPrivateLinkResource.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,39 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid", | ||
"sharedPrivateLinkResourceName": "testResource", | ||
"sharedPrivateLinkResource": { | ||
"properties": { | ||
"requestMessage": "please approve", | ||
"groupId": "blob", | ||
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", | ||
"resourceRegion": null | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchService/sharedPrivateLinkResources/testResource/operationStatuses/08586060559526078782?api-version=2021-01-04", | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchService/sharedPrivateLinkResources/testResource/operationStatuses/08586060559526078782?api-version=2021-01-04" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "testResource", | ||
"type": "Microsoft.Search/searchServices/sharedPrivateLinkResources", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource", | ||
"properties": { | ||
"requestMessage": "please approve", | ||
"groupId": "blob", | ||
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", | ||
"status": "Pending", | ||
"resourceRegion": null | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...-manager/Microsoft.Search/stable/2021-01-04/examples/DeletePrivateEndpointConnection.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,29 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid", | ||
"privateEndpointConnectionName": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546", | ||
"name": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546", | ||
"type": "Microsoft.Search/searchServices/privateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Disconnected", | ||
"description": "", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
} | ||
}, | ||
"404": {} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...-manager/Microsoft.Search/stable/2021-01-04/examples/DeleteSharedPrivateLinkResource.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": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid", | ||
"sharedPrivateLinkResourceName": "testResource" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchService/sharedPrivateLinkResources/testResource/operationStatuses/159c5e07-c829-4896-8aba-a1d4fcc7c89c?api-version=2021-01-04", | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchService/sharedPrivateLinkResources/testResource/operationStatuses/159c5e07-c829-4896-8aba-a1d4fcc7c89c?api-version=2021-01-04" | ||
} | ||
}, | ||
"204": {}, | ||
"404": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...rce-manager/Microsoft.Search/stable/2021-01-04/examples/GetPrivateEndpointConnection.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,28 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid", | ||
"privateEndpointConnectionName": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546", | ||
"name": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546", | ||
"type": "Microsoft.Search/searchServices/privateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Approved", | ||
"description": "", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...rce-manager/Microsoft.Search/stable/2021-01-04/examples/GetSharedPrivateLinkResource.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,25 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid", | ||
"sharedPrivateLinkResourceName": "testResource" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "testResource", | ||
"type": "Microsoft.Search/searchServices/sharedPrivateLinkResources", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource", | ||
"properties": { | ||
"requestMessage": "please approve", | ||
"groupId": "blob", | ||
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", | ||
"status": "Pending", | ||
"resourceRegion": null | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
.../Microsoft.Search/stable/2021-01-04/examples/ListPrivateEndpointConnectionsByService.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,31 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546", | ||
"name": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546", | ||
"type": "Microsoft.Search/searchServices/privateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Approved", | ||
"description": "", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
.../Microsoft.Search/stable/2021-01-04/examples/ListSharedPrivateLinkResourcesByService.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,28 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "testResource", | ||
"type": "Microsoft.Search/searchServices/sharedPrivateLinkResources", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/sharedPrivateLinkResources/testResource", | ||
"properties": { | ||
"requestMessage": "please approve", | ||
"groupId": "blob", | ||
"privateLinkResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", | ||
"status": "Pending", | ||
"resourceRegion": null | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...anager/Microsoft.Search/stable/2021-01-04/examples/ListSupportedPrivateLinkResources.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,88 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateLinkResources/searchService", | ||
"name": "searchService", | ||
"type": "Microsoft.Search/searchServices/privateLinkResources", | ||
"properties": { | ||
"groupId": "searchService", | ||
"requiredMembers": [ | ||
"searchService" | ||
], | ||
"requiredZoneNames": [ | ||
"privatelink.search.windows.net" | ||
], | ||
"shareablePrivateLinkResourceTypes": [ | ||
{ | ||
"name": "blob", | ||
"properties": { | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"groupId": "blob", | ||
"description": "Azure Cognitive Search indexers can connect to blobs in Azure Storage for reading data (data source), for writing intermediate results of indexer execution (annotation cache, preview) or for storing any knowledge store projections (preview)" | ||
} | ||
}, | ||
{ | ||
"name": "table", | ||
"properties": { | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"groupId": "table", | ||
"description": "Azure Cognitive Search indexers can connect to tables in Azure Storage for reading data (data source), for writing book-keeping information about intermediate results of indexer execution (annotation cache, preview) or for storing any knowledge store projections (preview)" | ||
} | ||
}, | ||
{ | ||
"name": "Sql", | ||
"properties": { | ||
"type": "Microsoft.DocumentDB/databaseAccounts", | ||
"groupId": "Sql", | ||
"description": "Azure Cognitive Search indexers can connect to CosmosDB using the SQL head for reading data (data source)." | ||
} | ||
}, | ||
{ | ||
"name": "plr", | ||
"properties": { | ||
"type": "Microsoft.Sql/servers", | ||
"groupId": "sqlServer", | ||
"description": "Azure Cognitive Search indexers can connect to AzureSQL databases in a SQL server for reading data (data source)." | ||
} | ||
}, | ||
{ | ||
"name": "vault", | ||
"properties": { | ||
"type": "Microsoft.KeyVault/vaults", | ||
"groupId": "vault", | ||
"description": "Azure Cognitive Search can access keys in Azure Key Vault to encrypt search index and synonym map data" | ||
} | ||
}, | ||
{ | ||
"name": "plr", | ||
"properties": { | ||
"type": "Microsoft.DBforMySQL/servers", | ||
"groupId": "mysqlServer", | ||
"description": "Azure Cognitive Search indexers can connect to MySQL databases for reading data (data source, preview)." | ||
} | ||
}, | ||
{ | ||
"name": "site", | ||
"properties": { | ||
"type": "Microsoft.Web/sites", | ||
"groupId": "sites", | ||
"description": "Azure Cognitive Search indexers can connect to App Services when executing custom web api skills that can be present in a skillset (optional) attached to the indexer." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...urce-manager/Microsoft.Search/stable/2021-01-04/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": "2021-01-04", | ||
"subscriptionId": "subid", | ||
"checkNameAvailabilityInput": { | ||
"name": "mysearchservice", | ||
"type": "searchServices" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
...urce-manager/Microsoft.Search/stable/2021-01-04/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,80 @@ | ||
{ | ||
"parameters": { | ||
"searchServiceName": "mysearchservice", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2021-01-04", | ||
"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", | ||
"publicNetworkAccess": "enabled", | ||
"networkRuleSet": { | ||
"ipRules": [] | ||
}, | ||
"privateEndpointConnections": [], | ||
"encryptionWithCmk": null | ||
} | ||
} | ||
}, | ||
"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", | ||
"publicNetworkAccess": "enabled", | ||
"networkRuleSet": { | ||
"ipRules": [] | ||
}, | ||
"privateEndpointConnections": [], | ||
"encryptionWithCmk": null | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.