class Google::Apis::OsconfigV1beta::RecurringSchedule

Sets the time for recurring patch deployments.

Attributes

end_time[RW]

Optional. The end time at which a recurring patch deployment schedule is no longer active. Corresponds to the JSON property `endTime` @return [String]

frequency[RW]

Required. The frequency unit of this recurring schedule. Corresponds to the JSON property `frequency` @return [String]

last_execute_time[RW]

Output only. The time the last patch job ran successfully. Corresponds to the JSON property `lastExecuteTime` @return [String]

monthly[RW]

Represents a monthly schedule. An example of a valid monthly schedule is “on the third Tuesday of the month” or “on the 15th of the month”. Corresponds to the JSON property `monthly` @return [Google::Apis::OsconfigV1beta::MonthlySchedule]

next_execute_time[RW]

Output only. The time the next patch job is scheduled to run. Corresponds to the JSON property `nextExecuteTime` @return [String]

start_time[RW]

Optional. The time that the recurring schedule becomes effective. Defaults to ` create_time` of the patch deployment. Corresponds to the JSON property `startTime` @return [String]

time_of_day[RW]

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. Corresponds to the JSON property `timeOfDay` @return [Google::Apis::OsconfigV1beta::TimeOfDay]

time_zone[RW]

Represents a time zone from the [IANA Time Zone Database](www.iana.org/ time-zones). Corresponds to the JSON property `timeZone` @return [Google::Apis::OsconfigV1beta::TimeZone]

weekly[RW]

Represents a weekly schedule. Corresponds to the JSON property `weekly` @return [Google::Apis::OsconfigV1beta::WeeklySchedule]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 1597
def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @frequency = args[:frequency] if args.key?(:frequency)
  @last_execute_time = args[:last_execute_time] if args.key?(:last_execute_time)
  @monthly = args[:monthly] if args.key?(:monthly)
  @next_execute_time = args[:next_execute_time] if args.key?(:next_execute_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @time_of_day = args[:time_of_day] if args.key?(:time_of_day)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @weekly = args[:weekly] if args.key?(:weekly)
end