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 Kiota #586

Merged
merged 3 commits into from
Dec 16, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe

## [Unreleased]

## [5.15.0-preview] - 2022-12-16

### Added

- Adds support for multi value headers
- Adds support for URI Form Encoded(`application/x-www-form-urlencoded`) serialization

### Changed

Expand Down
3 changes: 3 additions & 0 deletions src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
using Microsoft.Graph.Beta.Workbooks;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Abstractions.Store;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
using Microsoft.Kiota.Serialization.Text;
using System;
Expand Down Expand Up @@ -610,8 +611,10 @@ public BaseGraphServiceClient(IRequestAdapter requestAdapter, IBackingStoreFacto
RequestAdapter = requestAdapter;
ApiClientBuilder.RegisterDefaultSerializer<JsonSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<TextSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<FormSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<JsonParseNodeFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<TextParseNodeFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<FormParseNodeFactory>();
if (string.IsNullOrEmpty(RequestAdapter.BaseUrl)) {
RequestAdapter.BaseUrl = "https://graph.microsoft.com/beta";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// </summary>
public class AccessPackageAssignment : Entity, IParsable {
/// <summary>Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.</summary>
public Microsoft.Graph.Beta.Models.AccessPackage AccessPackage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AccessPackageResourceRequest : Entity, IParsable {
/// <summary>The accessPackageResource property</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AccessReviewHistoryDecisionFilter {
Approve,
Deny,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AccessReviewHistoryDefinition : Entity, IParsable {
/// <summary>The createdBy property</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AccessReviewHistoryInstance : Entity, IParsable {
/// <summary>Uri which can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required.</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AccessReviewHistoryStatus {
Done,
Inprogress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AccessReviewInstance : Entity, IParsable {
/// <summary>Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AccessReviewInstanceDecisionItem : Entity, IParsable {
/// <summary>The identifier of the accessReviewInstance parent. Supports $select. Read-only.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AccessReviewStage : Entity, IParsable {
/// <summary>Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed.</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AccessType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AccessType {
Grant,
Deny,
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AclType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AclType {
User,
Group,
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/ActionSource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum ActionSource {
Manual,
Automatic,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of activityStatistics entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class ActivityStatistics : Entity, IParsable {
/// <summary>The type of activity for which statistics are returned. The possible values are: call, chat, email, focus, and meeting.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of activityStatistics entities.
/// </summary>
public class ActivityStatisticsCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<ActivityStatistics> Value {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AdminConsentState {
/// <summary>Admin did not configure the item</summary>
NotConfigured,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AdvancedBitLockerState {
/// <summary>Advanced BitLocker State Success</summary>
Success,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the authenticationMethodsPolicy singleton.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AdvancedConfigState {
Default,
Enabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the advancedThreatProtectionOnboardingDeviceSettingStates property of the microsoft.graph.advancedThreatProtectionOnboardingStateSummary entity.
/// </summary>
public class AdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AdvancedThreatProtectionOnboardingDeviceSettingState> Value {
Expand Down
3 changes: 3 additions & 0 deletions src/Microsoft.Graph/Generated/Models/AgedAccountsPayable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// </summary>
public class AgedAccountsPayable : Entity, IParsable {
/// <summary>The agedAsOfDate property</summary>
public Date? AgedAsOfDate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the agedAccountsPayable property of the microsoft.graph.company entity.
/// </summary>
public class AgedAccountsPayableCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AgedAccountsPayable> Value {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// </summary>
public class AgedAccountsReceivable : Entity, IParsable {
/// <summary>The agedAsOfDate property</summary>
public Date? AgedAsOfDate {
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AgentStatus.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AgentStatus {
Active,
Inactive,
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/Agreement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of agreement entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class Agreement : Entity, IParsable {
/// <summary>Read-only. Information about acceptances of this agreement.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of agreementAcceptance entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AgreementAcceptance : Entity, IParsable {
/// <summary>ID of the agreement file accepted by the user.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of agreementAcceptance entities.
/// </summary>
public class AgreementAcceptanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AgreementAcceptance> Value {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of agreementAcceptance entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AgreementAcceptanceState {
Accepted,
Declined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of agreement entities.
/// </summary>
public class AgreementCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<Agreement> Value {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of agreement entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AgreementFileLocalization : AgreementFileProperties, IParsable {
/// <summary>Read-only. Customized versions of the terms of use agreement in the Azure AD tenant.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of agreement entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AgreementFileVersion : AgreementFileProperties, IParsable {
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the collection of activityStatistics entities.
/// </summary>
public class Alert : Entity, IParsable {
/// <summary>Name or alias of the activity group (attacker) this alert is attributed to.</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AlertFeedback.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AlertFeedback {
Unknown,
TruePositive,
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AlertSeverity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AlertSeverity {
Unknown,
Informational,
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AlertStatus.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
public enum AlertStatus {
Unknown,
NewAlert,
Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.Graph/Generated/Models/AllowedDataLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of allowedDataLocation entities.
/// </summary>
public class AllowedDataLocation : Entity, IParsable {
/// <summary>The appId property</summary>
public string AppId {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of allowedDataLocation entities.
/// </summary>
public class AllowedDataLocationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AllowedDataLocation> Value {
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/Models/AllowedValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// Provides operations to manage the admin singleton.
/// </summary>
public class AllowedValue : Entity, IParsable {
/// <summary>Indicates whether the predefined value is active or deactivated. If set to false, this predefined value cannot be assigned to any additional supported directory objects.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the allowedValues property of the microsoft.graph.customSecurityAttributeDefinition entity.
/// </summary>
public class AllowedValueCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AllowedValue> Value {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of activityStatistics entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AnalyticsActivityType {
Email,
Meeting,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AndroidDeviceOwnerEnrollmentMode {
CorporateOwnedDedicatedDevice,
CorporateOwnedFullyManaged,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the androidDeviceOwnerEnrollmentProfiles property of the microsoft.graph.deviceManagement entity.
/// </summary>
public class AndroidDeviceOwnerEnrollmentProfileCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AndroidDeviceOwnerEnrollmentProfile> Value {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AndroidDeviceOwnerEnrollmentTokenType {
/// <summary>Default token type.</summary>
Default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using System.IO;
using System.Linq;
namespace Microsoft.Graph.Beta.Models {
/// <summary>
/// Provides operations to manage the androidForWorkAppConfigurationSchemas property of the microsoft.graph.deviceManagement entity.
/// </summary>
public class AndroidForWorkAppConfigurationSchemaCollectionResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
public List<AndroidForWorkAppConfigurationSchema> Value {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Microsoft.Graph.Beta.Models {
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <summary>Provides operations to manage the admin singleton.</summary>
public enum AndroidForWorkAppConfigurationSchemaItemDataType {
Bool,
Integer,
Expand Down
Loading