Class: Softlayer::Network::ContentDelivery::Account

Inherits:
Model
  • Object
show all
Defined in:
lib/softlayer/network/content_delivery/account.rb,
lib/softlayer/network/content_delivery/account/status.rb

Defined Under Namespace

Classes: Representer, Status

Constant Summary collapse

SERVICE =
'SoftLayer_Network_ContentDelivery_Account'

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

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#accountObject

Returns the value of attribute account.



12
13
14
# File 'lib/softlayer/network/content_delivery/account.rb', line 12

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



7
8
9
# File 'lib/softlayer/network/content_delivery/account.rb', line 7

def 
  @account_id
end

#associated_cdn_account_idObject

Returns the value of attribute associated_cdn_account_id.



13
14
15
# File 'lib/softlayer/network/content_delivery/account.rb', line 13

def 
  
end

#authentication_ip_address_countObject

Returns the value of attribute authentication_ip_address_count.



11
12
13
# File 'lib/softlayer/network/content_delivery/account.rb', line 11

def authentication_ip_address_count
  @authentication_ip_address_count
end

#authentication_ip_addressesObject

Returns the value of attribute authentication_ip_addresses.



14
15
16
# File 'lib/softlayer/network/content_delivery/account.rb', line 14

def authentication_ip_addresses
  @authentication_ip_addresses
end

#billing_itemObject

Returns the value of attribute billing_item.



15
16
17
# File 'lib/softlayer/network/content_delivery/account.rb', line 15

def billing_item
  @billing_item
end

#cdn_account_nameObject

Returns the value of attribute cdn_account_name.



16
17
18
# File 'lib/softlayer/network/content_delivery/account.rb', line 16

def 
  
end

#cdn_account_noteObject

Returns the value of attribute cdn_account_note.



17
18
19
# File 'lib/softlayer/network/content_delivery/account.rb', line 17

def 
  
end

#cdn_solution_nameObject

Returns the value of attribute cdn_solution_name.



18
19
20
# File 'lib/softlayer/network/content_delivery/account.rb', line 18

def cdn_solution_name
  @cdn_solution_name
end

#create_dateObject

Returns the value of attribute create_date.



8
9
10
# File 'lib/softlayer/network/content_delivery/account.rb', line 8

def create_date
  @create_date
end

#dependant_service_flagObject

Returns the value of attribute dependant_service_flag.



19
20
21
# File 'lib/softlayer/network/content_delivery/account.rb', line 19

def dependant_service_flag
  @dependant_service_flag
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/softlayer/network/content_delivery/account.rb', line 9

def id
  @id
end

#legacy_cdn_flagObject

Returns the value of attribute legacy_cdn_flag.



20
21
22
# File 'lib/softlayer/network/content_delivery/account.rb', line 20

def legacy_cdn_flag
  @legacy_cdn_flag
end

#log_enabled_flagObject

Returns the value of attribute log_enabled_flag.



21
22
23
# File 'lib/softlayer/network/content_delivery/account.rb', line 21

def log_enabled_flag
  @log_enabled_flag
end

#provider_portal_access_flagObject

Returns the value of attribute provider_portal_access_flag.



22
23
24
# File 'lib/softlayer/network/content_delivery/account.rb', line 22

def provider_portal_access_flag
  @provider_portal_access_flag
end

#statusObject

Returns the value of attribute status.



23
24
25
# File 'lib/softlayer/network/content_delivery/account.rb', line 23

def status
  @status
end

#status_idObject

Returns the value of attribute status_id.



10
11
12
# File 'lib/softlayer/network/content_delivery/account.rb', line 10

def status_id
  @status_id
end

#token_authentication_enabled_flagObject

Returns the value of attribute token_authentication_enabled_flag.



24
25
26
# File 'lib/softlayer/network/content_delivery/account.rb', line 24

def token_authentication_enabled_flag
  @token_authentication_enabled_flag
