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.



8116
8117
8118
# File 'lib/google/apis/dlp_v2/classes.rb', line 8116

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


8109
8110
8111
# File 'lib/google/apis/dlp_v2/classes.rb', line 8109

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)


8114
8115
8116
# File 'lib/google/apis/dlp_v2/classes.rb', line 8114

def regionalization_scope
  @regionalization_scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8121
8122
8123
8124
# File 'lib/google/apis/dlp_v2/classes.rb', line 8121

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