Class: WavefrontCommandServiceaccount
- Inherits:
-
WavefrontCommandBase
- Object
- WavefrontCommandBase
- WavefrontCommandServiceaccount
- Defined in:
- lib/wavefront-cli/commands/serviceaccount.rb
Overview
Define the service account command.
Instance Method Summary collapse
Methods inherited from WavefrontCommandBase
#acl_commands, #commands, #common_options, #description, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #postscript, #tag_commands, #things, #word
Instance Method Details
#_commands ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/wavefront-cli/commands/serviceaccount.rb', line 20 def _commands ["list #{CMN} [-l] [-O fields]", "describe #{CMN} <id>", "create #{CMN} [-I] [-d description] [-p policy] [-r role...] " \ '[-g group...] [-k usertoken...] <id>', "activate #{CMN} <id>", "delete #{CMN} <account>...", "deactivate #{CMN} <id>", "dump #{CMN}", "groups #{CMN} <id>", "roles #{CMN} <id>", "ingestionpolicy #{CMN} <id>", "join #{CMN} <id> <group>...", "leave #{CMN} <id> <group>...", "grant #{CMN} <permission> to <id>", "revoke #{CMN} <permission> from <id>", "set #{CMN} <key=value> <id>", "import #{CMN} [-uU] <file>", "apitoken list #{CMN} [-O fields] <id>", "apitoken create #{CMN} [-N name] <id>", "apitoken delete #{CMN} <id> <token_id>", "apitoken rename #{CMN} <id> <token_id> <name>", "search #{CMN} [-al] [-o offset] [-L limit] [-O fields] <condition>..."] end |
#_options ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/wavefront-cli/commands/serviceaccount.rb', line 45 def [, "-l, --long list #{things} in detail", "-a, --all list all #{things}", "-o, --offset=n start from nth #{thing}", "-L, --limit=COUNT number of #{things} to list", '-O, --fields=F1,F2,... only show given fields', "-u, --update update an existing #{thing}", "-U, --upsert import new or update existing #{thing}", "-I, --inactive create an inactive #{thing}", "-d, --desc=STRING description of #{thing}", "-r, --role=STRING give #{thing} this role", "-p, --policy=STRING give #{thing} this ingestion policy", "-g, --group=STRING add #{thing} to this user group", '-N, --name=STRING name of token', '-k, --usertoken=STRING API token'] end |
#sdk_class ⇒ Object
16 17 18 |
# File 'lib/wavefront-cli/commands/serviceaccount.rb', line 16 def sdk_class 'ServiceAccount' end |
#sdk_file ⇒ Object
12 13 14 |
# File 'lib/wavefront-cli/commands/serviceaccount.rb', line 12 def sdk_file 'serviceaccount' end |
#thing ⇒ Object
8 9 10 |
# File 'lib/wavefront-cli/commands/serviceaccount.rb', line 8 def thing 'service account' end |