Class: Softlayer::Brand

Inherits:
Entity show all
Defined in:
lib/softlayer/brand.rb,
lib/softlayer/brand/contact.rb,
lib/softlayer/brand/payment.rb,
lib/softlayer/brand/attribute.rb,
lib/softlayer/brand/restriction.rb,
lib/softlayer/brand/contact/type.rb,
lib/softlayer/brand/payment/processor.rb,
lib/softlayer/brand/restriction/location.rb,
lib/softlayer/brand/restriction/location/customer_country.rb

Defined Under Namespace

Modules: Payment, Restriction Classes: Attribute, Contact, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Brand'

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.



23
24
25
# File 'lib/softlayer/brand.rb', line 23

def 
  @account
end

#all_owned_account_countObject

Returns the value of attribute all_owned_account_count.



13
14
15
# File 'lib/softlayer/brand.rb', line 13

def 
  @all_owned_account_count
end

#all_owned_accountsObject

Returns the value of attribute all_owned_accounts.



24
25
26
# File 'lib/softlayer/brand.rb', line 24

def all_owned_accounts
  @all_owned_accounts
end

#allow_account_creation_flagObject

Returns the value of attribute allow_account_creation_flag.



25
26
27
# File 'lib/softlayer/brand.rb', line 25

def 
  @allow_account_creation_flag
end

#catalogObject

Returns the value of attribute catalog.



26
27
28
# File 'lib/softlayer/brand.rb', line 26

def catalog
  @catalog
end

#catalog_idObject

Returns the value of attribute catalog_id.



8
9
10
# File 'lib/softlayer/brand.rb', line 8

def catalog_id
  @catalog_id
end

#contact_countObject

Returns the value of attribute contact_count.



14
15
16
# File 'lib/softlayer/brand.rb', line 14

def contact_count
  @contact_count
end

#contactsObject

Returns the value of attribute contacts.



27
28
29
# File 'lib/softlayer/brand.rb', line 27

def contacts
  @contacts
end

#customer_country_location_restriction_countObject

Returns the value of attribute customer_country_location_restriction_count.



15
16
17
# File 'lib/softlayer/brand.rb', line 15

def customer_country_location_restriction_count
  @customer_country_location_restriction_count
end

#customer_country_location_restrictionsObject

Returns the value of attribute customer_country_location_restrictions.



28
29
30
# File 'lib/softlayer/brand.rb', line 28

def customer_country_location_restrictions
  @customer_country_location_restrictions
end

#distributorObject

Returns the value of attribute distributor.



29
30
31
# File 'lib/softlayer/brand.rb', line 29

def distributor
  @distributor
end

#distributor_child_flagObject

Returns the value of attribute distributor_child_flag.



30
31
32
# File 'lib/softlayer/brand.rb', line 30

def distributor_child_flag
  @distributor_child_flag
end

#distributor_flagObject

Returns the value of attribute distributor_flag.



31
32
33
# File 'lib/softlayer/brand.rb', line 31

def distributor_flag
  @distributor_flag
end

#hardwareObject

Returns the value of attribute hardware.



32
33
34
# File 'lib/softlayer/brand.rb', line 32

def hardware
  @hardware
end

#hardware_countObject

Returns the value of attribute hardware_count.



16
17
18
# File 'lib/softlayer/brand.rb', line 16

def hardware_count
  @hardware_count
end

#has_agent_support_flagObject

Returns the value of attribute has_agent_support_flag.



33
34
35
# File 'lib/softlayer/brand.rb', line 33

def has_agent_support_flag
  @has_agent_support_flag
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/softlayer/brand.rb', line 9

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



10
11
12
# File 'lib/softlayer/brand.rb', line 10

def key_name
  @key_name
end

#long_nameObject

Returns the value of attribute long_name.



11
12
13
# File 'lib/softlayer/brand.rb', line 11

def long_name
  @long_name
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/softlayer/brand.rb', line 12

def name
  @name
end

#open_ticket_countObject

Returns the value of attribute open_ticket_count.



17
18
19
# File 'lib/softlayer/brand.rb', line 17

def open_ticket_count
  @open_ticket_count
end

#open_ticketsObject

Returns the value of attribute open_tickets.



34
35
36
# File 'lib/softlayer/brand.rb', line 34

def open_tickets
  @open_tickets
end

#owned_account_countObject

Returns the value of attribute owned_account_count.



18
19
20
# File 'lib/softlayer/brand.rb', line 18

def 
  @owned_account_count
end

#owned_accountsObject

Returns the value of attribute owned_accounts.



35
36
37
# File 'lib/softlayer/brand.rb', line 35

def owned_accounts
  @owned_accounts
end

#ticket_countObject

Returns the value of attribute ticket_count.



19
20
21
# File 'lib/softlayer/brand.rb', line 19

def ticket_count
  @ticket_count
end

#ticket_group_countObject

Returns the value of attribute ticket_group_count.



20
21
22
# File 'lib/softlayer/brand.rb', line 20

def ticket_group_count
  @ticket_group_count
end

#ticket_groupsObject

Returns the value of attribute ticket_groups.



36
37
38
# File 'lib/softlayer/brand.rb', line 36

def ticket_groups
  @ticket_groups
end

#ticketsObject

Returns the value of attribute tickets.



37
38
39
# File 'lib/softlayer/brand.rb', line 37

