Class: LMSGraphQL::Mutations::Canvas::UpdateAccount

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/update_account.rb

Instance Method Summary collapse

Instance Method Details

#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_course_template_id: 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_microsoft_sync_enabled: nil, account_settings_microsoft_sync_tenant: nil, account_settings_microsoft_sync_login_attribute: nil, account_settings_microsoft_sync_login_attribute_suffix: nil, account_settings_microsoft_sync_remote_attribute: 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_usage_rights_required_value: nil, account_settings_usage_rights_required_locked: nil, account_settings_restrict_student_future_listing_value: nil, account_settings_restrict_student_future_listing_locked: nil, account_settings_lock_outcome_proficiency_value: nil, account_lock_outcome_proficiency_locked: nil, account_settings_lock_proficiency_calculation_value: nil, account_lock_proficiency_calculation_locked: nil, account_services: nil) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/lms_graphql/mutations/canvas/update_account.rb', line 39

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_course_template_id: 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_microsoft_sync_enabled: nil, account_settings_microsoft_sync_tenant: nil, account_settings_microsoft_sync_login_attribute: nil, account_settings_microsoft_sync_login_attribute_suffix: nil, account_settings_microsoft_sync_remote_attribute: 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_usage_rights_required_value: nil, account_settings_usage_rights_required_locked: nil, account_settings_restrict_student_future_listing_value: nil, account_settings_restrict_student_future_listing_locked: nil, account_settings_lock_outcome_proficiency_value: nil, account_lock_outcome_proficiency_locked: nil, account_settings_lock_proficiency_calculation_value: nil, account_lock_proficiency_calculation_locked: nil, account_services: nil)
  context[:canvas_api].call("UPDATE_ACCOUNT").proxy(
    "UPDATE_ACCOUNT",
    {
      "id": id
    },
    {
      "account[name]": ,
      "account[sis_account_id]": ,
      "account[default_time_zone]": ,
      "account[default_storage_quota_mb]": ,
      "account[default_user_storage_quota_mb]": ,
      "account[default_group_storage_quota_mb]": ,
      "account[course_template_id]": ,
      "account[settings][restrict_student_past_view][value]": ,
      "account[settings][restrict_student_past_view][locked]": ,
      "account[settings][restrict_student_future_view][value]": ,
      "account[settings][microsoft_sync_enabled]": ,
      "account[settings][microsoft_sync_tenant]": ,
      "account[settings][microsoft_sync_login_attribute]": ,
      "account[settings][microsoft_sync_login_attribute_suffix]": ,
      "account[settings][microsoft_sync_remote_attribute]": ,
      "account[settings][restrict_student_future_view][locked]": ,
      "account[settings][lock_all_announcements][value]": ,
      "account[settings][lock_all_announcements][locked]": ,
      "account[settings][usage_rights_required][value]": ,
      "account[settings][usage_rights_required][locked]": ,
      "account[settings][restrict_student_future_listing][value]": ,
      "account[settings][restrict_student_future_listing][locked]": ,
      "account[settings][lock_outcome_proficiency][value]": ,
      "account[lock_outcome_proficiency][locked]": ,
      "account[settings][lock_proficiency_calculation][value]": ,
      "account[lock_proficiency_calculation][locked]": ,
      "account[services]": 
    },
  ).parsed_response
end