Reference documentation and code samples for the Data Loss Prevention V2 Client class FileStoreDataProfile.
The profile for a file store.
- Cloud Storage: maps 1:1 with a bucket.
- Amazon S3: maps 1:1 with a bucket.
Generated from protobuf message google.privacy.dlp.v2.FileStoreDataProfile
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the profile.
↳ data_source_type
↳ project_data_profile
string
The resource name of the project data profile for this file store.
↳ project_id
string
The Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id.
↳ file_store_location
string
The location of the file store. * * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations * * Amazon S3: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
↳ data_storage_locations
array
For resources that have multiple storage locations, these are those regions. For 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.
↳ location_type
string
The location type of the file store (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated.
↳ file_store_path
string
The file store path. * * Cloud Storage: gs://{bucket}
* * Amazon S3: s3://{bucket}
* * Vertex AI dataset: projects/{project_number}/locations/{location}/datasets/{dataset_id}
↳ full_resource
string
The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name
Example format of an S3 bucket full resource name: //cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}
↳ config_snapshot
↳ profile_status
ProfileStatus
Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated.
↳ state
int
State of a profile.
↳ profile_last_generated
↳ resource_visibility
int
How broadly a resource has been shared.
↳ sensitivity_score
↳ data_risk_level
↳ create_time
↳ last_modified_time
↳ file_cluster_summaries
↳ resource_attributes
array| Google\Protobuf\Internal\MapField
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.
↳ resource_labels
array| Google\Protobuf\Internal\MapField
The labels applied to the resource at the time the profile was generated.
↳ file_store_info_type_summaries
↳ sample_findings_table
↳ file_store_is_empty
bool
The file store does not have any files. If the profiling operation failed, this is false.
↳ tags
↳ related_resources
getName
The name of the profile.
string
setName
The name of the profile.
var
string
$this
getDataSourceType
The resource type that was profiled.
hasDataSourceType
clearDataSourceType
setDataSourceType
The resource type that was profiled.
$this
getProjectDataProfile
The resource name of the project data profile for this file store.
string
setProjectDataProfile
The resource name of the project data profile for this file store.
var
string
$this
getProjectId
The Google Cloud project ID that owns the resource.
For Amazon S3 buckets, this is the AWS Account Id.
string
setProjectId
The Google Cloud project ID that owns the resource.
For Amazon S3 buckets, this is the AWS Account Id.
var
string
$this
getFileStoreLocation
The location of the file store.
string
setFileStoreLocation
The location of the file store.
var
string
$this
getDataStorageLocations
For resources that have multiple storage locations, these are those
regions. For 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.
setDataStorageLocations
For resources that have multiple storage locations, these are those
regions. For 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.
var
string[]
$this
getLocationType
The location type of the file store (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated.
string
setLocationType
The location type of the file store (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated.
var
string
$this
getFileStorePath
The file store path.
- Cloud Storage:
gs://{bucket}
- Amazon S3:
s3://{bucket}
- Vertex AI dataset:
projects/{project_number}/locations/{location}/datasets/{dataset_id}
string
setFileStorePath
The file store path.
- Cloud Storage:
gs://{bucket}
- Amazon S3:
s3://{bucket}
- Vertex AI dataset:
projects/{project_number}/locations/{location}/datasets/{dataset_id}
var
string
$this
getFullResource
The resource name of the resource profiled.
https://cloud.google.com/apis/design/resource_names#full_resource_name
Example format of an S3 bucket full resource name: //cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}
string
setFullResource
The resource name of the resource profiled.
https://cloud.google.com/apis/design/resource_names#full_resource_name
Example format of an S3 bucket full resource name: //cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}
var
string
$this
getConfigSnapshot
The snapshot of the configurations used to generate the profile.
hasConfigSnapshot
clearConfigSnapshot
setConfigSnapshot
The snapshot of the configurations used to generate the profile.
$this
getProfileStatus
Success or error status from the most recent profile generation attempt.
May be empty if the profile is still being generated.
hasProfileStatus
clearProfileStatus
setProfileStatus
Success or error status from the most recent profile generation attempt.
May be empty if the profile is still being generated.
$this
getState
State of a profile.
int
setState
State of a profile.
var
int
$this
getProfileLastGenerated
The last time the profile was generated.
hasProfileLastGenerated
clearProfileLastGenerated
setProfileLastGenerated
The last time the profile was generated.
$this
getResourceVisibility
How broadly a resource has been shared.
int
setResourceVisibility
How broadly a resource has been shared.
var
int
$this
getSensitivityScore
The sensitivity score of this resource.
hasSensitivityScore
clearSensitivityScore
setSensitivityScore
The sensitivity score of this resource.
$this
getDataRiskLevel
The data risk level of this resource.
hasDataRiskLevel
clearDataRiskLevel
setDataRiskLevel
The data risk level of this resource.
$this
getCreateTime
The time the file store was first created.
hasCreateTime
clearCreateTime
setCreateTime
The time the file store was first created.
$this
getLastModifiedTime
The time the file store was last modified.
hasLastModifiedTime
clearLastModifiedTime
setLastModifiedTime
The time the file store was last modified.
$this
getFileClusterSummaries
FileClusterSummary per each cluster.
setFileClusterSummaries
FileClusterSummary per each cluster.
$this
getResourceAttributes
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.
setResourceAttributes
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.
$this
getResourceLabels
The labels applied to the resource at the time the profile was generated.
setResourceLabels
The labels applied to the resource at the time the profile was generated.
$this
getFileStoreInfoTypeSummaries
InfoTypes detected in this file store.
setFileStoreInfoTypeSummaries
InfoTypes detected in this file store.
$this
getSampleFindingsTable
The BigQuery table to which the sample findings are written.
hasSampleFindingsTable
clearSampleFindingsTable
setSampleFindingsTable
The BigQuery table to which the sample findings are written.
$this
getFileStoreIsEmpty
The file store does not have any files. If the profiling operation failed, this is false.
bool
setFileStoreIsEmpty
The file store does not have any files. If the profiling operation failed, this is false.
var
bool
$this
getTags
The tags attached to the resource, including any tags attached during profiling.
setTags
The tags attached to the resource, including any tags attached during profiling.
$this
getRelatedResources
Resources related to this profile.
setRelatedResources
Resources related to this profile.
$this