def tickets
  @tickets
end

#user_countObject

Returns the value of attribute user_count.



21
22
23
# File 'lib/softlayer/brand.rb', line 21

def user_count
  @user_count
end

#usersObject

Returns the value of attribute users.



38
39
40
# File 'lib/softlayer/brand.rb', line 38

def users
  @users
end

#virtual_guest_countObject

Returns the value of attribute virtual_guest_count.



22
23
24
# File 'lib/softlayer/brand.rb', line 22

def virtual_guest_count
  @virtual_guest_count
end

#virtual_guestsObject

Returns the value of attribute virtual_guests.



39
40
41
# File 'lib/softlayer/brand.rb', line 39

def virtual_guests
  @virtual_guests
end

Class Method Details

.create_customer_account(message) ⇒ Object

account bypass_duplicate_account_check



43
44
45
# File 'lib/softlayer/brand.rb', line 43

def self.(message)
  request(:create_customer_account, Softlayer::Account, message)
end

.create_object(message) ⇒ Object

template_object



48
49
50
# File 'lib/softlayer/brand.rb', line 48

def self.create_object(message)
  request(:create_object, Softlayer::Brand, message)
end

Instance Method Details

#get_accountObject



52
53
54
# File 'lib/softlayer/brand.rb', line 52

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

#get_all_owned_accountsObject



56
57
58
# File 'lib/softlayer/brand.rb', line 56

def get_all_owned_accounts
  request(:get_all_owned_accounts, Array[Softlayer::Account])
end

#get_all_ticket_subjects(message) ⇒ Object

account



61
62
63
# File 'lib/softlayer/brand.rb', line 61

def get_all_ticket_subjects(message)
  request(:get_all_ticket_subjects, Array[Softlayer::Ticket::Subject], message)
end

#get_allow_account_creation_flagObject



65
66
67
# File 'lib/softlayer/brand.rb', line 65

def 
  request(:get_allow_account_creation_flag, Boolean)
end

#get_catalogObject



69
70
71
# File 'lib/softlayer/brand.rb', line 69

def get_catalog
  request(:get_catalog, Softlayer::Product::Catalog)
end

#get_contact_informationObject



73
74
75
# File 'lib/softlayer/brand.rb', line 73

def get_contact_information
  request(:get_contact_information, Array[Softlayer::Brand::Contact])
end

#get_contactsObject



77
78
79
# File 'lib/softlayer/brand.rb', line 77

def get_contacts
  request(:get_contacts, Array[Softlayer::Brand::Contact])
end

#get_customer_country_location_restrictionsObject



81
82
83
# File 'lib/softlayer/brand.rb', line 81

def get_customer_country_location_restrictions
  request(:get_customer_country_location_restrictions, Array[Softlayer::Brand::Restriction::Location::CustomerCountry])
end

#get_distributorObject



85
86
87
# File 'lib/softlayer/brand.rb', line 85

def get_distributor
  request(:get_distributor, Softlayer::Brand)
end

#get_distributor_child_flagObject



89
90
91
# File 'lib/softlayer/brand.rb', line 89

def get_distributor_child_flag
  request(:get_distributor_child_flag, Boolean)
end

#get_distributor_flagObject



93
94
95
# File 'lib/softlayer/brand.rb', line 93

def get_distributor_flag
  request(:get_distributor_flag, String)
end

#get_hardwareObject



97
98
99
# File 'lib/softlayer/brand.rb', line 97

def get_hardware
  request(:get_hardware, Array[Softlayer::Hardware])
end

#get_has_agent_support_flagObject



101
102
103
# File 'lib/softlayer/brand.rb', line 101

def get_has_agent_support_flag
  request(:get_has_agent_support_flag, Boolean)
end

#get_merchant_nameObject



105
106
107
# File 'lib/softlayer/brand.rb', line 105

def get_merchant_name
  request(:get_merchant_name, String)
end

#get_objectObject



109
110
111
# File 'lib/softlayer/brand.rb', line 109

def get_object
  request(:get_object, Softlayer::Brand)
end

#get_open_ticketsObject



113
114
115
# File 'lib/softlayer/brand.rb', line 113

def get_open_tickets
  request(:get_open_tickets, Array[Softlayer::Ticket])
end

#get_owned_accountsObject



117
118
119
# File 'lib/softlayer/brand.rb', line 117

def get_owned_accounts
  request(:get_owned_accounts, Array[Softlayer::Account])
end

#get_ticket_groupsObject



121
122
123
# File 'lib/softlayer/brand.rb', line 121

def get_ticket_groups
  request(:get_ticket_groups, Array[Softlayer::Ticket::Group])
end

#get_ticketsObject



125
126
127
# File 'lib/softlayer/brand.rb', line 125

def get_tickets
  request(:get_tickets, Array[Softlayer::Ticket])
end

#get_token(message) ⇒ Object

user_id



130
131
132
# File 'lib/softlayer/brand.rb', line 130

def get_token(message)
  request(:get_token, String, message)
end

#get_usersObject



134
135
136
# File 'lib/softlayer/brand.rb', line 134

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

#get_virtual_guestsObject



138
139
140
# File 'lib/softlayer/brand.rb', line 138

def get_virtual_guests
  request(:get_virtual_guests, Array[Softlayer::Virtual::Guest])
end