1.0.0-alpha36 (latest) 1.0.0-alpha35

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

Reference documentation and code samples for the Batch v1alpha API class LogsPolicy.

LogsPolicy describes if and how a job's logs are preserved. Logs include
information that is automatically written by the Batch service agent and any
information that you configured the job's runnables to write to the `stdout`
or `stderr` streams.

## Inheritance

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

## Implements

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

## 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.Batch.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.md.txt)

## Assembly

Google.Cloud.Batch.V1Alpha.dll

## Constructors

### LogsPolicy()

    public LogsPolicy()

### LogsPolicy(LogsPolicy)

    public LogsPolicy(LogsPolicy other)

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

## Properties

### CloudLoggingOption

    public LogsPolicy.Types.CloudLoggingOption CloudLoggingOption { get; set; }

Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
set this field to configure additional settings for Cloud Logging.

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

### Destination

    public LogsPolicy.Types.Destination Destination { get; set; }

If and where logs should be saved.

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

### LogsPath

    public string LogsPath { get; set; }

When `destination` is set to `PATH`, you must set this field to the path
where you want logs to be saved. This path can point to a local directory
on the VM or (if congifured) a directory under the mount path of any
Cloud Storage bucket, network file system (NFS), or writable persistent
disk that is mounted to the job. For example, if the job has a bucket with
`mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
root directory of the `remotePath` of that bucket by setting this field to
`/mnt/disks/my-bucket/`.

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