end

Class Method Details

.authenticate_resource_request(parameter = nil) ⇒ Object



26
27
28
29
# File 'lib/softlayer/network/content_delivery/account.rb', line 26

def self.authenticate_resource_request(parameter = nil)
  message = {parameter: parameter}
  request(:authenticate_resource_request, Boolean, message)
end

Instance Method Details

#create_directory(directory_name = nil) ⇒ Object



31
32
33
34
# File 'lib/softlayer/network/content_delivery/account.rb', line 31

def create_directory(directory_name = nil)
  message = {directory_name: directory_name}
  request(:create_directory, Boolean, message)
end

#create_ftp_user(new_password = nil) ⇒ Object



36
37
38
39
# File 'lib/softlayer/network/content_delivery/account.rb', line 36

def create_ftp_user(new_password = nil)
  message = {new_password: new_password}
  request(:create_ftp_user, Boolean, message)
end

#create_origin_pull_mapping(mapping_object = nil) ⇒ Object



41
42
43
44
# File 'lib/softlayer/network/content_delivery/account.rb', line 41

def create_origin_pull_mapping(mapping_object = nil)
  message = {mapping_object: mapping_object}
  request(:create_origin_pull_mapping, Boolean, message)
end

#create_origin_pull_rule(origin_domain = nil, cname_record = nil) ⇒ Object



46
47
48
49
# File 'lib/softlayer/network/content_delivery/account.rb', line 46

def create_origin_pull_rule(origin_domain = nil, cname_record = nil)
  message = {origin_domain: origin_domain, cname_record: cname_record}
  request(:create_origin_pull_rule, Boolean, message)
end

#create_token_authentication_directory(directory = nil, media_type = nil) ⇒ Object



51
52
53
54
# File 'lib/softlayer/network/content_delivery/account.rb', line 51

def create_token_authentication_directory(directory = nil, media_type = nil)
  message = {directory: directory, media_type: media_type}
  request(:create_token_authentication_directory, Boolean, message)
end

#delete_ftp_userObject



56
57
58
# File 'lib/softlayer/network/content_delivery/account.rb', line 56

def delete_ftp_user
  request(:delete_ftp_user, Boolean)
end

#delete_origin_pull_rule(origin_mapping_id = nil) ⇒ Object



60
61
62
63
# File 'lib/softlayer/network/content_delivery/account.rb', line 60

def delete_origin_pull_rule(origin_mapping_id = nil)
  message = {origin_mapping_id: origin_mapping_id}
  request(:delete_origin_pull_rule, Boolean, message)
end

#disable_loggingObject



65
66
67
# File 'lib/softlayer/network/content_delivery/account.rb', line 65

def disable_logging
  request(:disable_logging, Boolean)
end

#enable_loggingObject



69
70
71
# File 'lib/softlayer/network/content_delivery/account.rb', line 69

def enable_logging
  request(:enable_logging, Boolean)
end

#get_accountObject



73
74
75
# File 'lib/softlayer/network/content_delivery/account.rb', line 73

def 
  request(:get_account, Softlayer::)
end

#get_all_pops_bandwidth_data(begin_date_time = nil, end_date_time = nil) ⇒ Object



77
78
79
80
# File 'lib/softlayer/network/content_delivery/account.rb', line 77

def get_all_pops_bandwidth_data(begin_date_time = nil, end_date_time = nil)
  message = {begin_date_time: begin_date_time, end_date_time: end_date_time}
  request(:get_all_pops_bandwidth_data, Array[Softlayer::Container::Network::ContentDelivery::Bandwidth::PointsOfPresence::Summary], message)
end

#get_all_pops_bandwidth_image(title = nil, begin_date_time = nil, end_date_time = nil, unit = nil) ⇒ Object



82
83
84
85
# File 'lib/softlayer/network/content_delivery/account.rb', line 82

