Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Microsoft.Graph.Chats.Item.Messages;
using Microsoft.Graph.Chats.Item.PermissionGrants;
using Microsoft.Graph.Chats.Item.PinnedMessages;
using Microsoft.Graph.Chats.Item.RemoveAllAccessForUser;
using Microsoft.Graph.Chats.Item.SendActivityNotification;
using Microsoft.Graph.Chats.Item.Tabs;
using Microsoft.Graph.Chats.Item.UnhideForUser;
Expand Down Expand Up @@ -75,6 +76,11 @@ public partial class ChatItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Chats.Item.PinnedMessages.PinnedMessagesRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the removeAllAccessForUser method.</summary>
public global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder RemoveAllAccessForUser
{
get => new global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the sendActivityNotification method.</summary>
public global::Microsoft.Graph.Chats.Item.SendActivityNotification.SendActivityNotificationRequestBuilder SendActivityNotification
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System.Collections.Generic;
using System.IO;
using System;
namespace Microsoft.Graph.Chats.Item.RemoveAllAccessForUser
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class RemoveAllAccessForUserPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData
{
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
set { BackingStore.Set("AdditionalData", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The user property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.TeamworkUserIdentity? User
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity?>("user"); }
set { BackingStore?.Set("user", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.TeamworkUserIdentity User
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user"); }
set { BackingStore?.Set("user", value); }
}
#endif
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/> and sets the default values.
/// </summary>
public RemoveAllAccessForUserPostRequestBody()
{
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "user", n => { User = n.GetObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>(global::Microsoft.Graph.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user", User);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Chats.Item.RemoveAllAccessForUser
{
/// <summary>
/// Provides operations to call the removeAllAccessForUser method.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class RemoveAllAccessForUserRequestBuilder : BaseRequestBuilder
{
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public RemoveAllAccessForUserRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/removeAllAccessForUser", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public RemoveAllAccessForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/removeAllAccessForUser", rawUrl)
{
}
/// <summary>
/// Remove access to a chat for a user.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-removeallaccessforuser?view=graph-rest-1.0" />
/// </summary>
/// <param name="body">The request body</param>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task PostAsync(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Remove access to a chat for a user.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder WithUrl(string rawUrl)
{
return new global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class RemoveAllAccessForUserRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Information about retention label and settings enforced on the driveItem. Read-write.
/// Get metadata information for a retention label applied on a driveItem. For information about retention labels from an administrator&apos;s perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/driveitem-getretentionlabel?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Models.ItemRetentionLabel"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
Expand Down Expand Up @@ -126,7 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Information about retention label and settings enforced on the driveItem. Read-write.
/// Get metadata information for a retention label applied on a driveItem. For information about retention labels from an administrator&apos;s perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -184,7 +185,7 @@ public partial class RetentionLabelRequestBuilderDeleteRequestConfiguration : Re
{
}
/// <summary>
/// Information about retention label and settings enforced on the driveItem. Read-write.
/// Get metadata information for a retention label applied on a driveItem. For information about retention labels from an administrator&apos;s perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class RetentionLabelRequestBuilderGetQueryParameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Microsoft.Graph.Me.Chats.Item.Messages;
using Microsoft.Graph.Me.Chats.Item.PermissionGrants;
using Microsoft.Graph.Me.Chats.Item.PinnedMessages;
using Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser;
using Microsoft.Graph.Me.Chats.Item.SendActivityNotification;
using Microsoft.Graph.Me.Chats.Item.Tabs;
using Microsoft.Graph.Me.Chats.Item.UnhideForUser;
Expand Down Expand Up @@ -75,6 +76,11 @@ public partial class ChatItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Me.Chats.Item.PinnedMessages.PinnedMessagesRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the removeAllAccessForUser method.</summary>
public global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder RemoveAllAccessForUser
{
get => new global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the sendActivityNotification method.</summary>
public global::Microsoft.Graph.Me.Chats.Item.SendActivityNotification.SendActivityNotificationRequestBuilder SendActivityNotification
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System.Collections.Generic;
using System.IO;
using System;
namespace Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class RemoveAllAccessForUserPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData
{
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
set { BackingStore.Set("AdditionalData", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The user property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.TeamworkUserIdentity? User
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity?>("user"); }
set { BackingStore?.Set("user", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.TeamworkUserIdentity User
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user"); }
set { BackingStore?.Set("user", value); }
}
#endif
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/> and sets the default values.
/// </summary>
public RemoveAllAccessForUserPostRequestBody()
{
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "user", n => { User = n.GetObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>(global::Microsoft.Graph.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user", User);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618
Loading
Loading