# Compute Engine v1 API - Class AutoscalingPolicyScalingSchedule (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Compute Engine v1 API class AutoscalingPolicyScalingSchedule.

Scaling based on user-defined schedule. The message describes a single
scaling schedule. A scaling schedule changes the minimum number of VM
instances an autoscaler can recommend, which can trigger scaling out.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoscalingPolicyScalingSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoscalingPolicyScalingSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutoscalingPolicyScalingSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule), [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.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Constructors

### AutoscalingPolicyScalingSchedule()

    public AutoscalingPolicyScalingSchedule()

### AutoscalingPolicyScalingSchedule(AutoscalingPolicyScalingSchedule)

    public AutoscalingPolicyScalingSchedule(AutoscalingPolicyScalingSchedule other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule` |

## Properties

### Description

    public string Description { get; set; }

A description of a scaling schedule.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Disabled

    public bool Disabled { get; set; }

A boolean value that specifies whether a scaling schedule can influence
autoscaler recommendations. If set to true, then a scaling schedule has
no effect. This field is optional, and its value is false by default.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### DurationSec

    public int DurationSec { get; set; }

The duration of time intervals, in seconds, for which this
scaling schedule is to run. The minimum allowed value is 300.
This field is required.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### HasDescription

    public bool HasDescription { get; }

Gets whether the "description" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasDisabled

    public bool HasDisabled { get; }

Gets whether the "disabled" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasDurationSec

    public bool HasDurationSec { get; }

Gets whether the "duration_sec" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasMinRequiredReplicas

    public bool HasMinRequiredReplicas { get; }

Gets whether the "min_required_replicas" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasSchedule

    public bool HasSchedule { get; }

Gets whether the "schedule" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasTimeZone

    public bool HasTimeZone { get; }

Gets whether the "time_zone" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MinRequiredReplicas

    public int MinRequiredReplicas { get; set; }

The minimum number of VM instances that the autoscaler will
recommend in time intervals starting according to schedule. This field is
required.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### Schedule

    public string Schedule { get; set; }

The start timestamps of time intervals when this scaling
schedule is to provide a scaling signal. This field uses the extended
cron format (with an optional year field). The expression can describe a
single timestamp if the optional year is set, in which case the scaling
schedule runs once. The schedule is interpreted with respect to
time_zone. This field is required. Note: These timestamps only describe
when autoscaler starts providing the scaling signal. The VMs
need additional time to become serving.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### TimeZone

    public string TimeZone { get; set; }

The time zone to use when interpreting the schedule.
The value of this field must be a time zone name from the tz database:
<https://en.wikipedia.org/wiki/Tz_database>. This field is assigned a
default value of "UTC" if left empty.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |