You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: type.rb
    path of file: ./repos/magic-modules/mmv1/api
    
    the code of the file until where you have to start completion: # Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'api/object'
require 'google/string_utils'
require 'provider/terraform/validation'

module Api
  # Represents a property type
  class Type < Api::NamedObjec
    
    def validate
      super
      check :description, type: ::String, required: true
      check :exclude, type: :boolean, default: false, required: true
      check :deprecation_message, type: ::String
      check :removed_message, type: ::String
      check :min_version, type: ::String
      check :exact_version, type: ::String
      check :output, type: :boolean
      check :required, type: :boolean
      check :send_empty_value, type: :boolean
      check :allow_empty_object, type: :boolean
      check :url_param_only, type: :boolean
      check :read_query_params, type: ::String
      check :immutable, type: :boolean

      raise 'Property cannot be output and required at the same time.' \
        if @output && @required

      check :update_verb, type: Symbol, allowed: %i[POST PUT PATCH NONE],
                          default: @__resource&.update_verb

      check :update_url, type: ::String
      check :update_id, type: ::String
      check :fingerprint_name, type: ::String
      check :pattern, type: ::String

      check_default_value_property
      check_conflicts
      check_at_least_one_of
      check_exactly_one_of
      check_required_with

      check :sensitive, type: :boolean, default: false
      check :is_set, type: :boolean, default: false
      check :default_from_api, type: :boolean, default: false
      check :unordered_list, type: :boolean, default: false
      check :schema_config_mode_attr, type: :boolean, default: false

      # technically set as a default everywhere, but only maps will use this.
      check :key_expander, type: ::String, default: 'tpgresource.ExpandString'
      check :key_diff_suppress_func, type: ::String

      check :diff_suppress_func, type: ::String
      check :state_func, type: ::String
      check :validation, type: Provider::Terraform::Validation
      check :set_hash_func, type: ::String

      check :custom_flatten, type: ::String
      check :custom_expand, type: ::String

      raise "'default_value' and 'default_from_api' cannot be both set" \
        if @default_from_api && !@default_value.nil?
    end