Skip to content

Commit

Permalink
updating patch api def for applications resource (radius-project#7182)
Browse files Browse the repository at this point in the history
# Description

Updated patch api def on typespec for applications resource.

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- 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).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

Signed-off-by: Vishwanath Hiremath <[email protected]>
  • Loading branch information
vishwahiremat authored and willdavsmith committed Mar 4, 2024
1 parent 5dafb35 commit 7995338
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 61 deletions.
15 changes: 3 additions & 12 deletions pkg/corerp/api/v20231001preview/zz_generated_models.go

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

29 changes: 3 additions & 26 deletions pkg/corerp/api/v20231001preview/zz_generated_models_serde.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -2723,31 +2723,13 @@
"type": "object",
"description": "The updatable properties of the ApplicationResource.",
"properties": {
"compute": {
"$ref": "#/definitions/EnvironmentComputeUpdate",
"description": "The compute resource used by application environment."
},
"providers": {
"$ref": "#/definitions/ProvidersUpdate",
"description": "Cloud providers configuration for the environment."
},
"simulated": {
"type": "boolean",
"description": "Simulated environment."
},
"recipes": {
"type": "object",
"description": "Specifies Recipes linked to the Environment.",
"additionalProperties": {
"additionalProperties": {
"$ref": "#/definitions/RecipePropertiesUpdate"
},
"type": "object"
}
"environment": {
"type": "string",
"description": "Fully qualified resource ID for the environment that the application is linked to"
},
"extensions": {
"type": "array",
"description": "The environment extension.",
"description": "The application extension.",
"items": {
"$ref": "#/definitions/Extension"
},
Expand Down
2 changes: 1 addition & 1 deletion typespec/Applications.Core/applications.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ interface Applications {

update is ArmResourcePatchSync<
ApplicationResource,
EnvironmentProperties,
ApplicationProperties,
UCPBaseParameters<ApplicationResource>
>;

Expand Down

0 comments on commit 7995338

Please sign in to comment.