Skip to content

Commit

Permalink
feat(applications list): add new availability flag
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 2, 2024
1 parent 7572c6b commit 64c443f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
10 changes: 10 additions & 0 deletions api/spec/json/applications.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@
"name": "hasVersions",
"type": "boolean",
"description": "When set to true, the returned result contains applications with an applicationVersions field that is not empty. When set to false, the result will contain applications with an empty applicationVersions field."
},
{
"name": "availability",
"type": "string",
"description": "Application access level for other tenants.",
"validationSet": [
"SHARED",
"PRIVATE",
"MARKET"
]
}
]
},
Expand Down
8 changes: 8 additions & 0 deletions api/spec/yaml/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ commands:
type: boolean
description: When set to true, the returned result contains applications with an applicationVersions field that is not empty. When set to false, the result will contain applications with an empty applicationVersions field.

- name: availability
type: string
description: Application access level for other tenants.
validationSet:
- SHARED
- PRIVATE
- MARKET

- name: newApplication
description: Create application
descriptionLong: Create a new application using explicit settings
Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/applications/list/list.auto.go

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

8 changes: 7 additions & 1 deletion tools/PSc8y/Public/Get-ApplicationCollection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ Get applications
# When set to true, the returned result contains applications with an applicationVersions field that is not empty. When set to false, the result will contain applications with an empty applicationVersions field.
[Parameter()]
[switch]
$HasVersions
$HasVersions,

# Application access level for other tenants.
[Parameter()]
[ValidateSet('SHARED','PRIVATE','MARKET')]
[string]
$Availability
)
DynamicParam {
Get-ClientCommonParameters -Type "Get", "Collection"
Expand Down

0 comments on commit 64c443f

Please sign in to comment.