diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json index c4a30491f691..51713d045a6f 100644 --- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json +++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json @@ -7,11 +7,7 @@ "summary": "false" }, "responses": { - "200": { - "body": { - "accountId": "80d458ce4ecd47888b54aaa277800748" - } - }, + "200": {}, "202": {} } } diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json index 9f8a9e4bc325..626252ba8783 100644 --- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json +++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json @@ -121,8 +121,7 @@ "properties": { "description": "Properties of the storage account.", "x-ms-client-flatten": true, - "$ref": "#/definitions/SettingProperties", - "readOnly": true + "$ref": "#/definitions/SettingProperties" } }, "allOf": [ diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json index 7f09a86f4239..bd30cc8babdf 100644 --- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json +++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json @@ -91,7 +91,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices": { "get": { "x-ms-examples": { "Returns the storage services list under the specified resource group and subscription.": { @@ -166,7 +166,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices/{serviceName}": { + "/subscriptions/{subscriptionId}resourceGroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices/{serviceName}": { "get": { "x-ms-examples": { "Returns the specified storage service.": { diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json index ec8df91cef15..93288e309e6d 100644 --- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json +++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json @@ -137,10 +137,7 @@ ], "responses": { "200": { - "description": "OK -- Undelete either has been performed or account was not deleted.", - "schema": { - "$ref": "#/definitions/UndeleteStorageAccount" - } + "description": "OK -- Undelete either has been performed or account was not deleted." }, "202": { "description": "Accepted -- undelete operation trigged; operation will complete asynchronously." @@ -195,7 +192,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } } } }, @@ -377,6 +377,7 @@ }, "primaryEndpoints": { "description": "The URLs that are used to perform a retrieval of a public BLOB, queue, or table object.", + "type": "object", "additionalProperties": { "type": "string" }, @@ -543,7 +544,8 @@ "in": "query", "required": false, "type": "boolean", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "default": false }, "FilterParameter": { "description": "Filter string", diff --git a/specification/azsadmin/resource-manager/storage/readme.azsautogen.md b/specification/azsadmin/resource-manager/storage/readme.azsautogen.md new file mode 100644 index 000000000000..d6a523515d44 --- /dev/null +++ b/specification/azsadmin/resource-manager/storage/readme.azsautogen.md @@ -0,0 +1,55 @@ +# Storage Admin + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Storage Admin. + +--- +## Getting Started +To build the SDK for Storage Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information +These are the global settings for the Storage API. + +``` yaml +title: StorageAdminClient +description: Storage Admin Client +openapi-type: arm +tag: package-2019-08-08 +``` + +``` yaml +input-file: + - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/quotas.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/settings.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/storage.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/acquisitions.json +``` + +--- +# Code Generation + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.AzureStack.Management.Storage.Admin + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/Generated + clear-output-folder: true +```