Skip to content

Commit

Permalink
refactors use of generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
s-amann committed May 15, 2024
1 parent 450b830 commit 18f3586
Show file tree
Hide file tree
Showing 25 changed files with 240 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm ci

# Install the tsp cli
# pinned to the last working version combination
npm install -g @typespec/compiler@0.55.0
npm install -g @typespec/compiler@0.56.0

# Install azure/oav for validation of openapi and swagger example generation
# https://github.com/Azure/oav
Expand Down
5 changes: 2 additions & 3 deletions api/autorest-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ use:
go:
namespace: redhatopenshift
project-folder: ../internal
output-folder: $(project-folder)/api/v20240610preview
file-prefix: generated
output-folder: $(project-folder)/api/v20240610preview/generated
module-version: "0.0.1"
containing-module: "github.com/Azure/ARO-HCP/internal/api"
containing-module: "github.com/Azure/ARO-HCP/internal/api/v20240610preview"
azure-arm: true
generate-fakes: true
2 changes: 1 addition & 1 deletion api/redhatopenshift/HcpCluster/hcpCluster-models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ model HcpOpenShiftClusterResource
@segment("hcpOpenShiftClusters")
name: string;

...ManagedServiceIdentity;
...ManagedServiceIdentityProperty;
}

// The NodePool needs to be TrackedResource for the following reasons:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2162,24 +2162,6 @@
}
}
},
"Versions": {
"type": "string",
"description": "The available API versions.",
"enum": [
"2024-06-10-preview"
],
"x-ms-enum": {
"name": "Versions",
"modelAsString": true,
"values": [
{
"name": "v2024_06_10_preview",
"value": "2024-06-10-preview",
"description": "2024-06-10-preview version"
}
]
}
},
"Visibility": {
"type": "string",
"description": "The visibility of the API server",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 18f3586

Please sign in to comment.