Class: Google::Apis::SecuritycenterV1beta1::Geolocation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb

Overview

Represents a geographical location for a given access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Geolocation

Returns a new instance of Geolocation.



1265
1266
1267
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1265

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#region_codeString

A CLDR. Corresponds to the JSON property regionCode

Returns:

  • (String)


1263
1264
1265
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1263

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1270
1271
1272
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1270

def update!(**args)
  @region_code = args[:region_code] if args.key?(:region_code)
end