Method: PureCloud::EdgeLogsJobFile#valid?

Defined in:
lib/purecloudplatformclientv2/models/edge_logs_job_file.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



207
208
209
210
211
212
213
214
215
216
217
218
219
220
# File 'lib/purecloudplatformclientv2/models/edge_logs_job_file.rb', line 207

def valid?
  if @name.nil?
    return false
  end

  allowed_values = ["active", "inactive", "deleted"]
  if @state && !allowed_values.include?(@state)
    return false
  end
  allowed_values = ["UPLOADING", "NOT_UPLOADED", "UPLOADED", "ERROR_ON_UPLOAD"]
  if @upload_status && !allowed_values.include?(@upload_status)
    return false
  end
end