def get_all_pops_bandwidth_image(title = nil, begin_date_time = nil, end_date_time = nil, unit = nil)
  message = {title: title, begin_date_time: begin_date_time, end_date_time: end_date_time, unit: unit}
  request(:get_all_pops_bandwidth_image, Softlayer::Container::Bandwidth::GraphOutputsExtended, message)
end

#get_associated_cdn_account_idObject



87
88
89
# File 'lib/softlayer/network/content_delivery/account.rb', line 87

def 
  request(:get_associated_cdn_account_id, String)
end

#get_authentication_ip_addressesObject



91
92
93
# File 'lib/softlayer/network/content_delivery/account.rb', line 91

def get_authentication_ip_addresses
  request(:get_authentication_ip_addresses, Array[Softlayer::Network::ContentDelivery::Authentication::Address])
end

#get_authentication_service_endpointsObject



95
96
97
# File 'lib/softlayer/network/content_delivery/account.rb', line 95

def get_authentication_service_endpoints
  request(:get_authentication_service_endpoints, Array[Softlayer::Container::Network::ContentDelivery::Authentication::ServiceEndpoint])
end

#get_bandwidth_data(begin_date_time = nil, end_date_time = nil) ⇒ Object



99
100
101
102
# File 'lib/softlayer/network/content_delivery/account.rb', line 99

def get_bandwidth_data(begin_date_time = nil, end_date_time = nil)
  message = {begin_date_time: begin_date_time, end_date_time: end_date_time}
  request(:get_bandwidth_data, Array[Softlayer::Container::Network::ContentDelivery::Bandwidth::Summary], message)
end

#get_bandwidth_data_with_types(begin_date_time = nil, end_date_time = nil, period = nil) ⇒ Object



104
105
106
107
# File 'lib/softlayer/network/content_delivery/account.rb', line 104

def get_bandwidth_data_with_types(begin_date_time = nil, end_date_time = nil, period = nil)
  message = {begin_date_time: begin_date_time, end_date_time: end_date_time, period: period}
  request(:get_bandwidth_data_with_types, Array[Softlayer::Container::Network::ContentDelivery::Report::Usage], message)
end

#get_bandwidth_image(title = nil, begin_date_time = nil, end_date_time = nil) ⇒ Object



109
110
111
112
# File 'lib/softlayer/network/content_delivery/account.rb', line 109

def get_bandwidth_image(title = nil, begin_date_time = nil, end_date_time = nil)
  message = {title: title, begin_date_time: begin_date_time, end_date_time: end_date_time}
  request(:get_bandwidth_image, Softlayer::Container::Bandwidth::GraphOutputsExtended, message)
end

#get_billing_itemObject



114
115
116
# File 'lib/softlayer/network/content_delivery/account.rb', line 114

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_cdn_account_nameObject



118
119
120
# File 'lib/softlayer/network/content_delivery/account.rb', line 118

def 
  request(:get_cdn_account_name, String)
end

#get_cdn_account_noteObject



122
123
124
# File 'lib/softlayer/network/content_delivery/account.rb', line 122

def 
  request(:get_cdn_account_note, String)
end

#get_cdn_solution_nameObject



126
127
128
# File 'lib/softlayer/network/content_delivery/account.rb', line 126

def get_cdn_solution_name
  request(:get_cdn_solution_name, String)
end

#get_customer_origins(media_type = nil) ⇒ Object



130
131
132
133
# File 'lib/softlayer/network/content_delivery/account.rb', line 130

def get_customer_origins(media_type = nil)
  message = {media_type: media_type}
  request(:get_customer_origins, Array[Softlayer::Container::Network::ContentDelivery::OriginPull::Mapping], message)
end

#get_dependant_service_flagObject



135
136
137
# File 'lib/softlayer/network/content_delivery/account.rb', line 135

def get_dependant_service_flag
  request(:get_dependant_service_flag, Boolean)
end

#get_directory_information(directory_name = nil) ⇒ Object



