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, request, #request, service_name, #service_name, #to_hash

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 
  
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 
  
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 
  
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(account = nil, bypass_duplicate_account_check = nil) ⇒ Object



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

def self.( = nil,  = nil)
  message = {account: , bypass_duplicate_account_check: }
  request(:create_customer_account, Softlayer::, message)
end

.create_object(template_object = nil) ⇒ Object



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

def self.create_object(template_object = nil)
  message = {template_object: template_object}
  request(:create_object, Softlayer::Brand, message)
end

Instance Method Details

#get_accountObject



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

def 
  request(:get_account, Softlayer::)
end

#get_all_owned_accountsObject



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

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

#get_all_ticket_subjects(account = nil) ⇒ Object



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

def get_all_ticket_subjects( = nil)
  message = {account: }
  request(:get_all_ticket_subjects, Array[Softlayer::Ticket::Subject], message)
end

#get_allow_account_creation_flagObject



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

def 
  request(:get_allow_account_creation_flag, Boolean)
end

#get_catalogObject



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

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

#get_contact_informationObject



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

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

#get_contactsObject



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

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

#get_customer_country_location_restrictionsObject



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

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

#get_distributorObject



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

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

#get_distributor_child_flagObject



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

def get_distributor_child_flag
  request(:get_distributor_child_flag, Boolean)
end

#get_distributor_flagObject



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

def get_distributor_flag
  request(:get_distributor_flag, String)
end

#get_hardwareObject



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

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

#get_has_agent_support_flagObject



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

def get_has_agent_support_flag
  request(:get_has_agent_support_flag, Boolean)
end

#get_merchant_nameObject



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

def get_merchant_name
  request(:get_merchant_name, String)
end

#get_objectObject



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

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

#get_open_ticketsObject



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

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

#get_owned_accountsObject



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

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

#get_ticket_groupsObject



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

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

#get_ticketsObject



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

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

#get_token(user_id = nil) ⇒ Object



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

def get_token(user_id = nil)
  message = {user_id: user_id}
  request(:get_token, String, message)
end

#get_usersObject



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

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

#get_virtual_guestsObject



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

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