Class: Softlayer::User::Permission::Role

Inherits:
Entity
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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

#accountObject

Returns the value of attribute account.



17
18
19
# File 'lib/softlayer/user/permission/role.rb', line 17

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



6
7
8
# File 'lib/softlayer/user/permission/role.rb', line 6

def 
  @account_id
end

#action_countObject

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

#actionsObject

Returns the value of attribute actions.



18
19
20
# File 'lib/softlayer/user/permission/role.rb', line 18

def actions
  @actions
end

#create_dateObject

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

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/softlayer/user/permission/role.rb', line 8

def description
  @description
end

#group_countObject

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

#groupsObject

Returns the value of attribute groups.



19
20
21
# File 'lib/softlayer/user/permission/role.rb', line 19

def groups
  @groups
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/softlayer/user/permission/role.rb', line 9

def id
  @id
end

#modify_dateObject

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

#nameObject

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_flagObject

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_flagObject

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_countObject

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

#usersObject

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(message)
  request(:create_object, Softlayer::User::Permission::Role, message)
end

Instance Method Details

#add_user(message) ⇒ Object

user



23
24
25
# File 'lib/softlayer/user/permission/role.rb', line 23

def add_user(message)
  request(:add_user, nil, message)
end

#delete_objectObject



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(message)
  request(:edit_object, Softlayer::User::Permission::Role, message)
end

#get_accountObject



41
42
43
# File 'lib/softlayer/user/permission/role.rb', line 41

def 
  request(:get_account, Softlayer::Account)
end

#get_actionsObject



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_groupsObject



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_objectObject



53
54
55
# File 'lib/softlayer/user/permission/role.rb', line 53

def get_object
  request(:get_object, Softlayer::User::Permission::Role)
end

#get_usersObject



57
58
59
# File 'lib/softlayer/user/permission/role.rb', line 57

def get_users
  request(:get_users, Array[Softlayer::User::Customer])
end

group



62
63
64
# File 'lib/softlayer/user/permission/role.rb', line 62

def link_group(message)
  request(:link_group, nil, message)
end

#remove_user(message) ⇒ Object

user



67
68
69
# File 'lib/softlayer/user/permission/role.rb', line 67

def remove_user(message)
  request(:remove_user, nil, message)
end

group



72
73
74
# File 'lib/softlayer/user/permission/role.rb', line 72

def unlink_group(message)
  request(:unlink_group, nil, message)
end