# 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_instance_schedule_policy_vm_start_schedule'
require 'google/compute/property/resourcepolicy_instance_schedule_policy_vm_stop_schedule'
module GoogleInSpec
  module Compute
    module Property
      class ResourcePolicyInstanceSchedulePolicy
        attr_reader :vm_start_schedule

        attr_reader :vm_stop_schedule

        attr_reader :time_zone

        attr_reader :start_time

        attr_reader :expiration_time

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @vm_start_schedule = GoogleInSpec::Compute::Property::ResourcePolicyInstanceSchedulePolicyVmStartSchedule.new(args['vmStartSchedule'], to_s)
          @vm_stop_schedule = GoogleInSpec::Compute::Property::ResourcePolicyInstanceSchedulePolicyVmStopSchedule.new(args['vmStopSchedule'], to_s)
          @time_zone = args['timeZone']
          @start_time = args['startTime']
          @expiration_time = args['expirationTime']
        end

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