139
140
141
142
# File 'lib/softlayer/network/content_delivery/account.rb', line 139

def get_directory_information(directory_name = nil)
  message = {directory_name: directory_name}
  request(:get_directory_information, Array[Softlayer::Container::Network::Directory::Listing], message)
end

#get_disk_space_usage_data_by_date(begin_date_time = nil, end_date_time = nil) ⇒ Object



144
145
146
147
# File 'lib/softlayer/network/content_delivery/account.rb', line 144

def get_disk_space_usage_data_by_date(begin_date_time = nil, end_date_time = nil)
  message = {begin_date_time: begin_date_time, end_date_time: end_date_time}
  request(:get_disk_space_usage_data_by_date, Array[Softlayer::Metric::Tracking::Object::Data], message)
end

#get_disk_space_usage_image_by_date(begin_date_time = nil, end_date_time = nil) ⇒ Object



149
150
151
152
# File 'lib/softlayer/network/content_delivery/account.rb', line 149

def get_disk_space_usage_image_by_date(begin_date_time = nil, end_date_time = nil)
  message = {begin_date_time: begin_date_time, end_date_time: end_date_time}
  request(:get_disk_space_usage_image_by_date, Softlayer::Container::Bandwidth::GraphOutputs, message)
end

#get_ftp_attributesObject



154
155
156
# File 'lib/softlayer/network/content_delivery/account.rb', line 154

def get_ftp_attributes
  request(:get_ftp_attributes, Softlayer::Container::Network::Authentication::Data)
end

#get_legacy_cdn_flagObject



158
159
160
# File 'lib/softlayer/network/content_delivery/account.rb', line 158

def get_legacy_cdn_flag
  request(:get_legacy_cdn_flag, Boolean)
end

#get_log_enabled_flagObject



162
163
164
# File 'lib/softlayer/network/content_delivery/account.rb', line 162

def get_log_enabled_flag
  request(:get_log_enabled_flag, String)
end

#get_media_urlsObject



166
167
168
# File 'lib/softlayer/network/content_delivery/account.rb', line 166

def get_media_urls
  request(:get_media_urls, Array[Softlayer::Container::Network::ContentDelivery::SupportedProtocol])
end

#get_objectObject



170
171
172
# File 'lib/softlayer/network/content_delivery/account.rb', line 170

def get_object
  request(:get_object, Softlayer::Network::ContentDelivery::)
end

#get_origin_pull_mapping_informationObject



174
175
176
# File 'lib/softlayer/network/content_delivery/account.rb', line 174

def get_origin_pull_mapping_information
  request(:get_origin_pull_mapping_information, Array[Softlayer::Container::Network::ContentDelivery::OriginPull::Mapping])
end

#get_origin_pull_supported_media_urlsObject



178
179
180
# File 'lib/softlayer/network/content_delivery/account.rb', line 178

def get_origin_pull_supported_media_urls
  request(:get_origin_pull_supported_media_urls, Array[Softlayer::Container::Network::ContentDelivery::SupportedProtocol])
end

#get_origin_pull_urlObject



182
183
184
# File 'lib/softlayer/network/content_delivery/account.rb', line 182

def get_origin_pull_url
  request(:get_origin_pull_url, String)
end

#get_pop_namesObject



186
187
188
# File 'lib/softlayer/network/content_delivery/account.rb', line 186

def get_pop_names
  request(:get_pop_names, Array[Softlayer::Container::Network::ContentDelivery::PointsOfPresence])
end

#get_provider_portal_access_flagObject



190
191
192
# File 'lib/softlayer/network/content_delivery/account.rb', line 190

def get_provider_portal_access_flag
  request(:get_provider_portal_access_flag, Boolean)
end

#get_provider_portal_credentialsObject



194
195
196
# File 'lib/softlayer/network/content_delivery/account.rb', line 194

