Class: WavefrontCli::User
Overview
CLI coverage for the v2 ‘user’ API.
Instance Attribute Summary
Attributes inherited from Base
#klass, #klass_word, #options, #wf
Instance Method Summary collapse
Methods inherited from Base
#check_status, #dispatch, #display, #do_delete, #do_describe, #do_import, #do_search, #do_tag_add, #do_tag_clear, #do_tag_delete, #do_tag_set, #do_tags, #do_undelete, #do_update, #format_var, #handle_error, #handle_response, #initialize, #load_display_class, #load_file, #mk_creds, #mk_opts, #run, #validate_id, #validate_input, #validate_opts, #validate_tags, #validator_exception, #validator_method
Constructor Details
This class inherits a constructor from WavefrontCli::Base
Instance Method Details
#do_grant ⇒ Object
12 13 14 |
# File 'lib/wavefront-cli/user.rb', line 12 def do_grant wf.grant([:'<id>'], [:'<privilege>']) end |
#do_list ⇒ Object
8 9 10 |
# File 'lib/wavefront-cli/user.rb', line 8 def do_list wf.list end |
#do_revoke ⇒ Object
16 17 18 |
# File 'lib/wavefront-cli/user.rb', line 16 def do_revoke wf.revoke([:'<id>'], [:'<privilege>']) end |
#import_to_create(raw) ⇒ Object
20 21 22 23 |
# File 'lib/wavefront-cli/user.rb', line 20 def import_to_create(raw) raw['emailAddress'] = raw['identifier'] raw.delete_if { |k, _v| k == 'customer' || k == 'identifier' } end |