# 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/bigquery/property/table_external_data_configuration_bigtable_options_column_families'
module GoogleInSpec
  module BigQuery
    module Property
      class TableExternalDataConfigurationBigtableOptions
        attr_reader :ignore_unspecified_column_families

        attr_reader :read_rowkey_as_string

        attr_reader :column_families

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @ignore_unspecified_column_families = args['ignoreUnspecifiedColumnFamilies']
          @read_rowkey_as_string = args['readRowkeyAsString']
          @column_families = GoogleInSpec::BigQuery::Property::TableExternalDataConfigurationBigtableOptionsColumnFamiliesArray.parse(args['columnFamilies'], to_s)
        end

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