Class: MicrosoftGraph::Me::MeRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Me::MeRequestBuilder
- Defined in:
- lib/me/me_request_builder.rb
Overview
Provides operations to manage the user singleton.
Defined Under Namespace
Classes: MeRequestBuilderGetQueryParameters
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.
-
#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
Returns the user or organizational contact assigned as the user’s manager.
-
#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 MeRequestBuilder 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_get_request_information(request_configuration = nil) ⇒ Object
Returns the user or organizational contact assigned as the user’s manager.
-
#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 MeRequestBuilder and sets the default values.
429 430 431 |
# File 'lib/me/me_request_builder.rb', line 429 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/me{?%24select,%24expand}") end |
Instance Method Details
#activities ⇒ Object
Provides operations to manage the activities property of the microsoft.graph.user entity.
85 86 87 |
# File 'lib/me/me_request_builder.rb', line 85 def activities() return MicrosoftGraph::Me::Activities::ActivitiesRequestBuilder.new(@path_parameters, @request_adapter) end |
#agreement_acceptances ⇒ Object
Provides operations to manage the agreementAcceptances property of the microsoft.graph.user entity.
90 91 92 |
# File 'lib/me/me_request_builder.rb', line 90 def agreement_acceptances() return MicrosoftGraph::Me::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.
95 96 97 |
# File 'lib/me/me_request_builder.rb', line 95 def app_role_assignments() return MicrosoftGraph::Me::AppRoleAssignments::AppRoleAssignmentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#assign_license ⇒ Object
Provides operations to call the assignLicense method.
100 101 102 |
# File 'lib/me/me_request_builder.rb', line 100 def assign_license() return MicrosoftGraph::Me::AssignLicense::AssignLicenseRequestBuilder.new(@path_parameters, @request_adapter) end |
#authentication ⇒ Object
Provides operations to manage the authentication property of the microsoft.graph.user entity.
105 106 107 |
# File 'lib/me/me_request_builder.rb', line 105 def authentication() return MicrosoftGraph::Me::Authentication::AuthenticationRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendar ⇒ Object
Provides operations to manage the calendar property of the microsoft.graph.user entity.
110 111 112 |
# File 'lib/me/me_request_builder.rb', line 110 def calendar() return MicrosoftGraph::Me::Calendar::CalendarRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendar_groups ⇒ Object
Provides operations to manage the calendarGroups property of the microsoft.graph.user entity.
115 116 117 |
# File 'lib/me/me_request_builder.rb', line 115 def calendar_groups() return MicrosoftGraph::Me::CalendarGroups::CalendarGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendar_view ⇒ Object
Provides operations to manage the calendarView property of the microsoft.graph.user entity.
125 126 127 |
# File 'lib/me/me_request_builder.rb', line 125 def calendar_view() return MicrosoftGraph::Me::CalendarView::CalendarViewRequestBuilder.new(@path_parameters, @request_adapter) end |
#calendars ⇒ Object
Provides operations to manage the calendars property of the microsoft.graph.user entity.
120 121 122 |
# File 'lib/me/me_request_builder.rb', line 120 def calendars() return MicrosoftGraph::Me::Calendars::CalendarsRequestBuilder.new(@path_parameters, @request_adapter) end |
#change_password ⇒ Object
Provides operations to call the changePassword method.
130 131 132 |
# File 'lib/me/me_request_builder.rb', line 130 def change_password() return MicrosoftGraph::Me::ChangePassword::ChangePasswordRequestBuilder.new(@path_parameters, @request_adapter) end |
#chats ⇒ Object
Provides operations to manage the chats property of the microsoft.graph.user entity.
135 136 137 |
# File 'lib/me/me_request_builder.rb', line 135 def chats() return MicrosoftGraph::Me::Chats::ChatsRequestBuilder.new(@path_parameters, @request_adapter) end |
#check_member_groups ⇒ Object
Provides operations to call the checkMemberGroups method.
140 141 142 |
# File 'lib/me/me_request_builder.rb', line 140 def check_member_groups() return MicrosoftGraph::Me::CheckMemberGroups::CheckMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#check_member_objects ⇒ Object
Provides operations to call the checkMemberObjects method.
145 146 147 |
# File 'lib/me/me_request_builder.rb', line 145 def check_member_objects() return MicrosoftGraph::Me::CheckMemberObjects::CheckMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#contact_folders ⇒ Object
Provides operations to manage the contactFolders property of the microsoft.graph.user entity.
150 151 152 |
# File 'lib/me/me_request_builder.rb', line 150 def contact_folders() return MicrosoftGraph::Me::ContactFolders::ContactFoldersRequestBuilder.new(@path_parameters, @request_adapter) end |
#contacts ⇒ Object
Provides operations to manage the contacts property of the microsoft.graph.user entity.
155 156 157 |
# File 'lib/me/me_request_builder.rb', line 155 def contacts() return MicrosoftGraph::Me::Contacts::ContactsRequestBuilder.new(@path_parameters, @request_adapter) end |
#created_objects ⇒ Object
Provides operations to manage the createdObjects property of the microsoft.graph.user entity.
160 161 162 |
# File 'lib/me/me_request_builder.rb', line 160 def created_objects() return MicrosoftGraph::Me::CreatedObjects::CreatedObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#device_management_troubleshooting_events ⇒ Object
Provides operations to manage the deviceManagementTroubleshootingEvents property of the microsoft.graph.user entity.
165 166 167 |
# File 'lib/me/me_request_builder.rb', line 165 def device_management_troubleshooting_events() return MicrosoftGraph::Me::DeviceManagementTroubleshootingEvents::DeviceManagementTroubleshootingEventsRequestBuilder.new(@path_parameters, @request_adapter) end |
#direct_reports ⇒ Object
Provides operations to manage the directReports property of the microsoft.graph.user entity.
170 171 172 |
# File 'lib/me/me_request_builder.rb', line 170 def direct_reports() return MicrosoftGraph::Me::DirectReports::DirectReportsRequestBuilder.new(@path_parameters, @request_adapter) end |
#drive ⇒ Object
Provides operations to manage the drive property of the microsoft.graph.user entity.
175 176 177 |
# File 'lib/me/me_request_builder.rb', line 175 def drive() return MicrosoftGraph::Me::Drive::DriveRequestBuilder.new(@path_parameters, @request_adapter) end |
#drives ⇒ Object
Provides operations to manage the drives property of the microsoft.graph.user entity.
180 181 182 |
# File 'lib/me/me_request_builder.rb', line 180 def drives() return MicrosoftGraph::Me::Drives::DrivesRequestBuilder.new(@path_parameters, @request_adapter) end |
#employee_experience ⇒ Object
Provides operations to manage the employeeExperience property of the microsoft.graph.user entity.
185 186 187 |
# File 'lib/me/me_request_builder.rb', line 185 def employee_experience() return MicrosoftGraph::Me::EmployeeExperience::EmployeeExperienceRequestBuilder.new(@path_parameters, @request_adapter) end |
#events ⇒ Object
Provides operations to manage the events property of the microsoft.graph.user entity.
190 191 192 |
# File 'lib/me/me_request_builder.rb', line 190 def events() return MicrosoftGraph::Me::Events::EventsRequestBuilder.new(@path_parameters, @request_adapter) end |
#export_device_and_app_management_data ⇒ Object
Provides operations to call the exportDeviceAndAppManagementData method.
195 196 197 |
# File 'lib/me/me_request_builder.rb', line 195 def export_device_and_app_management_data() return MicrosoftGraph::Me::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.
438 439 440 441 442 |
# File 'lib/me/me_request_builder.rb', line 438 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.
200 201 202 |
# File 'lib/me/me_request_builder.rb', line 200 def export_personal_data() return MicrosoftGraph::Me::ExportPersonalData::ExportPersonalDataRequestBuilder.new(@path_parameters, @request_adapter) end |
#extensions ⇒ Object
Provides operations to manage the extensions property of the microsoft.graph.user entity.
205 206 207 |
# File 'lib/me/me_request_builder.rb', line 205 def extensions() return MicrosoftGraph::Me::Extensions::ExtensionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#find_meeting_times ⇒ Object
Provides operations to call the findMeetingTimes method.
210 211 212 |
# File 'lib/me/me_request_builder.rb', line 210 def find_meeting_times() return MicrosoftGraph::Me::FindMeetingTimes::FindMeetingTimesRequestBuilder.new(@path_parameters, @request_adapter) end |
#followed_sites ⇒ Object
Provides operations to manage the followedSites property of the microsoft.graph.user entity.
215 216 217 |
# File 'lib/me/me_request_builder.rb', line 215 def followed_sites() return MicrosoftGraph::Me::FollowedSites::FollowedSitesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Returns the user or organizational contact assigned as the user’s manager. Optionally, you can expand the manager’s chain up to the root node.
448 449 450 451 452 453 454 455 456 |
# File 'lib/me/me_request_builder.rb', line 448 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.
220 221 222 |
# File 'lib/me/me_request_builder.rb', line 220 def get_mail_tips() return MicrosoftGraph::Me::GetMailTips::GetMailTipsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_managed_app_diagnostic_statuses ⇒ Object
Provides operations to call the getManagedAppDiagnosticStatuses method.
225 226 227 |
# File 'lib/me/me_request_builder.rb', line 225 def get_managed_app_diagnostic_statuses() return MicrosoftGraph::Me::GetManagedAppDiagnosticStatuses::GetManagedAppDiagnosticStatusesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_managed_app_policies ⇒ Object
Provides operations to call the getManagedAppPolicies method.
230 231 232 |
# File 'lib/me/me_request_builder.rb', line 230 def get_managed_app_policies() return MicrosoftGraph::Me::GetManagedAppPolicies::GetManagedAppPoliciesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_managed_devices_with_app_failures ⇒ Object
Provides operations to call the getManagedDevicesWithAppFailures method.
235 236 237 |
# File 'lib/me/me_request_builder.rb', line 235 def get_managed_devices_with_app_failures() return MicrosoftGraph::Me::GetManagedDevicesWithAppFailures::GetManagedDevicesWithAppFailuresRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_member_groups ⇒ Object
Provides operations to call the getMemberGroups method.
240 241 242 |
# File 'lib/me/me_request_builder.rb', line 240 def get_member_groups() return MicrosoftGraph::Me::GetMemberGroups::GetMemberGroupsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_member_objects ⇒ Object
Provides operations to call the getMemberObjects method.
245 246 247 |
# File 'lib/me/me_request_builder.rb', line 245 def get_member_objects() return MicrosoftGraph::Me::GetMemberObjects::GetMemberObjectsRequestBuilder.new(@path_parameters, @request_adapter) end |
#inference_classification ⇒ Object
Provides operations to manage the inferenceClassification property of the microsoft.graph.user entity.
250 251 252 |
# File 'lib/me/me_request_builder.rb', line 250 def inference_classification() return MicrosoftGraph::Me::InferenceClassification::InferenceClassificationRequestBuilder.new(@path_parameters, @request_adapter) end |
#insights ⇒ Object
Provides operations to manage the insights property of the microsoft.graph.user entity.
255 256 257 |
# File 'lib/me/me_request_builder.rb', line 255 def insights() return MicrosoftGraph::Me::Insights::InsightsRequestBuilder.new(@path_parameters, @request_adapter) end |
#joined_teams ⇒ Object
Provides operations to manage the joinedTeams property of the microsoft.graph.user entity.
260 261 262 |
# File 'lib/me/me_request_builder.rb', line 260 def joined_teams() return MicrosoftGraph::Me::JoinedTeams::JoinedTeamsRequestBuilder.new(@path_parameters, @request_adapter) end |
#license_details ⇒ Object
Provides operations to manage the licenseDetails property of the microsoft.graph.user entity.
265 266 267 |
# File 'lib/me/me_request_builder.rb', line 265 def license_details() return MicrosoftGraph::Me::LicenseDetails::LicenseDetailsRequestBuilder.new(@path_parameters, @request_adapter) end |
#mail_folders ⇒ Object
Provides operations to manage the mailFolders property of the microsoft.graph.user entity.
275 276 277 |
# File 'lib/me/me_request_builder.rb', line 275 def mail_folders() return MicrosoftGraph::Me::MailFolders::MailFoldersRequestBuilder.new(@path_parameters, @request_adapter) end |
#mailbox_settings ⇒ Object
The mailboxSettings property
270 271 272 |
# File 'lib/me/me_request_builder.rb', line 270 def mailbox_settings() return MicrosoftGraph::Me::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.
280 281 282 |
# File 'lib/me/me_request_builder.rb', line 280 def managed_app_registrations() return MicrosoftGraph::Me::ManagedAppRegistrations::ManagedAppRegistrationsRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_devices ⇒ Object
Provides operations to manage the managedDevices property of the microsoft.graph.user entity.
285 286 287 |
# File 'lib/me/me_request_builder.rb', line 285 def managed_devices() return MicrosoftGraph::Me::ManagedDevices::ManagedDevicesRequestBuilder.new(@path_parameters, @request_adapter) end |
#manager ⇒ Object
Provides operations to manage the manager property of the microsoft.graph.user entity.
290 291 292 |
# File 'lib/me/me_request_builder.rb', line 290 def manager() return MicrosoftGraph::Me::Manager::ManagerRequestBuilder.new(@path_parameters, @request_adapter) end |
#member_of ⇒ Object
Provides operations to manage the memberOf property of the microsoft.graph.user entity.
295 296 297 |
# File 'lib/me/me_request_builder.rb', line 295 def member_of() return MicrosoftGraph::Me::MemberOf::MemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#messages ⇒ Object
Provides operations to manage the messages property of the microsoft.graph.user entity.
300 301 302 |
# File 'lib/me/me_request_builder.rb', line 300 def () return MicrosoftGraph::Me::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.
305 306 307 |
# File 'lib/me/me_request_builder.rb', line 305 def () return MicrosoftGraph::Me::Oauth2PermissionGrants::Oauth2PermissionGrantsRequestBuilder.new(@path_parameters, @request_adapter) end |
#onenote ⇒ Object
Provides operations to manage the onenote property of the microsoft.graph.user entity.
310 311 312 |
# File 'lib/me/me_request_builder.rb', line 310 def onenote() return MicrosoftGraph::Me::Onenote::OnenoteRequestBuilder.new(@path_parameters, @request_adapter) end |
#online_meetings ⇒ Object
Provides operations to manage the onlineMeetings property of the microsoft.graph.user entity.
315 316 317 |
# File 'lib/me/me_request_builder.rb', line 315 def online_meetings() return MicrosoftGraph::Me::OnlineMeetings::OnlineMeetingsRequestBuilder.new(@path_parameters, @request_adapter) end |
#outlook ⇒ Object
Provides operations to manage the outlook property of the microsoft.graph.user entity.
320 321 322 |
# File 'lib/me/me_request_builder.rb', line 320 def outlook() return MicrosoftGraph::Me::Outlook::OutlookRequestBuilder.new(@path_parameters, @request_adapter) end |
#owned_devices ⇒ Object
Provides operations to manage the ownedDevices property of the microsoft.graph.user entity.
325 326 327 |
# File 'lib/me/me_request_builder.rb', line 325 def owned_devices() return MicrosoftGraph::Me::OwnedDevices::OwnedDevicesRequestBuilder.new(@path_parameters, @request_adapter) end |
#owned_objects ⇒ Object
Provides operations to manage the ownedObjects property of the microsoft.graph.user entity.
330 331 332 |
# File 'lib/me/me_request_builder.rb', line 330 def owned_objects() return MicrosoftGraph::Me::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.
463 464 465 466 467 468 469 470 471 472 |
# File 'lib/me/me_request_builder.rb', line 463 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.
335 336 337 |
# File 'lib/me/me_request_builder.rb', line 335 def people() return MicrosoftGraph::Me::People::PeopleRequestBuilder.new(@path_parameters, @request_adapter) end |
#photo ⇒ Object
Provides operations to manage the photo property of the microsoft.graph.user entity.
340 341 342 |
# File 'lib/me/me_request_builder.rb', line 340 def photo() return MicrosoftGraph::Me::Photo::PhotoRequestBuilder.new(@path_parameters, @request_adapter) end |
#photos ⇒ Object
Provides operations to manage the photos property of the microsoft.graph.user entity.
345 346 347 |
# File 'lib/me/me_request_builder.rb', line 345 def photos() return MicrosoftGraph::Me::Photos::PhotosRequestBuilder.new(@path_parameters, @request_adapter) end |
#planner ⇒ Object
Provides operations to manage the planner property of the microsoft.graph.user entity.
350 351 352 |
# File 'lib/me/me_request_builder.rb', line 350 def planner() return MicrosoftGraph::Me::Planner::PlannerRequestBuilder.new(@path_parameters, @request_adapter) end |
#presence ⇒ Object
Provides operations to manage the presence property of the microsoft.graph.user entity.
355 356 357 |
# File 'lib/me/me_request_builder.rb', line 355 def presence() return MicrosoftGraph::Me::Presence::PresenceRequestBuilder.new(@path_parameters, @request_adapter) end |
#registered_devices ⇒ Object
Provides operations to manage the registeredDevices property of the microsoft.graph.user entity.
360 361 362 |
# File 'lib/me/me_request_builder.rb', line 360 def registered_devices() return MicrosoftGraph::Me::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.
479 480 481 482 483 |
# File 'lib/me/me_request_builder.rb', line 479 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.
365 366 367 |
# File 'lib/me/me_request_builder.rb', line 365 def remove_all_devices_from_management() return MicrosoftGraph::Me::RemoveAllDevicesFromManagement::RemoveAllDevicesFromManagementRequestBuilder.new(@path_parameters, @request_adapter) end |
#reprocess_license_assignment ⇒ Object
Provides operations to call the reprocessLicenseAssignment method.
370 371 372 |
# File 'lib/me/me_request_builder.rb', line 370 def reprocess_license_assignment() return MicrosoftGraph::Me::ReprocessLicenseAssignment::ReprocessLicenseAssignmentRequestBuilder.new(@path_parameters, @request_adapter) end |
#restore ⇒ Object
Provides operations to call the restore method.
375 376 377 |
# File 'lib/me/me_request_builder.rb', line 375 def restore() return MicrosoftGraph::Me::Restore::RestoreRequestBuilder.new(@path_parameters, @request_adapter) end |
#revoke_sign_in_sessions ⇒ Object
Provides operations to call the revokeSignInSessions method.
380 381 382 |
# File 'lib/me/me_request_builder.rb', line 380 def revoke_sign_in_sessions() return MicrosoftGraph::Me::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.
385 386 387 |
# File 'lib/me/me_request_builder.rb', line 385 def scoped_role_member_of() return MicrosoftGraph::Me::ScopedRoleMemberOf::ScopedRoleMemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#send_mail ⇒ Object
Provides operations to call the sendMail method.
390 391 392 |
# File 'lib/me/me_request_builder.rb', line 390 def send_mail() return MicrosoftGraph::Me::SendMail::SendMailRequestBuilder.new(@path_parameters, @request_adapter) end |
#settings ⇒ Object
Provides operations to manage the settings property of the microsoft.graph.user entity.
395 396 397 |
# File 'lib/me/me_request_builder.rb', line 395 def settings() return MicrosoftGraph::Me::Settings::SettingsRequestBuilder.new(@path_parameters, @request_adapter) end |
#teamwork ⇒ Object
Provides operations to manage the teamwork property of the microsoft.graph.user entity.
400 401 402 |
# File 'lib/me/me_request_builder.rb', line 400 def teamwork() return MicrosoftGraph::Me::Teamwork::TeamworkRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Returns the user or organizational contact assigned as the user’s manager. Optionally, you can expand the manager’s chain up to the root node.
489 490 491 492 493 494 495 496 497 498 499 500 501 |
# File 'lib/me/me_request_builder.rb', line 489 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.
508 509 510 511 512 513 514 515 516 517 518 519 520 521 |
# File 'lib/me/me_request_builder.rb', line 508 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.
405 406 407 |
# File 'lib/me/me_request_builder.rb', line 405 def todo() return MicrosoftGraph::Me::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.
410 411 412 |
# File 'lib/me/me_request_builder.rb', line 410 def transitive_member_of() return MicrosoftGraph::Me::TransitiveMemberOf::TransitiveMemberOfRequestBuilder.new(@path_parameters, @request_adapter) end |
#translate_exchange_ids ⇒ Object
Provides operations to call the translateExchangeIds method.
415 416 417 |
# File 'lib/me/me_request_builder.rb', line 415 def translate_exchange_ids() return MicrosoftGraph::Me::TranslateExchangeIds::TranslateExchangeIdsRequestBuilder.new(@path_parameters, @request_adapter) end |
#wipe_managed_app_registrations_by_device_tag ⇒ Object
Provides operations to call the wipeManagedAppRegistrationsByDeviceTag method.
420 421 422 |
# File 'lib/me/me_request_builder.rb', line 420 def wipe_managed_app_registrations_by_device_tag() return MicrosoftGraph::Me::WipeManagedAppRegistrationsByDeviceTag::WipeManagedAppRegistrationsByDeviceTagRequestBuilder.new(@path_parameters, @request_adapter) end |