Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit d88c94b

Browse files
authored
[Microsoft.AzureStackHCI] Add 2024-04-01 for StackHCI (Azure#29110)
* Add 2024-04-01 for StackHCI * add missing properties * add log collection job type * changes in sdk suppressions * sdk suppression changes
1 parent 491e00d commit d88c94b

File tree

82 files changed

+13540
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+13540
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## AzureResourceSchema
2+
3+
These settings apply only when `--azureresourceschema` is specified on the command line.
4+
5+
### AzureResourceSchema multi-api
6+
7+
```yaml $(azureresourceschema) && $(multiapi)
8+
batch:
9+
- tag: package-2020-11-01
10+
```
11+
12+
Please also specify `--azureresourceschema-folder=<path to the root directory of your azure-resource-manager-schemas clone>`.
13+
14+
### Tag: package-2020-11-01 and azureresourceschema
15+
16+
```yaml $(tag) == '2020-11-01-preview' && $(azureresourceschema)
17+
output-folder: $(azureresourceschema-folder)/schemas
18+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## C
2+
3+
These settings apply only when `--csharp` is specified on the command line.
4+
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.
5+
6+
```yaml $(csharp)
7+
csharp:
8+
azure-arm: true
9+
license-header: MICROSOFT_MIT_NO_VERSION
10+
payload-flattening-threshold: 1
11+
clear-output-folder: true
12+
client-side-validation: false
13+
namespace: Microsoft.AzureStackHCI
14+
output-folder: $(csharp-sdks-folder)/azurestackhci/management/Microsoft.AzureStackHCI/GeneratedProtocol
15+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Go
2+
3+
These settings apply only when `--go` is specified on the command line.
4+
5+
```yaml $(go) && $(track2)
6+
go:
7+
license-header: MICROSOFT_MIT_NO_VERSION
8+
module-name: sdk/resourcemanager/azurestackhci/armazurestackhci
9+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
10+
output-folder: $(go-sdk-folder)/$(module-name)
11+
azure-arm: true
12+
```
13+
Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
# azurestackhci
2+
3+
> see https://aka.ms/autorest
4+
5+
This is the AutoRest configuration file for azurestackhci.
6+
7+
## Getting Started
8+
9+
To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
10+
11+
> `autorest readme.md`
12+
13+
To see additional help and options, run:
14+
15+
> `autorest --help`
16+
17+
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
18+
19+
---
20+
21+
## Configuration
22+
23+
### Basic Information
24+
25+
These are the global settings for the azurestackhci.
26+
27+
``` yaml
28+
title: AzureStackHCIClient
29+
description: Azure Stack HCI management service
30+
openapi-type: arm
31+
openapi-subtype: rpaas
32+
tag: package-2024-04
33+
```
34+
35+
## Suppression
36+
37+
``` yaml
38+
directive:
39+
- suppress: R3020
40+
from:
41+
- arcSettings.json
42+
- clusters.json
43+
- extensions.json
44+
- operations.json
45+
- offers.json
46+
- publishers.json
47+
- skus.json
48+
- updates.json
49+
- updateRuns.json
50+
- updateSummaries.json
51+
- deploymentSettings.json
52+
- edgeDevices.json
53+
- securitySettings.json
54+
- hciCommon.json
55+
56+
reason: Microsoft.AzureStackHCI is the correct name for our RP.
57+
suppressions:
58+
- code: PathResourceProviderNamePascalCase
59+
reason: Microsoft.AzureStackHCI was chosen over Microsoft.AzureStackHci or Microsoft.AzureStackHyperConvergedInfrastructure
60+
from:
61+
- arcSettings.json
62+
- clusters.json
63+
- extensions.json
64+
- operations.json
65+
- offers.json
66+
- publishers.json
67+
- skus.json
68+
- updates.json
69+
- updateRuns.json
70+
- updateSummaries.json
71+
- deploymentSettings.json
72+
- edgeDevices.json
73+
- securitySettings.json
74+
75+
- code: ResourceNameRestriction
76+
reason: ClusterName didn't have a pattern initially, adding the constraint now will cause a breaking change
77+
from:
78+
- deploymentSettings.json
79+
- clusters.json
80+
- securitySettings.json
81+
- arcSettings.json
82+
- extensions.json
83+
- offers.json
84+
- publishers.json
85+
- skus.json
86+
- updateRuns.json
87+
- updates.json
88+
- updateSummaries.json
89+
90+
- code: ParametersInPointGet
91+
reason: already used in GA api version, fixing it will cause a breaking change
92+
from:
93+
- offers.json
94+
- skus.json
95+
96+
- code: PatchPropertiesCorrespondToPutProperties
97+
reason: already used in GA api version, fixing it will cause breaking change
98+
from:
99+
- clusters.json
100+
101+
- code: PatchBodyParametersSchema
102+
reason: already used in GA api version, fixing it will cause breaking change
103+
from:
104+
- clusters.json
105+
106+
- code: PutResponseCodes
107+
reason: already used in GA api version, fixing it will cause breaking change
108+
from:
109+
- clusters.json
110+
- arcSettings.json
111+
- updateRuns.json
112+
- updates.json
113+
- updateSummaries.json
114+
115+
- code: ConsistentPatchProperties
116+
reason: already used in GA api version, fixing it will cause breaking change
117+
from:
118+
- arcSettings.json
119+
120+
- code: PostResponseCodes
121+
reason: already used in GA api version, fixing it will cause breaking change
122+
from:
123+
- arcSettings.json
124+
- updates.json
125+
126+
- code: DeleteResponseCodes
127+
reason: already used in GA api version, fixing it will cause breaking change
128+
from:
129+
- clusters.json
130+
- extensions.json
131+
- arcSettings.json
132+
- updateRuns.json
133+
- updates.json
134+
- updateSummaries.json
135+
136+
- code: LroLocationHeader
137+
reason: already used in GA api version, fixing it will cause breaking change
138+
from:
139+
- extensions.json
140+
- clusters.json
141+
- arcSettings.json
142+
- updateRuns.json
143+
- updates.json
144+
- updateSummaries.json
145+
146+
- code: ProvisioningStateSpecifiedForLROPut
147+
reason: already working without the properties section, adding it will break polymorphism
148+
from:
149+
- edgeDevices.json
150+
151+
- code: XmsPageableForListCalls
152+
reason: already used in GA api version, fixing it will cause breaking change
153+
from:
154+
- operations.json
155+
- updateSummaries.json
156+
157+
- code: RequestSchemaForTrackedResourcesMustHaveTags
158+
reason: these are not tracked resources, so tags are not needed
159+
from:
160+
- updates.json
161+
- updateRuns.json
162+
- updateSummaries.json
163+
164+
- code: TrackedResourcePatchOperation
165+
reason: these are not tracked resources, so no tags and corresponding patch operation is needed
166+
from:
167+
- updates.json
168+
- updateRuns.json
169+
- updateSummaries.json
170+
171+
- code: AvoidAdditionalProperties
172+
reason: already used in GA api version, fixing it will cause breaking change
173+
from:
174+
- updates.json
175+
176+
- code: EvenSegmentedPathForPutOperation
177+
reason: already used in GA api version, fixing it will cause breaking change
178+
from:
179+
- updateSummaries.json
180+
181+
- code: DefinitionsPropertiesNamesCamelCase
182+
reason: We have a dependency on other team which is already using these values, changing it will break backward compatibility
183+
from:
184+
- deploymentSettings.json
185+
where:
186+
- $.definitions.QosPolicyOverrides.properties.priorityValue8021Action_Cluster
187+
- $.definitions.QosPolicyOverrides.properties.priorityValue8021Action_SMB
188+
- $.definitions.QosPolicyOverrides.properties.bandwidthPercentage_SMB
189+
- $.definitions.SetInformationJobProperties.properties.priorityValue8021Action_Cluster
190+
- $.definitions.SetInformationJobProperties.properties.priorityValue8021Action_SMB
191+
- $.definitions.SetInformationJobProperties.properties.bandwidthPercentage_SMB
192+
193+
- code: TopLevelResourcesListBySubscription
194+
reason: It is reporting issue for proxy extension resource which doesn't have use case to ListBySubscription as this resource will always tied to one parent resource only. Additionally, there is a 1:1 relationship between HybridCompute Machines and AzureStackHCI VirtualMachineInstances.
195+
```
196+
197+
198+
### Tag: package-2024-04
199+
200+
These settings apply only when `--tag=package-2024-04` is specified on the command line.
201+
202+
```yaml $(tag) == 'package-2024-04'
203+
input-file:
204+
- stable/2024-04-01/arcSettings.json
205+
- stable/2024-04-01/clusters.json
206+
- stable/2024-04-01/deploymentSettings.json
207+
- stable/2024-04-01/edgeDevices.json
208+
- stable/2024-04-01/extensions.json
209+
- stable/2024-04-01/hciCommon.json
210+
- stable/2024-04-01/offers.json
211+
- ../operations/stable/2024-04-01/operations.json
212+
- stable/2024-04-01/publishers.json
213+
- stable/2024-04-01/securitySettings.json
214+
- stable/2024-04-01/skus.json
215+
- stable/2024-04-01/updateRuns.json
216+
- stable/2024-04-01/updateSummaries.json
217+
- stable/2024-04-01/updates.json
218+
```
219+
220+
---
221+
222+
# Code Generation
223+
224+
## Swagger to SDK
225+
226+
This section describes what SDK should be generated by the automatic system.
227+
This is not used by Autorest itself.
228+
229+
``` yaml $(swagger-to-sdk)
230+
swagger-to-sdk:
231+
- repo: azure-sdk-for-python-track2
232+
- repo: azure-sdk-for-java
233+
- repo: azure-sdk-for-go
234+
- repo: azure-sdk-for-js
235+
after_scripts:
236+
- bundle install && rake arm:regen_all_profiles['azure_mgmt_azurestackhci']
237+
- repo: azure-resource-manager-schemas
238+
after_scripts:
239+
- node sdkauto_afterscript.js azurestackhci/resource-manager
240+
- repo: azure-powershell
241+
```
242+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Python
2+
3+
These settings apply only when `--python` is specified on the command line.
4+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
5+
6+
```yaml $(python)
7+
azure-arm: true
8+
license-header: MICROSOFT_MIT_NO_VERSION
9+
package-name: azure-mgmt-azurestackhci
10+
namespace: azure.mgmt.azurestackhci
11+
package-version: 1.0.0b1
12+
clear-output-folder: true
13+
```
14+
15+
```yaml $(python)
16+
no-namespace-folders: true
17+
output-folder: $(python-sdks-folder)/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci
18+
```
19+
20+
21+
``` yaml $(python)
22+
modelerfour:
23+
lenient-model-deduplication: true
24+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## TypeScript
2+
3+
These settings apply only when `--typescript` is specified on the command line.
4+
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.
5+
6+
```yaml $(typescript)
7+
typescript:
8+
azure-arm: true
9+
package-name: "@azure/arm-azurestackhci"
10+
output-folder: "$(typescript-sdks-folder)/sdk/azurestackhci/arm-azurestackhci"
11+
payload-flattening-threshold: 1
12+
generate-metadata: true
13+
```

0 commit comments

Comments
 (0)