/// <summary> /// Constructs a new <see cref="DriveItemCreateUploadSessionRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="item">A item parameter for the OData method call.</param> public DriveItemCreateUploadSessionRequestBuilder( string requestUrl, IBaseClient client, DriveItemUploadableProperties item) : base(requestUrl, client) { this.SetParameter("item", item, true); }
/// <summary> /// Gets the request builder for DriveItemCreateUploadSession. /// </summary> /// <returns>The <see cref="IDriveItemCreateUploadSessionRequestBuilder"/>.</returns> public IDriveItemCreateUploadSessionRequestBuilder CreateUploadSession( DriveItemUploadableProperties item = null) { return(new DriveItemCreateUploadSessionRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.createUploadSession"), this.Client, item)); }