Skip to content

Commit e86758c

Browse files
committed
commit 4691c2a
Author: Rakesh Kumar <[email protected]> Date: Wed Jan 29 17:46:01 2020 -0800 [AzureStack] User Subscription: rename NewSubscription to SubscriptionDefinition (Azure#8257) commit 9e551f0 Author: bganapa <[email protected]> Date: Tue Nov 12 11:44:22 2019 -0800 Reset to Stackadmin2 (Azure#7766)
1 parent 6049cf3 commit e86758c

File tree

3 files changed

+96
-29
lines changed

3 files changed

+96
-29
lines changed

specification/azsadmin/resource-manager/user-subscriptions/Microsoft.Subscriptions/preview/2015-11-01/Subscriptions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"$ref": "#/parameters/SubscriptionIdParameter"
9292
},
9393
{
94-
"$ref": "#/parameters/NewSubscriptionParameter"
94+
"$ref": "#/parameters/SubscriptionDefinitionParameter"
9595
},
9696
{
9797
"$ref": "#/parameters/ApiVersionParameter"
@@ -263,9 +263,9 @@
263263
"description": "Id of the subscription.",
264264
"x-ms-parameter-location": "method"
265265
},
266-
"NewSubscriptionParameter": {
266+
"SubscriptionDefinitionParameter": {
267267
"description": "Subscription parameter.",
268-
"name": "newSubscription",
268+
"name": "subscriptionDefinition",
269269
"in": "body",
270270
"schema": {
271271
"$ref": "#/definitions/Subscription"
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Subscriptions Admin
2+
3+
> see https://aka.ms/autorest
4+
5+
This is the AutoRest configuration file for Subscriptions Admin.
6+
7+
---
8+
## Getting Started
9+
To build the SDK for Subscriptions Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
10+
11+
> `autorest`
12+
13+
To see additional help and options, run:
14+
15+
> `autorest --help`
16+
---
17+
18+
## Configuration
19+
20+
### Basic Information
21+
These are the global settings for the Subscriptions API.
22+
23+
``` yaml
24+
title: SubscriptionClient
25+
description: Subscription Management Client
26+
openapi-type: arm
27+
tag: package-2015-11-01
28+
```
29+
30+
## Suppression
31+
``` yaml
32+
directive:
33+
- suppress: XmsResourceInPutResponse
34+
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
35+
where:
36+
- $.paths["/subscriptions/{subscriptionId}"].put
37+
38+
- suppress: R3023
39+
reason: No operations endpoint as not ARM resource provider.
40+
41+
- suppress: SubscriptionIdParameterInOperations
42+
reason: Subscription is the main resource in the API spec and it should not be masked in global parameters.
43+
where:
44+
- $.paths["/subscriptions/{subscriptionId}"].get.parameters[0]
45+
- $.paths["/subscriptions/{subscriptionId}"].put.parameters[0]
46+
- $.paths["/subscriptions/{subscriptionId}"].delete.parameters[0]
47+
48+
- suppress: BodyTopLevelProperties
49+
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.
50+
where:
51+
- $.definitions.Subscription.properties
52+
53+
- suppress: RequiredPropertiesMissingInResourceModel
54+
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.
55+
where:
56+
- $.definitions.Subscription
57+
58+
```
59+
60+
---
61+
# Code Generation
62+
63+
## C#
64+
65+
``` yaml $(csharp)
66+
csharp:
67+
azure-arm: true
68+
license-header: MICROSOFT_MIT_NO_VERSION
69+
namespace: Microsoft.AzureStack.Management.Subscription
70+
payload-flattening-threshold: 1
71+
output-folder: $(csharp-sdks-folder)/Generated
72+
clear-output-folder: true
73+
```
74+
75+
76+
``` yaml
77+
# include the azure profile definitions from the standard location
78+
require: $(this-folder)/../../../../profiles/readme.md
79+
80+
# all the input files across all versions
81+
input-file:
82+
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Subscriptions.json
83+
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Offer.json
84+
85+
```
86+
87+
If there are files that should not be in the `all-api-versions` set,
88+
uncomment the `exclude-file` section below and add the file paths.
89+
90+
``` yaml $(tag) == 'all-api-versions'
91+
#exclude-file:
92+
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
93+
```

specification/azsadmin/resource-manager/user-subscriptions/readme.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -101,29 +101,3 @@ These settings apply only when `--tag=package-2015-11-01 --python` is specified
101101
``` yaml $(tag) == 'package-2015-11-01' && $(python)
102102
namespace: azure.mgmt.subscriptions.v2015_06_01_preview
103103
```
104-
105-
## Multi-API/Profile support for AutoRest v3 generators
106-
107-
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
108-
109-
This block is updated by an automatic script. Edits may be lost!
110-
111-
``` yaml $(tag) == 'all-api-versions' /* autogenerated */
112-
# include the azure profile definitions from the standard location
113-
require: $(this-folder)/../../../../profiles/readme.md
114-
115-
# all the input files across all versions
116-
input-file:
117-
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Subscriptions.json
118-
- $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Offer.json
119-
120-
```
121-
122-
If there are files that should not be in the `all-api-versions` set,
123-
uncomment the `exclude-file` section below and add the file paths.
124-
125-
``` yaml $(tag) == 'all-api-versions'
126-
#exclude-file:
127-
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
128-
```
129-

0 commit comments

Comments
 (0)