diff --git a/client/management/v3/zz_generated_catalog.go b/client/management/v3/zz_generated_catalog.go index 183b1b3f..7a9edf1f 100644 --- a/client/management/v3/zz_generated_catalog.go +++ b/client/management/v3/zz_generated_catalog.go @@ -64,7 +64,7 @@ type CatalogOperations interface { ByID(id string) (*Catalog, error) Delete(container *Catalog) error - ActionRefresh(resource *Catalog) error + ActionRefresh(resource *CatalogCollection) error } func newCatalogClient(apiClient *Client) *CatalogClient { @@ -112,8 +112,8 @@ func (c *CatalogClient) Delete(container *Catalog) error { return c.apiClient.Ops.DoResourceDelete(CatalogType, &container.Resource) } -func (c *CatalogClient) ActionRefresh(resource *Catalog) error { - err := c.apiClient.Ops.DoAction(CatalogType, "refresh", &resource.Resource, nil, nil) +func (c *CatalogClient) ActionRefresh(resource *CatalogCollection) error { + err := c.apiClient.Ops.DoCollectionAction(CatalogType, "refresh", &resource.Collection, nil, nil) return err } diff --git a/client/management/v3/zz_generated_notifier.go b/client/management/v3/zz_generated_notifier.go index b5596448..a4b65365 100644 --- a/client/management/v3/zz_generated_notifier.go +++ b/client/management/v3/zz_generated_notifier.go @@ -66,7 +66,7 @@ type NotifierOperations interface { ByID(id string) (*Notifier, error) Delete(container *Notifier) error - ActionSend(resource *Notifier, input *Notification) error + ActionSend(resource *NotifierCollection, input *Notification) error } func newNotifierClient(apiClient *Client) *NotifierClient { @@ -114,8 +114,8 @@ func (c *NotifierClient) Delete(container *Notifier) error { return c.apiClient.Ops.DoResourceDelete(NotifierType, &container.Resource) } -func (c *NotifierClient) ActionSend(resource *Notifier, input *Notification) error { - err := c.apiClient.Ops.DoAction(NotifierType, "send", &resource.Resource, input, nil) +func (c *NotifierClient) ActionSend(resource *NotifierCollection, input *Notification) error { + err := c.apiClient.Ops.DoCollectionAction(NotifierType, "send", &resource.Collection, input, nil) return err } diff --git a/client/management/v3/zz_generated_principal.go b/client/management/v3/zz_generated_principal.go index 907580e1..14fc8190 100644 --- a/client/management/v3/zz_generated_principal.go +++ b/client/management/v3/zz_generated_principal.go @@ -60,7 +60,7 @@ type PrincipalOperations interface { ByID(id string) (*Principal, error) Delete(container *Principal) error - ActionSearch(resource *Principal, input *SearchPrincipalsInput) (*PrincipalCollection, error) + ActionSearch(resource *PrincipalCollection, input *SearchPrincipalsInput) (*PrincipalCollection, error) } func newPrincipalClient(apiClient *Client) *PrincipalClient { @@ -108,9 +108,9 @@ func (c *PrincipalClient) Delete(container *Principal) error { return c.apiClient.Ops.DoResourceDelete(PrincipalType, &container.Resource) } -func (c *PrincipalClient) ActionSearch(resource *Principal, input *SearchPrincipalsInput) (*PrincipalCollection, error) { +func (c *PrincipalClient) ActionSearch(resource *PrincipalCollection, input *SearchPrincipalsInput) (*PrincipalCollection, error) { resp := &PrincipalCollection{} - err := c.apiClient.Ops.DoAction(PrincipalType, "search", &resource.Resource, input, resp) + err := c.apiClient.Ops.DoCollectionAction(PrincipalType, "search", &resource.Collection, input, resp) return resp, err } diff --git a/client/management/v3/zz_generated_token.go b/client/management/v3/zz_generated_token.go index 511f732a..4b09dd66 100644 --- a/client/management/v3/zz_generated_token.go +++ b/client/management/v3/zz_generated_token.go @@ -68,7 +68,7 @@ type TokenOperations interface { ByID(id string) (*Token, error) Delete(container *Token) error - ActionLogout(resource *Token) error + ActionLogout(resource *TokenCollection) error } func newTokenClient(apiClient *Client) *TokenClient { @@ -116,8 +116,8 @@ func (c *TokenClient) Delete(container *Token) error { return c.apiClient.Ops.DoResourceDelete(TokenType, &container.Resource) } -func (c *TokenClient) ActionLogout(resource *Token) error { - err := c.apiClient.Ops.DoAction(TokenType, "logout", &resource.Resource, nil, nil) +func (c *TokenClient) ActionLogout(resource *TokenCollection) error { + err := c.apiClient.Ops.DoCollectionAction(TokenType, "logout", &resource.Collection, nil, nil) return err } diff --git a/client/management/v3/zz_generated_user.go b/client/management/v3/zz_generated_user.go index 8d211f08..64a98ba2 100644 --- a/client/management/v3/zz_generated_user.go +++ b/client/management/v3/zz_generated_user.go @@ -58,7 +58,7 @@ type UserOperations interface { ActionSetpassword(*User, *SetPasswordInput) (*User, error) - ActionChangepassword(resource *User, input *ChangePasswordInput) error + ActionChangepassword(resource *UserCollection, input *ChangePasswordInput) error } func newUserClient(apiClient *Client) *UserClient { @@ -115,8 +115,8 @@ func (c *UserClient) ActionSetpassword(resource *User, input *SetPasswordInput) return resp, err } -func (c *UserClient) ActionChangepassword(resource *User, input *ChangePasswordInput) error { - err := c.apiClient.Ops.DoAction(UserType, "changepassword", &resource.Resource, input, nil) +func (c *UserClient) ActionChangepassword(resource *UserCollection, input *ChangePasswordInput) error { + err := c.apiClient.Ops.DoCollectionAction(UserType, "changepassword", &resource.Collection, input, nil) return err }