ARO-RP/swagger/redhatopenshift/resource-manager
Caden Marchese faf377c984
Incorporate CI and ARM feedback from azure-rest-api-specs to v2024-08-12-preview API (#3727)
* api changes

fix tag package-2023-11
this was wrong in the readme

remove UserAssignedIdentities
top level fields must not have additionalproperties

update the default tag to latest

define a new IdentityType with x-ms-enum

modelAsString on identityType x-ms-enum should be false

rename IdentityType to ResourceIdentityType to match v3/types.json

make client

add descriptions to all new API fields

make client

fix unit test that was failing as a result of removing the UserAssignedIdentity type from the API

Adjust a doc comment according to feedback

make client

* add platformworkloadidentityroleset to API definition and examples

Update client generation to account for swagger subfolder

make client

fix pwip and validatestatic unit tests

fix relative path to common-types

migrate from common-types/v3 to common-types/v6
it was requested that we use the latest version of
common types. This involves some changes to our examples
to match the UUID expected.

move from Identity to ManagedServiceIdentity type
defined in common-types/v6

use modelerfour.lenient-model-deduplication=true
avoids python client generation issues

convert PlatformWorkloadIdentity to map

ARO-4382 fix unit test cases

make generate swagger

fix unit tests

revert naming openShiftCluster.ManagedServiceIdentity to Identity

fix prod code and unit tests post-rebase, reference common-types
directly for the identity property

* more swagger CI fixes
* fix examples to contain identity and type
* remove PlatformWorkloadIdentityRoleSetUpdate

oct 16th changes

oct 17th changes

fix issues post-rebase

* update readme to contain suppression for avoidAdditionalProperties

* fix ModelValidation error by converting example IDs to resourceIDs

* Update python/go clients

* Update az aro extension to enumerate platform_workload_identities as a dict instead of a list

* Fix python linter issues

* configure suppression for PatchBodyParametersSchema

appease the linter, fix subscriptionID type in util/azureclient

appease the linter again

correct log statement, use better naming

* regenerate examples
* changes operatorName and roleDefinitionName in PWIRS_List.json

---------

Co-authored-by: Tanmay Satam <tsatam@redhat.com>
2024-10-29 14:08:36 -07:00
..
Microsoft.RedHatOpenShift/openshiftclusters Incorporate CI and ARM feedback from azure-rest-api-specs to v2024-08-12-preview API (#3727) 2024-10-29 14:08:36 -07:00
readme.azureresourceschema.md Move ARM swagger to subfolder (#3805) 2024-08-30 18:18:40 +02:00

readme.azureresourceschema.md

Azure Red Hat OpenShift

see https://aka.ms/autorest

This is the AutoRest configuration file for Azure Red Hat OpenShift.


Getting Started

To build the SDK for Azure Red Hat OpenShift, simply Install AutoRest 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 Azure Red Hat OpenShift API.

openapi-type: arm
tag: package-2021-09-01-preview

Tag: package-2020-04-30

These settings apply only when --tag=package-2020-04-30 is specified on the command line.

input-file:
  - stable/2020-04-30/redhatopenshift.json

Tag: package-2021-09-01-preview

These settings apply only when --tag=package-2021-09-01-preview is specified on the command line.

input-file:
  - preview/2021-09-01-preview/redhatopenshift.json

Tag: package-2022-04-01

These settings apply only when --tag=package-2022-04-01 is specified on the command line.

input-file:
  - stable/2022-04-01/redhatopenshift.json

Tag: package-2022-09-04

These settings apply only when --tag=package-2022-09-04 is specified on the command line.

input-file:
  - stable/2022-09-04/redhatopenshift.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.

swagger-to-sdk:
  - repo: azure-sdk-for-python
    after_scripts:
      - python ./scripts/multiapi_init_gen.py azure-mgmt-redhatopenshift
  - repo: azure-sdk-for-go
  - repo: azure-resource-manager-schemas
    after_scripts:
      - node sdkauto_afterscript.js redhatopenshift/resource-manager

Go

See configuration in readme.go.md

Python

See configuration in readme.python.md

AzureResourceSchema

See configuration in readme.azureresourceschema.md