24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/lms_graphql/mutations/canvas/update_account.rb', line 24
def resolve(id:, account_name: nil, account_sis_account_id: nil, account_default_time_zone: nil, account_default_storage_quota_mb: nil, account_default_user_storage_quota_mb: nil, account_default_group_storage_quota_mb: nil, account_settings_restrict_student_past_view_value: nil, account_settings_restrict_student_past_view_locked: nil, account_settings_restrict_student_future_view_value: nil, account_settings_restrict_student_future_view_locked: nil, account_settings_lock_all_announcements_value: nil, account_settings_lock_all_announcements_locked: nil, account_settings_restrict_student_future_listing_value: nil, account_settings_restrict_student_future_listing_locked: nil, account_services: nil)
ctx[:canvas_api].proxy(
"UPDATE_ACCOUNT",
{
"id": id,
"account[name]": account_name,
"account[sis_account_id]": account_sis_account_id,
"account[default_time_zone]": account_default_time_zone,
"account[default_storage_quota_mb]": account_default_storage_quota_mb,
"account[default_user_storage_quota_mb]": account_default_user_storage_quota_mb,
"account[default_group_storage_quota_mb]": account_default_group_storage_quota_mb,
"account[settings][restrict_student_past_view][value]": account_settings_restrict_student_past_view_value,
"account[settings][restrict_student_past_view][locked]": account_settings_restrict_student_past_view_locked,
"account[settings][restrict_student_future_view][value]": account_settings_restrict_student_future_view_value,
"account[settings][restrict_student_future_view][locked]": account_settings_restrict_student_future_view_locked,
"account[settings][lock_all_announcements][value]": account_settings_lock_all_announcements_value,
"account[settings][lock_all_announcements][locked]": account_settings_lock_all_announcements_locked,
"account[settings][restrict_student_future_listing][value]": account_settings_restrict_student_future_listing_value,
"account[settings][restrict_student_future_listing][locked]": account_settings_restrict_student_future_listing_locked,
"account[services]": account_services },
nil,
).parsed_response
end
|