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
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
-
#add_user(message) ⇒ Object
user.
- #delete_object ⇒ Object
-
#edit_object(message) ⇒ Object
template_object.
- #get_account ⇒ Object
- #get_actions ⇒ Object
- #get_groups ⇒ Object
- #get_object ⇒ Object
- #get_users ⇒ Object
-
#link_group(message) ⇒ Object
group.
-
#remove_user(message) ⇒ Object
user.
-
#unlink_group(message) ⇒ Object
group.
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
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(message) ⇒ Object
template_object
28 29 30 |
# File 'lib/softlayer/user/permission/role.rb', line 28 def self.create_object() request(:create_object, Softlayer::User::Permission::Role, ) end |
Instance Method Details
#add_user(message) ⇒ Object
user
23 24 25 |
# File 'lib/softlayer/user/permission/role.rb', line 23 def add_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(message) ⇒ Object
template_object
37 38 39 |
# File 'lib/softlayer/user/permission/role.rb', line 37 def edit_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(message) ⇒ Object
group
62 63 64 |
# File 'lib/softlayer/user/permission/role.rb', line 62 def link_group() request(:link_group, nil, ) end |
#remove_user(message) ⇒ Object
user
67 68 69 |
# File 'lib/softlayer/user/permission/role.rb', line 67 def remove_user() request(:remove_user, nil, ) end |
#unlink_group(message) ⇒ Object
group
72 73 74 |
# File 'lib/softlayer/user/permission/role.rb', line 72 def unlink_group() request(:unlink_group, nil, ) end |