class Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::IpEntity

Represents an ip entity.

Attributes

additional_data[RW]

@return A bag of custom fields that should be part of the entity and will be presented to the user.

address[RW]

@return [String] The IP address as string, e.g. 127.0.0.1 (either in Ipv4 or Ipv6)

friendly_name[RW]

@return [String] The graph item display name which is a short humanly readable description of the graph item instance. This property is optional and might be system generated.

kind[RW]
location[RW]

@return [GeoLocation] The geo-location context attached to the ip entity

threat_intelligence[RW]

@return [Array<ThreatIntelligence>] A list of TI contexts attached to the ip entity.

Public Class Methods

mapper() click to toggle source

Mapper for IpEntity class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ip_entity.rb, line 48
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Ip',
    type: {
      name: 'Composite',
      class_name: 'IpEntity',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        additional_data: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.additionalData',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.friendlyName',
          type: {
            name: 'String'
          }
        },
        address: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.address',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.location',
          type: {
            name: 'Composite',
            class_name: 'GeoLocation'
          }
        },
        threat_intelligence: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.threatIntelligence',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ThreatIntelligenceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ThreatIntelligence'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ip_entity.rb, line 16
def initialize
  @kind = "Ip"
end