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 v1.0 models and request builders using Typewriter #917

Merged
merged 3 commits into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public AadUserConversationMember()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "email", Required = Newtonsoft.Json.Required.Default)]
public string Email { get; set; }

/// <summary>
/// Gets or sets tenant id.
/// TenantId which the Azure AD user belongs to.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tenantId", Required = Newtonsoft.Json.Required.Default)]
public string TenantId { get; set; }

/// <summary>
/// Gets or sets user id.
/// The GUID of the user.
Expand Down
91 changes: 91 additions & 0 deletions src/Microsoft.Graph/Generated/model/Agreement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
// ------------------------------------------------------------------------------
// 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.Runtime.Serialization;
using Newtonsoft.Json;

/// <summary>
/// The type Agreement.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class Agreement : Entity
{

///<summary>
/// The Agreement constructor
///</summary>
public Agreement()
{
this.ODataType = "microsoft.graph.agreement";
}

/// <summary>
/// Gets or sets display name.
/// Display name of the agreement. The display name is used for internal tracking of the agreement but is not shown to end users who view the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "displayName", Required = Newtonsoft.Json.Required.Default)]
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets is per device acceptance required.
/// This setting enables you to require end users to accept this agreement on every device that they are accessing it from. The end user will be required to register their device in Azure AD, if they haven't already done so.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isPerDeviceAcceptanceRequired", Required = Newtonsoft.Json.Required.Default)]
public bool? IsPerDeviceAcceptanceRequired { get; set; }

/// <summary>
/// Gets or sets is viewing before acceptance required.
/// Indicates whether the user has to expand the agreement before accepting.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isViewingBeforeAcceptanceRequired", Required = Newtonsoft.Json.Required.Default)]
public bool? IsViewingBeforeAcceptanceRequired { get; set; }

/// <summary>
/// Gets or sets terms expiration.
/// Expiration schedule and frequency of agreement for all users.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "termsExpiration", Required = Newtonsoft.Json.Required.Default)]
public TermsExpiration TermsExpiration { get; set; }

/// <summary>
/// Gets or sets user reaccept required frequency.
/// The duration after which the user must re-accept the terms of use. The value is represented in ISO 8601 format for durations.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userReacceptRequiredFrequency", Required = Newtonsoft.Json.Required.Default)]
public Duration UserReacceptRequiredFrequency { get; set; }

/// <summary>
/// Gets or sets acceptances.
/// Read-only. Information about acceptances of this agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "acceptances", Required = Newtonsoft.Json.Required.Default)]
public IAgreementAcceptancesCollectionPage Acceptances { get; set; }

/// <summary>
/// Gets or sets file.
/// Default PDF linked to this agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "file", Required = Newtonsoft.Json.Required.Default)]
public AgreementFile File { get; set; }

/// <summary>
/// Gets or sets files.
/// PDFs linked to this agreement. Note: This property is in the process of being deprecated. Use the file property instead.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "files", Required = Newtonsoft.Json.Required.Default)]
public IAgreementFilesCollectionPage Files { get; set; }

}
}

126 changes: 126 additions & 0 deletions src/Microsoft.Graph/Generated/model/AgreementAcceptance.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
// ------------------------------------------------------------------------------
// 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.Runtime.Serialization;
using Newtonsoft.Json;

