Class: MicrosoftGraph::Me::MeRequestBuilder

Inherits:
MicrosoftKiotaAbstractions::BaseRequestBuilder
  • Object
show all
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

Constructor Details

#initialize(path_parameters, request_adapter) ⇒ Object

Instantiates a new MeRequestBuilder and sets the default values.

Parameters:

  • path_parameters

    Path parameters for the request

  • request_adapter

    The request adapter to use to execute the requests.



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

#activitiesObject

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_acceptancesObject

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_assignmentsObject

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_licenseObject

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

#authenticationObject

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

#calendarObject

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_groupsObject

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_viewObject

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

#calendarsObject

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_passwordObject

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

#chatsObject

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_groupsObject

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_objectsObject

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_foldersObject

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

#contactsObject

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_objectsObject

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_eventsObject

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_reportsObject

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

#driveObject

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

#drivesObject

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_experienceObject

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

#eventsObject

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_dataObject

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.

Parameters:

  • skip

    Usage: skip=skip

  • top

    Usage: top=top

Returns:

  • a export_device_and_app_management_data_with_skip_with_top_request_builder

Raises:

  • (StandardError)


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_dataObject

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

#extensionsObject

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_timesObject

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_sitesObject

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.

Parameters:

  • request_configuration (defaults to: nil)

    Configuration for the request such as headers, query parameters, and middleware options.

Returns:

  • a Fiber of user



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_tipsObject

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_statusesObject

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_policiesObject

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_failuresObject

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_groupsObject

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_objectsObject

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_classificationObject

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

#insightsObject

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_teamsObject

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_detailsObject

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_foldersObject

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_settingsObject

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_registrationsObject

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_devicesObject

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

#managerObject

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_ofObject

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

#messagesObject

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 messages()
    return MicrosoftGraph::Me::Messages::MessagesRequestBuilder.new(@path_parameters, @request_adapter)
end

#oauth2_permission_grantsObject

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 oauth2_permission_grants()
    return MicrosoftGraph::Me::Oauth2PermissionGrants::Oauth2PermissionGrantsRequestBuilder.new(@path_parameters, @request_adapter)
end

#onenoteObject

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_meetingsObject

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

#outlookObject

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_devicesObject

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_objectsObject

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.

Parameters:

  • body

    The request body

  • request_configuration (defaults to: nil)

    Configuration for the request such as headers, query parameters, and middleware options.

Returns:

  • a Fiber of user

Raises:

  • (StandardError)


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

#peopleObject

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

#photoObject

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

#photosObject

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

#plannerObject

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

#presenceObject

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_devicesObject

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.

Parameters:

  • end_date_time

    Usage: EndDateTime=‘EndDateTime’

  • start_date_time

    Usage: StartDateTime=‘StartDateTime’

Returns:

  • a reminder_view_with_start_date_time_with_end_date_time_request_builder

Raises:

  • (StandardError)


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_managementObject

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_assignmentObject

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

#restoreObject

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_sessionsObject

Provides operations to call the revokeSignInSessions method.



380
381
382
# File 'lib/me/me_request_builder.rb', line 380

def ()
    return MicrosoftGraph::Me::RevokeSignInSessions::RevokeSignInSessionsRequestBuilder.new(@path_parameters, @request_adapter)
end

#scoped_role_member_ofObject

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_mailObject

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

#settingsObject

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

#teamworkObject

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.

Parameters:

  • request_configuration (defaults to: nil)

    Configuration for the request such as headers, query parameters, and middleware options.

Returns:

  • a request_information



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.add_request_options(request_configuration.options)
    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.

Parameters:

  • body

    The request body

  • request_configuration (defaults to: nil)

    Configuration for the request such as headers, query parameters, and middleware options.

Returns:

  • a request_information

Raises:

  • (StandardError)


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.add_request_options(request_configuration.options)
    end
    request_info.set_content_from_parsable(@request_adapter, "application/json", body)
    return request_info
end

#todoObject

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_ofObject

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_idsObject

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_tagObject

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