Skip to content

Latest commit

 

History

History

resource-manager

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Storage

see https://aka.ms/autorest

This is the AutoRest configuration file for Storage.


Getting Started

To build the SDK for Storage, simply Install AutoRest 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.

openapi-type: arm
tag: package-2017-10

Tag: package-2017-10

These settings apply only when --tag=package-2017-10 is specified on the command line.

input-file:
- Microsoft.Storage/stable/2017-10-01/storage.json

Tag: package-2017-06

These settings apply only when --tag=package-2017-06 is specified on the command line.

input-file:
- Microsoft.Storage/stable/2017-06-01/storage.json

Tag: package-2016-12

These settings apply only when --tag=package-2016-12 is specified on the command line.

input-file:
- Microsoft.Storage/stable/2016-12-01/storage.json

Tag: package-2016-05

These settings apply only when --tag=package-2016-05 is specified on the command line.

input-file:
- Microsoft.Storage/stable/2016-05-01/storage.json

Tag: package-2016-01

These settings apply only when --tag=package-2016-01 is specified on the command line.

input-file:
- Microsoft.Storage/stable/2016-01-01/storage.json

Tag: package-2015-06

These settings apply only when --tag=package-2015-06 is specified on the command line.

input-file:
- Microsoft.Storage/stable/2015-06-15/storage.json

Tag: package-2015-05-preview

These settings apply only when --tag=package-2015-05-preview is specified on the command line.

input-file:
- Microsoft.Storage/preview/2015-05-01-preview/storage.json

Code Generation

Swagger to SDK

This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.

swagger-to-sdk:
  - repo: azure-sdk-for-python
    after_scripts:
      - python ./scripts/multiapi_init_gen.py azure-mgmt-storage
  - repo: azure-libraries-for-java
  - repo: azure-sdk-for-go

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

csharp:
  azure-arm: true
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Management.Storage
  payload-flattening-threshold: 2
  output-folder: $(csharp-sdks-folder)/Storage/Management.Storage/Generated
  clear-output-folder: true

Go

These settings apply only when --go is specified on the command line.

go:
  license-header: MICROSOFT_APACHE_NO_VERSION
  namespace: storage
  clear-output-folder: true

Go multi-api

batch:
  - tag: package-2017-10
  - tag: package-2017-06
  - tag: package-2016-12
  - tag: package-2016-05
  - tag: package-2016-01
  - tag: package-2015-06
  - tag: package-2015-05-preview

Tag: package-2017-10 and go

These settings apply only when --tag=package-2017-10 --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2017-10-01/storage

Tag: package-2017-06 and go

These settings apply only when --tag=package-2017-06 --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2017-06-01/storage

Tag: package-2016-12 and go

These settings apply only when --tag=package-2016-12 --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2016-12-01/storage

Tag: package-2016-05 and go

These settings apply only when --tag=package-2016-05 --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2016-05-01/storage

Tag: package-2016-01 and go

These settings apply only when --tag=package-2016-01 --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2016-01-01/storage

Tag: package-2015-06 and go

These settings apply only when --tag=package-2015-06 --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2015-06-15/storage

Tag: package-2015-05-preview and go

These settings apply only when --tag=package-2015-05-preview --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/storage/mgmt/2015-05-01-preview/storage

Python

These settings apply only when --python is specified on the command line.

python:
  azure-arm: true
  license-header: MICROSOFT_MIT_NO_VERSION
  payload-flattening-threshold: 2
  package-name: azure-mgmt-storage
  clear-output-folder: true
  no-namespace-folders: true

Python multi-api

Generate all API versions currently shipped for this package

batch:
  - tag: package-2017-10
  - tag: package-2017-06
  - tag: package-2016-12
  - tag: package-2016-01
  - tag: package-2015-06

Tag: package-2017-10 and python

These settings apply only when --tag=package-2017-10 --python is specified on the command line. Please also specify --python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>.

python:
  namespace: azure.mgmt.storage.v2017_10_01
  output-folder: $(python-sdks-folder)/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01

Tag: package-2017-06 and python

These settings apply only when --tag=package-2017-06 --python is specified on the command line. Please also specify --python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>.

python:
  namespace: azure.mgmt.storage.v2017_06_01
  output-folder: $(python-sdks-folder)/azure-mgmt-storage/azure/mgmt/storage/v2017_06_01

Tag: package-2016-12 and python

These settings apply only when --tag=package-2016-12 --python is specified on the command line. Please also specify --python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>.

python:
  namespace: azure.mgmt.storage.v2016_12_01
  output-folder: $(python-sdks-folder)/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01

Tag: package-2016-01 and python

These settings apply only when --tag=package-2016-01 --python is specified on the command line. Please also specify --python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>.

python:
  namespace: azure.mgmt.storage.v2016_01_01
  output-folder: $(python-sdks-folder)/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01

Tag: package-2015-06 and python

These settings apply only when --tag=package-2015-06 --python is specified on the command line. Please also specify --python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>.

python:
  namespace: azure.mgmt.storage.v2015_06_15
  output-folder: $(python-sdks-folder)/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15

Java

These settings apply only when --java is specified on the command line. Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>.

java:
  azure-arm: true
  fluent: true
  namespace: com.microsoft.azure.management.storage
  license-header: MICROSOFT_MIT_NO_CODEGEN
  payload-flattening-threshold: 2
  output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-storage