Class: Google::Apis::OsconfigV1beta::RecurringSchedule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb

Overview

Sets the time for recurring patch deployments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RecurringSchedule

Returns a new instance of RecurringSchedule.



1638
1639
1640
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1638

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_timeString

Optional. The end time at which a recurring patch deployment schedule is no longer active. Corresponds to the JSON property endTime

Returns:

  • (String)


1591
1592
1593
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1591

def end_time
  @end_time
end

#frequencyString

Required. The frequency unit of this recurring schedule. Corresponds to the JSON property frequency

Returns:

  • (String)


1596
1597
1598
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1596

def frequency
  @frequency
end

#last_execute_timeString

Output only. The time the last patch job ran successfully. Corresponds to the JSON property lastExecuteTime

Returns:

  • (String)


1601
1602
1603
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1601

def last_execute_time
  @last_execute_time
end

#monthlyGoogle::Apis::OsconfigV1beta::MonthlySchedule

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



1607
1608
1609
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1607

def monthly
  @monthly
end

#next_execute_timeString

Output only. The time the next patch job is scheduled to run. Corresponds to the JSON property nextExecuteTime

Returns:

  • (String)


1612
1613
1614
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1612

def next_execute_time
  @next_execute_time
end

#start_timeString

Optional. The time that the recurring schedule becomes effective. Defaults to create_time of the patch deployment. Corresponds to the JSON property startTime

Returns:

  • (String)


1618
1619
1620
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1618

def start_time
  @start_time
end

#time_of_dayGoogle::Apis::OsconfigV1beta::TimeOfDay

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



1625
1626
1627
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1625

def time_of_day
  @time_of_day
end

#time_zoneGoogle::Apis::OsconfigV1beta::TimeZone

Represents a time zone from the IANA Time Zone Database. Corresponds to the JSON property timeZone



1631
1632
1633
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1631

def time_zone
  @time_zone
end

#weeklyGoogle::Apis::OsconfigV1beta::WeeklySchedule

Represents a weekly schedule. Corresponds to the JSON property weekly



1636
1637
1638
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1636

def weekly
  @weekly
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1643

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