-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK support for Table and Queue Storage Services (#9259)
* Adding table spec, without examples * Adding queue swagger, also updating comments for table * Updated the models to include ARM fields, completed, no examples * Added list table and queue services spec * Adding table CRUD examples * Adding Queue CRUD examples * Validation complete, TablName changed to camelCase * Modified comment * Spell correction * changing order in readme.md * Changed the object name from Queue to StorageQueue, as sdk code gen throws name conflict error with Collections.Queue * Resolve prettier check errors * Change URI param to be camel case * updated default error response schema * Change Default error response model schema * Added x-ms-nextLink
- Loading branch information
1 parent
b25cd29
commit 3657c62
Showing
20 changed files
with
2,017 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...e/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationDelete.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": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res3376", | ||
"accountName": "sto328", | ||
"queueName": "queue6185", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...rage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationGet.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": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res3376", | ||
"accountName": "sto328", | ||
"queueName": "queue6185", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185", | ||
"name": "queue6185", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices/queues", | ||
"properties": { | ||
"metadata": { | ||
"sample1": "meta1", | ||
"sample2": "meta2" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...age/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationList.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,40 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res9290", | ||
"accountName": "sto328", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185", | ||
"name": "queue6185", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices/queues", | ||
"properties": { | ||
"metadata": { | ||
"sample1": "meta1", | ||
"sample2": "meta2" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6186", | ||
"name": "queue6186", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices/queues", | ||
"properties": { | ||
"metadata": { | ||
"sample1": "meta1", | ||
"sample2": "meta2" | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": "https://sto1590endpoint/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues?api-version=2019-06-01&$maxpagesize=2&$skipToken=/sto328/queue6187" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ge/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPatch.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res3376", | ||
"accountName": "sto328", | ||
"queueName": "queue6185", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"queue": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185", | ||
"name": "queue6185", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices/queues" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...rage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPut.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res3376", | ||
"accountName": "sto328", | ||
"queueName": "queue6185", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"queue": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185", | ||
"name": "queue6185", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices/queues" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...e-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPutWithMetadata.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": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res3376", | ||
"accountName": "sto328", | ||
"queueName": "queue6185", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"queue": { | ||
"properties": { | ||
"metadata": { | ||
"sample1": "meta1", | ||
"sample2": "meta2" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185", | ||
"name": "queue6185", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices/queues", | ||
"properties": { | ||
"metadata": { | ||
"sample1": "meta1", | ||
"sample2": "meta2" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...orage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesGet.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": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res4410", | ||
"accountName": "sto8607", | ||
"queueServiceName": "default", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/queueServices/default", | ||
"name": "default", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices", | ||
"properties": { | ||
"cors": { | ||
"corsRules": [ | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.contoso.com", | ||
"http://www.fabrikam.com" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"HEAD", | ||
"POST", | ||
"OPTIONS", | ||
"MERGE", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 100, | ||
"exposedHeaders": [ | ||
"x-ms-meta-*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
], | ||
"allowedMethods": [ | ||
"GET" | ||
], | ||
"maxAgeInSeconds": 2, | ||
"exposedHeaders": [ | ||
"*" | ||
], | ||
"allowedHeaders": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.abc23.com", | ||
"https://www.fabrikam.com/*" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 2000, | ||
"exposedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-12345675754564*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
...rage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesList.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,85 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res9290", | ||
"accountName": "sto1590", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/queueServices/default", | ||
"name": "default", | ||
"type": "Microsoft.Storage/storageAccounts/queueServices", | ||
"properties": { | ||
"cors": { | ||
"corsRules": [ | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.contoso.com", | ||
"http://www.fabrikam.com" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"HEAD", | ||
"POST", | ||
"OPTIONS", | ||
"MERGE", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 100, | ||
"exposedHeaders": [ | ||
"x-ms-meta-*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
], | ||
"allowedMethods": [ | ||
"GET" | ||
], | ||
"maxAgeInSeconds": 2, | ||
"exposedHeaders": [ | ||
"*" | ||
], | ||
"allowedHeaders": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.abc23.com", | ||
"https://www.fabrikam.com/*" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 2000, | ||
"exposedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-12345675754564*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.