Method: Harbor2Client::ScannerRegistrationReq#list_invalid_properties

Defined in:
lib/harbor2_client/models/scanner_registration_req.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/harbor2_client/models/scanner_registration_req.rb', line 118

def list_invalid_properties
  invalid_properties = Array.new
  if @name.nil?
    invalid_properties.push('invalid value for "name", name cannot be nil.')
  end

  if @url.nil?
    invalid_properties.push('invalid value for "url", url cannot be nil.')
  end

  invalid_properties
end