Class: Softlayer::Dns::Domain::ResourceRecord

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/dns/domain/resource_record.rb,
lib/softlayer/dns/domain/resource_record/a_type.rb,
lib/softlayer/dns/domain/resource_record/mx_type.rb,
lib/softlayer/dns/domain/resource_record/ns_type.rb,
lib/softlayer/dns/domain/resource_record/ptr_type.rb,
lib/softlayer/dns/domain/resource_record/soa_type.rb,
lib/softlayer/dns/domain/resource_record/spf_type.rb,
lib/softlayer/dns/domain/resource_record/srv_type.rb,
lib/softlayer/dns/domain/resource_record/txt_type.rb,
lib/softlayer/dns/domain/resource_record/aaaa_type.rb,
lib/softlayer/dns/domain/resource_record/cname_type.rb

Direct Known Subclasses

AType, AaaaType, CnameType, MxType, NsType, PtrType, SoaType, SrvType, TxtType

Defined Under Namespace

Classes: AType, AaaaType, CnameType, MxType, NsType, PtrType, Representer, SoaType, SpfType, SrvType, TxtType

Constant Summary collapse

SERVICE =
'SoftLayer_Dns_Domain_ResourceRecord'

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

#dataObject

Returns the value of attribute data.



16
17
18
# File 'lib/softlayer/dns/domain/resource_record.rb', line 16

def data
  @data
end

#domainObject

Returns the value of attribute domain.



28
29
30
# File 'lib/softlayer/dns/domain/resource_record.rb', line 28

def domain
  @domain
end

#domain_idObject

Returns the value of attribute domain_id.



17
18
19
# File 'lib/softlayer/dns/domain/resource_record.rb', line 17

def domain_id
  @domain_id
end

#expireObject

Returns the value of attribute expire.



18
19
20
# File 'lib/softlayer/dns/domain/resource_record.rb', line 18

def expire
  @expire
end

#hostObject

Returns the value of attribute host.



19
20
21
# File 'lib/softlayer/dns/domain/resource_record.rb', line 19

def host
  @host
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/softlayer/dns/domain/resource_record.rb', line 20

def id
  @id
end

#minimumObject

Returns the value of attribute minimum.



21
22
23
# File 'lib/softlayer/dns/domain/resource_record.rb', line 21

def minimum
  @minimum
end

#mx_priorityObject

Returns the value of attribute mx_priority.



22
23
24
# File 'lib/softlayer/dns/domain/resource_record.rb', line 22

def mx_priority
  @mx_priority
end

#refreshObject

Returns the value of attribute refresh.



23
24
25
# File 'lib/softlayer/dns/domain/resource_record.rb', line 23

def refresh
  @refresh
end

#responsible_personObject

Returns the value of attribute responsible_person.



24
25
26
# File 'lib/softlayer/dns/domain/resource_record.rb', line 24

def responsible_person
  @responsible_person
end

#retryObject

Returns the value of attribute retry.



25
26
27
# File 'lib/softlayer/dns/domain/resource_record.rb', line 25

def retry
  @retry
end

#ttlObject

Returns the value of attribute ttl.



26
27
28
# File 'lib/softlayer/dns/domain/resource_record.rb', line 26

def ttl
  @ttl
end

#typeObject

Returns the value of attribute type.



27
28
29
# File 'lib/softlayer/dns/domain/resource_record.rb', line 27

def type
  @type
end

Class Method Details

.create_object(message) ⇒ Object

template_object



31
32
33
# File 'lib/softlayer/dns/domain/resource_record.rb', line 31

def self.create_object(message)
  request(:create_object, Softlayer::Dns::Domain::ResourceRecord, message)
end

.create_objects(message) ⇒ Object

template_objects



36
37
38
# File 'lib/softlayer/dns/domain/resource_record.rb', line 36

def self.create_objects(message)
  request(:create_objects, Array[Softlayer::Dns::Domain::ResourceRecord], message)
end

.delete_objects(message) ⇒ Object

template_objects



45
46
47
# File 'lib/softlayer/dns/domain/resource_record.rb', line 45

def self.delete_objects(message)
  request(:delete_objects, Boolean, message)
end

.edit_objects(message) ⇒ Object

template_objects



55
56
57
# File 'lib/softlayer/dns/domain/resource_record.rb', line 55

def self.edit_objects(message)
  request(:edit_objects, Boolean, message)
end

Instance Method Details

#delete_objectObject



40
41
42
# File 'lib/softlayer/dns/domain/resource_record.rb', line 40

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



50
51
52
# File 'lib/softlayer/dns/domain/resource_record.rb', line 50

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_domainObject



59
60
61
# File 'lib/softlayer/dns/domain/resource_record.rb', line 59

def get_domain
  request(:get_domain, Softlayer::Dns::Domain)
end

#get_objectObject



63
64
65
# File 'lib/softlayer/dns/domain/resource_record.rb', line 63

def get_object
  request(:get_object, Softlayer::Dns::Domain::ResourceRecord)
end