# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    Type: MMv1     ***
#
# ----------------------------------------------------------------------------
#
#     This file is automatically generated by Magic Modules and manual
#     changes will be clobbered when the file is regenerated.
#
#     Please read more about how to change this file in README.md and
#     CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_schedule_daily_schedule'
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_schedule_hourly_schedule'
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_schedule_weekly_schedule'
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_schedule_weekly_schedule_day_of_weeks'
module GoogleInSpec
  module Compute
    module Property
      class ResourcePolicySnapshotSchedulePolicySchedule
        attr_reader :hourly_schedule

        attr_reader :daily_schedule

        attr_reader :weekly_schedule

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @hourly_schedule = GoogleInSpec::Compute::Property::ResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule.new(args['hourlySchedule'], to_s)
          @daily_schedule = GoogleInSpec::Compute::Property::ResourcePolicySnapshotSchedulePolicyScheduleDailySchedule.new(args['dailySchedule'], to_s)
          @weekly_schedule = GoogleInSpec::Compute::Property::ResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule.new(args['weeklySchedule'], to_s)
        end

        def to_s
          "#{@parent_identifier} ResourcePolicySnapshotSchedulePolicySchedule"
        end
      end
    end
  end
end
