Method: Kickflow::RoleUpdateBodyPermissionListInner#list_invalid_properties

Defined in:
lib/kickflow/models/role_update_body_permission_list_inner.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/kickflow/models/role_update_body_permission_list_inner.rb', line 142

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @permission.nil?
    invalid_properties.push('invalid value for "permission", permission cannot be nil.')
  end

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

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

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

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

  invalid_properties
end