/// <summary> /// Constructs a new <see cref="ManagedDeviceExecuteActionRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="actionName">A actionName parameter for the OData method call.</param> /// <param name="keepEnrollmentData">A keepEnrollmentData parameter for the OData method call.</param> /// <param name="keepUserData">A keepUserData parameter for the OData method call.</param> /// <param name="deviceIds">A deviceIds parameter for the OData method call.</param> /// <param name="notificationTitle">A notificationTitle parameter for the OData method call.</param> /// <param name="notificationBody">A notificationBody parameter for the OData method call.</param> public ManagedDeviceExecuteActionRequestBuilder( string requestUrl, IBaseClient client, ManagedDeviceRemoteAction actionName, bool?keepEnrollmentData, bool?keepUserData, IEnumerable <string> deviceIds, string notificationTitle, string notificationBody) : base(requestUrl, client) { this.SetParameter("actionName", actionName, false); this.SetParameter("keepEnrollmentData", keepEnrollmentData, true); this.SetParameter("keepUserData", keepUserData, true); this.SetParameter("deviceIds", deviceIds, true); this.SetParameter("notificationTitle", notificationTitle, true); this.SetParameter("notificationBody", notificationBody, true); }
/// <summary> /// Gets the request builder for ManagedDeviceExecuteAction. /// </summary> /// <returns>The <see cref="IManagedDeviceExecuteActionRequestBuilder"/>.</returns> public IManagedDeviceExecuteActionRequestBuilder ExecuteAction( ManagedDeviceRemoteAction actionName, bool?keepEnrollmentData = null, bool?keepUserData = null, IEnumerable <string> deviceIds = null, string notificationTitle = null, string notificationBody = null) { return(new ManagedDeviceExecuteActionRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.executeAction"), this.Client, actionName, keepEnrollmentData, keepUserData, deviceIds, notificationTitle, notificationBody)); }