Method: PulpcoreClient::PatchedUser#list_invalid_properties

Defined in:
lib/pulpcore_client/models/patched_user.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/pulpcore_client/models/patched_user.rb', line 122

def list_invalid_properties
  invalid_properties = Array.new
  if !@username.nil? && @username.to_s.length > 150
    invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 150.')
  end

  if !@username.nil? && @username.to_s.length < 1
    invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
  end

  if !@password.nil? && @password.to_s.length < 1
    invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
  end

  if !@first_name.nil? && @first_name.to_s.length > 150
    invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 150.')
  end

  if !@last_name.nil? && @last_name.to_s.length > 150
    invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 150.')
  end

  invalid_properties
end