/// <summary> /// Constructs a new <see cref="DataLossPreventionPolicyEvaluateRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="target">A target parameter for the OData method call.</param> /// <param name="evaluationInput">A evaluationInput parameter for the OData method call.</param> /// <param name="notificationInfo">A notificationInfo parameter for the OData method call.</param> public DataLossPreventionPolicyEvaluateRequestBuilder( string requestUrl, IBaseClient client, string target, DlpEvaluationInput evaluationInput, DlpNotification notificationInfo) : base(requestUrl, client) { this.SetParameter("target", target, true); this.SetParameter("evaluationInput", evaluationInput, true); this.SetParameter("notificationInfo", notificationInfo, true); }
/// <summary> /// Gets the request builder for DataLossPreventionPolicyEvaluate. /// </summary> /// <returns>The <see cref="IDataLossPreventionPolicyEvaluateRequestBuilder"/>.</returns> public IDataLossPreventionPolicyEvaluateRequestBuilder Evaluate( string target = null, DlpEvaluationInput evaluationInput = null, DlpNotification notificationInfo = null) { return(new DataLossPreventionPolicyEvaluateRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.evaluate"), this.Client, target, evaluationInput, notificationInfo)); }