Class: Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::GeoLocation

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb

Overview

The geo-location context attached to the ip entity

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#asnInteger

Returns Autonomous System Number.

Returns:

  • (Integer)

    Autonomous System Number



16
17
18
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 16

def asn
  @asn
end

#cityString

Returns City name.

Returns:

  • (String)

    City name



19
20
21
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 19

def city
  @city
end

#country_codeString

Returns The country code according to ISO 3166 format.

Returns:

  • (String)

    The country code according to ISO 3166 format



22
23
24
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 22

def country_code
  @country_code
end

#country_nameString

lowercase of the English Short Name

Returns:

  • (String)

    Country name according to ISO 3166 Alpha 2: the



26
27
28
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 26

def country_name
  @country_name
end

#latitudeFloat

a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West. Latitude and longitude are derived from the city or postal code.

Returns:

  • (Float)

    The longitude of the identified location, expressed as



32
33
34
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 32

def latitude
  @latitude
end

#longitudeFloat

floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South. Latitude and longitude are derived from the city or postal code.

Returns:

  • (Float)

    The latitude of the identified location, expressed as a



38
39
40
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 38

def longitude
  @longitude
end

#stateString

Returns State name.

Returns:

  • (String)

    State name



41
42
43
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 41

def state
  @state
end

Class Method Details

.mapperObject

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



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 48

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GeoLocation',
    type: {
      name: 'Composite',
      class_name: 'GeoLocation',
      model_properties: {
        asn: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'asn',
          type: {
            name: 'Number'
          }
        },
        city: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'city',
          type: {
            name: 'String'
          }
        },
        country_code: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'countryCode',
          type: {
            name: 'String'
          }
        },
        country_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'countryName',
          type: {
            name: 'String'
          }
        },
        latitude: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'latitude',
          type: {
            name: 'Double'
          }
        },
        longitude: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'longitude',
          type: {
            name: 'Double'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end