Method: PulpOstreeClient::PatchedostreeOstreeRepository#valid?

Defined in:
lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • true if the model is valid



139
140
141
142
143
144
145
# File 'lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb', line 139

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if !@name.nil? && @name.to_s.length < 1
  return false if !@description.nil? && @description.to_s.length < 1
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
  true
end