# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    AUTO GENERATED CODE     ***
#
# ----------------------------------------------------------------------------
#
#     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/dns/property/managedzone_dnssec_config_default_key_specs'
module GoogleInSpec
  module DNS
    module Property
      class ManagedZoneDnssecConfig
        attr_reader :kind

        attr_reader :non_existence

        attr_reader :state

        attr_reader :default_key_specs

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @kind = args['kind']
          @non_existence = args['nonExistence']
          @state = args['state']
          @default_key_specs = GoogleInSpec::DNS::Property::ManagedZoneDnssecConfigDefaultKeySpecsArray.parse(args['defaultKeySpecs'], to_s)
        end

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