Class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicySchedule

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

A schedule for disks where the schedueled operations are performed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourcePolicySnapshotSchedulePolicySchedule

Returns a new instance of ResourcePolicySnapshotSchedulePolicySchedule



23038
23039
23040
# File 'generated/google/apis/compute_alpha/classes.rb', line 23038

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

Instance Attribute Details

#daily_scheduleGoogle::Apis::ComputeAlpha::ResourcePolicyDailyCycle

Time window specified for daily operations. Corresponds to the JSON property dailySchedule



23026
23027
23028
# File 'generated/google/apis/compute_alpha/classes.rb', line 23026

def daily_schedule
  @daily_schedule
end

#hourly_scheduleGoogle::Apis::ComputeAlpha::ResourcePolicyHourlyCycle

Time window specified for hourly operations. Corresponds to the JSON property hourlySchedule



23031
23032
23033
# File 'generated/google/apis/compute_alpha/classes.rb', line 23031

def hourly_schedule
  @hourly_schedule
end

#weekly_scheduleGoogle::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle

Time window specified for weekly operations. Corresponds to the JSON property weeklySchedule



23036
23037
23038
# File 'generated/google/apis/compute_alpha/classes.rb', line 23036

def weekly_schedule
  @weekly_schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23043
23044
23045
23046
23047
# File 'generated/google/apis/compute_alpha/classes.rb', line 23043

def update!(**args)
  @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule)
  @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule)
  @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule)
end