# 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_retention_policy'
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_schedule'
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'
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_snapshot_properties'
require 'google/compute/property/resourcepolicy_snapshot_schedule_policy_snapshot_properties_labels'
module GoogleInSpec
  module Compute
    module Property
      class ResourcePolicySnapshotSchedulePolicy
        attr_reader :schedule

        attr_reader :retention_policy

        attr_reader :snapshot_properties

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @schedule = GoogleInSpec::Compute::Property::ResourcePolicySnapshotSchedulePolicySchedule.new(args['schedule'], to_s)
          @retention_policy = GoogleInSpec::Compute::Property::ResourcePolicySnapshotSchedulePolicyRetentionPolicy.new(args['retentionPolicy'], to_s)
          @snapshot_properties = GoogleInSpec::Compute::Property::ResourcePolicySnapshotSchedulePolicySnapshotProperties.new(args['snapshotProperties'], to_s)
        end

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