class Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicy

An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.

Attributes

expiration_time[RW]

The expiration time of the schedule. The timestamp is an RFC3339 string. Corresponds to the JSON property `expirationTime` @return [String]

start_time[RW]

The start time of the schedule. The timestamp is an RFC3339 string. Corresponds to the JSON property `startTime` @return [String]

time_zone[RW]

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: en. wikipedia.org/wiki/Tz_database. Corresponds to the JSON property `timeZone` @return [String]

vm_start_schedule[RW]

Schedule for an instance operation. Corresponds to the JSON property `vmStartSchedule` @return [Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicySchedule]

vm_stop_schedule[RW]

Schedule for an instance operation. Corresponds to the JSON property `vmStopSchedule` @return [Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicySchedule]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 28763
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 28768
def update!(**args)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @vm_start_schedule = args[:vm_start_schedule] if args.key?(:vm_start_schedule)
  @vm_stop_schedule = args[:vm_stop_schedule] if args.key?(:vm_stop_schedule)
end