Skip to content

Commit

Permalink
Update generated files with build 86091 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Sep 15, 2022
1 parent c43f59c commit a1be18b
Show file tree
Hide file tree
Showing 92 changed files with 1,242 additions and 217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Microsoft.Graph.Communications.Calls.Item.Answer {
/// <summary>Provides operations to call the answer method.</summary>
public class AnswerPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable {
/// <summary>The acceptedModalities property</summary>
public List<string> AcceptedModalities {
get { return BackingStore?.Get<List<string>>("acceptedModalities"); }
public List<Modality?> AcceptedModalities {
get { return BackingStore?.Get<List<Modality?>>("acceptedModalities"); }
set { BackingStore?.Set("acceptedModalities", value); }
}
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
Expand Down Expand Up @@ -60,7 +60,7 @@ public static AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode pars
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues<Modality>()?.ToList(); } },
{"callbackUri", n => { CallbackUri = n.GetStringValue(); } },
{"callOptions", n => { CallOptions = n.GetObjectValue<IncomingCallOptions>(IncomingCallOptions.CreateFromDiscriminatorValue); } },
{"mediaConfig", n => { MediaConfig = n.GetObjectValue<Microsoft.Graph.Models.MediaConfig>(Microsoft.Graph.Models.MediaConfig.CreateFromDiscriminatorValue); } },
Expand All @@ -73,7 +73,7 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
/// </summary>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfPrimitiveValues<string>("acceptedModalities", AcceptedModalities);
writer.WriteCollectionOfEnumValues<Modality>("acceptedModalities", AcceptedModalities);
writer.WriteStringValue("callbackUri", CallbackUri);
writer.WriteObjectValue<IncomingCallOptions>("callOptions", CallOptions);
writer.WriteObjectValue<Microsoft.Graph.Models.MediaConfig>("mediaConfig", MediaConfig);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System;
Expand All @@ -15,8 +16,8 @@ public IDictionary<string, object> AdditionalData {
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The value property</summary>
public List<string> Value {
get { return BackingStore?.Get<List<string>>("value"); }
public List<CalendarRoleType?> Value {
get { return BackingStore?.Get<List<CalendarRoleType?>>("value"); }
set { BackingStore?.Set("value", value); }
}
/// <summary>
Expand All @@ -39,7 +40,7 @@ public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminato
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"value", n => { Value = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"value", n => { Value = n.GetCollectionOfEnumValues<CalendarRoleType>()?.ToList(); } },
};
}
/// <summary>
Expand All @@ -48,7 +49,7 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
/// </summary>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfPrimitiveValues<string>("value", Value);
writer.WriteCollectionOfEnumValues<CalendarRoleType>("value", Value);
writer.WriteAdditionalData(AdditionalData);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System;
Expand All @@ -15,8 +16,8 @@ public IDictionary<string, object> AdditionalData {
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The value property</summary>
public List<string> Value {
get { return BackingStore?.Get<List<string>>("value"); }
public List<CalendarRoleType?> Value {
get { return BackingStore?.Get<List<CalendarRoleType?>>("value"); }
set { BackingStore?.Set("value", value); }
}
/// <summary>
Expand All @@ -39,7 +40,7 @@ public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminato
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"value", n => { Value = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"value", n => { Value = n.GetCollectionOfEnumValues<CalendarRoleType>()?.ToList(); } },
};
}
/// <summary>
Expand All @@ -48,7 +49,7 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
/// </summary>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfPrimitiveValues<string>("value", Value);
writer.WriteCollectionOfEnumValues<CalendarRoleType>("value", Value);
writer.WriteAdditionalData(AdditionalData);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System;
Expand All @@ -15,8 +16,8 @@ public IDictionary<string, object> AdditionalData {
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The value property</summary>
public List<string> Value {
get { return BackingStore?.Get<List<string>>("value"); }
public List<CalendarRoleType?> Value {
get { return BackingStore?.Get<List<CalendarRoleType?>>("value"); }
set { BackingStore?.Set("value", value); }
}
/// <summary>
Expand All @@ -39,7 +40,7 @@ public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminato
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"value", n => { Value = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"value", n => { Value = n.GetCollectionOfEnumValues<CalendarRoleType>()?.ToList(); } },
};
}
/// <summary>
Expand All @@ -48,7 +49,7 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
/// </summary>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfPrimitiveValues<string>("value", Value);
writer.WriteCollectionOfEnumValues<CalendarRoleType>("value", Value);
writer.WriteAdditionalData(AdditionalData);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System;
Expand All @@ -15,8 +16,8 @@ public IDictionary<string, object> AdditionalData {
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The value property</summary>
public List<string> Value {
get { return BackingStore?.Get<List<string>>("value"); }
public List<CalendarRoleType?> Value {
get { return BackingStore?.Get<List<CalendarRoleType?>>("value"); }
set { BackingStore?.Set("value", value); }
}
/// <summary>
Expand All @@ -39,7 +40,7 @@ public static AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminato
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"value", n => { Value = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"value", n => { Value = n.GetCollectionOfEnumValues<CalendarRoleType>()?.ToList(); } },
};
}
/// <summary>
Expand All @@ -48,7 +49,7 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
/// </summary>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteCollectionOfPrimitiveValues<string>("value", Value);
writer.WriteCollectionOfEnumValues<CalendarRoleType>("value", Value);
writer.WriteAdditionalData(AdditionalData);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Microsoft.Graph.Models {
/// <summary>Provides operations to manage the collection of agreementAcceptance entities.</summary>
public enum AccessReviewHistoryDecisionFilter {
Approve,
Deny,
NotReviewed,
DontKnow,
NotNotified,
UnknownFutureValue,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public DateTimeOffset? CreatedDateTime {
set { BackingStore?.Set("createdDateTime", value); }
}
/// <summary>Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions will be included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.</summary>
public List<string> Decisions {
get { return BackingStore?.Get<List<string>>("decisions"); }
public List<AccessReviewHistoryDecisionFilter?> Decisions {
get { return BackingStore?.Get<List<AccessReviewHistoryDecisionFilter?>>("decisions"); }
set { BackingStore?.Set("decisions", value); }
}
/// <summary>Name for the access review history data collection. Required.</summary>
Expand Down Expand Up @@ -76,7 +76,7 @@ public AccessReviewHistoryDefinition() : base() {
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers()) {
{"createdBy", n => { CreatedBy = n.GetObjectValue<UserIdentity>(UserIdentity.CreateFromDiscriminatorValue); } },
{"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } },
{"decisions", n => { Decisions = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"decisions", n => { Decisions = n.GetCollectionOfEnumValues<AccessReviewHistoryDecisionFilter>()?.ToList(); } },
{"displayName", n => { DisplayName = n.GetStringValue(); } },
{"instances", n => { Instances = n.GetCollectionOfObjectValues<AccessReviewHistoryInstance>(AccessReviewHistoryInstance.CreateFromDiscriminatorValue)?.ToList(); } },
{"reviewHistoryPeriodEndDateTime", n => { ReviewHistoryPeriodEndDateTime = n.GetDateTimeOffsetValue(); } },
Expand All @@ -95,7 +95,7 @@ public AccessReviewHistoryDefinition() : base() {
base.Serialize(writer);
writer.WriteObjectValue<UserIdentity>("createdBy", CreatedBy);
writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
writer.WriteCollectionOfPrimitiveValues<string>("decisions", Decisions);
writer.WriteCollectionOfEnumValues<AccessReviewHistoryDecisionFilter>("decisions", Decisions);
writer.WriteStringValue("displayName", DisplayName);
writer.WriteCollectionOfObjectValues<AccessReviewHistoryInstance>("instances", Instances);
writer.WriteDateTimeOffsetValue("reviewHistoryPeriodEndDateTime", ReviewHistoryPeriodEndDateTime);
Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.Graph/Generated/Models/ApplicationTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Models {
/// <summary>Provides operations to manage the collection of applicationTemplate entities.</summary>
public class ApplicationTemplate : Entity, IParsable {
/// <summary>The list of categories for the application. Supported values can be: Collaboration, Business Management, Consumer, Content management, CRM, Data services, Developer services, E-commerce, Education, ERP, Finance, Health, Human resources, IT infrastructure, Mail, Management, Marketing, Media, Productivity, Project management, Telecommunications, Tools, Travel, and Web design &amp; hosting.</summary>
public List<string> Categories {
Expand Down Expand Up @@ -46,7 +47,7 @@ public List<string> SupportedSingleSignOnModes {
set { BackingStore?.Set("supportedSingleSignOnModes", value); }
}
/// <summary>
/// Instantiates a new ApplicationTemplate and sets the default values.
/// Instantiates a new applicationTemplate and sets the default values.
/// </summary>
public ApplicationTemplate() : base() {
OdataType = "#microsoft.graph.applicationTemplate";
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Models {
/// <summary>Provides operations to manage the collection of agreementAcceptance entities.</summary>
/// <summary>Provides operations to manage the cloudCommunications singleton.</summary>
public class AudioRoutingGroup : Entity, IParsable {
/// <summary>The receivers property</summary>
public List<string> Receivers {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Models {
/// <summary>Provides operations to manage the authenticationMethodsPolicy singleton.</summary>
/// <summary>Provides operations to manage the collection of authenticationMethodConfiguration entities.</summary>
public enum AuthenticationMethodTargetType {
User,
Group,
Expand Down
8 changes: 4 additions & 4 deletions src/Microsoft.Graph/Generated/Models/Calendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
namespace Microsoft.Graph.Models {
public class Calendar : Entity, IParsable {
/// <summary>Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.</summary>
public List<string> AllowedOnlineMeetingProviders {
get { return BackingStore?.Get<List<string>>("allowedOnlineMeetingProviders"); }
public List<OnlineMeetingProviderType?> AllowedOnlineMeetingProviders {
get { return BackingStore?.Get<List<OnlineMeetingProviderType?>>("allowedOnlineMeetingProviders"); }
set { BackingStore?.Set("allowedOnlineMeetingProviders", value); }
}
/// <summary>The permissions of the users with whom the calendar is shared.</summary>
Expand Down Expand Up @@ -114,7 +114,7 @@ public Calendar() : base() {
/// </summary>
public new IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers()) {
{"allowedOnlineMeetingProviders", n => { AllowedOnlineMeetingProviders = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"allowedOnlineMeetingProviders", n => { AllowedOnlineMeetingProviders = n.GetCollectionOfEnumValues<OnlineMeetingProviderType>()?.ToList(); } },
{"calendarPermissions", n => { CalendarPermissions = n.GetCollectionOfObjectValues<CalendarPermission>(CalendarPermission.CreateFromDiscriminatorValue)?.ToList(); } },
{"calendarView", n => { CalendarView = n.GetCollectionOfObjectValues<Event>(Event.CreateFromDiscriminatorValue)?.ToList(); } },
{"canEdit", n => { CanEdit = n.GetBoolValue(); } },
Expand All @@ -141,7 +141,7 @@ public Calendar() : base() {
public new void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteCollectionOfPrimitiveValues<string>("allowedOnlineMeetingProviders", AllowedOnlineMeetingProviders);
writer.WriteCollectionOfEnumValues<OnlineMeetingProviderType>("allowedOnlineMeetingProviders", AllowedOnlineMeetingProviders);
writer.WriteCollectionOfObjectValues<CalendarPermission>("calendarPermissions", CalendarPermissions);
writer.WriteCollectionOfObjectValues<Event>("calendarView", CalendarView);
writer.WriteBoolValue("canEdit", CanEdit);
Expand Down
8 changes: 4 additions & 4 deletions src/Microsoft.Graph/Generated/Models/CalendarPermission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace Microsoft.Graph.Models {
/// <summary>Provides operations to manage the collection of agreementAcceptance entities.</summary>
public class CalendarPermission : Entity, IParsable {
/// <summary>List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.</summary>
public List<string> AllowedRoles {
get { return BackingStore?.Get<List<string>>("allowedRoles"); }
public List<CalendarRoleType?> AllowedRoles {
get { return BackingStore?.Get<List<CalendarRoleType?>>("allowedRoles"); }
set { BackingStore?.Set("allowedRoles", value); }
}
/// <summary>Represents a sharee or delegate who has access to the calendar. For the &apos;My Organization&apos; sharee, the address property is null. Read-only.</summary>
Expand Down Expand Up @@ -50,7 +50,7 @@ public CalendarPermission() : base() {
/// </summary>
public new IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers()) {
{"allowedRoles", n => { AllowedRoles = n.GetCollectionOfPrimitiveValues<string>()?.ToList(); } },
{"allowedRoles", n => { AllowedRoles = n.GetCollectionOfEnumValues<CalendarRoleType>()?.ToList(); } },
{"emailAddress", n => { EmailAddress = n.GetObjectValue<Microsoft.Graph.Models.EmailAddress>(Microsoft.Graph.Models.EmailAddress.CreateFromDiscriminatorValue); } },
{"isInsideOrganization", n => { IsInsideOrganization = n.GetBoolValue(); } },
{"isRemovable", n => { IsRemovable = n.GetBoolValue(); } },
Expand All @@ -64,7 +64,7 @@ public CalendarPermission() : base() {
public new void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteCollectionOfPrimitiveValues<string>("allowedRoles", AllowedRoles);
writer.WriteCollectionOfEnumValues<CalendarRoleType>("allowedRoles", AllowedRoles);
writer.WriteObjectValue<Microsoft.Graph.Models.EmailAddress>("emailAddress", EmailAddress);
writer.WriteBoolValue("isInsideOrganization", IsInsideOrganization);
writer.WriteBoolValue("isRemovable", IsRemovable);
Expand Down
Loading

0 comments on commit a1be18b

Please sign in to comment.