Skip to content

Commit

Permalink
Update autorest version for Radius (#8042)
Browse files Browse the repository at this point in the history
# Description
Updating autorest version for Radius.

[@autorest/core](https://github.com/Azure/autorest/blob/main/packages/extensions/core)
v3.10.3
[@autorest/go](https://github.com/Azure/autorest.go) v4.0.0-preview.69


[@autorest/cli](https://github.com/Azure/autorest/tree/main/packages/apps/autorest)
is currently at 3.7.1. No updates needed, current code uses v3.7.1.

Notes: All clients generated will be included in this PR except for
GenericResource (pkg/cli/clients_new/generated/)which needs some
discussion with the team.

- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

Fixes: #issue_number

## Contributor checklist
Please verify that the PR meets the following requirements, where
applicable:

- [ ] An overview of proposed schema changes is included in a linked
GitHub issue.
- [ ] A design document PR is created in the [design-notes
repository](https://github.com/radius-project/design-notes/), if new
APIs are being introduced.
- [ ] If applicable, design document has been reviewed and approved by
Radius maintainers/approvers.
- [ ] A PR for the [samples
repository](https://github.com/radius-project/samples) is created, if
existing samples are affected by the changes in this PR.
- [ ] A PR for the [documentation
repository](https://github.com/radius-project/docs) is created, if the
changes in this PR affect the documentation or any user facing updates
are made.
- [ ] A PR for the [recipes
repository](https://github.com/radius-project/recipes) is created, if
existing recipes are affected by the changes in this PR.

---------

Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
  • Loading branch information
lakshmimsft authored Dec 3, 2024
1 parent 1f241e3 commit 6019a05
Show file tree
Hide file tree
Showing 82 changed files with 2,631 additions and 2,457 deletions.
10 changes: 5 additions & 5 deletions build/generate.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,27 @@ generate-genericcliclient: generate-node-installed generate-autorest-installed
.PHONY: generate-rad-corerp-client
generate-rad-corerp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the corerp client SDK (Autorest).
@echo "$(AUTOREST_MODULE_VERSION) is module version"
autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview
autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview && rm pkg/corerp/api/v20231001preview/go.mod

.PHONY: generate-rad-datastoresrp-client
generate-rad-datastoresrp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the datastoresrp client SDK (Autorest).
@echo "$(AUTOREST_MODULE_VERSION) is module version"
autorest pkg/datastoresrp/api/README.md --tag=datastores-2023-10-01-preview
autorest pkg/datastoresrp/api/README.md --tag=datastores-2023-10-01-preview && rm pkg/datastoresrp/api/v20231001preview/go.mod

.PHONY: generate-rad-messagingrp-client
generate-rad-messagingrp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the messagingrp client SDK (Autorest).
@echo "$(AUTOREST_MODULE_VERSION) is module version"
autorest pkg/messagingrp/api/README.md --tag=messaging-2023-10-01-preview
autorest pkg/messagingrp/api/README.md --tag=messaging-2023-10-01-preview && rm pkg/messagingrp/api/v20231001preview/go.mod

.PHONY: generate-rad-daprrp-client
generate-rad-daprrp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the daprrp client SDK (Autorest).
@echo "$(AUTOREST_MODULE_VERSION) is module version"
autorest pkg/daprrp/api/README.md --tag=dapr-2023-10-01-preview
autorest pkg/daprrp/api/README.md --tag=dapr-2023-10-01-preview && rm pkg/daprrp/api/v20231001preview/go.mod

.PHONY: generate-rad-ucp-client
generate-rad-ucp-client: generate-node-installed generate-autorest-installed test-ucp-spec-examples ## Generates the UCP client SDK (Autorest).
@echo "$(AUTOREST_MODULE_VERSION) is module version"
autorest pkg/ucp/api/README.md --tag=ucp-2023-10-01-preview
autorest pkg/ucp/api/README.md --tag=ucp-2023-10-01-preview && rm pkg/ucp/api/v20231001preview/go.mod

.PHONY: generate-mockgen-installed
generate-mockgen-installed:
Expand Down
4 changes: 3 additions & 1 deletion pkg/corerp/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ The following configuration generates track2 go models and client.
```yaml $(tag) != ''
version: 3.*.*
use: "@autorest/go@4.0.0-preview.55"
use: "@autorest/go@4.0.0-preview.69"
module: "github.com/radius-project/radius/pkg/corerp/api/v20231001preview"
module-version: 0.0.1
file-prefix: zz_generated_
license-header: "Licensed under the Apache License, Version 2.0 . See LICENSE in the repository root for license information.\nCode generated by Microsoft (R) AutoRest Code Generator.\nChanges may cause incorrect behavior and will be lost if the code is regenerated."
azure-arm: true
generate-fakes: false
```
### Output
Expand Down
55 changes: 28 additions & 27 deletions pkg/corerp/api/v20231001preview/zz_generated_applications_client.go

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

67 changes: 43 additions & 24 deletions pkg/corerp/api/v20231001preview/zz_generated_client_factory.go

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

Loading

0 comments on commit 6019a05

Please sign in to comment.