Class: MicrosoftGraph::Models::DomainDnsSrvRecord
- Inherits:
-
DomainDnsRecord
- Object
- Entity
- DomainDnsRecord
- MicrosoftGraph::Models::DomainDnsSrvRecord
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/domain_dns_srv_record.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new domainDnsSrvRecord and sets the default values.
-
#name_target ⇒ Object
Gets the nameTarget property value.
-
#name_target=(value) ⇒ Object
Sets the nameTarget property value.
-
#port ⇒ Object
Gets the port property value.
-
#port=(value) ⇒ Object
Sets the port property value.
-
#priority ⇒ Object
Gets the priority property value.
-
#priority=(value) ⇒ Object
Sets the priority property value.
-
#protocol ⇒ Object
Gets the protocol property value.
-
#protocol=(value) ⇒ Object
Sets the protocol property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service ⇒ Object
Gets the service property value.
-
#service=(value) ⇒ Object
Sets the service property value.
-
#weight ⇒ Object
Gets the weight property value.
-
#weight=(value) ⇒ Object
Sets the weight property value.
Methods inherited from DomainDnsRecord
#is_optional, #is_optional=, #label, #label=, #record_type, #record_type=, #supported_service, #supported_service=, #ttl, #ttl=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new domainDnsSrvRecord and sets the default values.
31 32 33 |
# File 'lib/models/domain_dns_srv_record.rb', line 31 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
39 40 41 42 |
# File 'lib/models/domain_dns_srv_record.rb', line 39 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DomainDnsSrvRecord.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/models/domain_dns_srv_record.rb', line 47 def get_field_deserializers() return super.merge({ "nameTarget" => lambda {|n| @name_target = n.get_string_value() }, "port" => lambda {|n| @port = n.get_number_value() }, "priority" => lambda {|n| @priority = n.get_number_value() }, "protocol" => lambda {|n| @protocol = n.get_string_value() }, "service" => lambda {|n| @service = n.get_string_value() }, "weight" => lambda {|n| @weight = n.get_number_value() }, }) end |
#name_target ⇒ Object
Gets the nameTarget property value. Value to use when configuring the Target property of the SRV record at the DNS host.
61 62 63 |
# File 'lib/models/domain_dns_srv_record.rb', line 61 def name_target return @name_target end |
#name_target=(value) ⇒ Object
Sets the nameTarget property value. Value to use when configuring the Target property of the SRV record at the DNS host.
69 70 71 |
# File 'lib/models/domain_dns_srv_record.rb', line 69 def name_target=(value) @name_target = value end |
#port ⇒ Object
Gets the port property value. Value to use when configuring the port property of the SRV record at the DNS host.
76 77 78 |
# File 'lib/models/domain_dns_srv_record.rb', line 76 def port return @port end |
#port=(value) ⇒ Object
Sets the port property value. Value to use when configuring the port property of the SRV record at the DNS host.
84 85 86 |
# File 'lib/models/domain_dns_srv_record.rb', line 84 def port=(value) @port = value end |
#priority ⇒ Object
Gets the priority property value. Value to use when configuring the priority property of the SRV record at the DNS host.
91 92 93 |
# File 'lib/models/domain_dns_srv_record.rb', line 91 def priority return @priority end |
#priority=(value) ⇒ Object
Sets the priority property value. Value to use when configuring the priority property of the SRV record at the DNS host.
99 100 101 |
# File 'lib/models/domain_dns_srv_record.rb', line 99 def priority=(value) @priority = value end |
#protocol ⇒ Object
Gets the protocol property value. Value to use when configuring the protocol property of the SRV record at the DNS host.
106 107 108 |
# File 'lib/models/domain_dns_srv_record.rb', line 106 def protocol return @protocol end |
#protocol=(value) ⇒ Object
Sets the protocol property value. Value to use when configuring the protocol property of the SRV record at the DNS host.
114 115 116 |
# File 'lib/models/domain_dns_srv_record.rb', line 114 def protocol=(value) @protocol = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
122 123 124 125 126 127 128 129 130 131 |
# File 'lib/models/domain_dns_srv_record.rb', line 122 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("nameTarget", @name_target) writer.write_number_value("port", @port) writer.write_number_value("priority", @priority) writer.write_string_value("protocol", @protocol) writer.write_string_value("service", @service) writer.write_number_value("weight", @weight) end |
#service ⇒ Object
Gets the service property value. Value to use when configuring the service property of the SRV record at the DNS host.
136 137 138 |
# File 'lib/models/domain_dns_srv_record.rb', line 136 def service return @service end |
#service=(value) ⇒ Object
Sets the service property value. Value to use when configuring the service property of the SRV record at the DNS host.
144 145 146 |
# File 'lib/models/domain_dns_srv_record.rb', line 144 def service=(value) @service = value end |
#weight ⇒ Object
Gets the weight property value. Value to use when configuring the weight property of the SRV record at the DNS host.
151 152 153 |
# File 'lib/models/domain_dns_srv_record.rb', line 151 def weight return @weight end |
#weight=(value) ⇒ Object
Sets the weight property value. Value to use when configuring the weight property of the SRV record at the DNS host.
159 160 161 |
# File 'lib/models/domain_dns_srv_record.rb', line 159 def weight=(value) @weight = value end |