Class: Google::Apis::SecuritycenterV1beta2::Geolocation

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Geolocation

Returns a new instance of Geolocation.



2896
2897
2898
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2896

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

Instance Attribute Details

#region_codeString

Corresponds to the JSON property regionCode

Returns:

  • (String)


2894
2895
2896
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2894

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2901
2902
2903
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2901

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