Skip to content

Commit 91c0019

Browse files
authored
Merge pull request #1054 from microsoftgraph/kiota/beta/pipelinebuild/199559
Generated models and request builders
2 parents c0f8ea5 + 2b52a89 commit 91c0019

File tree

228 files changed

+14260
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+14260
-288
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Beta.Models.TeamsAdministration;
4+
using Microsoft.Graph.Beta.Models;
5+
using Microsoft.Kiota.Abstractions.Extensions;
6+
using Microsoft.Kiota.Abstractions.Serialization;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System;
10+
namespace Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName
11+
{
12+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
13+
#pragma warning disable CS1591
14+
public partial class GetPolicyIdWithTypeWithNameGetResponse : global::Microsoft.Graph.Beta.Models.BaseCollectionPaginationCountResponse, IParsable
15+
#pragma warning restore CS1591
16+
{
17+
/// <summary>The value property</summary>
18+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
19+
#nullable enable
20+
public List<global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail>? Value
21+
{
22+
get { return BackingStore?.Get<List<global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail>?>("value"); }
23+
set { BackingStore?.Set("value", value); }
24+
}
25+
#nullable restore
26+
#else
27+
public List<global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail> Value
28+
{
29+
get { return BackingStore?.Get<List<global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail>>("value"); }
30+
set { BackingStore?.Set("value", value); }
31+
}
32+
#endif
33+
/// <summary>
34+
/// Creates a new instance of the appropriate class based on discriminator value
35+
/// </summary>
36+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse"/></returns>
37+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
38+
public static new global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
39+
{
40+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
41+
return new global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse();
42+
}
43+
/// <summary>
44+
/// The deserialization information for the current model
45+
/// </summary>
46+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
47+
public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
48+
{
49+
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
50+
{
51+
{ "value", n => { Value = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail>(global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail.CreateFromDiscriminatorValue)?.AsList(); } },
52+
};
53+
}
54+
/// <summary>
55+
/// Serializes information the current object
56+
/// </summary>
57+
/// <param name="writer">Serialization writer to use to serialize this model</param>
58+
public override void Serialize(ISerializationWriter writer)
59+
{
60+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
61+
base.Serialize(writer);
62+
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Beta.Models.TeamsAdministration.PolicyIdentifierDetail>("value", Value);
63+
}
64+
}
65+
}
66+
#pragma warning restore CS0618
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System;
8+
namespace Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName
9+
{
10+
[Obsolete("This class is obsolete. Use GetPolicyIdWithTypeWithNameGetResponse instead.")]
11+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
12+
#pragma warning disable CS1591
13+
public partial class GetPolicyIdWithTypeWithNameResponse : global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse, IParsable
14+
#pragma warning restore CS1591
15+
{
16+
/// <summary>
17+
/// Creates a new instance of the appropriate class based on discriminator value
18+
/// </summary>
19+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse"/></returns>
20+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
21+
public static new global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse CreateFromDiscriminatorValue(IParseNode parseNode)
22+
{
23+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
24+
return new global::Microsoft.Graph.Beta.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse();
25+
}
26+
}
27+
}
28+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)