Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoverySchemaModifiedCadence

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

The cadence at which to update data profiles when a schema is modified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DiscoverySchemaModifiedCadence

Returns a new instance of GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.



3831
3832
3833
# File 'lib/google/apis/dlp_v2/classes.rb', line 3831

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

Instance Attribute Details

#frequencyString

How frequently profiles may be updated when schemas are modified. Defaults to monthly. Corresponds to the JSON property frequency

Returns:

  • (String)


3823
3824
3825
# File 'lib/google/apis/dlp_v2/classes.rb', line 3823

def frequency
  @frequency
end

#typesArray<String>

The type of events to consider when deciding if the table's schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS. Corresponds to the JSON property types

Returns:

  • (Array<String>)


3829
3830
3831
# File 'lib/google/apis/dlp_v2/classes.rb', line 3829

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3836
3837
3838
3839
# File 'lib/google/apis/dlp_v2/classes.rb', line 3836

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