Skip to content

Commit

Permalink
reorganized the folder structure based the merged private pr 13385
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenyu Zhou committed Jul 28, 2023
1 parent 7bb0703 commit 4d77d96
Show file tree
Hide file tree
Showing 31 changed files with 560 additions and 202 deletions.
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2993,6 +2993,7 @@ wandisco
wans
wargs
wasb
wasbs
wasm
wasserstein
watchlist
Expand Down Expand Up @@ -3167,6 +3168,7 @@ primingjob
operatorconnect
getent
useraccount
userassignedidentities
businessmetadata
usermetadata
Relaytype
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"resourceGroupName": "hiloResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6",
"api-version": "2023-06-01-preview",
"clusterPoolName": "clusterPool1",
"clusterName": "cluster1"
Expand All @@ -11,7 +11,7 @@
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1/jobs/flink-job-1",
"id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1/jobs/flink-job-1",
"properties": {
"jobType": "FlinkJob",
"jobName": "flink-job-1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6",
"resourceGroupName": "hiloResourcegroup",
"api-version": "2023-06-01-preview",
"clusterPoolName": "clusterpool1",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Go

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


``` yaml $(go) && $(track2)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/hdinsight/armhdinsightonaks
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,115 @@
# HDInsight On Aks

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

---

## Getting Started

To build the SDK for HDInsight, 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 HDInsight On Aks API.

``` yaml
title: HDInsightOnAksManagementClient
description: HDInsight On Aks Management Client
openapi-type: arm
openapi-subtype: rpaas
azure-arm: true
tag: package-2023-06-preview
```
### Suppression
### Tag: package-2023-06-preview
These settings apply only when `--tag=package-2023-06-preview` is specified on the command line.

```yaml $(tag) == 'package-2023-06-preview'
input-file:
- preview/2023-06-01-preview/hdinsight.json
suppressions:
- code: MISSING_APIS_IN_DEFAULT_TAG
reason: Remove deprecated APIs in new API version.
- code: ResourceNameRestriction
reason: Keep compatibility with old API version.
- code: PatchBodyParametersSchema
reason: The "location" property is a must for a tracked resource.
- code: TrackedResourcePatchOperation
reason: This is a false positive, the "tags" property is defined in TrackedResource.
- code: OperationIdNounVerb
reason: This is false alarm. We checked that the operation id "Clusters_ListByClusterPoolName" is correct.
- code: GetCollectionOnlyHasValueAndNextLink
reason: This is false alarm.
```

---

# 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-net-track2
- repo: azure-sdk-for-go
- repo: azure-sdk-for-java
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-resource-manager-schemas
- repo: azure-powershell
```

## Python

See configuration in [readme.python.md](./readme.python.md)

## Go

See configuration in [readme.go.md](./readme.go.md)

## 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:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Azure.ResourceManager.HDInsightOnAks
output-folder: $(csharp-sdks-folder)/hdinsight/Azure.ResourceManager.HDInsightOnAks/src/Generated
clear-output-folder: true
```


## Java

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

``` yaml $(java)
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.hdinsightonaks
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-hdinsightonaks
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Node.js

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

``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-hdinsight
output-folder: $(node-sdks-folder)/lib/services/hdInsightManagement
generate-license-txt: true
generate-package-json: true
generate-readme-md: true
```
## Tag: package-hdinsightonaks-2023-06-preview and Node.js
These settings apply only when `--tag=package-hdinsightonaks-2023-06-preview --nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

``` yaml $(tag) == 'package-hdinsightonaks-2023-06-preview' && $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-hdinsightonaks
output-folder: $(node-sdks-folder)/lib/services/hdInsightOnAksManagement
generate-license-txt: true
generate-package-json: true
generate-readme-md: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## 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>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
title: HDInsightOnAksMgmtClient
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.hdinsightonaks
package-name: azure-mgmt-hdinsightonaks
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/hdinsight/azure-mgmt-hdinsightonaks/azure/mgmt/hdinsightonaks
```
``` yaml $(python)
modelerfour:
lenient-model-deduplication: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## 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-hdinsightonaks"
output-folder: "$(typescript-sdks-folder)/sdk/hdinsight/arm-hdinsightonaks"
generate-metadata: true
```
51 changes: 0 additions & 51 deletions specification/hdinsight/resource-manager/readme.java.md

This file was deleted.

Loading

0 comments on commit 4d77d96

Please sign in to comment.