Skip to content

Commit

Permalink
[Azure Stack] Updates to Azs.Storage.Admin spec (Azure#8959)
Browse files Browse the repository at this point in the history
* commit 1ef8191
Author: Yuxing Zhou <zyx.pulsars@gmail.com>
Date:   Thu Feb 6 09:13:52 2020 +0800

    [Azure Stack] Update storage admin specs for new generation with autorest-beta (Azure#8306)

    * Update storage admin specs for new generation with autorest-beta

    * fix code style
commit 9e551f0
Author: bganapa <bganapa@microsoft.com>
Date:   Tue Nov 12 11:44:22 2019 -0800

    Reset to Stackadmin2 (Azure#7766)

* Fix resourcegroup case

* Fix old version

* Address PR feedback
  • Loading branch information
viananth authored and 00Kai0 committed Oct 12, 2020
1 parent f6b9ffa commit f1f1c9a
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
"summary": "false"
},
"responses": {
"200": {
"body": {
"accountId": "80d458ce4ecd47888b54aaa277800748"
}
},
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.": {
Expand Down Expand Up @@ -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.": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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"
}
}
}
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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=<path to "SDKs" directory of your azure-sdk-for-net clone>`.

``` 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
```

0 comments on commit f1f1c9a

Please sign in to comment.