Class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile
- 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 profile for a file store. * Google Cloud Storage: maps 1:1 with a bucket.
Instance Attribute Summary collapse
-
#config_snapshot ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileConfigSnapshot
Snapshot of the configurations used to generate the profile.
-
#create_time ⇒ String
The time the file store was first created.
-
#data_risk_level ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel
Score is a summary of all elements in the data profile.
-
#data_source_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType
Message used to identify the type of resource being profiled.
-
#data_storage_locations ⇒ Array<String>
For resources that have multiple storage locations, these are those regions.
-
#file_cluster_summaries ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterSummary>
FileClusterSummary per each cluster.
-
#file_store_info_type_summaries ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary>
InfoTypes detected in this file store.
-
#file_store_is_empty ⇒ Boolean
(also: #file_store_is_empty?)
The file store does not have any files.
-
#file_store_location ⇒ String
The location of the file store.
-
#file_store_path ⇒ String
The file store path.
-
#full_resource ⇒ String
The resource name of the resource profiled.
-
#last_modified_time ⇒ String
The time the file store was last modified.
-
#location_type ⇒ String
The location type of the bucket (region, dual-region, multi-region, etc).
-
#name ⇒ String
The name of the profile.
-
#profile_last_generated ⇒ String
The last time the profile was generated.
-
#profile_status ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus
Success or errors for the profile generation.
-
#project_data_profile ⇒ String
The resource name to the project data profile for this file store.
-
#project_id ⇒ String
The Google Cloud project ID that owns the resource.
-
#resource_attributes ⇒ Hash<String,Google::Apis::DlpV2::GooglePrivacyDlpV2Value>
Attributes of the resource being profiled.
-
#resource_labels ⇒ Hash<String,String>
The labels applied to the resource at the time the profile was generated.
-
#resource_visibility ⇒ String
How broadly a resource has been shared.
-
#sensitivity_score ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore
Score is calculated from of all elements in the data profile.
-
#state ⇒ String
State of a profile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2FileStoreDataProfile
constructor
A new instance of GooglePrivacyDlpV2FileStoreDataProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2FileStoreDataProfile
Returns a new instance of GooglePrivacyDlpV2FileStoreDataProfile.
4307 4308 4309 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config_snapshot ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataProfileConfigSnapshot
Snapshot of the configurations used to generate the profile.
Corresponds to the JSON property configSnapshot
4182 4183 4184 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4182 def config_snapshot @config_snapshot end |
#create_time ⇒ String
The time the file store was first created.
Corresponds to the JSON property createTime
4187 4188 4189 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4187 def create_time @create_time end |
#data_risk_level ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel
Score is a summary of all elements in the data profile. A higher number means
more risk.
Corresponds to the JSON property dataRiskLevel
4193 4194 4195 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4193 def data_risk_level @data_risk_level end |
#data_source_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DataSourceType
Message used to identify the type of resource being profiled.
Corresponds to the JSON property dataSourceType
4198 4199 4200 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4198 def data_source_type @data_source_type end |
#data_storage_locations ⇒ Array<String>
For resources that have multiple storage locations, these are those regions.
For Google Cloud Storage this is the list of regions chosen for dual-region
storage. file_store_location will normally be the corresponding multi-region
for the list of individual locations. The first region is always picked as the
processing and storage location for the data profile.
Corresponds to the JSON property dataStorageLocations
4207 4208 4209 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4207 def data_storage_locations @data_storage_locations end |
#file_cluster_summaries ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileClusterSummary>
FileClusterSummary per each cluster.
Corresponds to the JSON property fileClusterSummaries
4212 4213 4214 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4212 def file_cluster_summaries @file_cluster_summaries end |
#file_store_info_type_summaries ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreInfoTypeSummary>
InfoTypes detected in this file store.
Corresponds to the JSON property fileStoreInfoTypeSummaries
4217 4218 4219 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4217 def file_store_info_type_summaries @file_store_info_type_summaries end |
#file_store_is_empty ⇒ Boolean Also known as: file_store_is_empty?
The file store does not have any files.
Corresponds to the JSON property fileStoreIsEmpty
4222 4223 4224 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4222 def file_store_is_empty @file_store_is_empty end |
#file_store_location ⇒ String
The location of the file store. * Google Cloud Storage: https://cloud.google.
com/storage/docs/locations#available-locations
Corresponds to the JSON property fileStoreLocation
4229 4230 4231 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4229 def file_store_location @file_store_location end |
#file_store_path ⇒ String
The file store path. * Google Cloud Storage: gs://bucket`
Corresponds to the JSON propertyfileStorePath`
4234 4235 4236 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4234 def file_store_path @file_store_path end |
#full_resource ⇒ String
The resource name of the resource profiled. https://cloud.google.com/apis/
design/resource_names#full_resource_name
Corresponds to the JSON property fullResource
4240 4241 4242 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4240 def full_resource @full_resource end |
#last_modified_time ⇒ String
The time the file store was last modified.
Corresponds to the JSON property lastModifiedTime
4245 4246 4247 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4245 def last_modified_time @last_modified_time end |
#location_type ⇒ String
The location type of the bucket (region, dual-region, multi-region, etc). If
dual-region, expect data_storage_locations to be populated.
Corresponds to the JSON property locationType
4251 4252 4253 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4251 def location_type @location_type end |
#name ⇒ String
The name of the profile.
Corresponds to the JSON property name
4256 4257 4258 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4256 def name @name end |
#profile_last_generated ⇒ String
The last time the profile was generated.
Corresponds to the JSON property profileLastGenerated
4261 4262 4263 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4261 def profile_last_generated @profile_last_generated end |
#profile_status ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ProfileStatus
Success or errors for the profile generation.
Corresponds to the JSON property profileStatus
4266 4267 4268 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4266 def profile_status @profile_status end |
#project_data_profile ⇒ String
The resource name to the project data profile for this file store.
Corresponds to the JSON property projectDataProfile
4271 4272 4273 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4271 def project_data_profile @project_data_profile end |
#project_id ⇒ String
The Google Cloud project ID that owns the resource.
Corresponds to the JSON property projectId
4276 4277 4278 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4276 def project_id @project_id end |
#resource_attributes ⇒ Hash<String,Google::Apis::DlpV2::GooglePrivacyDlpV2Value>
Attributes of the resource being profiled. Currently used attributes: -
customer_managed_encryption: boolean true: the resource is encrypted with a
customer-managed key. false: the resource is encrypted with a provider-managed
key.
Corresponds to the JSON property resourceAttributes
4284 4285 4286 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4284 def resource_attributes @resource_attributes end |
#resource_labels ⇒ Hash<String,String>
The labels applied to the resource at the time the profile was generated.
Corresponds to the JSON property resourceLabels
4289 4290 4291 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4289 def resource_labels @resource_labels end |
#resource_visibility ⇒ String
How broadly a resource has been shared.
Corresponds to the JSON property resourceVisibility
4294 4295 4296 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4294 def resource_visibility @resource_visibility end |
#sensitivity_score ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore
Score is calculated from of all elements in the data profile. A higher level
means the data is more sensitive.
Corresponds to the JSON property sensitivityScore
4300 4301 4302 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4300 def sensitivity_score @sensitivity_score end |
#state ⇒ String
State of a profile.
Corresponds to the JSON property state
4305 4306 4307 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4305 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 4312 def update!(**args) @config_snapshot = args[:config_snapshot] if args.key?(:config_snapshot) @create_time = args[:create_time] if args.key?(:create_time) @data_risk_level = args[:data_risk_level] if args.key?(:data_risk_level) @data_source_type = args[:data_source_type] if args.key?(:data_source_type) @data_storage_locations = args[:data_storage_locations] if args.key?(:data_storage_locations) @file_cluster_summaries = args[:file_cluster_summaries] if args.key?(:file_cluster_summaries) @file_store_info_type_summaries = args[:file_store_info_type_summaries] if args.key?(:file_store_info_type_summaries) @file_store_is_empty = args[:file_store_is_empty] if args.key?(:file_store_is_empty) @file_store_location = args[:file_store_location] if args.key?(:file_store_location) @file_store_path = args[:file_store_path] if args.key?(:file_store_path) @full_resource = args[:full_resource] if args.key?(:full_resource) @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) @location_type = args[:location_type] if args.key?(:location_type) @name = args[:name] if args.key?(:name) @profile_last_generated = args[:profile_last_generated] if args.key?(:profile_last_generated) @profile_status = args[:profile_status] if args.key?(:profile_status) @project_data_profile = args[:project_data_profile] if args.key?(:project_data_profile) @project_id = args[:project_id] if args.key?(:project_id) @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) @resource_visibility = args[:resource_visibility] if args.key?(:resource_visibility) @sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score) @state = args[:state] if args.key?(:state) end |