Class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

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

StoredInfoType resource message that contains information about the current version and any pending updates.

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

Returns a new instance of GooglePrivacyDlpV2StoredInfoType.



5767
5768
5769
# File 'generated/google/apis/dlp_v2/classes.rb', line 5767

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

Instance Attribute Details

#current_versionGoogle::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion

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



5754
5755
5756
# File 'generated/google/apis/dlp_v2/classes.rb', line 5754

def current_version
  @current_version
end

#nameString

Resource name. Corresponds to the JSON property name

Returns:

  • (String)


5759
5760
5761
# File 'generated/google/apis/dlp_v2/classes.rb', line 5759

def name
  @name
end

#pending_versionsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeVersion>

Pending versions of the stored info type. Empty if no versions are pending. Corresponds to the JSON property pendingVersions



5765
5766
5767
# File 'generated/google/apis/dlp_v2/classes.rb', line 5765

def pending_versions
  @pending_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5772
5773
5774
5775
5776
# File 'generated/google/apis/dlp_v2/classes.rb', line 5772

def update!(**args)
  @current_version = args[:current_version] if args.key?(:current_version)
  @name = args[:name] if args.key?(:name)
  @pending_versions = args[:pending_versions] if args.key?(:pending_versions)
end