Class: Falcon::DomainActorDocument
- Inherits:
-
Object
- Object
- Falcon::DomainActorDocument
- Defined in:
- lib/crimson-falcon/models/domain_actor_document.rb
Overview
JSON definition of an Actor, also known as Adversary
Instance Attribute Summary collapse
-
#active ⇒ Object
Boolean field marking if actor is active.
-
#actor_type ⇒ Object
Actor type, one of: targeted, ecrime.
-
#capabilities ⇒ Object
actor’s capabilities, some examples: RAT,Ransomware,Spearphishing,Downloader,Backdoor,InformationStealer,exploit,CredentialHarvesting,dropper,DenialOfService,Loader,Phishing.
-
#capability ⇒ Object
Returns the value of attribute capability.
-
#created_date ⇒ Object
Actor’s document creation date when it was added to the Falcon portal in unix timestamp format.
-
#description ⇒ Object
Actor’s text description, partially containing structured data from other fields.
-
#description_length ⇒ Object
Returns the value of attribute description_length.
-
#develops_threats ⇒ Object
Returns the value of attribute develops_threats.
-
#develops_threats_count ⇒ Object
Returns the value of attribute develops_threats_count.
-
#ecrime_kill_chain ⇒ Object
Returns the value of attribute ecrime_kill_chain.
-
#entitlements ⇒ Object
Field used to filter user’s access to actor documents.
-
#first_activity_date ⇒ Object
Actor’s first activity observed date in unix timestamp format.
-
#group ⇒ Object
Returns the value of attribute group.
-
#has_subgroup ⇒ Object
Returns the value of attribute has_subgroup.
-
#has_subgroup_actors_count ⇒ Object
Returns the value of attribute has_subgroup_actors_count.
-
#has_successor ⇒ Object
Returns the value of attribute has_successor.
-
#has_successor_actors_count ⇒ Object
Returns the value of attribute has_successor_actors_count.
-
#id ⇒ Object
Numerical ID for the Actor.
-
#image ⇒ Object
Returns the value of attribute image.
-
#in_reports ⇒ Object
Returns the value of attribute in_reports.
-
#in_reports_count ⇒ Object
Returns the value of attribute in_reports_count.
-
#is_subgroup_of ⇒ Object
Returns the value of attribute is_subgroup_of.
-
#is_subgroup_of_actors_count ⇒ Object
Returns the value of attribute is_subgroup_of_actors_count.
-
#is_successor_of ⇒ Object
Returns the value of attribute is_successor_of.
-
#is_successor_of_actors_count ⇒ Object
Returns the value of attribute is_successor_of_actors_count.
-
#is_supported_by ⇒ Object
Returns the value of attribute is_supported_by.
-
#is_supported_by_actors_count ⇒ Object
Returns the value of attribute is_supported_by_actors_count.
-
#kill_chain ⇒ Object
Returns the value of attribute kill_chain.
-
#known_as ⇒ Object
Alternative names and community identifiers of an actor.
-
#last_activity_date ⇒ Object
Actor’s last (most recent) activity observed date in unix timestamp format.
-
#last_modified_date ⇒ Object
Actor’s document last modified date in unix timestamp format.
-
#motivations ⇒ Object
Actor’s activity motivation, one of: State-Sponsored, Criminal, Hacktivism.
-
#name ⇒ Object
Actor’s name, composed of 2 words.
-
#notify_users ⇒ Object
internal field.
-
#objectives ⇒ Object
Actor’s activity objectives, one of: IntelligenceGathering, FinancialGain, IntellectualPropertyTheft, defacement, Destruction, DenialOfService.
-
#origins ⇒ Object
represents origin of actor’s activity and/or members, some examples: China,Russian Federation,Eastern Europe,Iran,East Asia, South Asia.
-
#recent_alerting ⇒ Object
Recent CrowdStrike’s finished intelligence alerting date in unix timestamp format.
-
#region ⇒ Object
Returns the value of attribute region.
-
#rich_text_description ⇒ Object
Rich text version of the description field.
-
#sells_threats ⇒ Object
Returns the value of attribute sells_threats.
-
#sells_threats_count ⇒ Object
Returns the value of attribute sells_threats_count.
-
#short_description ⇒ Object
Short version of the description field.
-
#slug ⇒ Object
Name in url friendly format, lowercased and spaces replaced with dash.
-
#status ⇒ Object
Status of an actor, one of: Active, Inactive, Retired.
-
#supports ⇒ Object
Returns the value of attribute supports.
-
#supports_actors_count ⇒ Object
Returns the value of attribute supports_actors_count.
-
#target_countries ⇒ Object
Target countries of actor’s activity and attacks, slug value is a 2 characters code for the country value, some examples: United States,United Kingdom,Germany,India,Japan,France,Australia,Canada,China.
-
#target_industries ⇒ Object
Target economical industries of actor’s activity and attacks.
-
#target_regions ⇒ Object
Target geographic regions of actor’s activity and attacks.
-
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
-
#url ⇒ Object
URL at which actor profile can be accessed.
-
#uses_indicators_count ⇒ Object
Returns the value of attribute uses_indicators_count.
-
#uses_mitre_attacks_count ⇒ Object
Returns the value of attribute uses_mitre_attacks_count.
-
#uses_mitre_tactics_count ⇒ Object
Returns the value of attribute uses_mitre_tactics_count.
-
#uses_mitre_techniques_count ⇒ Object
Returns the value of attribute uses_mitre_techniques_count.
-
#uses_threats ⇒ Object
Returns the value of attribute uses_threats.
-
#uses_threats_count ⇒ Object
Returns the value of attribute uses_threats_count.
-
#uses_vulnerabilities ⇒ Object
Comma separated values of vulnerabilities by CVE codes that are exploited by actor.
-
#vulnerabilities_count ⇒ Object
Returns the value of attribute vulnerabilities_count.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DomainActorDocument
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ DomainActorDocument
Initializes the object
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 323 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::DomainActorDocument` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Falcon::DomainActorDocument`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'active') self.active = attributes[:'active'] end if attributes.key?(:'actor_type') self.actor_type = attributes[:'actor_type'] end if attributes.key?(:'capabilities') if (value = attributes[:'capabilities']).is_a?(Array) self.capabilities = value end end if attributes.key?(:'capability') self.capability = attributes[:'capability'] end if attributes.key?(:'created_date') self.created_date = attributes[:'created_date'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'description_length') self.description_length = attributes[:'description_length'] end if attributes.key?(:'develops_threats') if (value = attributes[:'develops_threats']).is_a?(Array) self.develops_threats = value end end if attributes.key?(:'develops_threats_count') self.develops_threats_count = attributes[:'develops_threats_count'] end if attributes.key?(:'ecrime_kill_chain') self.ecrime_kill_chain = attributes[:'ecrime_kill_chain'] end if attributes.key?(:'entitlements') if (value = attributes[:'entitlements']).is_a?(Array) self.entitlements = value end end if attributes.key?(:'first_activity_date') self.first_activity_date = attributes[:'first_activity_date'] end if attributes.key?(:'group') self.group = attributes[:'group'] end if attributes.key?(:'has_subgroup') if (value = attributes[:'has_subgroup']).is_a?(Array) self.has_subgroup = value end end if attributes.key?(:'has_subgroup_actors_count') self.has_subgroup_actors_count = attributes[:'has_subgroup_actors_count'] end if attributes.key?(:'has_successor') if (value = attributes[:'has_successor']).is_a?(Array) self.has_successor = value end end if attributes.key?(:'has_successor_actors_count') self.has_successor_actors_count = attributes[:'has_successor_actors_count'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'image') self.image = attributes[:'image'] end if attributes.key?(:'in_reports') if (value = attributes[:'in_reports']).is_a?(Array) self.in_reports = value end end if attributes.key?(:'in_reports_count') self.in_reports_count = attributes[:'in_reports_count'] end if attributes.key?(:'is_subgroup_of') if (value = attributes[:'is_subgroup_of']).is_a?(Array) self.is_subgroup_of = value end end if attributes.key?(:'is_subgroup_of_actors_count') self.is_subgroup_of_actors_count = attributes[:'is_subgroup_of_actors_count'] end if attributes.key?(:'is_successor_of') if (value = attributes[:'is_successor_of']).is_a?(Array) self.is_successor_of = value end end if attributes.key?(:'is_successor_of_actors_count') self.is_successor_of_actors_count = attributes[:'is_successor_of_actors_count'] end if attributes.key?(:'is_supported_by') if (value = attributes[:'is_supported_by']).is_a?(Array) self.is_supported_by = value end end if attributes.key?(:'is_supported_by_actors_count') self.is_supported_by_actors_count = attributes[:'is_supported_by_actors_count'] end if attributes.key?(:'kill_chain') self.kill_chain = attributes[:'kill_chain'] end if attributes.key?(:'known_as') self.known_as = attributes[:'known_as'] end if attributes.key?(:'last_activity_date') self.last_activity_date = attributes[:'last_activity_date'] end if attributes.key?(:'last_modified_date') self.last_modified_date = attributes[:'last_modified_date'] end if attributes.key?(:'motivations') if (value = attributes[:'motivations']).is_a?(Array) self.motivations = value end end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'notify_users') self.notify_users = attributes[:'notify_users'] end if attributes.key?(:'objectives') if (value = attributes[:'objectives']).is_a?(Array) self.objectives = value end end if attributes.key?(:'origins') if (value = attributes[:'origins']).is_a?(Array) self.origins = value end end if attributes.key?(:'recent_alerting') self.recent_alerting = attributes[:'recent_alerting'] end if attributes.key?(:'region') self.region = attributes[:'region'] end if attributes.key?(:'rich_text_description') self.rich_text_description = attributes[:'rich_text_description'] end if attributes.key?(:'sells_threats') if (value = attributes[:'sells_threats']).is_a?(Array) self.sells_threats = value end end if attributes.key?(:'sells_threats_count') self.sells_threats_count = attributes[:'sells_threats_count'] end if attributes.key?(:'short_description') self.short_description = attributes[:'short_description'] end if attributes.key?(:'slug') self.slug = attributes[:'slug'] end if attributes.key?(:'status') self.status = attributes[:'status'] end if attributes.key?(:'supports') if (value = attributes[:'supports']).is_a?(Array) self.supports = value end end if attributes.key?(:'supports_actors_count') self.supports_actors_count = attributes[:'supports_actors_count'] end if attributes.key?(:'target_countries') if (value = attributes[:'target_countries']).is_a?(Array) self.target_countries = value end end if attributes.key?(:'target_industries') if (value = attributes[:'target_industries']).is_a?(Array) self.target_industries = value end end if attributes.key?(:'target_regions') if (value = attributes[:'target_regions']).is_a?(Array) self.target_regions = value end end if attributes.key?(:'thumbnail') self.thumbnail = attributes[:'thumbnail'] end if attributes.key?(:'url') self.url = attributes[:'url'] end if attributes.key?(:'uses_indicators_count') self.uses_indicators_count = attributes[:'uses_indicators_count'] end if attributes.key?(:'uses_mitre_attacks_count') self.uses_mitre_attacks_count = attributes[:'uses_mitre_attacks_count'] end if attributes.key?(:'uses_mitre_tactics_count') self.uses_mitre_tactics_count = attributes[:'uses_mitre_tactics_count'] end if attributes.key?(:'uses_mitre_techniques_count') self.uses_mitre_techniques_count = attributes[:'uses_mitre_techniques_count'] end if attributes.key?(:'uses_threats') if (value = attributes[:'uses_threats']).is_a?(Array) self.uses_threats = value end end if attributes.key?(:'uses_threats_count') self.uses_threats_count = attributes[:'uses_threats_count'] end if attributes.key?(:'uses_vulnerabilities') if (value = attributes[:'uses_vulnerabilities']).is_a?(Array) self.uses_vulnerabilities = value end end if attributes.key?(:'vulnerabilities_count') self.vulnerabilities_count = attributes[:'vulnerabilities_count'] end end |
Instance Attribute Details
#active ⇒ Object
Boolean field marking if actor is active
37 38 39 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 37 def active @active end |
#actor_type ⇒ Object
Actor type, one of: targeted, ecrime
40 41 42 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 40 def actor_type @actor_type end |
#capabilities ⇒ Object
actor’s capabilities, some examples: RAT,Ransomware,Spearphishing,Downloader,Backdoor,InformationStealer,exploit,CredentialHarvesting,dropper,DenialOfService,Loader,Phishing
43 44 45 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 43 def capabilities @capabilities end |
#capability ⇒ Object
Returns the value of attribute capability.
45 46 47 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 45 def capability @capability end |
#created_date ⇒ Object
Actor’s document creation date when it was added to the Falcon portal in unix timestamp format
48 49 50 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 48 def created_date @created_date end |
#description ⇒ Object
Actor’s text description, partially containing structured data from other fields
51 52 53 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 51 def description @description end |
#description_length ⇒ Object
Returns the value of attribute description_length.
53 54 55 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 53 def description_length @description_length end |
#develops_threats ⇒ Object
Returns the value of attribute develops_threats.
55 56 57 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 55 def develops_threats @develops_threats end |
#develops_threats_count ⇒ Object
Returns the value of attribute develops_threats_count.
57 58 59 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 57 def develops_threats_count @develops_threats_count end |
#ecrime_kill_chain ⇒ Object
Returns the value of attribute ecrime_kill_chain.
59 60 61 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 59 def ecrime_kill_chain @ecrime_kill_chain end |
#entitlements ⇒ Object
Field used to filter user’s access to actor documents
62 63 64 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 62 def entitlements @entitlements end |
#first_activity_date ⇒ Object
Actor’s first activity observed date in unix timestamp format
65 66 67 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 65 def first_activity_date @first_activity_date end |
#group ⇒ Object
Returns the value of attribute group.
67 68 69 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 67 def group @group end |
#has_subgroup ⇒ Object
Returns the value of attribute has_subgroup.
69 70 71 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 69 def has_subgroup @has_subgroup end |
#has_subgroup_actors_count ⇒ Object
Returns the value of attribute has_subgroup_actors_count.
71 72 73 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 71 def has_subgroup_actors_count @has_subgroup_actors_count end |
#has_successor ⇒ Object
Returns the value of attribute has_successor.
73 74 75 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 73 def has_successor @has_successor end |
#has_successor_actors_count ⇒ Object
Returns the value of attribute has_successor_actors_count.
75 76 77 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 75 def has_successor_actors_count @has_successor_actors_count end |
#id ⇒ Object
Numerical ID for the Actor
78 79 80 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 78 def id @id end |
#image ⇒ Object
Returns the value of attribute image.
80 81 82 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 80 def image @image end |
#in_reports ⇒ Object
Returns the value of attribute in_reports.
82 83 84 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 82 def in_reports @in_reports end |
#in_reports_count ⇒ Object
Returns the value of attribute in_reports_count.
84 85 86 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 84 def in_reports_count @in_reports_count end |
#is_subgroup_of ⇒ Object
Returns the value of attribute is_subgroup_of.
86 87 88 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 86 def is_subgroup_of @is_subgroup_of end |
#is_subgroup_of_actors_count ⇒ Object
Returns the value of attribute is_subgroup_of_actors_count.
88 89 90 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 88 def is_subgroup_of_actors_count @is_subgroup_of_actors_count end |
#is_successor_of ⇒ Object
Returns the value of attribute is_successor_of.
90 91 92 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 90 def is_successor_of @is_successor_of end |
#is_successor_of_actors_count ⇒ Object
Returns the value of attribute is_successor_of_actors_count.
92 93 94 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 92 def is_successor_of_actors_count @is_successor_of_actors_count end |
#is_supported_by ⇒ Object
Returns the value of attribute is_supported_by.
94 95 96 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 94 def is_supported_by @is_supported_by end |
#is_supported_by_actors_count ⇒ Object
Returns the value of attribute is_supported_by_actors_count.
96 97 98 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 96 def is_supported_by_actors_count @is_supported_by_actors_count end |
#kill_chain ⇒ Object
Returns the value of attribute kill_chain.
98 99 100 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 98 def kill_chain @kill_chain end |
#known_as ⇒ Object
Alternative names and community identifiers of an actor
101 102 103 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 101 def known_as @known_as end |
#last_activity_date ⇒ Object
Actor’s last (most recent) activity observed date in unix timestamp format
104 105 106 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 104 def last_activity_date @last_activity_date end |
#last_modified_date ⇒ Object
Actor’s document last modified date in unix timestamp format
107 108 109 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 107 def last_modified_date @last_modified_date end |
#motivations ⇒ Object
Actor’s activity motivation, one of: State-Sponsored, Criminal, Hacktivism
110 111 112 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 110 def motivations @motivations end |
#name ⇒ Object
Actor’s name, composed of 2 words
113 114 115 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 113 def name @name end |
#notify_users ⇒ Object
internal field
116 117 118 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 116 def notify_users @notify_users end |
#objectives ⇒ Object
Actor’s activity objectives, one of: IntelligenceGathering, FinancialGain, IntellectualPropertyTheft, defacement, Destruction, DenialOfService
119 120 121 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 119 def objectives @objectives end |
#origins ⇒ Object
represents origin of actor’s activity and/or members, some examples: China,Russian Federation,Eastern Europe,Iran,East Asia, South Asia
122 123 124 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 122 def origins @origins end |
#recent_alerting ⇒ Object
Recent CrowdStrike’s finished intelligence alerting date in unix timestamp format
125 126 127 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 125 def recent_alerting @recent_alerting end |
#region ⇒ Object
Returns the value of attribute region.
127 128 129 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 127 def region @region end |
#rich_text_description ⇒ Object
Rich text version of the description field
130 131 132 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 130 def rich_text_description @rich_text_description end |
#sells_threats ⇒ Object
Returns the value of attribute sells_threats.
132 133 134 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 132 def sells_threats @sells_threats end |
#sells_threats_count ⇒ Object
Returns the value of attribute sells_threats_count.
134 135 136 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 134 def sells_threats_count @sells_threats_count end |
#short_description ⇒ Object
Short version of the description field
137 138 139 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 137 def short_description @short_description end |
#slug ⇒ Object
Name in url friendly format, lowercased and spaces replaced with dash
140 141 142 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 140 def slug @slug end |
#status ⇒ Object
Status of an actor, one of: Active, Inactive, Retired
143 144 145 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 143 def status @status end |
#supports ⇒ Object
Returns the value of attribute supports.
145 146 147 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 145 def supports @supports end |
#supports_actors_count ⇒ Object
Returns the value of attribute supports_actors_count.
147 148 149 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 147 def supports_actors_count @supports_actors_count end |
#target_countries ⇒ Object
Target countries of actor’s activity and attacks, slug value is a 2 characters code for the country value, some examples: United States,United Kingdom,Germany,India,Japan,France,Australia,Canada,China
150 151 152 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 150 def target_countries @target_countries end |
#target_industries ⇒ Object
Target economical industries of actor’s activity and attacks. List of available values: Government, Financial Services, Technology, Telecommunications, Healthcare, Energy, Academic, Media, Aerospace, NGO, Manufacturing, Industrials and Engineering, Retail, Hospitality, Consulting and Professional Services, Opportunistic, Aviation, Defense, Transportation, Oil and Gas, Legal, Pharmaceutical, Logistics, Military, Automotive, Food and Beverage, Consumer Goods, Real Estate, Insurance, Agriculture, Chemicals, Utilities, Maritime, Extractive, Travel, Dissident, Cryptocurrency, Entertainment, National Government, Law Enforcement, Think Tanks, Local Government, Sports Organizations, Computer Gaming, Biomedical, Nonprofit, Financial Management & Hedge Funds, Political Parties, Architectural and Engineering, Emergency Services, Social Media, International Government, Nuclear, Research Entities, Vocational and Higher-Level Education, eCommerce
153 154 155 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 153 def target_industries @target_industries end |
#target_regions ⇒ Object
Target geographic regions of actor’s activity and attacks. List of available values: North America, Western Europe, Southeast Asia, Middle East, Eastern Europe, South Asia, South America, Oceania, East Asia, Central Africa, Northern Europe, Southern Europe, North Africa, Southern Africa, Central America, Central Asia, East Africa, West Africa, Caribbean
156 157 158 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 156 def target_regions @target_regions end |
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
158 159 160 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 158 def thumbnail @thumbnail end |
#url ⇒ Object
URL at which actor profile can be accessed
161 162 163 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 161 def url @url end |
#uses_indicators_count ⇒ Object
Returns the value of attribute uses_indicators_count.
163 164 165 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 163 def uses_indicators_count @uses_indicators_count end |
#uses_mitre_attacks_count ⇒ Object
Returns the value of attribute uses_mitre_attacks_count.
165 166 167 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 165 def uses_mitre_attacks_count @uses_mitre_attacks_count end |
#uses_mitre_tactics_count ⇒ Object
Returns the value of attribute uses_mitre_tactics_count.
167 168 169 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 167 def uses_mitre_tactics_count @uses_mitre_tactics_count end |
#uses_mitre_techniques_count ⇒ Object
Returns the value of attribute uses_mitre_techniques_count.
169 170 171 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 169 def uses_mitre_techniques_count @uses_mitre_techniques_count end |
#uses_threats ⇒ Object
Returns the value of attribute uses_threats.
171 172 173 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 171 def uses_threats @uses_threats end |
#uses_threats_count ⇒ Object
Returns the value of attribute uses_threats_count.
173 174 175 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 173 def uses_threats_count @uses_threats_count end |
#uses_vulnerabilities ⇒ Object
Comma separated values of vulnerabilities by CVE codes that are exploited by actor
176 177 178 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 176 def uses_vulnerabilities @uses_vulnerabilities end |
#vulnerabilities_count ⇒ Object
Returns the value of attribute vulnerabilities_count.
178 179 180 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 178 def vulnerabilities_count @vulnerabilities_count end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
246 247 248 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 246 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 181 def self.attribute_map { :'active' => :'active', :'actor_type' => :'actor_type', :'capabilities' => :'capabilities', :'capability' => :'capability', :'created_date' => :'created_date', :'description' => :'description', :'description_length' => :'description_length', :'develops_threats' => :'develops_threats', :'develops_threats_count' => :'develops_threats_count', :'ecrime_kill_chain' => :'ecrime_kill_chain', :'entitlements' => :'entitlements', :'first_activity_date' => :'first_activity_date', :'group' => :'group', :'has_subgroup' => :'has_subgroup', :'has_subgroup_actors_count' => :'has_subgroup_actors_count', :'has_successor' => :'has_successor', :'has_successor_actors_count' => :'has_successor_actors_count', :'id' => :'id', :'image' => :'image', :'in_reports' => :'in_reports', :'in_reports_count' => :'in_reports_count', :'is_subgroup_of' => :'is_subgroup_of', :'is_subgroup_of_actors_count' => :'is_subgroup_of_actors_count', :'is_successor_of' => :'is_successor_of', :'is_successor_of_actors_count' => :'is_successor_of_actors_count', :'is_supported_by' => :'is_supported_by', :'is_supported_by_actors_count' => :'is_supported_by_actors_count', :'kill_chain' => :'kill_chain', :'known_as' => :'known_as', :'last_activity_date' => :'last_activity_date', :'last_modified_date' => :'last_modified_date', :'motivations' => :'motivations', :'name' => :'name', :'notify_users' => :'notify_users', :'objectives' => :'objectives', :'origins' => :'origins', :'recent_alerting' => :'recent_alerting', :'region' => :'region', :'rich_text_description' => :'rich_text_description', :'sells_threats' => :'sells_threats', :'sells_threats_count' => :'sells_threats_count', :'short_description' => :'short_description', :'slug' => :'slug', :'status' => :'status', :'supports' => :'supports', :'supports_actors_count' => :'supports_actors_count', :'target_countries' => :'target_countries', :'target_industries' => :'target_industries', :'target_regions' => :'target_regions', :'thumbnail' => :'thumbnail', :'url' => :'url', :'uses_indicators_count' => :'uses_indicators_count', :'uses_mitre_attacks_count' => :'uses_mitre_attacks_count', :'uses_mitre_tactics_count' => :'uses_mitre_tactics_count', :'uses_mitre_techniques_count' => :'uses_mitre_techniques_count', :'uses_threats' => :'uses_threats', :'uses_threats_count' => :'uses_threats_count', :'uses_vulnerabilities' => :'uses_vulnerabilities', :'vulnerabilities_count' => :'vulnerabilities_count' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
790 791 792 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 790 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
316 317 318 319 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 316 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 251 def self.openapi_types { :'active' => :'Boolean', :'actor_type' => :'String', :'capabilities' => :'Array<DomainEntity>', :'capability' => :'DomainEntity', :'created_date' => :'Integer', :'description' => :'String', :'description_length' => :'Integer', :'develops_threats' => :'Array<DomainThreatEntity>', :'develops_threats_count' => :'Integer', :'ecrime_kill_chain' => :'DomainECrimeKillChain', :'entitlements' => :'Array<DomainEntity>', :'first_activity_date' => :'Integer', :'group' => :'DomainEntity', :'has_subgroup' => :'Array<DomainActorEntity>', :'has_subgroup_actors_count' => :'Integer', :'has_successor' => :'Array<DomainActorEntity>', :'has_successor_actors_count' => :'Integer', :'id' => :'Integer', :'image' => :'DomainImage', :'in_reports' => :'Array<DomainActorNewsDocument>', :'in_reports_count' => :'Integer', :'is_subgroup_of' => :'Array<DomainActorEntity>', :'is_subgroup_of_actors_count' => :'Integer', :'is_successor_of' => :'Array<DomainActorEntity>', :'is_successor_of_actors_count' => :'Integer', :'is_supported_by' => :'Array<DomainActorEntity>', :'is_supported_by_actors_count' => :'Integer', :'kill_chain' => :'DomainKillChain', :'known_as' => :'String', :'last_activity_date' => :'Integer', :'last_modified_date' => :'Integer', :'motivations' => :'Array<DomainEntity>', :'name' => :'String', :'notify_users' => :'Boolean', :'objectives' => :'Array<DomainEntity>', :'origins' => :'Array<DomainEntity>', :'recent_alerting' => :'Integer', :'region' => :'DomainEntity', :'rich_text_description' => :'String', :'sells_threats' => :'Array<DomainThreatEntity>', :'sells_threats_count' => :'Integer', :'short_description' => :'String', :'slug' => :'String', :'status' => :'String', :'supports' => :'Array<DomainActorEntity>', :'supports_actors_count' => :'Integer', :'target_countries' => :'Array<DomainEntity>', :'target_industries' => :'Array<DomainEntity>', :'target_regions' => :'Array<DomainEntity>', :'thumbnail' => :'DomainImage', :'url' => :'String', :'uses_indicators_count' => :'Integer', :'uses_mitre_attacks_count' => :'Integer', :'uses_mitre_tactics_count' => :'Integer', :'uses_mitre_techniques_count' => :'Integer', :'uses_threats' => :'Array<DomainThreatEntity>', :'uses_threats_count' => :'Integer', :'uses_vulnerabilities' => :'Array<String>', :'vulnerabilities_count' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 711 def ==(o) return true if self.equal?(o) self.class == o.class && active == o.active && actor_type == o.actor_type && capabilities == o.capabilities && capability == o.capability && created_date == o.created_date && description == o.description && description_length == o.description_length && develops_threats == o.develops_threats && develops_threats_count == o.develops_threats_count && ecrime_kill_chain == o.ecrime_kill_chain && entitlements == o.entitlements && first_activity_date == o.first_activity_date && group == o.group && has_subgroup == o.has_subgroup && has_subgroup_actors_count == o.has_subgroup_actors_count && has_successor == o.has_successor && has_successor_actors_count == o.has_successor_actors_count && id == o.id && image == o.image && in_reports == o.in_reports && in_reports_count == o.in_reports_count && is_subgroup_of == o.is_subgroup_of && is_subgroup_of_actors_count == o.is_subgroup_of_actors_count && is_successor_of == o.is_successor_of && is_successor_of_actors_count == o.is_successor_of_actors_count && is_supported_by == o.is_supported_by && is_supported_by_actors_count == o.is_supported_by_actors_count && kill_chain == o.kill_chain && known_as == o.known_as && last_activity_date == o.last_activity_date && last_modified_date == o.last_modified_date && motivations == o.motivations && name == o.name && notify_users == o.notify_users && objectives == o.objectives && origins == o.origins && recent_alerting == o.recent_alerting && region == o.region && rich_text_description == o.rich_text_description && sells_threats == o.sells_threats && sells_threats_count == o.sells_threats_count && short_description == o.short_description && slug == o.slug && status == o.status && supports == o.supports && supports_actors_count == o.supports_actors_count && target_countries == o.target_countries && target_industries == o.target_industries && target_regions == o.target_regions && thumbnail == o.thumbnail && url == o.url && uses_indicators_count == o.uses_indicators_count && uses_mitre_attacks_count == o.uses_mitre_attacks_count && uses_mitre_tactics_count == o.uses_mitre_tactics_count && uses_mitre_techniques_count == o.uses_mitre_techniques_count && uses_threats == o.uses_threats && uses_threats_count == o.uses_threats_count && uses_vulnerabilities == o.uses_vulnerabilities && vulnerabilities_count == o.vulnerabilities_count end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 821 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Falcon.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
892 893 894 895 896 897 898 899 900 901 902 903 904 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 892 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 797 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
777 778 779 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 777 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
783 784 785 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 783 def hash [active, actor_type, capabilities, capability, created_date, description, description_length, develops_threats, develops_threats_count, ecrime_kill_chain, entitlements, first_activity_date, group, has_subgroup, has_subgroup_actors_count, has_successor, has_successor_actors_count, id, image, in_reports, in_reports_count, is_subgroup_of, is_subgroup_of_actors_count, is_successor_of, is_successor_of_actors_count, is_supported_by, is_supported_by_actors_count, kill_chain, known_as, last_activity_date, last_modified_date, motivations, name, notify_users, objectives, origins, recent_alerting, region, rich_text_description, sells_threats, sells_threats_count, short_description, slug, status, supports, supports_actors_count, target_countries, target_industries, target_regions, thumbnail, url, uses_indicators_count, uses_mitre_attacks_count, uses_mitre_tactics_count, uses_mitre_techniques_count, uses_threats, uses_threats_count, uses_vulnerabilities, vulnerabilities_count].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 613 def list_invalid_properties invalid_properties = Array.new if @active.nil? invalid_properties.push('invalid value for "active", active cannot be nil.') end if @capabilities.nil? invalid_properties.push('invalid value for "capabilities", capabilities cannot be nil.') end if @created_date.nil? invalid_properties.push('invalid value for "created_date", created_date cannot be nil.') end if @first_activity_date.nil? invalid_properties.push('invalid value for "first_activity_date", first_activity_date cannot be nil.') end if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end if @known_as.nil? invalid_properties.push('invalid value for "known_as", known_as cannot be nil.') end if @last_activity_date.nil? invalid_properties.push('invalid value for "last_activity_date", last_activity_date cannot be nil.') end if @last_modified_date.nil? invalid_properties.push('invalid value for "last_modified_date", last_modified_date cannot be nil.') end if @motivations.nil? invalid_properties.push('invalid value for "motivations", motivations cannot be nil.') end if @notify_users.nil? invalid_properties.push('invalid value for "notify_users", notify_users cannot be nil.') end if @objectives.nil? invalid_properties.push('invalid value for "objectives", objectives cannot be nil.') end if @origins.nil? invalid_properties.push('invalid value for "origins", origins cannot be nil.') end if @short_description.nil? invalid_properties.push('invalid value for "short_description", short_description cannot be nil.') end if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') end if @target_countries.nil? invalid_properties.push('invalid value for "target_countries", target_countries cannot be nil.') end if @target_industries.nil? invalid_properties.push('invalid value for "target_industries", target_industries cannot be nil.') end if @target_regions.nil? invalid_properties.push('invalid value for "target_regions", target_regions cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
868 869 870 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 868 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
874 875 876 877 878 879 880 881 882 883 884 885 886 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 874 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
862 863 864 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 862 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'lib/crimson-falcon/models/domain_actor_document.rb', line 688 def valid? return false if @active.nil? return false if @capabilities.nil? return false if @created_date.nil? return false if @first_activity_date.nil? return false if @id.nil? return false if @known_as.nil? return false if @last_activity_date.nil? return false if @last_modified_date.nil? return false if @motivations.nil? return false if @notify_users.nil? return false if @objectives.nil? return false if @origins.nil? return false if @short_description.nil? return false if @status.nil? return false if @target_countries.nil? return false if @target_industries.nil? return false if @target_regions.nil? true end |