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.



3902
3903
3904
# File 'lib/google/apis/dlp_v2/classes.rb', line 3902

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



3888
3889
3890
# File 'lib/google/apis/dlp_v2/classes.rb', line 3888

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)


3894
3895
3896
# File 'lib/google/apis/dlp_v2/classes.rb', line 3894

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)


3900
3901
3902
# File 'lib/google/apis/dlp_v2/classes.rb', line 3900

def min_age
  @min_age
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3907
3908
3909
3910
3911
# File 'lib/google/apis/dlp_v2/classes.rb', line 3907

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