Class: MicrosoftGraph::Models::SecurityThreatIntelligence

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_threat_intelligence.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new securityThreatIntelligence and sets the default values.



73
74
75
# File 'lib/models/security_threat_intelligence.rb', line 73

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a security_threat_intelligence

Raises:

  • (StandardError)


81
82
83
84
# File 'lib/models/security_threat_intelligence.rb', line 81

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityThreatIntelligence.new
end

Instance Method Details

#article_indicatorsObject

Gets the articleIndicators property value. Refers to indicators of threat or compromise highlighted in an microsoft.graph.security.article.Note: List retrieval is not yet supported.

Returns:

  • a security_article_indicator



43
44
45
# File 'lib/models/security_threat_intelligence.rb', line 43

def article_indicators
    return @article_indicators
end

#article_indicators=(value) ⇒ Object

Sets the articleIndicators property value. Refers to indicators of threat or compromise highlighted in an microsoft.graph.security.article.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the articleIndicators property.

Returns:

  • a void



51
52
53
# File 'lib/models/security_threat_intelligence.rb', line 51

def article_indicators=(value)
    @article_indicators = value
end

#articlesObject

Gets the articles property value. A list of article objects.

Returns:

  • a security_article



58
59
60
# File 'lib/models/security_threat_intelligence.rb', line 58

def articles
    return @articles
end

#articles=(value) ⇒ Object

Sets the articles property value. A list of article objects.

Parameters:

  • value

    Value to set for the articles property.

Returns:

  • a void



66
67
68
# File 'lib/models/security_threat_intelligence.rb', line 66

def articles=(value)
    @articles = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/models/security_threat_intelligence.rb', line 89

def get_field_deserializers()
    return super.merge({
        "articleIndicators" => lambda {|n| @article_indicators = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityArticleIndicator.create_from_discriminator_value(pn) }) },
        "articles" => lambda {|n| @articles = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityArticle.create_from_discriminator_value(pn) }) },
        "hostComponents" => lambda {|n| @host_components = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityHostComponent.create_from_discriminator_value(pn) }) },
        "hostCookies" => lambda {|n| @host_cookies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityHostCookie.create_from_discriminator_value(pn) }) },
        "hostTrackers" => lambda {|n| @host_trackers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityHostTracker.create_from_discriminator_value(pn) }) },
        "hosts" => lambda {|n| @hosts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityHost.create_from_discriminator_value(pn) }) },
        "intelProfiles" => lambda {|n| @intel_profiles = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityIntelligenceProfile.create_from_discriminator_value(pn) }) },
        "intelligenceProfileIndicators" => lambda {|n| @intelligence_profile_indicators = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityIntelligenceProfileIndicator.create_from_discriminator_value(pn) }) },
        "passiveDnsRecords" => lambda {|n| @passive_dns_records = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityPassiveDnsRecord.create_from_discriminator_value(pn) }) },
        "vulnerabilities" => lambda {|n| @vulnerabilities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityVulnerability.create_from_discriminator_value(pn) }) },
    })
end

#host_componentsObject

Gets the hostComponents property value. Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported.

Returns:

  • a security_host_component



107
108
109
# File 'lib/models/security_threat_intelligence.rb', line 107

def host_components
    return @host_components
end

#host_components=(value) ⇒ Object

Sets the hostComponents property value. Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the hostComponents property.

Returns:

  • a void



115
116
117
# File 'lib/models/security_threat_intelligence.rb', line 115

def host_components=(value)
    @host_components = value
end

#host_cookiesObject

Gets the hostCookies property value. Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported.

Returns:

  • a security_host_cookie



122
123
124
# File 'lib/models/security_threat_intelligence.rb', line 122

def host_cookies
    return @host_cookies
end

#host_cookies=(value) ⇒ Object

Sets the hostCookies property value. Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the hostCookies property.

Returns:

  • a void



130
131
132
# File 'lib/models/security_threat_intelligence.rb', line 130

def host_cookies=(value)
    @host_cookies = value
end

#host_trackersObject

Gets the hostTrackers property value. Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported.

Returns:

  • a security_host_tracker



137
138
139
# File 'lib/models/security_threat_intelligence.rb', line 137

def host_trackers
    return @host_trackers
end

#host_trackers=(value) ⇒ Object

Sets the hostTrackers property value. Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the hostTrackers property.

Returns:

  • a void



145
146
147
# File 'lib/models/security_threat_intelligence.rb', line 145

def host_trackers=(value)
    @host_trackers = value
end

#hostsObject

Gets the hosts property value. Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported.

Returns:

  • a security_host



152
153
154
# File 'lib/models/security_threat_intelligence.rb', line 152

def hosts
    return @hosts
end

#hosts=(value) ⇒ Object

Sets the hosts property value. Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the hosts property.

Returns:

  • a void



160
161
162
# File 'lib/models/security_threat_intelligence.rb', line 160

def hosts=(value)
    @hosts = value
end

#intel_profilesObject

Gets the intelProfiles property value. A list of intelligenceProfile objects.

Returns:

  • a security_intelligence_profile



167
168
169
# File 'lib/models/security_threat_intelligence.rb', line 167

def intel_profiles
    return @intel_profiles
end

#intel_profiles=(value) ⇒ Object

Sets the intelProfiles property value. A list of intelligenceProfile objects.

Parameters:

  • value

    Value to set for the intelProfiles property.

Returns:

  • a void



175
176
177
# File 'lib/models/security_threat_intelligence.rb', line 175

def intel_profiles=(value)
    @intel_profiles = value
end

#intelligence_profile_indicatorsObject

Gets the intelligenceProfileIndicators property value. The intelligenceProfileIndicators property

Returns:

  • a security_intelligence_profile_indicator



182
183
184
# File 'lib/models/security_threat_intelligence.rb', line 182

def intelligence_profile_indicators
    return @intelligence_profile_indicators
end

#intelligence_profile_indicators=(value) ⇒ Object

Sets the intelligenceProfileIndicators property value. The intelligenceProfileIndicators property

Parameters:

  • value

    Value to set for the intelligenceProfileIndicators property.

Returns:

  • a void



190
191
192
# File 'lib/models/security_threat_intelligence.rb', line 190

def intelligence_profile_indicators=(value)
    @intelligence_profile_indicators = value
end

#passive_dns_recordsObject

Gets the passiveDnsRecords property value. Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported.

Returns:

  • a security_passive_dns_record



197
198
199
# File 'lib/models/security_threat_intelligence.rb', line 197

def passive_dns_records
    return @passive_dns_records
end

#passive_dns_records=(value) ⇒ Object

Sets the passiveDnsRecords property value. Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the passiveDnsRecords property.

Returns:

  • a void



205
206
207
# File 'lib/models/security_threat_intelligence.rb', line 205

def passive_dns_records=(value)
    @passive_dns_records = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


213
214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'lib/models/security_threat_intelligence.rb', line 213

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("articleIndicators", @article_indicators)
    writer.write_collection_of_object_values("articles", @articles)
    writer.write_collection_of_object_values("hostComponents", @host_components)
    writer.write_collection_of_object_values("hostCookies", @host_cookies)
    writer.write_collection_of_object_values("hostTrackers", @host_trackers)
    writer.write_collection_of_object_values("hosts", @hosts)
    writer.write_collection_of_object_values("intelProfiles", @intel_profiles)
    writer.write_collection_of_object_values("intelligenceProfileIndicators", @intelligence_profile_indicators)
    writer.write_collection_of_object_values("passiveDnsRecords", @passive_dns_records)
    writer.write_collection_of_object_values("vulnerabilities", @vulnerabilities)
end

#vulnerabilitiesObject

Gets the vulnerabilities property value. Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported.

Returns:

  • a security_vulnerability



231
232
233
# File 'lib/models/security_threat_intelligence.rb', line 231

def vulnerabilities
    return @vulnerabilities
end

#vulnerabilities=(value) ⇒ Object

Sets the vulnerabilities property value. Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported.

Parameters:

  • value

    Value to set for the vulnerabilities property.

Returns:

  • a void



239
240
241
# File 'lib/models/security_threat_intelligence.rb', line 239

def vulnerabilities=(value)
    @vulnerabilities = value
end