/// <summary> /// Constructs a new <see cref="PrinterCreateRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="displayName">A displayName parameter for the OData method call.</param> /// <param name="manufacturer">A manufacturer parameter for the OData method call.</param> /// <param name="model">A model parameter for the OData method call.</param> /// <param name="certificateSigningRequest">A certificateSigningRequest parameter for the OData method call.</param> /// <param name="physicalDeviceId">A physicalDeviceId parameter for the OData method call.</param> /// <param name="hasPhysicalDevice">A hasPhysicalDevice parameter for the OData method call.</param> /// <param name="connectorId">A connectorId parameter for the OData method call.</param> public PrinterCreateRequestBuilder( string requestUrl, IBaseClient client, string displayName, string manufacturer, string model, PrintCertificateSigningRequestObject certificateSigningRequest, string physicalDeviceId, bool?hasPhysicalDevice, string connectorId) : base(requestUrl, client) { this.SetParameter("displayName", displayName, false); this.SetParameter("manufacturer", manufacturer, false); this.SetParameter("model", model, false); this.SetParameter("certificateSigningRequest", certificateSigningRequest, false); this.SetParameter("physicalDeviceId", physicalDeviceId, true); this.SetParameter("hasPhysicalDevice", hasPhysicalDevice, true); this.SetParameter("connectorId", connectorId, true); }
/// <summary> /// Gets the request builder for PrinterCreate. /// </summary> /// <returns>The <see cref="IPrinterCreateRequestBuilder"/>.</returns> public IPrinterCreateRequestBuilder Create( string displayName, string manufacturer, string model, PrintCertificateSigningRequestObject certificateSigningRequest, string physicalDeviceId = null, bool?hasPhysicalDevice = null, string connectorId = null) { return(new PrinterCreateRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.create"), this.Client, displayName, manufacturer, model, certificateSigningRequest, physicalDeviceId, hasPhysicalDevice, connectorId)); }