Class: Softlayer::User::Permission::Role
- Defined in:
- lib/softlayer/user/permission/role.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_User_Permission_Role'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#action_count ⇒ Object
Returns the value of attribute action_count.
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#group_count ⇒ Object
Returns the value of attribute group_count.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#new_user_default_flag ⇒ Object
Returns the value of attribute new_user_default_flag.
-
#system_flag ⇒ Object
Returns the value of attribute system_flag.
-
#user_count ⇒ Object
Returns the value of attribute user_count.
-
#users ⇒ Object
Returns the value of attribute users.
Class Method Summary collapse
Instance Method Summary collapse
- #add_user(user = nil) ⇒ Object
- #delete_object ⇒ Object
- #edit_object(template_object = nil) ⇒ Object
- #get_account ⇒ Object
- #get_actions ⇒ Object
- #get_groups ⇒ Object
- #get_object ⇒ Object
- #get_users ⇒ Object
- #link_group(group = nil) ⇒ Object
- #remove_user(user = nil) ⇒ Object
- #unlink_group(group = nil) ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
17 18 19 |
# File 'lib/softlayer/user/permission/role.rb', line 17 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/softlayer/user/permission/role.rb', line 6 def account_id @account_id end |
#action_count ⇒ Object
Returns the value of attribute action_count.
14 15 16 |
# File 'lib/softlayer/user/permission/role.rb', line 14 def action_count @action_count end |
#actions ⇒ Object
Returns the value of attribute actions.
18 19 20 |
# File 'lib/softlayer/user/permission/role.rb', line 18 def actions @actions end |
#create_date ⇒ Object
Returns the value of attribute create_date.
7 8 9 |
# File 'lib/softlayer/user/permission/role.rb', line 7 def create_date @create_date end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/softlayer/user/permission/role.rb', line 8 def description @description end |
#group_count ⇒ Object
Returns the value of attribute group_count.
15 16 17 |
# File 'lib/softlayer/user/permission/role.rb', line 15 def group_count @group_count end |
#groups ⇒ Object
Returns the value of attribute groups.
19 20 21 |
# File 'lib/softlayer/user/permission/role.rb', line 19 def groups @groups end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/softlayer/user/permission/role.rb', line 9 def id @id end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
10 11 12 |
# File 'lib/softlayer/user/permission/role.rb', line 10 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/softlayer/user/permission/role.rb', line 11 def name @name end |
#new_user_default_flag ⇒ Object
Returns the value of attribute new_user_default_flag.
12 13 14 |
# File 'lib/softlayer/user/permission/role.rb', line 12 def new_user_default_flag @new_user_default_flag end |
#system_flag ⇒ Object
Returns the value of attribute system_flag.
13 14 15 |
# File 'lib/softlayer/user/permission/role.rb', line 13 def system_flag @system_flag end |
#user_count ⇒ Object
Returns the value of attribute user_count.
16 17 18 |
# File 'lib/softlayer/user/permission/role.rb', line 16 def user_count @user_count end |
#users ⇒ Object
Returns the value of attribute users.
20 21 22 |
# File 'lib/softlayer/user/permission/role.rb', line 20 def users @users end |
Class Method Details
.create_object(template_object = nil) ⇒ Object
27 28 29 30 |
# File 'lib/softlayer/user/permission/role.rb', line 27 def self.create_object(template_object = nil) = {template_object: template_object} request(:create_object, Softlayer::User::Permission::Role, ) end |
Instance Method Details
#add_user(user = nil) ⇒ Object
22 23 24 25 |
# File 'lib/softlayer/user/permission/role.rb', line 22 def add_user(user = nil) = {user: user} request(:add_user, nil, ) end |
#delete_object ⇒ Object
32 33 34 |
# File 'lib/softlayer/user/permission/role.rb', line 32 def delete_object request(:delete_object, Boolean) end |
#edit_object(template_object = nil) ⇒ Object
36 37 38 39 |
# File 'lib/softlayer/user/permission/role.rb', line 36 def edit_object(template_object = nil) = {template_object: template_object} request(:edit_object, Softlayer::User::Permission::Role, ) end |
#get_account ⇒ Object
41 42 43 |
# File 'lib/softlayer/user/permission/role.rb', line 41 def get_account request(:get_account, Softlayer::Account) end |
#get_actions ⇒ Object
45 46 47 |
# File 'lib/softlayer/user/permission/role.rb', line 45 def get_actions request(:get_actions, Array[Softlayer::User::Permission::Action]) end |
#get_groups ⇒ Object
49 50 51 |
# File 'lib/softlayer/user/permission/role.rb', line 49 def get_groups request(:get_groups, Array[Softlayer::User::Permission::Group]) end |
#get_object ⇒ Object
53 54 55 |
# File 'lib/softlayer/user/permission/role.rb', line 53 def get_object request(:get_object, Softlayer::User::Permission::Role) end |
#get_users ⇒ Object
57 58 59 |
# File 'lib/softlayer/user/permission/role.rb', line 57 def get_users request(:get_users, Array[Softlayer::User::Customer]) end |
#link_group(group = nil) ⇒ Object
61 62 63 64 |
# File 'lib/softlayer/user/permission/role.rb', line 61 def link_group(group = nil) = {group: group} request(:link_group, nil, ) end |
#remove_user(user = nil) ⇒ Object
66 67 68 69 |
# File 'lib/softlayer/user/permission/role.rb', line 66 def remove_user(user = nil) = {user: user} request(:remove_user, nil, ) end |
#unlink_group(group = nil) ⇒ Object
71 72 73 74 |
# File 'lib/softlayer/user/permission/role.rb', line 71 def unlink_group(group = nil) = {group: group} request(:unlink_group, nil, ) end |