forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Author: Rakesh Kumar <rakku@microsoft.com> Date: Wed Jan 29 17:46:01 2020 -0800 [AzureStack] User Subscription: rename NewSubscription to SubscriptionDefinition (Azure#8257) commit 9e551f0 Author: bganapa <bganapa@microsoft.com> Date: Tue Nov 12 11:44:22 2019 -0800 Reset to Stackadmin2 (Azure#7766)
- Loading branch information
Showing
3 changed files
with
96 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
specification/azsadmin/resource-manager/user-subscriptions/readme.azsautogen.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Subscriptions Admin | ||
|
||
> see https://aka.ms/autorest | ||
This is the AutoRest configuration file for Subscriptions Admin. | ||
|
||
--- | ||
## Getting Started | ||
To build the SDK for Subscriptions 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 Subscriptions API. | ||
|
||
``` yaml | ||
title: SubscriptionClient | ||
description: Subscription Management Client | ||
openapi-type: arm | ||
tag: package-2015-11-01 | ||
``` | ||
## Suppression | ||
``` yaml | ||
directive: | ||
- suppress: XmsResourceInPutResponse | ||
reason: Subscription is not modelled as ARM resource in azure for legacy reasons. In Azure stack as well, Subscription is not modelled as ARM resource for azure consistency | ||
where: | ||
- $.paths["/subscriptions/{subscriptionId}"].put | ||
|
||
- suppress: R3023 | ||
reason: No operations endpoint as not ARM resource provider. | ||
|
||
- suppress: SubscriptionIdParameterInOperations | ||
reason: Subscription is the main resource in the API spec and it should not be masked in global parameters. | ||
where: | ||
- $.paths["/subscriptions/{subscriptionId}"].get.parameters[0] | ||
- $.paths["/subscriptions/{subscriptionId}"].put.parameters[0] | ||
- $.paths["/subscriptions/{subscriptionId}"].delete.parameters[0] | ||
|
||
- suppress: BodyTopLevelProperties | ||
reason: Subscription is not modelled as ARM resource in azure for legacy reasons. In Azure stack as well, Subscription is not modelled as ARM resource for azure consistency. | ||
where: | ||
- $.definitions.Subscription.properties | ||
|
||
- suppress: RequiredPropertiesMissingInResourceModel | ||
reason: Subscription is not modelled as ARM resource in azure for legacy reasons. In Azure stack as well, Subscription is not modelled as ARM resource for azure consistency. | ||
where: | ||
- $.definitions.Subscription | ||
|
||
``` | ||
|
||
--- | ||
# Code Generation | ||
|
||
## C# | ||
|
||
``` yaml $(csharp) | ||
csharp: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
namespace: Microsoft.AzureStack.Management.Subscription | ||
payload-flattening-threshold: 1 | ||
output-folder: $(csharp-sdks-folder)/Generated | ||
clear-output-folder: true | ||
``` | ||
``` yaml | ||
# include the azure profile definitions from the standard location | ||
require: $(this-folder)/../../../../profiles/readme.md | ||
|
||
# all the input files across all versions | ||
input-file: | ||
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Subscriptions.json | ||
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Offer.json | ||
|
||
``` | ||
|
||
If there are files that should not be in the `all-api-versions` set, | ||
uncomment the `exclude-file` section below and add the file paths. | ||
|
||
``` yaml $(tag) == 'all-api-versions' | ||
#exclude-file: | ||
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters