Class: MicrosoftGraph::Models::SecurityIntelligenceProfile

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_intelligence_profile.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 securityIntelligenceProfile and sets the default values.



59
60
61
# File 'lib/models/security_intelligence_profile.rb', line 59

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_intelligence_profile

Raises:

  • (StandardError)


82
83
84
85
# File 'lib/models/security_intelligence_profile.rb', line 82

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

Instance Method Details

#aliasesObject

Gets the aliases property value. A list of commonly-known aliases for the threat intelligence included in the intelligenceProfile.

Returns:

  • a string



44
45
46
# File 'lib/models/security_intelligence_profile.rb', line 44

def aliases
    return @aliases
end

#aliases=(value) ⇒ Object

Sets the aliases property value. A list of commonly-known aliases for the threat intelligence included in the intelligenceProfile.

Parameters:

  • value

    Value to set for the aliases property.

Returns:

  • a void



52
53
54
# File 'lib/models/security_intelligence_profile.rb', line 52

def aliases=(value)
    @aliases = value
end

#countries_or_regions_of_originObject

Gets the countriesOrRegionsOfOrigin property value. The country/region of origin for the given actor or threat associated with this intelligenceProfile.

Returns:

  • a security_intelligence_profile_country_or_region_of_origin



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

def countries_or_regions_of_origin
    return @countries_or_regions_of_origin
end

#countries_or_regions_of_origin=(value) ⇒ Object

Sets the countriesOrRegionsOfOrigin property value. The country/region of origin for the given actor or threat associated with this intelligenceProfile.

Parameters:

  • value

    Value to set for the countriesOrRegionsOfOrigin property.

Returns:

  • a void



74
75
76
# File 'lib/models/security_intelligence_profile.rb', line 74

def countries_or_regions_of_origin=(value)
    @countries_or_regions_of_origin = value
end

#descriptionObject

Gets the description property value. The description property

Returns:

  • a security_formatted_content



90
91
92
# File 'lib/models/security_intelligence_profile.rb', line 90

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description property

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



98
99
100
# File 'lib/models/security_intelligence_profile.rb', line 98

def description=(value)
    @description = value
end

#first_active_date_timeObject

Gets the firstActiveDateTime property value. The date and time when this intelligenceProfile was first active. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



105
106
107
# File 'lib/models/security_intelligence_profile.rb', line 105

def first_active_date_time
    return @first_active_date_time
end

#first_active_date_time=(value) ⇒ Object

Sets the firstActiveDateTime property value. The date and time when this intelligenceProfile was first active. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the firstActiveDateTime property.

Returns:

  • a void



113
114
115
# File 'lib/models/security_intelligence_profile.rb', line 113

def first_active_date_time=(value)
    @first_active_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/models/security_intelligence_profile.rb', line 120

def get_field_deserializers()
    return super.merge({
        "aliases" => lambda {|n| @aliases = n.get_collection_of_primitive_values(String) },
        "countriesOrRegionsOfOrigin" => lambda {|n| @countries_or_regions_of_origin = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityIntelligenceProfileCountryOrRegionOfOrigin.create_from_discriminator_value(pn) }) },
        "description" => lambda {|n| @description = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityFormattedContent.create_from_discriminator_value(pn) }) },
        "firstActiveDateTime" => lambda {|n| @first_active_date_time = n.get_date_time_value() },
        "indicators" => lambda {|n| @indicators = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityIntelligenceProfileIndicator.create_from_discriminator_value(pn) }) },
        "kind" => lambda {|n| @kind = n.get_enum_value(MicrosoftGraph::Models::SecurityIntelligenceProfileKind) },
        "summary" => lambda {|n| @summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityFormattedContent.create_from_discriminator_value(pn) }) },
        "targets" => lambda {|n| @targets = n.get_collection_of_primitive_values(String) },
        "title" => lambda {|n| @title = n.get_string_value() },
        "tradecraft" => lambda {|n| @tradecraft = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityFormattedContent.create_from_discriminator_value(pn) }) },
    })
end

#indicatorsObject

Gets the indicators property value. Includes an assemblage of high-fidelity network indicators of compromise.

Returns:

  • a security_intelligence_profile_indicator



138
139
140
# File 'lib/models/security_intelligence_profile.rb', line 138

def indicators
    return @indicators
end

#indicators=(value) ⇒ Object

Sets the indicators property value. Includes an assemblage of high-fidelity network indicators of compromise.

Parameters:

  • value

    Value to set for the indicators property.

Returns:

  • a void



146
147
148
# File 'lib/models/security_intelligence_profile.rb', line 146

def indicators=(value)
    @indicators = value
end

#kindObject

Gets the kind property value. The kind property

Returns:

  • a security_intelligence_profile_kind



153
154
155
# File 'lib/models/security_intelligence_profile.rb', line 153

def kind
    return @kind
end

#kind=(value) ⇒ Object

Sets the kind property value. The kind property

Parameters:

  • value

    Value to set for the kind property.

Returns:

  • a void



161
162
163
# File 'lib/models/security_intelligence_profile.rb', line 161

def kind=(value)
    @kind = 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)


169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'lib/models/security_intelligence_profile.rb', line 169

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_primitive_values("aliases", @aliases)
    writer.write_collection_of_object_values("countriesOrRegionsOfOrigin", @countries_or_regions_of_origin)
    writer.write_object_value("description", @description)
    writer.write_date_time_value("firstActiveDateTime", @first_active_date_time)
    writer.write_collection_of_object_values("indicators", @indicators)
    writer.write_enum_value("kind", @kind)
    writer.write_object_value("summary", @summary)
    writer.write_collection_of_primitive_values("targets", @targets)
    writer.write_string_value("title", @title)
    writer.write_object_value("tradecraft", @tradecraft)
end

#summaryObject

Gets the summary property value. The summary property

Returns:

  • a security_formatted_content



187
188
189
# File 'lib/models/security_intelligence_profile.rb', line 187

def summary
    return @summary
end

#summary=(value) ⇒ Object

Sets the summary property value. The summary property

Parameters:

  • value

    Value to set for the summary property.

Returns:

  • a void



195
196
197
# File 'lib/models/security_intelligence_profile.rb', line 195

def summary=(value)
    @summary = value
end

#targetsObject

Gets the targets property value. Known targets related to this intelligenceProfile.

Returns:

  • a string



202
203
204
# File 'lib/models/security_intelligence_profile.rb', line 202

def targets
    return @targets
end

#targets=(value) ⇒ Object

Sets the targets property value. Known targets related to this intelligenceProfile.

Parameters:

  • value

    Value to set for the targets property.

Returns:

  • a void



210
211
212
# File 'lib/models/security_intelligence_profile.rb', line 210

def targets=(value)
    @targets = value
end

#titleObject

Gets the title property value. The title of this intelligenceProfile.

Returns:

  • a string



217
218
219
# File 'lib/models/security_intelligence_profile.rb', line 217

def title
    return @title
end

#title=(value) ⇒ Object

Sets the title property value. The title of this intelligenceProfile.

Parameters:

  • value

    Value to set for the title property.

Returns:

  • a void



225
226
227
# File 'lib/models/security_intelligence_profile.rb', line 225

def title=(value)
    @title = value
end

#tradecraftObject

Gets the tradecraft property value. Formatted information featuring a description of the distinctive tactics, techniques, and procedures (TTP) of the group, followed by a list of all known custom, commodity, and publicly available implants used by the group.

Returns:

  • a security_formatted_content



232
233
234
# File 'lib/models/security_intelligence_profile.rb', line 232

def tradecraft
    return @tradecraft
end

#tradecraft=(value) ⇒ Object

Sets the tradecraft property value. Formatted information featuring a description of the distinctive tactics, techniques, and procedures (TTP) of the group, followed by a list of all known custom, commodity, and publicly available implants used by the group.

Parameters:

  • value

    Value to set for the tradecraft property.

Returns:

  • a void



240
241
242
# File 'lib/models/security_intelligence_profile.rb', line 240

def tradecraft=(value)
    @tradecraft = value
end