# 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/orgpolicy/property/policy_dry_run_spec_rules'
module GoogleInSpec
  module Orgpolicy
    module Property
      class PolicyDryRunSpec
        attr_reader :update_time

        attr_reader :rules

        attr_reader :etag

        attr_reader :reset

        attr_reader :inherit_from_parent

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @update_time = args['updateTime']
          @rules = GoogleInSpec::Orgpolicy::Property::PolicyDryRunSpecRulesArray.parse(args['rules'], to_s)
          @etag = args['etag']
          @reset = args['reset']
          @inherit_from_parent = args['inheritFromParent']
        end

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