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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eAutoscalingPolicyScalingSchedule\u003c/code\u003e class in the Google Cloud Compute Engine v1 API, within the .NET environment, with the latest version being 3.6.0 and multiple prior versions available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAutoscalingPolicyScalingSchedule\u003c/code\u003e class is used for defining user-defined scaling schedules that can change the minimum number of VM instances recommended by an autoscaler, potentially triggering scaling actions.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering methods and properties to manage scaling behavior.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the class include \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eDisabled\u003c/code\u003e, \u003ccode\u003eDurationSec\u003c/code\u003e, \u003ccode\u003eMinRequiredReplicas\u003c/code\u003e, \u003ccode\u003eSchedule\u003c/code\u003e, and \u003ccode\u003eTimeZone\u003c/code\u003e, allowing users to customize the scaling schedule's operational parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe scaling schedule's properties, such as the number of replicas and the schedule, are required, along with the duration; the schedule is also relative to a chosen timezone.\u003c/p\u003e\n"]]],[],null,["# Compute Engine v1 API - Class AutoscalingPolicyScalingSchedule (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.12.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.11.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.10.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.9.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.8.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.7.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.6.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.5.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.4.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.3.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.2.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.1.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.0.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.17.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.16.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.15.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.14.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.13.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.12.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.11.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.10.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.9.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.8.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.7.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.6.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.5.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.4.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.3.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.2.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.1.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.0.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.4.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.3.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.2.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.1.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.0.0/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule) \n\n public sealed class AutoscalingPolicyScalingSchedule : IMessage\u003cAutoscalingPolicyScalingSchedule\u003e, IEquatable\u003cAutoscalingPolicyScalingSchedule\u003e, IDeepCloneable\u003cAutoscalingPolicyScalingSchedule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Compute Engine v1 API class AutoscalingPolicyScalingSchedule.\n\nScaling 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. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutoscalingPolicyScalingSchedule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoscalingPolicyScalingSchedule](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AutoscalingPolicyScalingSchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoscalingPolicyScalingSchedule](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Compute.V1](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Compute.V1.dll\n\nConstructors\n------------\n\n### AutoscalingPolicyScalingSchedule()\n\n public AutoscalingPolicyScalingSchedule()\n\n### AutoscalingPolicyScalingSchedule(AutoscalingPolicyScalingSchedule)\n\n public AutoscalingPolicyScalingSchedule(AutoscalingPolicyScalingSchedule other)\n\nProperties\n----------\n\n### Description\n\n public string Description { get; set; }\n\nA description of a scaling schedule.\n\n### Disabled\n\n public bool Disabled { get; set; }\n\nA 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.\n\n### DurationSec\n\n public int DurationSec { get; set; }\n\nThe duration of time intervals, in seconds, for which this scaling schedule is to run. The minimum allowed value is 300. This field is required.\n\n### HasDescription\n\n public bool HasDescription { get; }\n\nGets whether the \"description\" field is set\n\n### HasDisabled\n\n public bool HasDisabled { get; }\n\nGets whether the \"disabled\" field is set\n\n### HasDurationSec\n\n public bool HasDurationSec { get; }\n\nGets whether the \"duration_sec\" field is set\n\n### HasMinRequiredReplicas\n\n public bool HasMinRequiredReplicas { get; }\n\nGets whether the \"min_required_replicas\" field is set\n\n### HasSchedule\n\n public bool HasSchedule { get; }\n\nGets whether the \"schedule\" field is set\n\n### HasTimeZone\n\n public bool HasTimeZone { get; }\n\nGets whether the \"time_zone\" field is set\n\n### MinRequiredReplicas\n\n public int MinRequiredReplicas { get; set; }\n\nThe minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required.\n\n### Schedule\n\n public string Schedule { get; set; }\n\nThe 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.\n\n### TimeZone\n\n public string TimeZone { get; set; }\n\nThe time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: \u003chttps://en.wikipedia.org/wiki/Tz_database\u003e. This field is assigned a default value of \"UTC\" if left empty."]]