Class: Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::GeoLocation
- Inherits:
-
Object
- Object
- Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::GeoLocation
- 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
-
#asn ⇒ Integer
Autonomous System Number.
-
#city ⇒ String
City name.
-
#country_code ⇒ String
The country code according to ISO 3166 format.
-
#country_name ⇒ String
lowercase of the English Short Name.
-
#latitude ⇒ Float
a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West.
-
#longitude ⇒ Float
floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South.
-
#state ⇒ String
State name.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for GeoLocation class as Ruby Hash.
Instance Attribute Details
#asn ⇒ Integer
Returns 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 |
#city ⇒ String
Returns 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_code ⇒ String
Returns 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_name ⇒ String
lowercase of the English Short Name
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 |
#latitude ⇒ Float
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.
32 33 34 |
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 32 def latitude @latitude end |
#longitude ⇒ Float
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.
38 39 40 |
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb', line 38 def longitude @longitude end |
#state ⇒ String
Returns 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
.mapper ⇒ Object
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 |