Skip to content

Commit

Permalink
update auto-gen code
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed May 17, 2024
1 parent 208a14f commit af7be5b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 19 deletions.
11 changes: 6 additions & 5 deletions api/spec/json/remoteAccessConfigurations.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"group": {
"name": "remoteaccess/configurations",
"description": "Manage Cloud Remote Access configuration",
"description": "Manage remote access configurations",
"descriptionLong": "Cloud Remote Access configuration management",
"link": "https://cumulocity.com/docs/cloud-remote-access/using-cloud-remote-access/"
},
Expand Down Expand Up @@ -47,7 +47,7 @@
},
{
"name": "get",
"description": "Get remote access configuration",
"description": "Get a remote access configuration",
"descriptionLong": "Get an existing remote access configuration for a device",
"alias": {
"go": "get",
Expand Down Expand Up @@ -138,10 +138,11 @@
],
"body": [
{
"name": "name",
"name": "newName",
"type": "string",
"description": "Profile name",
"required": true
"property": "name",
"required": false,
"description": "New configuration name"
}
]
},
Expand Down
13 changes: 8 additions & 5 deletions api/spec/yaml/remoteAccessConfigurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---
group:
name: remoteaccess/configurations
description: Manage Cloud Remote Access configuration
description: Manage remote access configurations
descriptionLong: Cloud Remote Access configuration management
link: https://cumulocity.com/docs/cloud-remote-access/using-cloud-remote-access/

Expand Down Expand Up @@ -35,7 +35,7 @@ commands:
pipeline: true

- name: get
description: Get remote access configuration
description: Get a remote access configuration
descriptionLong: Get an existing remote access configuration for a device
alias:
go: get
Expand Down Expand Up @@ -65,6 +65,8 @@ commands:
pipeline: true

- name: update
# Hide for now, as updating requires to PUT the entire existing state into the body plus the desired changes
# For power-users this might be manageable but it is just a poor user experience
hidden: true
description: Update remote access configuration
descriptionLong: Update an existing remote access configuration
Expand Down Expand Up @@ -96,10 +98,11 @@ commands:
description: Connection
pipeline: true
body:
- name: name
- name: newName
type: string
description: Profile name
required: true
property: name
required: false
description: New configuration name

- name: delete
description: Delete remote access configuration
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/remoteaccess/configurations/configurations.auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewSubCommand(f *cmdutil.Factory) *SubCmdConfigurations {

cmd := &cobra.Command{
Use: "configurations",
Short: "Manage Cloud Remote Access configuration",
Short: "Manage remote access configurations",
Long: `Cloud Remote Access configuration management`,
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/remoteaccess/configurations/get/get.auto.go

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

5 changes: 2 additions & 3 deletions pkg/cmd/remoteaccess/configurations/update/update.auto.go

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

4 changes: 2 additions & 2 deletions pkg/cmd/remoteaccess/connect/connect.manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func NewSubCommand(f *cmdutil.Factory) *SubCmdConnect {

cmd := &cobra.Command{
Use: "connect",
Short: "Connect to device via remote access",
Long: `Connect to device via remote access`,
Short: "Connect to a device",
Long: `Connect to a device using the protocol defined in an existing configuration`,
}

// Subcommands
Expand Down
2 changes: 1 addition & 1 deletion tools/PSc8y/Public/Get-RemoteAccessConfiguration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Function Get-RemoteAccessConfiguration {
<#
.SYNOPSIS
Get remote access configuration
Get a remote access configuration
.DESCRIPTION
Get an existing remote access configuration for a device
Expand Down

0 comments on commit af7be5b

Please sign in to comment.