Class: MicrosoftGraph::Users::Item::UserItemRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Users::Item::UserItemRequestBuilder
- Defined in:
- lib/users/item/user_item_request_builder.rb
Overview
Provides operations to manage the collection of user entities.
Defined Under Namespace
Classes: UserItemRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#activities ⇒ Object
Provides operations to manage the activities property of the microsoft.graph.user entity.
-
#agreement_acceptances ⇒ Object
Provides operations to manage the agreementAcceptances property of the microsoft.graph.user entity.
-
#app_role_assignments ⇒ Object
Provides operations to manage the appRoleAssignments property of the microsoft.graph.user entity.
-
#assign_license ⇒ Object
Provides operations to call the assignLicense method.
-
#authentication ⇒ Object
Provides operations to manage the authentication property of the microsoft.graph.user entity.
-
#calendar ⇒ Object
Provides operations to manage the calendar property of the microsoft.graph.user entity.
-
#calendar_groups ⇒ Object
Provides operations to manage the calendarGroups property of the microsoft.graph.user entity.
-
#calendar_view ⇒ Object
Provides operations to manage the calendarView property of the microsoft.graph.user entity.
-
#calendars ⇒ Object
Provides operations to manage the calendars property of the microsoft.graph.user entity.
-
#change_password ⇒ Object
Provides operations to call the changePassword method.
-
#chats ⇒ Object
Provides operations to manage the chats property of the microsoft.graph.user entity.
-
#check_member_groups ⇒ Object
Provides operations to call the checkMemberGroups method.
-
#check_member_objects ⇒ Object
Provides operations to call the checkMemberObjects method.
-
#contact_folders ⇒ Object
Provides operations to manage the contactFolders property of the microsoft.graph.user entity.
-
#contacts ⇒ Object
Provides operations to manage the contacts property of the microsoft.graph.user entity.
-
#created_objects ⇒ Object
Provides operations to manage the createdObjects property of the microsoft.graph.user entity.
-
#delete(request_configuration = nil) ⇒ Object
Delete user.
-
#device_management_troubleshooting_events ⇒ Object
Provides operations to manage the deviceManagementTroubleshootingEvents property of the microsoft.graph.user entity.
-
#direct_reports ⇒ Object
Provides operations to manage the directReports property of the microsoft.graph.user entity.
-
#drive ⇒ Object
Provides operations to manage the drive property of the microsoft.graph.user entity.
-
#drives ⇒ Object
Provides operations to manage the drives property of the microsoft.graph.user entity.
-
#employee_experience ⇒ Object
Provides operations to manage the employeeExperience property of the microsoft.graph.user entity.
-
#events ⇒ Object
Provides operations to manage the events property of the microsoft.graph.user entity.
-
#export_device_and_app_management_data ⇒ Object
Provides operations to call the exportDeviceAndAppManagementData method.
-
#export_device_and_app_management_data_with_skip_with_top(skip, top) ⇒ Object
Provides operations to call the exportDeviceAndAppManagementData method.
-
#export_personal_data ⇒ Object
Provides operations to call the exportPersonalData method.
-
#extensions ⇒ Object
Provides operations to manage the extensions property of the microsoft.graph.user entity.
-
#find_meeting_times ⇒ Object
Provides operations to call the findMeetingTimes method.
-
#followed_sites ⇒ Object
Provides operations to manage the followedSites property of the microsoft.graph.user entity.
-
#get(request_configuration = nil) ⇒ Object
Read properties and relationships of the user object.
-
#get_mail_tips ⇒ Object
Provides operations to call the getMailTips method.
-
#get_managed_app_diagnostic_statuses ⇒ Object
Provides operations to call the getManagedAppDiagnosticStatuses method.
-
#get_managed_app_policies ⇒ Object
Provides operations to call the getManagedAppPolicies method.
-
#get_managed_devices_with_app_failures ⇒ Object
Provides operations to call the getManagedDevicesWithAppFailures method.
-
#get_member_groups ⇒ Object
Provides operations to call the getMemberGroups method.
-
#get_member_objects ⇒ Object
Provides operations to call the getMemberObjects method.
-
#inference_classification ⇒ Object
Provides operations to manage the inferenceClassification property of the microsoft.graph.user entity.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new UserItemRequestBuilder and sets the default values.
-
#insights ⇒ Object
Provides operations to manage the insights property of the microsoft.graph.user entity.
-
#joined_teams ⇒ Object
Provides operations to manage the joinedTeams property of the microsoft.graph.user entity.
-
#license_details ⇒ Object
Provides operations to manage the licenseDetails property of the microsoft.graph.user entity.
-
#mail_folders ⇒ Object
Provides operations to manage the mailFolders property of the microsoft.graph.user entity.
-
#mailbox_settings ⇒ Object
The mailboxSettings property.
-
#managed_app_registrations ⇒ Object
Provides operations to manage the managedAppRegistrations property of the microsoft.graph.user entity.
-
#managed_devices ⇒ Object
Provides operations to manage the managedDevices property of the microsoft.graph.user entity.
-
#manager ⇒ Object
Provides operations to manage the manager property of the microsoft.graph.user entity.
-
#member_of ⇒ Object
Provides operations to manage the memberOf property of the microsoft.graph.user entity.
-
#messages ⇒ Object
Provides operations to manage the messages property of the microsoft.graph.user entity.
-
#oauth2_permission_grants ⇒ Object
Provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.user entity.
-
#onenote ⇒ Object
Provides operations to manage the onenote property of the microsoft.graph.user entity.
-
#online_meetings ⇒ Object
Provides operations to manage the onlineMeetings property of the microsoft.graph.user entity.
-
#outlook ⇒ Object
Provides operations to manage the outlook property of the microsoft.graph.user entity.
-
#owned_devices ⇒ Object
Provides operations to manage the ownedDevices property of the microsoft.graph.user entity.
-
#owned_objects ⇒ Object
Provides operations to manage the ownedObjects property of the microsoft.graph.user entity.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a user object.
-
#people ⇒ Object
Provides operations to manage the people property of the microsoft.graph.user entity.
-
#photo ⇒ Object
Provides operations to manage the photo property of the microsoft.graph.user entity.
-
#photos ⇒ Object
Provides operations to manage the photos property of the microsoft.graph.user entity.
-
#planner ⇒ Object
Provides operations to manage the planner property of the microsoft.graph.user entity.
-
#presence ⇒ Object
Provides operations to manage the presence property of the microsoft.graph.user entity.
-
#registered_devices ⇒ Object
Provides operations to manage the registeredDevices property of the microsoft.graph.user entity.
-
#reminder_view_with_start_date_time_with_end_date_time(end_date_time, start_date_time) ⇒ Object
Provides operations to call the reminderView method.
-
#remove_all_devices_from_management ⇒ Object
Provides operations to call the removeAllDevicesFromManagement method.
-
#reprocess_license_assignment ⇒ Object
Provides operations to call the reprocessLicenseAssignment method.
-
#restore ⇒ Object
Provides operations to call the restore method.
-
#revoke_sign_in_sessions ⇒ Object
Provides operations to call the revokeSignInSessions method.
-
#scoped_role_member_of ⇒ Object
Provides operations to manage the scopedRoleMemberOf property of the microsoft.graph.user entity.
-
#send_mail ⇒ Object
Provides operations to call the sendMail method.
-
#settings ⇒ Object
Provides operations to manage the settings property of the microsoft.graph.user entity.
-
#teamwork ⇒ Object
Provides operations to manage the teamwork property of the microsoft.graph.user entity.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete user.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Read properties and relationships of the user object.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the properties of a user object.
-
#todo ⇒ Object
Provides operations to manage the todo property of the microsoft.graph.user entity.
-
#transitive_member_of ⇒ Object
Provides operations to manage the transitiveMemberOf property of the microsoft.graph.user entity.
-
#translate_exchange_ids ⇒ Object
Provides operations to call the translateExchangeIds method.
-
#wipe_managed_app_registrations_by_device_tag ⇒ Object
Provides operations to call the wipeManagedAppRegistrationsByDeviceTag method.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new UserItemRequestBuilder and sets the default values.
431 432 433 |
# File 'lib/users/item/user_item_request_builder.rb', line 431 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/users/{user%2Did}{?%24select,%24expand}") end |
Instance Method Details
#activities ⇒ Object
Provides operations to manage the activities property of the microsoft.graph.user entity.
87 88 89 |
# File 'lib/users/item/user_item_request_builder.rb', line 87 def activities() return MicrosoftGraph::Users::Item::Activities::ActivitiesRequestBuilder.new(@path_parameters, @request_adapter) end |
#agreement_acceptances ⇒ Object
Provides operations to manage the agreementAcceptances property of the microsoft.graph.user entity.
92 93 94 |
# File 'lib/users/item/user_item_request_builder.rb', line 92 def agreement_acceptances() return MicrosoftGraph::Users::Item::AgreementAcceptances::AgreementAcceptancesRequestBuilder.new(@path_parameters, @request_adapter) end |
#app_role_assignments ⇒ Object
Provides operations to manage the appRoleAssignments property of the microsoft.graph.user entity.
97 98 99 |
# File 'lib/users/item/user_item_request_builder.rb', line 97 def app_role_assignments() return MicrosoftGraph::Users::Item::AppRoleAssignments::AppRoleAssignmentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#assign_license ⇒ Object
Provides operations to call the assignLicense method.
102 103 104 |
# File 'lib/users/item/user_item_request_builder.rb', line 102 def assign_license() return MicrosoftGraph::Users::Item::AssignLicense::AssignLicenseRequestBuilder.new(@path_parameters, @request_adapter) end |
#authentication ⇒ Object
Provides operations to manage the authentication property of the microsoft.graph.user entity.
107 108 109 |
# File 'lib/users/item/user_item_request_builder.rb', line 107 def authentication() return MicrosoftGraph::Users::Item::Authentication::AuthenticationRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendar ⇒ Object
Provides operations to manage the calendar property of the microsoft.graph.user entity.
112 113 114 |
# File 'lib/users/item/user_item_request_builder.rb', line 112 def calendar() return MicrosoftGraph::Users::Item::Calendar::CalendarRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendar_groups ⇒ Object
Provides operations to manage the calendarGroups property of the microsoft.graph.user entity.
117 118 119 |
# File 'lib/users/item/user_item_request_builder.rb', line 117 def calendar_groups() return MicrosoftGraph::Users::Item::CalendarGroups::CalendarGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendar_view ⇒ Object
Provides operations to manage the calendarView property of the microsoft.graph.user entity.
127 128 129 |
# File 'lib/users/item/user_item_request_builder.rb', line 127 def calendar_view() return MicrosoftGraph::Users::Item::CalendarView::CalendarViewRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendars ⇒ Object
Provides operations to manage the calendars property of the microsoft.graph.user entity.
122 123 124 |
# File 'lib/users/item/user_item_request_builder.rb', line 122 def calendars() return MicrosoftGraph::Users::Item::Calendars::CalendarsRequestBuilder.new(@path_parameters, @request_adapter) end |
#change_password ⇒ Object
Provides operations to call the changePassword method.
132 133 134 |
# File 'lib/users/item/user_item_request_builder.rb', line 132 def change_password() return MicrosoftGraph::Users::Item::ChangePassword::ChangePasswordRequestBuilder.new(@path_parameters, @request_adapter) end |
#chats ⇒ Object
Provides operations to manage the chats property of the microsoft.graph.user entity.
137 138 139 |
# File 'lib/users/item/user_item_request_builder.rb', line 137 def chats() return MicrosoftGraph::Users::Item::Chats::ChatsRequestBuilder.new(@path_parameters, @request_adapter) end |
#check_member_groups ⇒ Object
Provides operations to call the checkMemberGroups method.
142 143 144 |
# File 'lib/users/item/user_item_request_builder.rb', line 142 def check_member_groups() return MicrosoftGraph::Users::Item::CheckMemberGroups::CheckMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#check_member_objects ⇒ Object
Provides operations to call the checkMemberObjects method.
147 148 149 |
# File 'lib/users/item/user_item_request_builder.rb', line 147 def check_member_objects() return MicrosoftGraph::Users::Item::CheckMemberObjects::CheckMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#contact_folders ⇒ Object
Provides operations to manage the contactFolders property of the microsoft.graph.user entity.
152 153 154 |
# File 'lib/users/item/user_item_request_builder.rb', line 152 def contact_folders() return MicrosoftGraph::Users::Item::ContactFolders::ContactFoldersRequestBuilder.new(@path_parameters, @request_adapter) end |
#contacts ⇒ Object
Provides operations to manage the contacts property of the microsoft.graph.user entity.
157 158 159 |
# File 'lib/users/item/user_item_request_builder.rb', line 157 def contacts() return MicrosoftGraph::Users::Item::Contacts::ContactsRequestBuilder.new(@path_parameters, @request_adapter) end |
#created_objects ⇒ Object
Provides operations to manage the createdObjects property of the microsoft.graph.user entity.
162 163 164 |
# File 'lib/users/item/user_item_request_builder.rb', line 162 def created_objects() return MicrosoftGraph::Users::Item::CreatedObjects::CreatedObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#delete(request_configuration = nil) ⇒ Object
Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems.
439 440 441 442 443 444 445 446 447 |
# File 'lib/users/item/user_item_request_builder.rb', line 439 def delete(request_configuration=nil) request_info = self.to_delete_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end |
#device_management_troubleshooting_events ⇒ Object
Provides operations to manage the deviceManagementTroubleshootingEvents property of the microsoft.graph.user entity.
167 168 169 |
# File 'lib/users/item/user_item_request_builder.rb', line 167 def device_management_troubleshooting_events() return MicrosoftGraph::Users::Item::DeviceManagementTroubleshootingEvents::DeviceManagementTroubleshootingEventsRequestBuilder.new(@path_parameters, @request_adapter) end |
#direct_reports ⇒ Object
Provides operations to manage the directReports property of the microsoft.graph.user entity.
172 173 174 |
# File 'lib/users/item/user_item_request_builder.rb', line 172 def direct_reports() return MicrosoftGraph::Users::Item::DirectReports::DirectReportsRequestBuilder.new(@path_parameters, @request_adapter) end |
#drive ⇒ Object
Provides operations to manage the drive property of the microsoft.graph.user entity.
177 178 179 |
# File 'lib/users/item/user_item_request_builder.rb', line 177 def drive() return MicrosoftGraph::Users::Item::Drive::DriveRequestBuilder.new(@path_parameters, @request_adapter) end |
#drives ⇒ Object
Provides operations to manage the drives property of the microsoft.graph.user entity.
182 183 184 |
# File 'lib/users/item/user_item_request_builder.rb', line 182 def drives() return MicrosoftGraph::Users::Item::Drives::DrivesRequestBuilder.new(@path_parameters, @request_adapter) end |
#employee_experience ⇒ Object
Provides operations to manage the employeeExperience property of the microsoft.graph.user entity.
187 188 189 |
# File 'lib/users/item/user_item_request_builder.rb', line 187 def employee_experience() return MicrosoftGraph::Users::Item::EmployeeExperience::EmployeeExperienceRequestBuilder.new(@path_parameters, @request_adapter) end |
#events ⇒ Object
Provides operations to manage the events property of the microsoft.graph.user entity.
192 193 194 |
# File 'lib/users/item/user_item_request_builder.rb', line 192 def events() return MicrosoftGraph::Users::Item::Events::EventsRequestBuilder.new(@path_parameters, @request_adapter) end |
#export_device_and_app_management_data ⇒ Object
Provides operations to call the exportDeviceAndAppManagementData method.
197 198 199 |
# File 'lib/users/item/user_item_request_builder.rb', line 197 def export_device_and_app_management_data() return MicrosoftGraph::Users::Item::ExportDeviceAndAppManagementData::ExportDeviceAndAppManagementDataRequestBuilder.new(@path_parameters, @request_adapter) end |
#export_device_and_app_management_data_with_skip_with_top(skip, top) ⇒ Object
Provides operations to call the exportDeviceAndAppManagementData method.
454 455 456 457 458 |
# File 'lib/users/item/user_item_request_builder.rb', line 454 def export_device_and_app_management_data_with_skip_with_top(skip, top) raise StandardError, 'skip cannot be null' if skip.nil? raise StandardError, 'top cannot be null' if top.nil? return ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.new(@path_parameters, @request_adapter, skip, top) end |
#export_personal_data ⇒ Object
Provides operations to call the exportPersonalData method.
202 203 204 |
# File 'lib/users/item/user_item_request_builder.rb', line 202 def export_personal_data() return MicrosoftGraph::Users::Item::ExportPersonalData::ExportPersonalDataRequestBuilder.new(@path_parameters, @request_adapter) end |
#extensions ⇒ Object
Provides operations to manage the extensions property of the microsoft.graph.user entity.
207 208 209 |
# File 'lib/users/item/user_item_request_builder.rb', line 207 def extensions() return MicrosoftGraph::Users::Item::Extensions::ExtensionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#find_meeting_times ⇒ Object
Provides operations to call the findMeetingTimes method.
212 213 214 |
# File 'lib/users/item/user_item_request_builder.rb', line 212 def find_meeting_times() return MicrosoftGraph::Users::Item::FindMeetingTimes::FindMeetingTimesRequestBuilder.new(@path_parameters, @request_adapter) end |
#followed_sites ⇒ Object
Provides operations to manage the followedSites property of the microsoft.graph.user entity.
217 218 219 |
# File 'lib/users/item/user_item_request_builder.rb', line 217 def followed_sites() return MicrosoftGraph::Users::Item::FollowedSites::FollowedSitesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Read properties and relationships of the user object.
464 465 466 467 468 469 470 471 472 |
# File 'lib/users/item/user_item_request_builder.rb', line 464 def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end |
#get_mail_tips ⇒ Object
Provides operations to call the getMailTips method.
222 223 224 |
# File 'lib/users/item/user_item_request_builder.rb', line 222 def get_mail_tips() return MicrosoftGraph::Users::Item::GetMailTips::GetMailTipsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_managed_app_diagnostic_statuses ⇒ Object
Provides operations to call the getManagedAppDiagnosticStatuses method.
227 228 229 |
# File 'lib/users/item/user_item_request_builder.rb', line 227 def get_managed_app_diagnostic_statuses() return MicrosoftGraph::Users::Item::GetManagedAppDiagnosticStatuses::GetManagedAppDiagnosticStatusesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_managed_app_policies ⇒ Object
Provides operations to call the getManagedAppPolicies method.
232 233 234 |
# File 'lib/users/item/user_item_request_builder.rb', line 232 def get_managed_app_policies() return MicrosoftGraph::Users::Item::GetManagedAppPolicies::GetManagedAppPoliciesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_managed_devices_with_app_failures ⇒ Object
Provides operations to call the getManagedDevicesWithAppFailures method.
237 238 239 |
# File 'lib/users/item/user_item_request_builder.rb', line 237 def get_managed_devices_with_app_failures() return MicrosoftGraph::Users::Item::GetManagedDevicesWithAppFailures::GetManagedDevicesWithAppFailuresRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_member_groups ⇒ Object
Provides operations to call the getMemberGroups method.
242 243 244 |
# File 'lib/users/item/user_item_request_builder.rb', line 242 def get_member_groups() return MicrosoftGraph::Users::Item::GetMemberGroups::GetMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_member_objects ⇒ Object
Provides operations to call the getMemberObjects method.
247 248 249 |
# File 'lib/users/item/user_item_request_builder.rb', line 247 def get_member_objects() return MicrosoftGraph::Users::Item::GetMemberObjects::GetMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#inference_classification ⇒ Object
Provides operations to manage the inferenceClassification property of the microsoft.graph.user entity.
252 253 254 |
# File 'lib/users/item/user_item_request_builder.rb', line 252 def inference_classification() return MicrosoftGraph::Users::Item::InferenceClassification::InferenceClassificationRequestBuilder.new(@path_parameters, @request_adapter) end |
#insights ⇒ Object
Provides operations to manage the insights property of the microsoft.graph.user entity.
257 258 259 |
# File 'lib/users/item/user_item_request_builder.rb', line 257 def insights() return MicrosoftGraph::Users::Item::Insights::InsightsRequestBuilder.new(@path_parameters, @request_adapter) end |
#joined_teams ⇒ Object
Provides operations to manage the joinedTeams property of the microsoft.graph.user entity.
262 263 264 |
# File 'lib/users/item/user_item_request_builder.rb', line 262 def joined_teams() return MicrosoftGraph::Users::Item::JoinedTeams::JoinedTeamsRequestBuilder.new(@path_parameters, @request_adapter) end |
#license_details ⇒ Object
Provides operations to manage the licenseDetails property of the microsoft.graph.user entity.
267 268 269 |
# File 'lib/users/item/user_item_request_builder.rb', line 267 def license_details() return MicrosoftGraph::Users::Item::LicenseDetails::LicenseDetailsRequestBuilder.new(@path_parameters, @request_adapter) end |
#mail_folders ⇒ Object
Provides operations to manage the mailFolders property of the microsoft.graph.user entity.
277 278 279 |
# File 'lib/users/item/user_item_request_builder.rb', line 277 def mail_folders() return MicrosoftGraph::Users::Item::MailFolders::MailFoldersRequestBuilder.new(@path_parameters, @request_adapter) end |
#mailbox_settings ⇒ Object
The mailboxSettings property
272 273 274 |
# File 'lib/users/item/user_item_request_builder.rb', line 272 def mailbox_settings() return MicrosoftGraph::Users::Item::MailboxSettings::MailboxSettingsRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_app_registrations ⇒ Object
Provides operations to manage the managedAppRegistrations property of the microsoft.graph.user entity.
282 283 284 |
# File 'lib/users/item/user_item_request_builder.rb', line 282 def managed_app_registrations() return MicrosoftGraph::Users::Item::ManagedAppRegistrations::ManagedAppRegistrationsRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_devices ⇒ Object
Provides operations to manage the managedDevices property of the microsoft.graph.user entity.
287 288 289 |
# File 'lib/users/item/user_item_request_builder.rb', line 287 def managed_devices() return MicrosoftGraph::Users::Item::ManagedDevices::ManagedDevicesRequestBuilder.new(@path_parameters, @request_adapter) end |
#manager ⇒ Object
Provides operations to manage the manager property of the microsoft.graph.user entity.
292 293 294 |
# File 'lib/users/item/user_item_request_builder.rb', line 292 def manager() return MicrosoftGraph::Users::Item::Manager::ManagerRequestBuilder.new(@path_parameters, @request_adapter) end |
#member_of ⇒ Object
Provides operations to manage the memberOf property of the microsoft.graph.user entity.
297 298 299 |
# File 'lib/users/item/user_item_request_builder.rb', line 297 def member_of() return MicrosoftGraph::Users::Item::MemberOf::MemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#messages ⇒ Object
Provides operations to manage the messages property of the microsoft.graph.user entity.
302 303 304 |
# File 'lib/users/item/user_item_request_builder.rb', line 302 def () return MicrosoftGraph::Users::Item::Messages::MessagesRequestBuilder.new(@path_parameters, @request_adapter) end |
#oauth2_permission_grants ⇒ Object
Provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.user entity.
307 308 309 |
# File 'lib/users/item/user_item_request_builder.rb', line 307 def () return MicrosoftGraph::Users::Item::Oauth2PermissionGrants::Oauth2PermissionGrantsRequestBuilder.new(@path_parameters, @request_adapter) end |
#onenote ⇒ Object
Provides operations to manage the onenote property of the microsoft.graph.user entity.
312 313 314 |
# File 'lib/users/item/user_item_request_builder.rb', line 312 def onenote() return MicrosoftGraph::Users::Item::Onenote::OnenoteRequestBuilder.new(@path_parameters, @request_adapter) end |
#online_meetings ⇒ Object
Provides operations to manage the onlineMeetings property of the microsoft.graph.user entity.
317 318 319 |
# File 'lib/users/item/user_item_request_builder.rb', line 317 def online_meetings() return MicrosoftGraph::Users::Item::OnlineMeetings::OnlineMeetingsRequestBuilder.new(@path_parameters, @request_adapter) end |
#outlook ⇒ Object
Provides operations to manage the outlook property of the microsoft.graph.user entity.
322 323 324 |
# File 'lib/users/item/user_item_request_builder.rb', line 322 def outlook() return MicrosoftGraph::Users::Item::Outlook::OutlookRequestBuilder.new(@path_parameters, @request_adapter) end |
#owned_devices ⇒ Object
Provides operations to manage the ownedDevices property of the microsoft.graph.user entity.
327 328 329 |
# File 'lib/users/item/user_item_request_builder.rb', line 327 def owned_devices() return MicrosoftGraph::Users::Item::OwnedDevices::OwnedDevicesRequestBuilder.new(@path_parameters, @request_adapter) end |
#owned_objects ⇒ Object
Provides operations to manage the ownedObjects property of the microsoft.graph.user entity.
332 333 334 |
# File 'lib/users/item/user_item_request_builder.rb', line 332 def owned_objects() return MicrosoftGraph::Users::Item::OwnedObjects::OwnedObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage.
479 480 481 482 483 484 485 486 487 488 |
# File 'lib/users/item/user_item_request_builder.rb', line 479 def patch(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = self.to_patch_request_information( body, request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }, error_mapping) end |
#people ⇒ Object
Provides operations to manage the people property of the microsoft.graph.user entity.
337 338 339 |
# File 'lib/users/item/user_item_request_builder.rb', line 337 def people() return MicrosoftGraph::Users::Item::People::PeopleRequestBuilder.new(@path_parameters, @request_adapter) end |
#photo ⇒ Object
Provides operations to manage the photo property of the microsoft.graph.user entity.
342 343 344 |
# File 'lib/users/item/user_item_request_builder.rb', line 342 def photo() return MicrosoftGraph::Users::Item::Photo::PhotoRequestBuilder.new(@path_parameters, @request_adapter) end |
#photos ⇒ Object
Provides operations to manage the photos property of the microsoft.graph.user entity.
347 348 349 |
# File 'lib/users/item/user_item_request_builder.rb', line 347 def photos() return MicrosoftGraph::Users::Item::Photos::PhotosRequestBuilder.new(@path_parameters, @request_adapter) end |
#planner ⇒ Object
Provides operations to manage the planner property of the microsoft.graph.user entity.
352 353 354 |
# File 'lib/users/item/user_item_request_builder.rb', line 352 def planner() return MicrosoftGraph::Users::Item::Planner::PlannerRequestBuilder.new(@path_parameters, @request_adapter) end |
#presence ⇒ Object
Provides operations to manage the presence property of the microsoft.graph.user entity.
357 358 359 |
# File 'lib/users/item/user_item_request_builder.rb', line 357 def presence() return MicrosoftGraph::Users::Item::Presence::PresenceRequestBuilder.new(@path_parameters, @request_adapter) end |
#registered_devices ⇒ Object
Provides operations to manage the registeredDevices property of the microsoft.graph.user entity.
362 363 364 |
# File 'lib/users/item/user_item_request_builder.rb', line 362 def registered_devices() return MicrosoftGraph::Users::Item::RegisteredDevices::RegisteredDevicesRequestBuilder.new(@path_parameters, @request_adapter) end |
#reminder_view_with_start_date_time_with_end_date_time(end_date_time, start_date_time) ⇒ Object
Provides operations to call the reminderView method.
495 496 497 498 499 |
# File 'lib/users/item/user_item_request_builder.rb', line 495 def reminder_view_with_start_date_time_with_end_date_time(end_date_time, start_date_time) raise StandardError, 'end_date_time cannot be null' if end_date_time.nil? raise StandardError, 'start_date_time cannot be null' if start_date_time.nil? return ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.new(@path_parameters, @request_adapter, EndDateTime, StartDateTime) end |
#remove_all_devices_from_management ⇒ Object
Provides operations to call the removeAllDevicesFromManagement method.
367 368 369 |
# File 'lib/users/item/user_item_request_builder.rb', line 367 def remove_all_devices_from_management() return MicrosoftGraph::Users::Item::RemoveAllDevicesFromManagement::RemoveAllDevicesFromManagementRequestBuilder.new(@path_parameters, @request_adapter) end |
#reprocess_license_assignment ⇒ Object
Provides operations to call the reprocessLicenseAssignment method.
372 373 374 |
# File 'lib/users/item/user_item_request_builder.rb', line 372 def reprocess_license_assignment() return MicrosoftGraph::Users::Item::ReprocessLicenseAssignment::ReprocessLicenseAssignmentRequestBuilder.new(@path_parameters, @request_adapter) end |
#restore ⇒ Object
Provides operations to call the restore method.
377 378 379 |
# File 'lib/users/item/user_item_request_builder.rb', line 377 def restore() return MicrosoftGraph::Users::Item::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) end |
#revoke_sign_in_sessions ⇒ Object
Provides operations to call the revokeSignInSessions method.
382 383 384 |
# File 'lib/users/item/user_item_request_builder.rb', line 382 def revoke_sign_in_sessions() return MicrosoftGraph::Users::Item::RevokeSignInSessions::RevokeSignInSessionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#scoped_role_member_of ⇒ Object
Provides operations to manage the scopedRoleMemberOf property of the microsoft.graph.user entity.
387 388 389 |
# File 'lib/users/item/user_item_request_builder.rb', line 387 def scoped_role_member_of() return MicrosoftGraph::Users::Item::ScopedRoleMemberOf::ScopedRoleMemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#send_mail ⇒ Object
Provides operations to call the sendMail method.
392 393 394 |
# File 'lib/users/item/user_item_request_builder.rb', line 392 def send_mail() return MicrosoftGraph::Users::Item::SendMail::SendMailRequestBuilder.new(@path_parameters, @request_adapter) end |
#settings ⇒ Object
Provides operations to manage the settings property of the microsoft.graph.user entity.
397 398 399 |
# File 'lib/users/item/user_item_request_builder.rb', line 397 def settings() return MicrosoftGraph::Users::Item::Settings::SettingsRequestBuilder.new(@path_parameters, @request_adapter) end |
#teamwork ⇒ Object
Provides operations to manage the teamwork property of the microsoft.graph.user entity.
402 403 404 |
# File 'lib/users/item/user_item_request_builder.rb', line 402 def teamwork() return MicrosoftGraph::Users::Item::Teamwork::TeamworkRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems.
505 506 507 508 509 510 511 512 513 514 515 |
# File 'lib/users/item/user_item_request_builder.rb', line 505 def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end return request_info end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Read properties and relationships of the user object.
521 522 523 524 525 526 527 528 529 530 531 532 533 |
# File 'lib/users/item/user_item_request_builder.rb', line 521 def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.(request_configuration.) end return request_info end |
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage.
540 541 542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/users/item/user_item_request_builder.rb', line 540 def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :PATCH request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end request_info.set_content_from_parsable(@request_adapter, "application/json", body) return request_info end |
#todo ⇒ Object
Provides operations to manage the todo property of the microsoft.graph.user entity.
407 408 409 |
# File 'lib/users/item/user_item_request_builder.rb', line 407 def todo() return MicrosoftGraph::Users::Item::Todo::TodoRequestBuilder.new(@path_parameters, @request_adapter) end |
#transitive_member_of ⇒ Object
Provides operations to manage the transitiveMemberOf property of the microsoft.graph.user entity.
412 413 414 |
# File 'lib/users/item/user_item_request_builder.rb', line 412 def transitive_member_of() return MicrosoftGraph::Users::Item::TransitiveMemberOf::TransitiveMemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#translate_exchange_ids ⇒ Object
Provides operations to call the translateExchangeIds method.
417 418 419 |
# File 'lib/users/item/user_item_request_builder.rb', line 417 def translate_exchange_ids() return MicrosoftGraph::Users::Item::TranslateExchangeIds::TranslateExchangeIdsRequestBuilder.new(@path_parameters, @request_adapter) end |
#wipe_managed_app_registrations_by_device_tag ⇒ Object
Provides operations to call the wipeManagedAppRegistrationsByDeviceTag method.
422 423 424 |
# File 'lib/users/item/user_item_request_builder.rb', line 422 def wipe_managed_app_registrations_by_device_tag() return MicrosoftGraph::Users::Item::WipeManagedAppRegistrationsByDeviceTag::WipeManagedAppRegistrationsByDeviceTagRequestBuilder.new(@path_parameters, @request_adapter) end |