# 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/bigtableadmin/property/clusterbackup_encryption_info_encryption_status'
module GoogleInSpec
  module Bigtableadmin
    module Property
      class ClusterBackupEncryptionInfo
        attr_reader :encryption_type

        attr_reader :encryption_status

        attr_reader :kms_key_version

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @encryption_type = args['encryptionType']
          @encryption_status = GoogleInSpec::Bigtableadmin::Property::ClusterBackupEncryptionInfoEncryptionStatus.new(args['encryptionStatus'], to_s)
          @kms_key_version = args['kmsKeyVersion']
        end

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