Skip to content

Commit

Permalink
Adding secret model for the extender to test listSecrets function bei…
Browse files Browse the repository at this point in the history
…ng generated

Signed-off-by: ytimocin <[email protected]>
  • Loading branch information
ytimocin committed Sep 23, 2024
1 parent e16cf6f commit f8268db
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 98 deletions.

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions hack/bicep-types-radius/generated/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/167"
},
"Applications.Core/extenders@2023-10-01-preview": {
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/186"
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/188"
},
"Applications.Core/gateways@2023-10-01-preview": {
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/208"
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/210"
},
"Applications.Core/secretStores@2023-10-01-preview": {
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/244"
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/246"
},
"Applications.Core/volumes@2023-10-01-preview": {
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/282"
"$ref": "applications/applications.core/2023-10-01-preview/types.json#/284"
},
"Applications.Dapr/configurationStores@2023-10-01-preview": {
"$ref": "applications/applications.dapr/2023-10-01-preview/types.json#/49"
Expand Down
12 changes: 11 additions & 1 deletion pkg/corerp/api/v20231001preview/zz_generated_extenders_client.go

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

18 changes: 18 additions & 0 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.

62 changes: 62 additions & 0 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.

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 @@ -1260,7 +1260,10 @@
],
"responses": {
"200": {
"description": "Azure operation completed successfully."
"description": "Azure operation completed successfully.",
"schema": {
"$ref": "#/definitions/ExtenderListSecretResponse"
}
},
"default": {
"description": "An unexpected error response.",
Expand Down Expand Up @@ -3191,7 +3194,17 @@
},
"ExtenderListSecretResponse": {
"type": "object",
"description": "Response for list secrets API call"
"description": "Response for list secrets API call",
"properties": {
"password": {
"type": "string",
"description": "Password to use when connecting to the extender"
},
"connectionString": {
"type": "string",
"description": "Connection string used to connect to the extender"
}
}
},
"ExtenderProperties": {
"type": "object",
Expand Down Expand Up @@ -3291,6 +3304,20 @@
}
]
},
"ExtenderSecret": {
"type": "object",
"description": "The secret values for the given Extender resource",
"properties": {
"password": {
"type": "string",
"description": "Password to use when connecting to the extender"
},
"connectionString": {
"type": "string",
"description": "Connection string used to connect to the extender"
}
}
},
"Extension": {
"type": "object",
"description": "Extension of a environment/application resource.",
Expand Down
11 changes: 10 additions & 1 deletion typespec/Applications.Core/extenders.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ using OpenAPI;
namespace Applications.Core;

@doc("Response for list secrets API call")
model ExtenderListSecretResponse {}
model ExtenderListSecretResponse is ExtenderSecret;

@doc("The secret values for the given Extender resource")
model ExtenderSecret {
@doc("Password to use when connecting to the extender")
password?: string;

@doc("Connection string used to connect to the extender")
connectionString?: string;
}

@doc("ExtenderResource portable resource")
model ExtenderResource
Expand Down

0 comments on commit f8268db

Please sign in to comment.