Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] Support custom button actions in API client #83

Open
bekasovoleg opened this issue Aug 2, 2018 · 0 comments
Open

[RFE] Support custom button actions in API client #83

bekasovoleg opened this issue Aug 2, 2018 · 0 comments

Comments

@bekasovoleg
Copy link

bekasovoleg commented Aug 2, 2018

I try to call custom button action in remote region, but i have method_missing error

cn = ManageIQ::API::Client.new( :url => url, :miqtoken => region.api_system_auth_token('admin'), :ssl => {:verify => false})
col = cn.public_send(:services)
res = col.find(id)
res.public_send(:my_custom_button, nil)

NoMethodError: undefined method `my_custom_button' for #<ManageIQ::API::Client::Resource::Service:0x000000070c0dd0>

my_custom_button exists and works properly when I call directly

GET /api/services/:id returns my custom button action, but res.actions doesnt return

@gtanzillo gtanzillo changed the title Custom button actions error [RFE] Support custom button actions in API client Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants