Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated beta models and request builders using Typewriter #492

Merged
merged 2 commits into from
Jul 19, 2022
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 @@ -23,7 +23,7 @@ public partial class DisplayTemplate

/// <summary>
/// Gets or sets id.
/// The text identifier for the display template; for example, contosoTickets.
/// The text identifier for the display template; for example, contosoTickets. Maximum 16 characters. Only alphanumeric characters allowed.
/// </summary>
[JsonPropertyName("id")]
public string Id { get; set; }
Expand All @@ -37,7 +37,7 @@ public partial class DisplayTemplate

/// <summary>
/// Gets or sets priority.
/// Defines the priority of a display template. A display template with priority 1 is evaluated before a template with priority 4. Gaps in priority values are supported.
/// Defines the priority of a display template. A display template with priority 1 is evaluated before a template with priority 4. Gaps in priority values are supported. Must be positive value.
/// </summary>
[JsonPropertyName("priority")]
public Int32? Priority { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class SearchSettings

/// <summary>
/// Gets or sets searchResultTemplates.
/// Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed.
/// Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed. Maximum of 2 search result templates per connection.
/// </summary>
[JsonPropertyName("searchResultTemplates")]
public IEnumerable<DisplayTemplate> SearchResultTemplates { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/Microsoft.Graph/Generated/model/AccessPackageSubject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace Microsoft.Graph
/// <summary>
/// The type Access Package Subject.
/// </summary>
[JsonConverter(typeof(DerivedTypeConverter<AccessPackageSubject>))]
public partial class AccessPackageSubject : Entity
{

Expand Down Expand Up @@ -68,6 +69,12 @@ public partial class AccessPackageSubject : Entity
[JsonPropertyName("principalName")]
public string PrincipalName { get; set; }

/// <summary>
/// Gets or sets subject lifecycle.
/// </summary>
[JsonPropertyName("subjectLifecycle")]
public AccessPackageSubjectLifecycle? SubjectLifecycle { get; set; }

/// <summary>
/// Gets or sets type.
/// The resource type of the subject.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: EnumType.cs.tt


namespace Microsoft.Graph
{
using System.Text.Json.Serialization;

/// <summary>
/// The enum AccessPackageSubjectLifecycle.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum AccessPackageSubjectLifecycle
{

/// <summary>
/// Not Defined
/// </summary>
NotDefined = 0,

/// <summary>
/// Not Governed
/// </summary>
NotGoverned = 1,

/// <summary>
/// Governed
/// </summary>
Governed = 2,

/// <summary>
/// Unknown Future Value
/// </summary>
UnknownFutureValue = 3,

}
}
1 change: 1 addition & 0 deletions src/Microsoft.Graph/Generated/model/Admin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public partial class Admin

/// <summary>
/// Gets or sets report settings.
/// A container for administrative resources to manage reports.
/// </summary>
[JsonPropertyName("reportSettings")]
public AdminReportSettings ReportSettings { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.Graph/Generated/model/AdminReportSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class AdminReportSettings : Entity

/// <summary>
/// Gets or sets display concealed names.
/// If set to true, all reports will conceal user information such as usernames, groups, and sites. If false, all reports will show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required.
/// </summary>
[JsonPropertyName("displayConcealedNames")]
public bool? DisplayConcealedNames { get; set; }
Expand Down
6 changes: 6 additions & 0 deletions src/Microsoft.Graph/Generated/model/ApplicationTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public partial class ApplicationTemplate : Entity
[JsonPropertyName("publisher")]
public string Publisher { get; set; }

/// <summary>
/// Gets or sets supported claim configuration.
/// </summary>
[JsonPropertyName("supportedClaimConfiguration")]
public SupportedClaimConfiguration SupportedClaimConfiguration { get; set; }

/// <summary>
/// Gets or sets supported provisioning types.
/// The list of provisioning modes supported by this application. The only valid value is sync.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public DeviceManagementConfigurationStringSettingValueDefinition()

/// <summary>
/// Gets or sets maximumLength.
/// Maximum length of string. Valid values 0 to 87516
/// Maximum length of string
/// </summary>
[JsonPropertyName("maximumLength")]
public Int64? MaximumLength { get; set; }

/// <summary>
/// Gets or sets minimumLength.
/// Minimum length of string. Valid values 0 to 87516
/// Minimum length of string
/// </summary>
[JsonPropertyName("minimumLength")]
public Int64? MinimumLength { get; set; }
Expand Down
51 changes: 51 additions & 0 deletions src/Microsoft.Graph/Generated/model/EmployeeExperience.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>

// Template Source: EntityType.cs.tt

namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;

/// <summary>
/// The type Employee Experience.
/// </summary>
[JsonConverter(typeof(DerivedTypeConverter<EmployeeExperience>))]
public partial class EmployeeExperience
{

/// <summary>
/// Gets or sets learning providers.
/// </summary>
[JsonPropertyName("learningProviders")]
public IEmployeeExperienceLearningProvidersCollectionPage LearningProviders { get; set; }

/// <summary>
/// Gets or sets learningProvidersNextLink.
/// </summary>
[JsonPropertyName("learningProviders@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string LearningProvidersNextLink { get; set; }

/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[JsonPropertyName("@odata.type")]
public string ODataType { get; set; }

/// <summary>
/// Gets or sets additional data.
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalData { get; set; }

}
}

13 changes: 13 additions & 0 deletions src/Microsoft.Graph/Generated/model/EntitlementManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,19 @@ public partial class EntitlementManagement : Entity
[JsonPropertyName("settings")]
public EntitlementManagementSettings Settings { get; set; }

/// <summary>
/// Gets or sets subjects.
/// </summary>
[JsonPropertyName("subjects")]
public IEntitlementManagementSubjectsCollectionPage Subjects { get; set; }

/// <summary>
/// Gets or sets subjectsNextLink.
/// </summary>
[JsonPropertyName("subjects@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string SubjectsNextLink { get; set; }

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ public ExternalIdentitiesPolicy()

/// <summary>
/// Gets or sets allow deleted identities data removal.
/// Notifies Azure AD whether to clean up the user information about the external identity, from the guest tenant, when the user is deleted in their home tenant.
/// </summary>
[JsonPropertyName("allowDeletedIdentitiesDataRemoval")]
public bool? AllowDeletedIdentitiesDataRemoval { get; set; }

/// <summary>
/// Gets or sets allow external identities to leave.
/// Defines whether external users can leave the guest tenant. If set to false, self-service controls are not enabled, and the admin of the guest tenant must manually remove the external user from the guest tenant.
/// </summary>
[JsonPropertyName("allowExternalIdentitiesToLeave")]
public bool? AllowExternalIdentitiesToLeave { get; set; }
Expand Down
7 changes: 0 additions & 7 deletions src/Microsoft.Graph/Generated/model/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,6 @@ public Group()
[JsonPropertyName("mailNickname")]
public string MailNickname { get; set; }

/// <summary>
/// Gets or sets mdm app id.
/// </summary>
[Obsolete("")]
[JsonPropertyName("mdmAppId")]
public string MdmAppId { get; set; }

/// <summary>
/// Gets or sets membership rule.
/// The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith).
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/model/Identity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class Identity

/// <summary>
/// Gets or sets displayName.
/// The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta.
/// The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta.
/// </summary>
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/model/KeyValuePair.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public partial class KeyValuePair

/// <summary>
/// Gets or sets name.
/// Name for this key-value pair. Possible names are: AdditionalWSFedEndpointCheckResult, AllowedAuthenticationClassReferencesCheckResult, AlwaysRequireAuthenticationCheckResult, AutoUpdateEnabledCheckResult, ClaimsProviderNameCheckResult, EncryptClaimsCheckResult, EncryptedNameIdRequiredCheckResult, MonitoringEnabledCheckResult,NotBeforeSkewCheckResult, RequestMFAFromClaimsProvidersCheckResult, SignedSamlRequestsRequiredCheckResult, AdditionalAuthenticationRulesCheckResult, TokenLifetimeCheckResult, DelegationAuthorizationRulesCheckResult, IssuanceAuthorizationRulesCheckResult, IssuanceTransformRulesCheckResult.
/// Name for this key-value pair
/// </summary>
[JsonPropertyName("name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets value.
/// Value for this key-value pair. Possible result values are 0 (when the validation check passed), 1 (when the validation check failed), or 2 (when the validation check is a warning).
/// Value for this key-value pair
/// </summary>
[JsonPropertyName("value")]
public string Value { get; set; }
Expand Down
Loading