Method: Gzr::Role#query_role_groups
- Defined in:
- lib/gzr/modules/role.rb
#query_role_groups(role_id, fields = nil) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/gzr/modules/role.rb', line 70 def query_role_groups(role_id,fields=nil) req = Hash.new req[:fields] = fields if fields data = Array.new begin data = @sdk.role_groups(role_id, req) rescue LookerSDK::NotFound => e # do nothing rescue LookerSDK::ClientError => e say_error "Unable to get role_groups(#{role_id},#{JSON.pretty_generate(req)})" say_error e. say_error e.errors if e.errors raise end data end |