api/resource.rb
# Main data validation. As the validation code is simple, but long due to
# the number of properties, it is okay to ignore Rubocop warnings about
# method size and complexity.
#
# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/MethodLength
Main data validation. As the validation code is simple, but long due to
the number of properties, it is okay to ignore Rubocop warnings about
method size and complexity.


Main data validation . As the validation code is simple but long due to the number of properties it is okay to ignore Rubocop warnings about method size and complexity .
def validate
      super
      check_optional_property :async, Api::Async
      check_optional_property :base_url, String
      check_property :description, String
      check_optional_property :exclude, :boolean
      check_optional_property :kind, String
      check_optional_property :parameters, Array
      check_optional_property :exports, Array
      check_optional_property :self_link, String
      check_optional_property :self_link_query, Api::Resource::ResponseList
      check_optional_property :virtual, :boolean
      check_optional_property :readonly, :boolean
      check_optional_property :label_override, String
      check_optional_property :transport, Transport
      check_optional_property :references, ReferenceLinks
      check_property :properties, Array unless @exclude
      check_property_oneof_default :create_verb, %i[POST PUT], :POST, Symbol
      check_property_oneof_default \
        :update_verb, %i[POST PUT PATCH], :PUT, Symbol
      check_optional_property :input, :boolean
      check_optional_property :input, :boolean
      set_variables(@parameters, :__resource)
      set_variables(@properties, :__resource)
      check_property_list :parameters, Api::Type
      check_property_list :properties, Api::Type
      check_identity unless @identity.nil?
    end
def validate super check_optional_property :async , Api :: Async check_optional_property :base_url , String check_property :description , String check_optional_property :exclude , :boolean check_optional_property :kind , String check_optional_property :parameters , Array check_optional_property :exports , Array check_optional_property :self_link , String check_optional_property :self_link_query , Api :: Resource :: ResponseList check_optional_property :virtual , :boolean check_optional_property :readonly , :boolean check_optional_property :label_override , String check_optional_property :transport , Transport check_optional_property :references , ReferenceLinks check_property :properties , Array unless @exclude check_property_oneof_default :create_verb , %i[ POST PUT ] , :POST , Symbol check_property_oneof_default :update_verb , %i[ POST PUT PATCH ] , :PUT , Symbol check_optional_property :input , :boolean check_optional_property :input , :boolean set_variables ( @parameters , :__resource ) set_variables ( @properties , :__resource ) check_property_list :parameters , Api :: Type check_property_list :properties , Api :: Type check_identity unless @identity . nil? end
Main data validation.
Main data validation .