Skip to content

Commit

Permalink
[Microsoft.AzureStackHCI] Add 2024-04-01 for StackHCI (Azure#29110)
Browse files Browse the repository at this point in the history
* Add 2024-04-01 for StackHCI

* add missing properties

* add log collection job type

* changes in sdk suppressions

* sdk suppression changes
  • Loading branch information
priyjain358 authored Jun 5, 2024
1 parent 491e00d commit d88c94b
Show file tree
Hide file tree
Showing 82 changed files with 13,540 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## AzureResourceSchema

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

### AzureResourceSchema multi-api

```yaml $(azureresourceschema) && $(multiapi)
batch:
- tag: package-2020-11-01
```
Please also specify `--azureresourceschema-folder=<path to the root directory of your azure-resource-manager-schemas clone>`.

### Tag: package-2020-11-01 and azureresourceschema

```yaml $(tag) == '2020-11-01-preview' && $(azureresourceschema)
output-folder: $(azureresourceschema-folder)/schemas
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 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
payload-flattening-threshold: 1
clear-output-folder: true
client-side-validation: false
namespace: Microsoft.AzureStackHCI
output-folder: $(csharp-sdks-folder)/azurestackhci/management/Microsoft.AzureStackHCI/GeneratedProtocol
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Go

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

```yaml $(go) && $(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/azurestackhci/armazurestackhci
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
# azurestackhci

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

## Getting Started

To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:

> `autorest readme.md`
To see additional help and options, run:

> `autorest --help`
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.

---

## Configuration

### Basic Information

These are the global settings for the azurestackhci.

``` yaml
title: AzureStackHCIClient
description: Azure Stack HCI management service
openapi-type: arm
openapi-subtype: rpaas
tag: package-2024-04
```
## Suppression
``` yaml
directive:
- suppress: R3020
from:
- arcSettings.json
- clusters.json
- extensions.json
- operations.json
- offers.json
- publishers.json
- skus.json
- updates.json
- updateRuns.json
- updateSummaries.json
- deploymentSettings.json
- edgeDevices.json
- securitySettings.json
- hciCommon.json

reason: Microsoft.AzureStackHCI is the correct name for our RP.
suppressions:
- code: PathResourceProviderNamePascalCase
reason: Microsoft.AzureStackHCI was chosen over Microsoft.AzureStackHci or Microsoft.AzureStackHyperConvergedInfrastructure
from:
- arcSettings.json
- clusters.json
- extensions.json
- operations.json
- offers.json
- publishers.json
- skus.json
- updates.json
- updateRuns.json
- updateSummaries.json
- deploymentSettings.json
- edgeDevices.json
- securitySettings.json

- code: ResourceNameRestriction
reason: ClusterName didn't have a pattern initially, adding the constraint now will cause a breaking change
from:
- deploymentSettings.json
- clusters.json
- securitySettings.json
- arcSettings.json
- extensions.json
- offers.json
- publishers.json
- skus.json
- updateRuns.json
- updates.json
- updateSummaries.json

- code: ParametersInPointGet
reason: already used in GA api version, fixing it will cause a breaking change
from:
- offers.json
- skus.json

- code: PatchPropertiesCorrespondToPutProperties
reason: already used in GA api version, fixing it will cause breaking change
from:
- clusters.json

- code: PatchBodyParametersSchema
reason: already used in GA api version, fixing it will cause breaking change
from:
- clusters.json

- code: PutResponseCodes
reason: already used in GA api version, fixing it will cause breaking change
from:
- clusters.json
- arcSettings.json
- updateRuns.json
- updates.json
- updateSummaries.json

- code: ConsistentPatchProperties
reason: already used in GA api version, fixing it will cause breaking change
from:
- arcSettings.json

- code: PostResponseCodes
reason: already used in GA api version, fixing it will cause breaking change
from:
- arcSettings.json
- updates.json

- code: DeleteResponseCodes
reason: already used in GA api version, fixing it will cause breaking change
from:
- clusters.json
- extensions.json
- arcSettings.json
- updateRuns.json
- updates.json
- updateSummaries.json

- code: LroLocationHeader
reason: already used in GA api version, fixing it will cause breaking change
from:
- extensions.json
- clusters.json
- arcSettings.json
- updateRuns.json
- updates.json
- updateSummaries.json

- code: ProvisioningStateSpecifiedForLROPut
reason: already working without the properties section, adding it will break polymorphism
from:
- edgeDevices.json

- code: XmsPageableForListCalls
reason: already used in GA api version, fixing it will cause breaking change
from:
- operations.json
- updateSummaries.json

- code: RequestSchemaForTrackedResourcesMustHaveTags
reason: these are not tracked resources, so tags are not needed
from:
- updates.json
- updateRuns.json
- updateSummaries.json

- code: TrackedResourcePatchOperation
reason: these are not tracked resources, so no tags and corresponding patch operation is needed
from:
- updates.json
- updateRuns.json
- updateSummaries.json

- code: AvoidAdditionalProperties
reason: already used in GA api version, fixing it will cause breaking change
from:
- updates.json

- code: EvenSegmentedPathForPutOperation
reason: already used in GA api version, fixing it will cause breaking change
from:
- updateSummaries.json

- code: DefinitionsPropertiesNamesCamelCase
reason: We have a dependency on other team which is already using these values, changing it will break backward compatibility
from:
- deploymentSettings.json
where:
- $.definitions.QosPolicyOverrides.properties.priorityValue8021Action_Cluster
- $.definitions.QosPolicyOverrides.properties.priorityValue8021Action_SMB
- $.definitions.QosPolicyOverrides.properties.bandwidthPercentage_SMB
- $.definitions.SetInformationJobProperties.properties.priorityValue8021Action_Cluster
- $.definitions.SetInformationJobProperties.properties.priorityValue8021Action_SMB
- $.definitions.SetInformationJobProperties.properties.bandwidthPercentage_SMB

- code: TopLevelResourcesListBySubscription
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.
```
### Tag: package-2024-04
These settings apply only when `--tag=package-2024-04` is specified on the command line.

```yaml $(tag) == 'package-2024-04'
input-file:
- stable/2024-04-01/arcSettings.json
- stable/2024-04-01/clusters.json
- stable/2024-04-01/deploymentSettings.json
- stable/2024-04-01/edgeDevices.json
- stable/2024-04-01/extensions.json
- stable/2024-04-01/hciCommon.json
- stable/2024-04-01/offers.json
- ../operations/stable/2024-04-01/operations.json
- stable/2024-04-01/publishers.json
- stable/2024-04-01/securitySettings.json
- stable/2024-04-01/skus.json
- stable/2024-04-01/updateRuns.json
- stable/2024-04-01/updateSummaries.json
- stable/2024-04-01/updates.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.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_azurestackhci']
- repo: azure-resource-manager-schemas
after_scripts:
- node sdkauto_afterscript.js azurestackhci/resource-manager
- repo: azure-powershell
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Python

These settings apply only when `--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>`.

```yaml $(python)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-azurestackhci
namespace: azure.mgmt.azurestackhci
package-version: 1.0.0b1
clear-output-folder: true
```
```yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci
```
``` yaml $(python)
modelerfour:
lenient-model-deduplication: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## TypeScript

These settings apply only when `--typescript` is specified on the command line.
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.

```yaml $(typescript)
typescript:
azure-arm: true
package-name: "@azure/arm-azurestackhci"
output-folder: "$(typescript-sdks-folder)/sdk/azurestackhci/arm-azurestackhci"
payload-flattening-threshold: 1
generate-metadata: true
```
Loading

0 comments on commit d88c94b

Please sign in to comment.