Skip to content

Commit

Permalink
Move ARM swagger to subfolder
Browse files Browse the repository at this point in the history
To add new HCP RP the ARO RP is moved
into the subfolder openshiftclusters.

There are no additional changes, no
impact on the SDK and clients.
  • Loading branch information
petrkotas committed Aug 30, 2024
1 parent 5dfba05 commit 6532978
Show file tree
Hide file tree
Showing 230 changed files with 31 additions and 31 deletions.
18 changes: 9 additions & 9 deletions .sha256sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
6182ae0b21f71602ac4deb2f04ca4446182795982d160cee9643ab5f3d68db12 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json
8d07850b3e105c16a397c459261dd78feb7bc20f45f26d9cec5137edaf16fa8d swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json
e4e80ae293dce1a6acfde17fcbd1399487a2fa3587babe6bc69c4ebbdabaa570 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2022-04-01/redhatopenshift.json
b1f1de0fe40d05de90742b17928968923b936adc294000f58974f50a297581dd swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2022-09-04/redhatopenshift.json
01ba9562a8dac2824998ff0ad0d2465f79e6a66597bdb321e9409b9f2d12d222 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-04-01/redhatopenshift.json
c023515341196746454c0ae7af077d40d3ec13f6b88b33cb558f0a7ab17a5a24 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2023-07-01-preview/redhatopenshift.json
440748951dd1c3b34b5ccbdcb7cd966e3b89490887a1f1d64429561fad789515 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-09-04/redhatopenshift.json
74a46fdde6ceb0121fe1515c7e11e902dd921b54cffe693307fb02b3dc88f26e swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-11-22/redhatopenshift.json
5849bcb518f6c7a6942a7eafb1d2edd107a18ad489c823e0262aad4bc509da9f swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview/redhatopenshift.json
6182ae0b21f71602ac4deb2f04ca4446182795982d160cee9643ab5f3d68db12 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2020-04-30/redhatopenshift.json
8d07850b3e105c16a397c459261dd78feb7bc20f45f26d9cec5137edaf16fa8d swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/preview/2021-09-01-preview/redhatopenshift.json
e4e80ae293dce1a6acfde17fcbd1399487a2fa3587babe6bc69c4ebbdabaa570 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2022-04-01/redhatopenshift.json
b1f1de0fe40d05de90742b17928968923b936adc294000f58974f50a297581dd swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2022-09-04/redhatopenshift.json
01ba9562a8dac2824998ff0ad0d2465f79e6a66597bdb321e9409b9f2d12d222 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2023-04-01/redhatopenshift.json
c023515341196746454c0ae7af077d40d3ec13f6b88b33cb558f0a7ab17a5a24 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/preview/2023-07-01-preview/redhatopenshift.json
440748951dd1c3b34b5ccbdcb7cd966e3b89490887a1f1d64429561fad789515 swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2023-09-04/redhatopenshift.json
74a46fdde6ceb0121fe1515c7e11e902dd921b54cffe693307fb02b3dc88f26e swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2023-11-22/redhatopenshift.json
5849bcb518f6c7a6942a7eafb1d2edd107a18ad489c823e0262aad4bc509da9f swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/preview/2024-08-12-preview/redhatopenshift.json
6 changes: 3 additions & 3 deletions hack/build-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function checksum() {
local API_VERSION=$1
local FOLDER=$2

sha256sum swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/"$FOLDER"/"$API_VERSION"/redhatopenshift.json >> .sha256sum
sha256sum swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/"$FOLDER"/"$API_VERSION"/redhatopenshift.json >> .sha256sum
}

