# Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule (v3.7.0)

3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.22.0 2.21.1 2.20.0 2.19.1 2.18.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.2 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.5.0 Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::String

**Returns**

- (::String) --- A description of a scaling schedule.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A description of a scaling schedule.
**Returns**

- (::String) --- A description of a scaling schedule.

### #disabled

    def disabled() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #disabled=

    def disabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #duration_sec

    def duration_sec() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #duration_sec=

    def duration_sec=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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.
**Returns**

- (::Integer) --- 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.

### #min_required_replicas

    def min_required_replicas() -> ::Integer

**Returns**

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

### #min_required_replicas=

    def min_required_replicas=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required.
**Returns**

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

### #schedule

    def schedule() -> ::String

**Returns**

- (::String) --- 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.

### #schedule=

    def schedule=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #time_zone

    def time_zone() -> ::String

**Returns**

- (::String) --- 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.

### #time_zone=

    def time_zone=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.