class Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicy
An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.
Attributes
The expiration time of the schedule. The timestamp is an RFC3339 string. Corresponds to the JSON property `expirationTime` @return [String]
The start time of the schedule. The timestamp is an RFC3339 string. Corresponds to the JSON property `startTime` @return [String]
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]
Schedule for an instance operation. Corresponds to the JSON property `vmStartSchedule` @return [Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicySchedule]
Schedule for an instance operation. Corresponds to the JSON property `vmStopSchedule` @return [Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicySchedule]
Public Class Methods
# File lib/google/apis/compute_v1/classes.rb, line 28763 def initialize(**args) update!(**args) end
Public Instance Methods
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