function generate_golang() {
Expand All @@ -37,7 +37,7 @@ function generate_golang() {
--version=~2.0.4421 \
--license-header=MICROSOFT_APACHE_NO_VERSION \
--namespace=redhatopenshift \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/"$FOLDER"/"$API_VERSION"/redhatopenshift.json \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/"$FOLDER"/"$API_VERSION"/redhatopenshift.json \
--output-folder=/github.com/Azure/ARO-RP/pkg/client/services/redhatopenshift/mgmt/"$API_VERSION"/redhatopenshift

docker run \
Expand Down Expand Up @@ -73,7 +73,7 @@ function generate_python() {
--azure-arm \
--license-header=MICROSOFT_APACHE_NO_VERSION \
--namespace=azure.mgmt.redhatopenshift.v"${API_VERSION//-/_}" \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/"$FOLDER"/"$API_VERSION"/redhatopenshift.json \
--input-file=/swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/"$FOLDER"/"$API_VERSION"/redhatopenshift.json \
--output-folder=/python/client

rm -rf python/client/azure/mgmt/redhatopenshift/v"${API_VERSION//-/_}"/aio
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v20200430/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20200430
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20200430 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2020-04-30
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20200430 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2020-04-30
2 changes: 1 addition & 1 deletion pkg/api/v20210901preview/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20210901preview
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20210901preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2021-09-01-preview
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20210901preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/preview/2021-09-01-preview
2 changes: 1 addition & 1 deletion pkg/api/v20220401/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20220401
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20220401 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2022-04-01
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20220401 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2022-04-01
2 changes: 1 addition & 1 deletion pkg/api/v20220904/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20220904
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20220904 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2022-09-04
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20220904 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2022-09-04
2 changes: 1 addition & 1 deletion pkg/api/v20230401/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20230401
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20230401 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-04-01
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20230401 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2023-04-01
2 changes: 1 addition & 1 deletion pkg/api/v20230701preview/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20230701preview
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20230701preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2023-07-01-preview
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20230701preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/preview/2023-07-01-preview
2 changes: 1 addition & 1 deletion pkg/api/v20230904/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20230904
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20230904 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-09-04
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20230904 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2023-09-04
2 changes: 1 addition & 1 deletion pkg/api/v20231122/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20231122
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20231122 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/stable/2023-11-22
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20231122 ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/stable/2023-11-22
2 changes: 1 addition & 1 deletion pkg/api/v20240812preview/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package v20240812preview
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20240812preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/preview/2024-08-12-preview
//go:generate go run ../../../hack/swagger github.com/Azure/ARO-RP/pkg/api/v20240812preview ../../../swagger/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/openshiftclusters/preview/2024-08-12-preview
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ These settings apply only when `--tag=package-2020-04-30` is specified on the co

``` yaml $(tag) == 'package-2020-04-30'
input-file:
- Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json
- stable/2020-04-30/redhatopenshift.json
```

### Tag: package-2021-09-01-preview
Expand All @@ -44,7 +44,7 @@ These settings apply only when `--tag=package-2021-09-01-preview` is specified o

``` yaml $(tag) == 'package-2021-09-01-preview'
input-file:
- Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json
- preview/2021-09-01-preview/redhatopenshift.json
```

### Tag: package-2023-07-01-preview
Expand All @@ -53,7 +53,7 @@ These settings apply only when `--tag=package-2023-07-01-preview` is specified o

``` yaml $(tag) == 'package-2023-07-01-preview'
input-file:
- Microsoft.RedHatOpenShift/preview/2023-07-01-preview/redhatopenshift.json
- preview/2023-07-01-preview/redhatopenshift.json
```

### Tag: package-2022-04-01
Expand All @@ -62,7 +62,7 @@ These settings apply only when `--tag=package-2022-04-01` is specified on the co

``` yaml $(tag) == 'package-2022-04-01'
input-file:
- Microsoft.RedHatOpenShift/stable/2022-04-01/redhatopenshift.json
- stable/2022-04-01/redhatopenshift.json
```

### Tag: package-2022-09-04
Expand All @@ -71,7 +71,7 @@ These settings apply only when `--tag=package-2022-09-04` is specified on the co

``` yaml $(tag) == 'package-2022-09-04'
input-file:
- Microsoft.RedHatOpenShift/stable/2022-09-04/redhatopenshift.json
- stable/2022-09-04/redhatopenshift.json
```

### Tag: package-2023-04-01
Expand All @@ -80,7 +80,7 @@ These settings apply only when `--tag=package-2023-04-01` is specified on the co

``` yaml $(tag) == 'package-2023-04-01'
input-file:
- Microsoft.RedHatOpenShift/stable/2023-04-01/redhatopenshift.json
- stable/2023-04-01/redhatopenshift.json
```
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ These settings apply only when `--tag=package-2020-04-30` is specified on the co

``` yaml $(tag) == 'package-2020-04-30'
input-file:
- Microsoft.RedHatOpenShift/stable/2020-04-30/redhatopenshift.json
- stable/2020-04-30/redhatopenshift.json
```

### Tag: package-2021-09-01-preview
Expand All @@ -44,7 +44,7 @@ These settings apply only when `--tag=package-2021-09-01-preview` is specified o

```yaml $(tag) == 'package-2021-09-01-preview'
input-file:
- Microsoft.RedHatOpenShift/preview/2021-09-01-preview/redhatopenshift.json
- preview/2021-09-01-preview/redhatopenshift.json
```

### Tag: package-2022-04-01
Expand All @@ -53,7 +53,7 @@ These settings apply only when `--tag=package-2022-04-01` is specified on the co

``` yaml $(tag) == 'package-2022-04-01'
input-file:
- Microsoft.RedHatOpenShift/stable/2022-04-01/redhatopenshift.json
- stable/2022-04-01/redhatopenshift.json
```

### Tag: package-2022-09-04
Expand All @@ -62,7 +62,7 @@ These settings apply only when `--tag=package-2022-09-04` is specified on the co

``` yaml $(tag) == 'package-2022-09-04'
input-file:
- Microsoft.RedHatOpenShift/stable/2022-09-04/redhatopenshift.json
- stable/2022-09-04/redhatopenshift.json
```

---
Expand Down

0 comments on commit 6532978

Please sign in to comment.