Class: MicrosoftGraph::Models::HostSecurityState
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::HostSecurityState
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/host_security_state.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#fqdn ⇒ Object
Gets the fqdn property value.
-
#fqdn=(value) ⇒ Object
Sets the fqdn property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new hostSecurityState and sets the default values.
-
#is_azure_ad_joined ⇒ Object
Gets the isAzureAdJoined property value.
-
#is_azure_ad_joined=(value) ⇒ Object
Sets the isAzureAdJoined property value.
-
#is_azure_ad_registered ⇒ Object
Gets the isAzureAdRegistered property value.
-
#is_azure_ad_registered=(value) ⇒ Object
Sets the isAzureAdRegistered property value.
-
#is_hybrid_azure_domain_joined ⇒ Object
Gets the isHybridAzureDomainJoined property value.
-
#is_hybrid_azure_domain_joined=(value) ⇒ Object
Sets the isHybridAzureDomainJoined property value.
-
#net_bios_name ⇒ Object
Gets the netBiosName property value.
-
#net_bios_name=(value) ⇒ Object
Sets the netBiosName property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#os ⇒ Object
Gets the os property value.
-
#os=(value) ⇒ Object
Sets the os property value.
-
#private_ip_address ⇒ Object
Gets the privateIpAddress property value.
-
#private_ip_address=(value) ⇒ Object
Sets the privateIpAddress property value.
-
#public_ip_address ⇒ Object
Gets the publicIpAddress property value.
-
#public_ip_address=(value) ⇒ Object
Sets the publicIpAddress property value.
-
#risk_score ⇒ Object
Gets the riskScore property value.
-
#risk_score=(value) ⇒ Object
Sets the riskScore property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new hostSecurityState and sets the default values.
61 62 63 |
# File 'lib/models/host_security_state.rb', line 61 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
69 70 71 72 |
# File 'lib/models/host_security_state.rb', line 69 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return HostSecurityState.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
46 47 48 |
# File 'lib/models/host_security_state.rb', line 46 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
54 55 56 |
# File 'lib/models/host_security_state.rb', line 54 def additional_data=(value) @additional_data = value end |
#fqdn ⇒ Object
Gets the fqdn property value. Host FQDN (Fully Qualified Domain Name) (for example, machine.company.com).
77 78 79 |
# File 'lib/models/host_security_state.rb', line 77 def fqdn return @fqdn end |
#fqdn=(value) ⇒ Object
Sets the fqdn property value. Host FQDN (Fully Qualified Domain Name) (for example, machine.company.com).
85 86 87 |
# File 'lib/models/host_security_state.rb', line 85 def fqdn=(value) @fqdn = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/models/host_security_state.rb', line 92 def get_field_deserializers() return { "fqdn" => lambda {|n| @fqdn = n.get_string_value() }, "isAzureAdJoined" => lambda {|n| @is_azure_ad_joined = n.get_boolean_value() }, "isAzureAdRegistered" => lambda {|n| @is_azure_ad_registered = n.get_boolean_value() }, "isHybridAzureDomainJoined" => lambda {|n| @is_hybrid_azure_domain_joined = n.get_boolean_value() }, "netBiosName" => lambda {|n| @net_bios_name = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "os" => lambda {|n| @os = n.get_string_value() }, "privateIpAddress" => lambda {|n| @private_ip_address = n.get_string_value() }, "publicIpAddress" => lambda {|n| @public_ip_address = n.get_string_value() }, "riskScore" => lambda {|n| @risk_score = n.get_string_value() }, } end |
#is_azure_ad_joined ⇒ Object
Gets the isAzureAdJoined property value. The isAzureAdJoined property
110 111 112 |
# File 'lib/models/host_security_state.rb', line 110 def is_azure_ad_joined return @is_azure_ad_joined end |
#is_azure_ad_joined=(value) ⇒ Object
Sets the isAzureAdJoined property value. The isAzureAdJoined property
118 119 120 |
# File 'lib/models/host_security_state.rb', line 118 def is_azure_ad_joined=(value) @is_azure_ad_joined = value end |
#is_azure_ad_registered ⇒ Object
Gets the isAzureAdRegistered property value. The isAzureAdRegistered property
125 126 127 |
# File 'lib/models/host_security_state.rb', line 125 def is_azure_ad_registered return @is_azure_ad_registered end |
#is_azure_ad_registered=(value) ⇒ Object
Sets the isAzureAdRegistered property value. The isAzureAdRegistered property
133 134 135 |
# File 'lib/models/host_security_state.rb', line 133 def is_azure_ad_registered=(value) @is_azure_ad_registered = value end |
#is_hybrid_azure_domain_joined ⇒ Object
Gets the isHybridAzureDomainJoined property value. True if the host is domain joined to an on-premises Active Directory domain.
140 141 142 |
# File 'lib/models/host_security_state.rb', line 140 def is_hybrid_azure_domain_joined return @is_hybrid_azure_domain_joined end |
#is_hybrid_azure_domain_joined=(value) ⇒ Object
Sets the isHybridAzureDomainJoined property value. True if the host is domain joined to an on-premises Active Directory domain.
148 149 150 |
# File 'lib/models/host_security_state.rb', line 148 def is_hybrid_azure_domain_joined=(value) @is_hybrid_azure_domain_joined = value end |
#net_bios_name ⇒ Object
Gets the netBiosName property value. The local host name, without the DNS domain name.
155 156 157 |
# File 'lib/models/host_security_state.rb', line 155 def net_bios_name return @net_bios_name end |
#net_bios_name=(value) ⇒ Object
Sets the netBiosName property value. The local host name, without the DNS domain name.
163 164 165 |
# File 'lib/models/host_security_state.rb', line 163 def net_bios_name=(value) @net_bios_name = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
170 171 172 |
# File 'lib/models/host_security_state.rb', line 170 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
178 179 180 |
# File 'lib/models/host_security_state.rb', line 178 def odata_type=(value) @odata_type = value end |
#os ⇒ Object
Gets the os property value. Host Operating System. (For example, Windows10, MacOS, RHEL, etc.).
185 186 187 |
# File 'lib/models/host_security_state.rb', line 185 def os return @os end |
#os=(value) ⇒ Object
Sets the os property value. Host Operating System. (For example, Windows10, MacOS, RHEL, etc.).
193 194 195 |
# File 'lib/models/host_security_state.rb', line 193 def os=(value) @os = value end |
#private_ip_address ⇒ Object
Gets the privateIpAddress property value. Private (not routable) IPv4 or IPv6 address (see RFC 1918) at the time of the alert.
200 201 202 |
# File 'lib/models/host_security_state.rb', line 200 def private_ip_address return @private_ip_address end |
#private_ip_address=(value) ⇒ Object
Sets the privateIpAddress property value. Private (not routable) IPv4 or IPv6 address (see RFC 1918) at the time of the alert.
208 209 210 |
# File 'lib/models/host_security_state.rb', line 208 def private_ip_address=(value) @private_ip_address = value end |
#public_ip_address ⇒ Object
Gets the publicIpAddress property value. Publicly routable IPv4 or IPv6 address (see RFC 1918) at time of the alert.
215 216 217 |
# File 'lib/models/host_security_state.rb', line 215 def public_ip_address return @public_ip_address end |
#public_ip_address=(value) ⇒ Object
Sets the publicIpAddress property value. Publicly routable IPv4 or IPv6 address (see RFC 1918) at time of the alert.
223 224 225 |
# File 'lib/models/host_security_state.rb', line 223 def public_ip_address=(value) @public_ip_address = value end |
#risk_score ⇒ Object
Gets the riskScore property value. Provider-generated/calculated risk score of the host. Recommended value range of 0-1, which equates to a percentage.
230 231 232 |
# File 'lib/models/host_security_state.rb', line 230 def risk_score return @risk_score end |
#risk_score=(value) ⇒ Object
Sets the riskScore property value. Provider-generated/calculated risk score of the host. Recommended value range of 0-1, which equates to a percentage.
238 239 240 |
# File 'lib/models/host_security_state.rb', line 238 def risk_score=(value) @risk_score = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/models/host_security_state.rb', line 246 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("fqdn", @fqdn) writer.write_boolean_value("isAzureAdJoined", @is_azure_ad_joined) writer.write_boolean_value("isAzureAdRegistered", @is_azure_ad_registered) writer.write_boolean_value("isHybridAzureDomainJoined", @is_hybrid_azure_domain_joined) writer.write_string_value("netBiosName", @net_bios_name) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("os", @os) writer.write_string_value("privateIpAddress", @private_ip_address) writer.write_string_value("publicIpAddress", @public_ip_address) writer.write_string_value("riskScore", @risk_score) writer.write_additional_data(@additional_data) end |