Class: Softlayer::Network::ContentDelivery::Authentication::Address

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/content_delivery/authentication/address.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_ContentDelivery_Authentication_Address'

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

#access_typeObject

Returns the value of attribute access_type.



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

def access_type
  @access_type
end

#cdn_account_idObject

Returns the value of attribute cdn_account_id.



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

def 
  @cdn_account_id
end

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#ip_addressObject

Returns the value of attribute ip_address.



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

def ip_address
  @ip_address
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#priorityObject

Returns the value of attribute priority.



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

def priority
  @priority
end

#user_idObject

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

Class Method Details

.create_object(template_object = nil) ⇒ Object



17
18
19
20
# File 'lib/softlayer/network/content_delivery/authentication/address.rb', line 17

def self.create_object(template_object = nil)
  message = {template_object: template_object}
  request(:create_object, Softlayer::Network::ContentDelivery::Authentication::Address, message)
end

.rearrange_authentication_ip(cdn_account_id = nil, template_objects = nil) ⇒ Object



35
36
37
38
# File 'lib/softlayer/network/content_delivery/authentication/address.rb', line 35

def self.rearrange_authentication_ip( = nil, template_objects = nil)
  message = {cdn_account_id: , template_objects: template_objects}
  request(:rearrange_authentication_ip, Boolean, message)
end

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(template_object = nil) ⇒ Object



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

def edit_object(template_object = nil)
  message = {template_object: template_object}
  request(:edit_object, Boolean, message)
end

#get_objectObject



31
32
33
# File 'lib/softlayer/network/content_delivery/authentication/address.rb', line 31

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