Class: Google::Apis::DlpV2::GooglePrivacyDlpV2LocationSupport

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

Overview

Locations at which a feature can be used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2LocationSupport

Returns a new instance of GooglePrivacyDlpV2LocationSupport.



7634
7635
7636
# File 'lib/google/apis/dlp_v2/classes.rb', line 7634

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

Instance Attribute Details

#locationsArray<String>

Specific locations where the feature may be used. Examples: us-central1, us, asia, global If scope is ANY_LOCATION, no regions will be listed. Corresponds to the JSON property locations

Returns:

  • (Array<String>)


7627
7628
7629
# File 'lib/google/apis/dlp_v2/classes.rb', line 7627

def locations
  @locations
end

#regionalization_scopeString

The current scope for location on this feature. This may expand over time. Corresponds to the JSON property regionalizationScope

Returns:

  • (String)


7632
7633
7634
# File 'lib/google/apis/dlp_v2/classes.rb', line 7632

def regionalization_scope
  @regionalization_scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7639
7640
7641
7642
# File 'lib/google/apis/dlp_v2/classes.rb', line 7639

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