forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Cache to add version pre…
…view/2020-10-01-preview (Azure#11360) * New Readme Config File * New Go Language Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New Ruby Language Readme Config File * New Swagger Spec File * New Swagger Example Spec File * Initial updates for public preview * Add default error response. Add integer format. * Add 200 response to delete operations. * Add custom words for Redis Enterprise. * Update whitespace for prettier. * Update whitespace for prettier. * Update whitespace for prettier. * Revert "Update whitespace for prettier." This reverts commit 4f04b1b. * Revert "Update whitespace for prettier." This reverts commit ccca6d5. * Revert "Update whitespace for prettier." This reverts commit 3d72e6b. * Update whitespace for prettier. * Update Go settings * Including .NET SDK in list of SDKs automatically generated. * Update csharp settings. * Fix typo. * Updates addressing comments from reviewer. * Fix provisioningState errors. * Update clusteringPolicy description and related examples. * Remove Enterprise_E1 SKU. * Updates per comments from reviewer. * Remove illegal terminal states from provisioningState. Add new resourceState. * Utilize common properties from updated v2 types.json * Add 'Deleting' state to ProvisioningState enum.
- Loading branch information
Showing
29 changed files
with
2,545 additions
and
0 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
...ource-manager/Microsoft.Cache/preview/2020-10-01-preview/examples/OperationStatusGet.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": { | ||
"subscriptionId": "subid", | ||
"location": "West US", | ||
"operationId": "testoperationid", | ||
"api-version": "2020-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/providers/Microsoft.Cache/locations/westus/operationStatus/testoperationid", | ||
"name": "testoperationid", | ||
"startTime": "2017-01-01T13:13:13.933Z", | ||
"endTime": "2017-01-01T16:13:13.933Z", | ||
"status": "Succeeded" | ||
} | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...ce-manager/Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseCreate.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,82 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"location": "West US", | ||
"sku": { | ||
"name": "EnterpriseFlash_F300", | ||
"capacity": 3 | ||
}, | ||
"zones": [ | ||
"1", | ||
"2", | ||
"3" | ||
], | ||
"properties": { | ||
"minimumTlsVersion": "1.2" | ||
}, | ||
"tags": { | ||
"tag1": "value1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"name": "cache1", | ||
"type": "Microsoft.Cache/redisEnterprise", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1", | ||
"location": "West US", | ||
"sku": { | ||
"name": "EnterpriseFlash_F300", | ||
"capacity": 3 | ||
}, | ||
"zones": [ | ||
"1", | ||
"2", | ||
"3" | ||
], | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"resourceState": "Creating", | ||
"hostName": "cache1.westus.something.azure.net", | ||
"redisVersion": "5", | ||
"minimumTlsVersion": "1.2" | ||
}, | ||
"tags": { | ||
"tag1": "value1" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "cache1", | ||
"type": "Microsoft.Cache/redisEnterprise", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1", | ||
"location": "West US", | ||
"sku": { | ||
"name": "EnterpriseFlash_F300", | ||
"capacity": 3 | ||
}, | ||
"zones": [ | ||
"1", | ||
"2", | ||
"3" | ||
], | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceState": "Running", | ||
"hostName": "cache1.westus.something.azure.net", | ||
"redisVersion": "5", | ||
"minimumTlsVersion": "1.2" | ||
}, | ||
"tags": { | ||
"tag1": "value1" | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
.../Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabaseListKeys.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": { | ||
"databaseName": "default", | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "secretkey1", | ||
"secondaryKey": "secretKey2" | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...osoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabaseRegenerateKey.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,26 @@ | ||
{ | ||
"parameters": { | ||
"databaseName": "default", | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"keyType": "Primary" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"primaryKey": "secretkey1", | ||
"secondaryKey": "secretKey2" | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." | ||
} | ||
} | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
...r/Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabasesCreate.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,96 @@ | ||
{ | ||
"parameters": { | ||
"databaseName": "default", | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"properties": { | ||
"clientProtocol": "Encrypted", | ||
"clusteringPolicy": "EnterpriseCluster", | ||
"evictionPolicy": "AllKeysLRU", | ||
"port": 10000, | ||
"modules": [ | ||
{ | ||
"name": "RedisBloom", | ||
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400" | ||
}, | ||
{ | ||
"name": "RedisTimeSeries", | ||
"args": "RETENTION_POLICY 20" | ||
}, | ||
{ | ||
"name": "RediSearch" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default", | ||
"name": "cache1/default", | ||
"type": "Microsoft.Cache/redisEnterprise/databases", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"resourceState": "Updating", | ||
"clientProtocol": "Encrypted", | ||
"clusteringPolicy": "EnterpriseCluster", | ||
"evictionPolicy": "AllKeysLRU", | ||
"port": 10000, | ||
"modules": [ | ||
{ | ||
"name": "RedisBloom", | ||
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "RedisTimeSeries", | ||
"args": "RETENTION_POLICY 20", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "RediSearch", | ||
"args": "", | ||
"version": "1.0.0" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/db1", | ||
"name": "cache1/db1", | ||
"type": "Microsoft.Cache/redisEnterprise/databases", | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"resourceState": "Creating", | ||
"clientProtocol": "Plaintext", | ||
"clusteringPolicy": "EnterpriseCluster", | ||
"evictionPolicy": "AllKeysLRU", | ||
"port": 10000, | ||
"modules": [ | ||
{ | ||
"name": "RedisBloom", | ||
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "RedisTimeSeries", | ||
"args": "RETENTION_POLICY 20", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "RediSearch", | ||
"args": "", | ||
"version": "1.0.0" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...r/Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabasesDelete.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": { | ||
"databaseName": "db1", | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ager/Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabasesGet.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,33 @@ | ||
{ | ||
"parameters": { | ||
"databaseName": "default", | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default", | ||
"name": "cache1/default", | ||
"type": "Microsoft.Cache/redisEnterprise/databases", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceState": "Running", | ||
"clientProtocol": "Encrypted", | ||
"clusteringPolicy": "OSSCluster", | ||
"evictionPolicy": "AllKeysLRU", | ||
"port": 10000, | ||
"modules": [ | ||
{ | ||
"name": "RediSearch", | ||
"args": "", | ||
"version": "1.0.0" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ger/Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabasesList.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,36 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default", | ||
"name": "cache1/default", | ||
"type": "Microsoft.Cache/redisEnterprise/databases", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceState": "Running", | ||
"clientProtocol": "Encrypted", | ||
"clusteringPolicy": "OSSCluster", | ||
"evictionPolicy": "AllKeysLRU", | ||
"port": 10000, | ||
"modules": [ | ||
{ | ||
"name": "RediSearch", | ||
"args": "", | ||
"version": "1.0.0" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...r/Microsoft.Cache/preview/2020-10-01-preview/examples/RedisEnterpriseDatabasesUpdate.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,50 @@ | ||
{ | ||
"parameters": { | ||
"databaseName": "default", | ||
"clusterName": "cache1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-10-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"properties": { | ||
"clientProtocol": "Encrypted", | ||
"evictionPolicy": "AllKeysLRU", | ||
"modules": [ | ||
{ | ||
"name": "RediSearch" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default", | ||
"name": "cache1/default", | ||
"type": "Microsoft.Cache/redisEnterprise/databases", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"resourceState": "Updating", | ||
"clientProtocol": "Encrypted", | ||
"clusteringPolicy": "OSSCluster", | ||
"evictionPolicy": "AllKeysLRU", | ||
"port": 10000, | ||
"modules": [ | ||
{ | ||
"name": "RediSearch", | ||
"args": "", | ||
"version": "1.0.0" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...", | ||
"Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult..." | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.