Class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

Version of a StoredInfoType, including the configuration used to build it, create timestamp, and current state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2StoredInfoTypeVersion

Returns a new instance of GooglePrivacyDlpV2StoredInfoTypeVersion



5134
5135
5136
# File 'generated/google/apis/dlp_v2/classes.rb', line 5134

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

Instance Attribute Details

#configGoogle::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig

Configuration for a StoredInfoType. Corresponds to the JSON property config



5105
5106
5107
# File 'generated/google/apis/dlp_v2/classes.rb', line 5105

def config
  @config
end

#create_timeString

Create timestamp of the version. Read-only, determined by the system when the version is created. Corresponds to the JSON property createTime

Returns:

  • (String)


5111
5112
5113
# File 'generated/google/apis/dlp_v2/classes.rb', line 5111

def create_time
  @create_time
end

#errorsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>

Errors that occurred when creating this storedInfoType version, or anomalies detected in the storedInfoType data that render it unusable. Only the five most recent errors will be displayed, with the most recent error appearing first.

For example, some of the data for stored custom dictionaries is put in the user's Google Cloud Storage bucket, and if this data is modified or deleted by the user or another system, the dictionary becomes invalid.

If any errors occur, fix the problem indicated by the error message and use the UpdateStoredInfoType API method to create another version of the storedInfoType to continue using it, reusing the same config if it was not the source of the error. Corresponds to the JSON property errors



5126
5127
5128
# File 'generated/google/apis/dlp_v2/classes.rb', line 5126

def errors
  @errors
end

#stateString

Stored info type version state. Read-only, updated by the system during dictionary creation. Corresponds to the JSON property state

Returns:

  • (String)


5132
5133
5134
# File 'generated/google/apis/dlp_v2/classes.rb', line 5132

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5139
5140
5141
5142
5143
5144
# File 'generated/google/apis/dlp_v2/classes.rb', line 5139

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @create_time = args[:create_time] if args.key?(:create_time)
  @errors = args[:errors] if args.key?(:errors)
  @state = args[:state] if args.key?(:state)
end