/// <summary>
/// The type Agreement Acceptance.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AgreementAcceptance : Entity
{

///<summary>
/// The AgreementAcceptance constructor
///</summary>
public AgreementAcceptance()
{
this.ODataType = "microsoft.graph.agreementAcceptance";
}

/// <summary>
/// Gets or sets agreement file id.
/// ID of the agreement file accepted by the user.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "agreementFileId", Required = Newtonsoft.Json.Required.Default)]
public string AgreementFileId { get; set; }

/// <summary>
/// Gets or sets agreement id.
/// ID of the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "agreementId", Required = Newtonsoft.Json.Required.Default)]
public string AgreementId { get; set; }

/// <summary>
/// Gets or sets device display name.
/// The display name of the device used for accepting the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "deviceDisplayName", Required = Newtonsoft.Json.Required.Default)]
public string DeviceDisplayName { get; set; }

/// <summary>
/// Gets or sets device id.
/// The unique identifier of the device used for accepting the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "deviceId", Required = Newtonsoft.Json.Required.Default)]
public string DeviceId { get; set; }

/// <summary>
/// Gets or sets device ostype.
/// The operating system used for accepting the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "deviceOSType", Required = Newtonsoft.Json.Required.Default)]
public string DeviceOSType { get; set; }

/// <summary>
/// Gets or sets device osversion.
/// The operating system version of the device used for accepting the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "deviceOSVersion", Required = Newtonsoft.Json.Required.Default)]
public string DeviceOSVersion { get; set; }

/// <summary>
/// Gets or sets expiration date time.
/// The expiration date time of the acceptance. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "expirationDateTime", Required = Newtonsoft.Json.Required.Default)]
public DateTimeOffset? ExpirationDateTime { get; set; }

/// <summary>
/// Gets or sets recorded date time.
/// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recordedDateTime", Required = Newtonsoft.Json.Required.Default)]
public DateTimeOffset? RecordedDateTime { get; set; }

/// <summary>
/// Gets or sets state.
/// Possible values are: accepted, declined.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "state", Required = Newtonsoft.Json.Required.Default)]
public AgreementAcceptanceState? State { get; set; }

/// <summary>
/// Gets or sets user display name.
/// Display name of the user when the acceptance was recorded.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userDisplayName", Required = Newtonsoft.Json.Required.Default)]
public string UserDisplayName { get; set; }

/// <summary>
/// Gets or sets user email.
/// Email of the user when the acceptance was recorded.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userEmail", Required = Newtonsoft.Json.Required.Default)]
public string UserEmail { get; set; }

/// <summary>
/// Gets or sets user id.
/// ID of the user who accepted the agreement.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userId", Required = Newtonsoft.Json.Required.Default)]
public string UserId { get; set; }

/// <summary>
/// Gets or sets user principal name.
/// UPN of the user when the acceptance was recorded.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userPrincipalName", Required = Newtonsoft.Json.Required.Default)]
public string UserPrincipalName { get; set; }

}
}

39 changes: 39 additions & 0 deletions src/Microsoft.Graph/Generated/model/AgreementAcceptanceState.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// ------------------------------------------------------------------------------
// 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;
using Newtonsoft.Json;

/// <summary>
/// The enum AgreementAcceptanceState.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum AgreementAcceptanceState
{

/// <summary>
/// Accepted
/// </summary>
Accepted = 2,

/// <summary>
/// Declined
/// </summary>
Declined = 3,

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

}
}
41 changes: 41 additions & 0 deletions src/Microsoft.Graph/Generated/model/AgreementFile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// ------------------------------------------------------------------------------
// 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.Runtime.Serialization;
using Newtonsoft.Json;

/// <summary>
/// The type Agreement File.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AgreementFile : AgreementFileProperties
{

///<summary>
/// The AgreementFile constructor
///</summary>
public AgreementFile()
{
this.ODataType = "microsoft.graph.agreementFile";
}

/// <summary>
/// Gets or sets localizations.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "localizations", Required = Newtonsoft.Json.Required.Default)]
public IAgreementFileLocalizationsCollectionPage Localizations { get; set; }

}
}

52 changes: 52 additions & 0 deletions src/Microsoft.Graph/Generated/model/AgreementFileData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// ------------------------------------------------------------------------------
// 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: ComplexType.cs.tt

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

/// <summary>
/// The type AgreementFileData.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class AgreementFileData
{
/// <summary>
/// Initializes a new instance of the <see cref="AgreementFileData"/> class.
/// </summary>
public AgreementFileData()
{
this.ODataType = "microsoft.graph.agreementFileData";
}

/// <summary>
/// Gets or sets data.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "data", Required = Newtonsoft.Json.Required.Default)]
public byte[] Data { get; set; }

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

/// <summary>
/// Gets or sets @odata.type.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)]
public string ODataType { get; set; }

}
}