|
| 1 | +// ------------------------------------------------------------------------------ |
| 2 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | + |
| 5 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 6 | +// <auto-generated/> |
| 7 | + |
| 8 | +// Template Source: Templates\CSharp\Requests\IEntityRequest.cs.tt |
| 9 | + |
| 10 | +namespace Microsoft.Graph2.CallRecords |
| 11 | +{ |
| 12 | + using System; |
| 13 | + using System.IO; |
| 14 | + using System.Net.Http; |
| 15 | + using System.Threading; |
| 16 | + using System.Linq.Expressions; |
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// The interface IOptionRequest. |
| 20 | + /// </summary> |
| 21 | + public partial interface IOptionRequest : Microsoft.Graph.IBaseRequest |
| 22 | + { |
| 23 | + /// <summary> |
| 24 | + /// Creates the specified Option using POST. |
| 25 | + /// </summary> |
| 26 | + /// <param name="optionToCreate">The Option to create.</param> |
| 27 | + /// <returns>The created Option.</returns> |
| 28 | + System.Threading.Tasks.Task<Option> CreateAsync(Option optionToCreate); /// <summary> |
| 29 | + /// Creates the specified Option using POST. |
| 30 | + /// </summary> |
| 31 | + /// <param name="optionToCreate">The Option to create.</param> |
| 32 | + /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> |
| 33 | + /// <returns>The created Option.</returns> |
| 34 | + System.Threading.Tasks.Task<Option> CreateAsync(Option optionToCreate, CancellationToken cancellationToken); |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Deletes the specified Option. |
| 38 | + /// </summary> |
| 39 | + /// <returns>The task to await.</returns> |
| 40 | + System.Threading.Tasks.Task DeleteAsync(); |
| 41 | + |
| 42 | + /// <summary> |
| 43 | + /// Deletes the specified Option. |
| 44 | + /// </summary> |
| 45 | + /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> |
| 46 | + /// <returns>The task to await.</returns> |
| 47 | + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken); |
| 48 | + |
| 49 | + /// <summary> |
| 50 | + /// Gets the specified Option. |
| 51 | + /// </summary> |
| 52 | + /// <returns>The Option.</returns> |
| 53 | + System.Threading.Tasks.Task<Option> GetAsync(); |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// Gets the specified Option. |
| 57 | + /// </summary> |
| 58 | + /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> |
| 59 | + /// <returns>The Option.</returns> |
| 60 | + System.Threading.Tasks.Task<Option> GetAsync(CancellationToken cancellationToken); |
| 61 | + |
| 62 | + /// <summary> |
| 63 | + /// Updates the specified Option using PATCH. |
| 64 | + /// </summary> |
| 65 | + /// <param name="optionToUpdate">The Option to update.</param> |
| 66 | + /// <returns>The updated Option.</returns> |
| 67 | + System.Threading.Tasks.Task<Option> UpdateAsync(Option optionToUpdate); |
| 68 | + |
| 69 | + /// <summary> |
| 70 | + /// Updates the specified Option using PATCH. |
| 71 | + /// </summary> |
| 72 | + /// <param name="optionToUpdate">The Option to update.</param> |
| 73 | + /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> |
| 74 | + /// <exception cref="Microsoft.Graph.ClientException">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception> |
| 75 | + /// <returns>The updated Option.</returns> |
| 76 | + System.Threading.Tasks.Task<Option> UpdateAsync(Option optionToUpdate, CancellationToken cancellationToken); |
| 77 | + |
| 78 | + /// <summary> |
| 79 | + /// Adds the specified expand value to the request. |
| 80 | + /// </summary> |
| 81 | + /// <param name="value">The expand value.</param> |
| 82 | + /// <returns>The request object to send.</returns> |
| 83 | + IOptionRequest Expand(string value); |
| 84 | + |
| 85 | + /// <summary> |
| 86 | + /// Adds the specified expand value to the request. |
| 87 | + /// </summary> |
| 88 | + /// <param name="expandExpression">The expression from which to calculate the expand value.</param> |
| 89 | + /// <returns>The request object to send.</returns> |
| 90 | + IOptionRequest Expand(Expression<Func<Option, object>> expandExpression); |
| 91 | + |
| 92 | + /// <summary> |
| 93 | + /// Adds the specified select value to the request. |
| 94 | + /// </summary> |
| 95 | + /// <param name="value">The select value.</param> |
| 96 | + /// <returns>The request object to send.</returns> |
| 97 | + IOptionRequest Select(string value); |
| 98 | + |
| 99 | + /// <summary> |
| 100 | + /// Adds the specified select value to the request. |
| 101 | + /// </summary> |
| 102 | + /// <param name="selectExpression">The expression from which to calculate the select value.</param> |
| 103 | + /// <returns>The request object to send.</returns> |
| 104 | + IOptionRequest Select(Expression<Func<Option, object>> selectExpression); |
| 105 | + |
| 106 | + } |
| 107 | +} |
0 commit comments