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.



8066
8067
8068
# File 'lib/google/apis/dlp_v2/classes.rb', line 8066

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


8059
8060
8061
# File 'lib/google/apis/dlp_v2/classes.rb', line 8059

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)


8064
8065
8066
# File 'lib/google/apis/dlp_v2/classes.rb', line 8064

def regionalization_scope
  @regionalization_scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8071
8072
8073
8074
# File 'lib/google/apis/dlp_v2/classes.rb', line 8071

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