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

Inherits:
Softlayer::Dns::Domain::ResourceRecord show all
Defined in:
lib/softlayer/dns/domain/resource_record/srv_type.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Dns_Domain_ResourceRecord_SrvType'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Dns::Domain::ResourceRecord

#data, #domain, #domain_id, #expire, #host, #id, #minimum, #mx_priority, #refresh, #responsible_person, #retry, #ttl, #type

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

#portObject

Returns the value of attribute port.



7
8
9
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 7

def port
  @port
end

#priorityObject

Returns the value of attribute priority.



8
9
10
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 8

def priority
  @priority
end

#protocolObject

Returns the value of attribute protocol.



9
10
11
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 9

def protocol
  @protocol
end

#serviceObject

Returns the value of attribute service.



10
11
12
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 10

def service
  @service
end

#weightObject

Returns the value of attribute weight.



11
12
13
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 11

def weight
  @weight
end

Class Method Details

.create_object(message) ⇒ Object

template_object



14
15
16
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 14

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

.create_objects(message) ⇒ Object

template_objects



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

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

.delete_objects(message) ⇒ Object

template_objects



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

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

.edit_objects(message) ⇒ Object

template_objects



38
39
40
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 38

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

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



33
34
35
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 33

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

#get_domainObject



42
43
44
# File 'lib/softlayer/dns/domain/resource_record/srv_type.rb', line 42

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

#get_objectObject



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

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