def get_provider_portal_credentials
  request(:get_provider_portal_credentials, Softlayer::Container::Network::Authentication::Data)
end

#get_statusObject



198
199
200
# File 'lib/softlayer/network/content_delivery/account.rb', line 198

def get_status
  request(:get_status, Softlayer::Network::ContentDelivery::::Status)
end

#get_token_authentication_directoriesObject



202
203
204
# File 'lib/softlayer/network/content_delivery/account.rb', line 202

def get_token_authentication_directories
  request(:get_token_authentication_directories, Array[Softlayer::Container::Network::Directory::Listing])
end

#get_token_authentication_enabled_flagObject



206
207
208
# File 'lib/softlayer/network/content_delivery/account.rb', line 206

def get_token_authentication_enabled_flag
  request(:get_token_authentication_enabled_flag, Boolean)
end

#get_vendor_ftp_attributesObject



210
211
212
# File 'lib/softlayer/network/content_delivery/account.rb', line 210

def get_vendor_ftp_attributes
  request(:get_vendor_ftp_attributes, Softlayer::Container::Network::Authentication::Data)
end

#load_content(object_urls = nil) ⇒ Object



214
215
216
217
# File 'lib/softlayer/network/content_delivery/account.rb', line 214

def load_content(object_urls = nil)
  message = {object_urls: object_urls}
  request(:load_content, Boolean, message)
end

#manage_http_compression(enable_flag = nil, mime_types = nil) ⇒ Object



219
220
221
222
# File 'lib/softlayer/network/content_delivery/account.rb', line 219

def manage_http_compression(enable_flag = nil, mime_types = nil)
  message = {enable_flag: enable_flag, mime_types: mime_types}
  request(:manage_http_compression, Boolean, message)
end

#purge_cache(object_urls = nil) ⇒ Object



224
225
226
227
# File 'lib/softlayer/network/content_delivery/account.rb', line 224

def purge_cache(object_urls = nil)
  message = {object_urls: object_urls}
  request(:purge_cache, Array[Softlayer::Container::Network::ContentDelivery::PurgeService::Response], message)
end

#remove_authentication_directory(directory = nil, media_type = nil) ⇒ Object



229
230
231
232
# File 'lib/softlayer/network/content_delivery/account.rb', line 229

def remove_authentication_directory(directory = nil, media_type = nil)
  message = {directory: directory, media_type: media_type}
  request(:remove_authentication_directory, Boolean, message)
end

#remove_file(source = nil) ⇒ Object



234
235
236
237
# File 'lib/softlayer/network/content_delivery/account.rb', line 234

def remove_file(source = nil)
  message = {source: source}
  request(:remove_file, Boolean, message)
end

#set_authentication_service_endpoint(webservice_endpoint = nil, protocol = nil) ⇒ Object



239
240
241
242
# File 'lib/softlayer/network/content_delivery/account.rb', line 239

def set_authentication_service_endpoint(webservice_endpoint = nil, protocol = nil)
  message = {webservice_endpoint: webservice_endpoint, protocol: protocol}
  request(:set_authentication_service_endpoint, Boolean, message)
end

#set_ftp_password(new_password = nil) ⇒ Object



244
245
246
247
# File 'lib/softlayer/network/content_delivery/account.rb', line 244

def set_ftp_password(new_password = nil)
  message = {new_password: new_password}
  request(:set_ftp_password, Boolean, message)
end

#update_note(note = nil) ⇒ Object



249
250
251
252
# File 'lib/softlayer/network/content_delivery/account.rb', line 249

def update_note(note = nil)
  message = {note: note}
  request(:update_note, Boolean, message)
end

#upload_stream(source = nil, target = nil) ⇒ Object



254
255
256
257
# File 'lib/softlayer/network/content_delivery/account.rb', line 254

def upload_stream(source = nil, target = nil)
  message = {source: source, target: target}
  request(:upload_stream, Boolean, message)
end