Skip to content

Commit

Permalink
configuration-api: fix list group properties request
Browse files Browse the repository at this point in the history
  • Loading branch information
wfabjanczuk committed Dec 19, 2024
1 parent d3384b9 commit 1bd240f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions configuration/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,22 +328,22 @@ func validateBotGroupsAssignment(groups []*GroupConfig) error {
}

// ListLicenseProperties returns the properties set within a license.
func (a *API) ListLicenseProperties(namespacePrefix, namePrefix string) (Properties, error) {
func (a *API) ListLicenseProperties(namespace, namePrefix string) (Properties, error) {
var resp Properties
err := a.Call("list_license_properties", &listLicensePropertiesRequest{
NamespacePrefix: namespacePrefix,
NamePrefix: namePrefix,
Namespace: namespace,
NamePrefix: namePrefix,
}, &resp)
return resp, err
}

// ListGroupProperties returns the properties set within a group.
func (a *API) ListGroupProperties(groupID uint, namespacePrefix, namePrefix string) (Properties, error) {
func (a *API) ListGroupProperties(groupID uint, namespace, namePrefix string) (Properties, error) {
var resp Properties
err := a.Call("list_group_properties", &listGroupPropertiesRequest{
ID: groupID,
NamespacePrefix: namespacePrefix,
NamePrefix: namePrefix,
ID: groupID,
Namespace: namespace,
NamePrefix: namePrefix,
}, &resp)
return resp, err
}
Expand Down
6 changes: 3 additions & 3 deletions configuration/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ type listLicensePropertiesRequest struct {
}

type listGroupPropertiesRequest struct {
ID uint `json:"id"`
NamespacePrefix string `json:"namespace_prefix,omitempty"`
NamePrefix string `json:"name_prefix,omitempty"`
ID uint `json:"id"`
Namespace string `json:"namespace,omitempty"`
NamePrefix string `json:"name_prefix,omitempty"`
}

type createAgentResponse struct {
Expand Down

0 comments on commit 1bd240f

Please sign in to comment.