Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Azure Stack] Updates to Azs.Storage.Admin spec #8959

Merged
merged 4 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```