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.



8483
8484
8485
# File 'lib/google/apis/dlp_v2/classes.rb', line 8483

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>)


8476
8477
8478
# File 'lib/google/apis/dlp_v2/classes.rb', line 8476

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)


8481
8482
8483
# File 'lib/google/apis/dlp_v2/classes.rb', line 8481

def regionalization_scope
  @regionalization_scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8488
8489
8490
8491
# File 'lib/google/apis/dlp_v2/classes.rb', line 8488

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