Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryFileStoreConditions

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

Requirements that must be true before a file store is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DiscoveryFileStoreConditions

Returns a new instance of GooglePrivacyDlpV2DiscoveryFileStoreConditions.



3711
3712
3713
# File 'lib/google/apis/dlp_v2/classes.rb', line 3711

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

Instance Attribute Details

#cloud_storage_conditionsGoogle::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryCloudStorageConditions

Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes. Corresponds to the JSON property cloudStorageConditions



3697
3698
3699
# File 'lib/google/apis/dlp_v2/classes.rb', line 3697

def cloud_storage_conditions
  @cloud_storage_conditions
end

#created_afterString

Optional. File store must have been created after this date. Used to avoid backfilling. Corresponds to the JSON property createdAfter

Returns:

  • (String)


3703
3704
3705
# File 'lib/google/apis/dlp_v2/classes.rb', line 3703

def created_after
  @created_after
end

#min_ageString

Optional. Minimum age a file store must have. If set, the value must be 1 hour or greater. Corresponds to the JSON property minAge

Returns:

  • (String)


3709
3710
3711
# File 'lib/google/apis/dlp_v2/classes.rb', line 3709

def min_age
  @min_age
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3716
3717
3718
3719
3720
# File 'lib/google/apis/dlp_v2/classes.rb', line 3716

def update!(**args)
  @cloud_storage_conditions = args[:cloud_storage_conditions] if args.key?(:cloud_storage_conditions)
  @created_after = args[:created_after] if args.key?(:created_after)
  @min_age = args[:min_age] if args.key?(:min_age)
end