Skip to content

Commit

Permalink
[Azure Stack] Updates to Azs.Fabric.Admin spec for autorest config (#…
Browse files Browse the repository at this point in the history
…9030)

* Cumulative commit message:
commit 6ecda64
Author: Yuxing Zhou <zyx.pulsars@gmail.com>
Date:   Sat Jan 4 02:25:35 2020 +0800

    [Azure Stack] Update fabric storage admin specs for new generation with autorest-beta (#8038)
    commit 9e551f0                                                                         Author: bganapa <bganapa@microsoft.com>                                                     Date:   Tue Nov 12 11:44:22 2019 -0800                                         Reset to Stackadmin2 (#7766)

* Address PR comments

* Fix semantic issue

* Reset NasCluster files to master

* Add nascluster changes

* Revert readme.md changes
  • Loading branch information
viananth committed Sep 4, 2020
1 parent 589f00a commit 25acd0f
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"swagger": "2.0",
"info": {
"version": "2016-05-01",
"title": "FabricAdminClient",
"description": "The common parameters for Fabric Management specs."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {},
"parameters": {
"TopParameter": {
"description": "OData top parameter.",
"name": "$top",
"in": "query",
"type": "string",
"x-ms-parameter-location": "method"
},
"SkipParameter": {
"description": "OData skip parameter.",
"name": "$skip",
"in": "query",
"type": "string",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
},
{
"$ref": "Fabric.json#/parameters/FilterParameter"
},
{
"$ref": "Common.json#/parameters/TopParameter"
},
{
"$ref": "Common.json#/parameters/SkipParameter"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/TopParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/SkipParameter"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/TopParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/SkipParameter"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/TopParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/SkipParameter"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
},
{
"$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/TopParameter"
},
{
"$ref": "../2016-05-01/Common.json#/parameters/SkipParameter"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Fabric Admin

> see https://aka.ms/autorest
This is the AutoRest configuration file for Fabric Admin.

---
## Getting Started
To build the SDK for Fabric 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 Fabric API.

``` yaml
title: FabricAdminClient
description: Fabric Admin Client
openapi-type: arm
tag: package-2019-05-01
```
``` yaml
input-file:
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ApplicationOperationResults.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ComputeOperationResults.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/Fabric.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGateway.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGatewayPool.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/FabricLocation.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/FileShare.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/InfraRole.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/InfraRoleInstance.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/IpPool.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/LogicalNetwork.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/LogicalSubnet.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/MacAddressPool.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/NetworkOperationResults.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ScaleUnit.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ScaleUnitNode.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/SlbMuxInstance.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/StorageOperationResults.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2018-10-01/StorageSubSystem.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json
- $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/NasCluster.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.Fabric.Admin
payload-flattening-threshold: 1
output-folder: $(csharp-sdks-folder)/Generated
clear-output-folder: true
```
1 change: 0 additions & 1 deletion specification/azsadmin/resource-manager/fabric/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,3 @@ uncomment the `exclude-file` section below and add the file paths.
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```

0 comments on commit 25acd0f

Please sign in to comment.