Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Geolocation

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

Overview

Represents a geographical location for a given access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Geolocation

Returns a new instance of GoogleCloudSecuritycenterV2Geolocation.



4487
4488
4489
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4487

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

Instance Attribute Details

#region_code ⇒ String

A CLDR. Corresponds to the JSON property regionCode

Returns:

  • (String)


4485
4486
4487
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4485

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4492
4493
4494
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4492

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