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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Geolocation

Returns a new instance of Geolocation.



3089
3090
3091
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 3089

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

Instance Attribute Details

#region_codeString

Corresponds to the JSON property regionCode

Returns:

  • (String)


3087
3088
3089
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 3087

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3094
3095
3096
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 3094

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