Class: Softlayer::User::Permission::Group
- Defined in:
- lib/softlayer/user/permission/group.rb,
lib/softlayer/user/permission/group/type.rb
Defined Under Namespace
Classes: Representer, Type
Constant Summary collapse
- SERVICE =
'SoftLayer_User_Permission_Group'
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.
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#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.
-
#role_count ⇒ Object
Returns the value of attribute role_count.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_id ⇒ Object
Returns the value of attribute type_id.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
-
#add_action(message) ⇒ Object
action.
-
#add_bulk_actions(message) ⇒ Object
actions.
-
#add_bulk_resource_objects(message) ⇒ Object
resource_objects resource_type_key_name.
-
#add_resource_object(message) ⇒ Object
resource_object resource_type_key_name.
- #delete_object ⇒ Object
-
#edit_object(message) ⇒ Object
template_object.
- #get_account ⇒ Object
- #get_actions ⇒ Object
- #get_object ⇒ Object
- #get_roles ⇒ Object
- #get_type ⇒ Object
-
#link_role(message) ⇒ Object
role.
-
#remove_action(message) ⇒ Object
action.
-
#remove_bulk_actions(message) ⇒ Object
actions.
-
#remove_bulk_resource_objects(message) ⇒ Object
resource_objects resource_type_key_name.
-
#remove_resource_object(message) ⇒ Object
resource_object resource_type_key_name.
-
#unlink_role(message) ⇒ Object
role.
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/group.rb', line 17 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
7 8 9 |
# File 'lib/softlayer/user/permission/group.rb', line 7 def account_id @account_id end |
#action_count ⇒ Object
Returns the value of attribute action_count.
15 16 17 |
# File 'lib/softlayer/user/permission/group.rb', line 15 def action_count @action_count end |
#actions ⇒ Object
Returns the value of attribute actions.
18 19 20 |
# File 'lib/softlayer/user/permission/group.rb', line 18 def actions @actions end |
#create_date ⇒ Object
Returns the value of attribute create_date.
8 9 10 |
# File 'lib/softlayer/user/permission/group.rb', line 8 def create_date @create_date end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/softlayer/user/permission/group.rb', line 9 def description @description end |
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
10 11 12 |
# File 'lib/softlayer/user/permission/group.rb', line 10 def expiration_date @expiration_date end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/softlayer/user/permission/group.rb', line 11 def id @id end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
12 13 14 |
# File 'lib/softlayer/user/permission/group.rb', line 12 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/softlayer/user/permission/group.rb', line 13 def name @name end |
#role_count ⇒ Object
Returns the value of attribute role_count.
16 17 18 |
# File 'lib/softlayer/user/permission/group.rb', line 16 def role_count @role_count end |
#roles ⇒ Object
Returns the value of attribute roles.
19 20 21 |
# File 'lib/softlayer/user/permission/group.rb', line 19 def roles @roles end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/softlayer/user/permission/group.rb', line 20 def type @type end |
#type_id ⇒ Object
Returns the value of attribute type_id.
14 15 16 |
# File 'lib/softlayer/user/permission/group.rb', line 14 def type_id @type_id end |
Class Method Details
.create_object(message) ⇒ Object
template_object
45 46 47 |
# File 'lib/softlayer/user/permission/group.rb', line 45 def self.create_object() request(:create_object, Softlayer::User::Permission::Group, ) end |
Instance Method Details
#add_action(message) ⇒ Object
action
23 24 25 |
# File 'lib/softlayer/user/permission/group.rb', line 23 def add_action() request(:add_action, nil, ) end |
#add_bulk_actions(message) ⇒ Object
actions
28 29 30 |
# File 'lib/softlayer/user/permission/group.rb', line 28 def add_bulk_actions() request(:add_bulk_actions, nil, ) end |
#add_bulk_resource_objects(message) ⇒ Object
resource_objects resource_type_key_name
34 35 36 |
# File 'lib/softlayer/user/permission/group.rb', line 34 def add_bulk_resource_objects() request(:add_bulk_resource_objects, Boolean, ) end |
#add_resource_object(message) ⇒ Object
resource_object resource_type_key_name
40 41 42 |
# File 'lib/softlayer/user/permission/group.rb', line 40 def add_resource_object() request(:add_resource_object, Boolean, ) end |
#delete_object ⇒ Object
49 50 51 |
# File 'lib/softlayer/user/permission/group.rb', line 49 def delete_object request(:delete_object, Boolean) end |
#edit_object(message) ⇒ Object
template_object
54 55 56 |
# File 'lib/softlayer/user/permission/group.rb', line 54 def edit_object() request(:edit_object, Softlayer::User::Permission::Group, ) end |
#get_account ⇒ Object
58 59 60 |
# File 'lib/softlayer/user/permission/group.rb', line 58 def get_account request(:get_account, Softlayer::Account) end |
#get_actions ⇒ Object
62 63 64 |
# File 'lib/softlayer/user/permission/group.rb', line 62 def get_actions request(:get_actions, Array[Softlayer::User::Permission::Action]) end |
#get_object ⇒ Object
66 67 68 |
# File 'lib/softlayer/user/permission/group.rb', line 66 def get_object request(:get_object, Softlayer::User::Permission::Group) end |
#get_roles ⇒ Object
70 71 72 |
# File 'lib/softlayer/user/permission/group.rb', line 70 def get_roles request(:get_roles, Array[Softlayer::User::Permission::Role]) end |
#get_type ⇒ Object
74 75 76 |
# File 'lib/softlayer/user/permission/group.rb', line 74 def get_type request(:get_type, Softlayer::User::Permission::Group::Type) end |
#link_role(message) ⇒ Object
role
79 80 81 |
# File 'lib/softlayer/user/permission/group.rb', line 79 def link_role() request(:link_role, nil, ) end |
#remove_action(message) ⇒ Object
action
84 85 86 |
# File 'lib/softlayer/user/permission/group.rb', line 84 def remove_action() request(:remove_action, nil, ) end |
#remove_bulk_actions(message) ⇒ Object
actions
89 90 91 |
# File 'lib/softlayer/user/permission/group.rb', line 89 def remove_bulk_actions() request(:remove_bulk_actions, nil, ) end |
#remove_bulk_resource_objects(message) ⇒ Object
resource_objects resource_type_key_name
95 96 97 |
# File 'lib/softlayer/user/permission/group.rb', line 95 def remove_bulk_resource_objects() request(:remove_bulk_resource_objects, Boolean, ) end |
#remove_resource_object(message) ⇒ Object
resource_object resource_type_key_name
101 102 103 |
# File 'lib/softlayer/user/permission/group.rb', line 101 def remove_resource_object() request(:remove_resource_object, Boolean, ) end |
#unlink_role(message) ⇒ Object
role
106 107 108 |
# File 'lib/softlayer/user/permission/group.rb', line 106 def unlink_role() request(:unlink_role, nil, ) end |