Class: Google::Apis::SecuritycenterV1beta2::Geolocation
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Geolocation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Overview
Represents a geographical location for a given access.
Instance Attribute Summary collapse
-
#region_code ⇒ String
A CLDR.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Geolocation
constructor
A new instance of Geolocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Geolocation
Returns a new instance of Geolocation.
1285 1286 1287 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1285 def initialize(**args) update!(**args) end |
Instance Attribute Details
#region_code ⇒ String
A CLDR.
Corresponds to the JSON property regionCode
1283 1284 1285 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1283 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1290 1291 1292 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1290 def update!(**args) @region_code = args[:region_code] if args.key?(:region_code) end |