Reference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryCloudStorageConditions.
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.
Generated from protobuf messagegoogle.privacy.dlp.v2.DiscoveryCloudStorageConditions
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ included_object_attributes
array
Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
↳ included_bucket_attributes
array
Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
getIncludedObjectAttributes
Required. Only objects with the specified attributes will be scanned. If an
object has one of the specified attributes but is inside an excluded
bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
profile will be created even if no objects match the
included_object_attributes.
Required. Only objects with the specified attributes will be scanned. If an
object has one of the specified attributes but is inside an excluded
bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
profile will be created even if no objects match the
included_object_attributes.
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
getIncludedBucketAttributes
Required. Only objects with the specified attributes will be scanned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class DiscoveryCloudStorageConditions (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DiscoveryCloudStorageConditions)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DiscoveryCloudStorageConditions)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DiscoveryCloudStorageConditions)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DiscoveryCloudStorageConditions)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DiscoveryCloudStorageConditions)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DiscoveryCloudStorageConditions)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DiscoveryCloudStorageConditions)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DiscoveryCloudStorageConditions)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DiscoveryCloudStorageConditions)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DiscoveryCloudStorageConditions)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DiscoveryCloudStorageConditions)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DiscoveryCloudStorageConditions)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DiscoveryCloudStorageConditions)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DiscoveryCloudStorageConditions)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DiscoveryCloudStorageConditions)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DiscoveryCloudStorageConditions)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DiscoveryCloudStorageConditions)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DiscoveryCloudStorageConditions)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DiscoveryCloudStorageConditions) \nReference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryCloudStorageConditions.\n\nRequirements that must be true before a Cloud Storage bucket or object is\nscanned in discovery for the first time. There is an AND relationship between\nthe top-level attributes.\n\nGenerated from protobuf message `google.privacy.dlp.v2.DiscoveryCloudStorageConditions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getIncludedObjectAttributes\n\nRequired. Only objects with the specified attributes will be scanned. If an\nobject has one of the specified attributes but is inside an excluded\nbucket, it will not be scanned. Defaults to \\[ALL_SUPPORTED_OBJECTS\\]. A\nprofile will be created even if no objects match the\nincluded_object_attributes.\n\n### setIncludedObjectAttributes\n\nRequired. Only objects with the specified attributes will be scanned. If an\nobject has one of the specified attributes but is inside an excluded\nbucket, it will not be scanned. Defaults to \\[ALL_SUPPORTED_OBJECTS\\]. A\nprofile will be created even if no objects match the\nincluded_object_attributes.\n\n### getIncludedBucketAttributes\n\nRequired. Only objects with the specified attributes will be scanned.\n\nDefaults to \\[ALL_SUPPORTED_BUCKETS\\] if unset.\n\n### setIncludedBucketAttributes\n\nRequired. Only objects with the specified attributes will be scanned.\n\nDefaults to \\[ALL_SUPPORTED_BUCKETS\\] if unset."]]