4.27.0 (latest) 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.5.0 3.4.0 3.3.0 3.2.0 2.16.0 2.15.0

    public sealed class DiscoveryCloudStorageConditions : IMessage<DiscoveryCloudStorageConditions>, IEquatable<DiscoveryCloudStorageConditions>, IDeepCloneable<DiscoveryCloudStorageConditions>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DiscoveryCloudStorageConditions

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DiscoveryCloudStorageConditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.DiscoveryCloudStorageConditions.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DiscoveryCloudStorageConditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.DiscoveryCloudStorageConditions.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DiscoveryCloudStorageConditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.DiscoveryCloudStorageConditions.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dlp.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.md.txt)

## Assembly

Google.Cloud.Dlp.V2.dll

## Constructors

### DiscoveryCloudStorageConditions()

    public DiscoveryCloudStorageConditions()

### DiscoveryCloudStorageConditions(DiscoveryCloudStorageConditions)

    public DiscoveryCloudStorageConditions(DiscoveryCloudStorageConditions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DiscoveryCloudStorageConditions` |

## Properties

### IncludedBucketAttributes

    public RepeatedField<DiscoveryCloudStorageConditions.Types.CloudStorageBucketAttribute> IncludedBucketAttributes { get; }

Required. Only objects with the specified attributes will be scanned.
Defaults to \[ALL_SUPPORTED_BUCKETS\] if unset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldDiscoveryCloudStorageConditionsTypesCloudStorageBucketAttribute` |   |

### IncludedObjectAttributes

    public RepeatedField<DiscoveryCloudStorageConditions.Types.CloudStorageObjectAttribute> IncludedObjectAttributes { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldDiscoveryCloudStorageConditionsTypesCloudStorageObjectAttribute` |   |