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 #611

Merged
merged 2 commits into from
Feb 8, 2023
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public partial interface IWorkflowRequestBuilder : IWorkflowBaseRequestBuilder
/// </summary>
/// <returns>The <see cref="IWorkflowActivateRequestBuilder"/>.</returns>
IWorkflowActivateRequestBuilder Activate(
IEnumerable<User> subjects = null);
IEnumerable<Microsoft.Graph.User> subjects = null);

/// <summary>
/// Gets the request builder for WorkflowCreateNewVersion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public IWorkflowVersionsCollectionRequestBuilder Versions
/// </summary>
/// <returns>The <see cref="IWorkflowActivateRequestBuilder"/>.</returns>
public IWorkflowActivateRequestBuilder Activate(
IEnumerable<User> subjects = null)
IEnumerable<Microsoft.Graph.User> subjects = null)
{
return new WorkflowActivateRequestBuilder(
this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.activate"),
Expand Down
3 changes: 3 additions & 0 deletions src/Microsoft.Graph/Generated/model/ActionStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ public partial class ActionStep

/// <summary>
/// Gets or sets actionUrl.
/// A link to the documentation or Azure portal page that is associated with the action step.
/// </summary>
[JsonPropertyName("actionUrl")]
public ActionUrl ActionUrl { get; set; }

/// <summary>
/// Gets or sets stepNumber.
/// Indicates the position for this action in the order of the collection of actions to be taken.
/// </summary>
[JsonPropertyName("stepNumber")]
public Int64? StepNumber { get; set; }

/// <summary>
/// Gets or sets text.
/// Friendly description of the action to take.
/// </summary>
[JsonPropertyName("text")]
public string Text { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.Graph/Generated/model/ActionUrl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ public partial class ActionUrl

/// <summary>
/// Gets or sets displayName.
/// Brief title for the page that the links directs to.
/// </summary>
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets url.
/// The URL to the documentation or Azure portal page.
/// </summary>
[JsonPropertyName("url")]
public string Url { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/model/Admin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public partial class Admin

/// <summary>
/// Gets or sets windows.
/// A container for all Windows Update for Business deployment service functionality. Read-only.
/// A container for all Windows administrator functionalities. Read-only.
/// </summary>
[JsonPropertyName("windows")]
public Microsoft.Graph.WindowsUpdates.Windows Windows { get; set; }
public AdminWindows Windows { get; set; }

/// <summary>
/// Gets or sets @odata.type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@

// Template Source: EntityType.cs.tt

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

/// <summary>
/// The type Windows.
/// The type Admin Windows.
/// </summary>
public partial class Windows : Microsoft.Graph.Entity
public partial class AdminWindows : Entity
{

/// <summary>
/// Gets or sets updates.
/// Entity that acts as a container for the functionality of the Windows Update for Business deployment service. Read-only.
/// Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only.
/// </summary>
[JsonPropertyName("updates")]
public Updates Updates { get; set; }
public AdminWindowsUpdates Updates { get; set; }

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,46 @@

// Template Source: EntityType.cs.tt

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

/// <summary>
/// The type Updates.
/// The type Admin Windows Updates.
/// </summary>
public partial class Updates : Microsoft.Graph.Entity
public partial class AdminWindowsUpdates : Entity
{

/// <summary>
/// Gets or sets catalog.
/// Catalog of content that can be approved for deployment by the deployment service. Read-only.
/// </summary>
[JsonPropertyName("catalog")]
public Catalog Catalog { get; set; }
public Microsoft.Graph.WindowsUpdates.Catalog Catalog { get; set; }

/// <summary>
/// Gets or sets deployment audiences.
/// The set of updatableAsset resources to which a deployment can apply.
/// </summary>
[JsonPropertyName("deploymentAudiences")]
public IAdminWindowsUpdatesDeploymentAudiencesCollectionPage DeploymentAudiences { get; set; }

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

/// <summary>
/// Gets or sets deployments.
/// Deployments created using the deployment service. Read-only.
/// Deployments created using the deployment service.
/// </summary>
[JsonPropertyName("deployments")]
public IUpdatesDeploymentsCollectionPage Deployments { get; set; }
public IAdminWindowsUpdatesDeploymentsCollectionPage Deployments { get; set; }

/// <summary>
/// Gets or sets deploymentsNextLink.
Expand All @@ -46,7 +60,7 @@ public partial class Updates : Microsoft.Graph.Entity
/// Service connections to external resources such as analytics workspaces.
/// </summary>
[JsonPropertyName("resourceConnections")]
public IUpdatesResourceConnectionsCollectionPage ResourceConnections { get; set; }
public IAdminWindowsUpdatesResourceConnectionsCollectionPage ResourceConnections { get; set; }

/// <summary>
/// Gets or sets resourceConnectionsNextLink.
Expand All @@ -57,10 +71,10 @@ public partial class Updates : Microsoft.Graph.Entity

/// <summary>
/// Gets or sets updatable assets.
/// Assets registered with the deployment service that can receive updates. Read-only.
/// Assets registered with the deployment service that can receive updates.
/// </summary>
[JsonPropertyName("updatableAssets")]
public IUpdatesUpdatableAssetsCollectionPage UpdatableAssets { get; set; }
public IAdminWindowsUpdatesUpdatableAssetsCollectionPage UpdatableAssets { get; set; }

/// <summary>
/// Gets or sets updatableAssetsNextLink.
Expand All @@ -69,6 +83,20 @@ public partial class Updates : Microsoft.Graph.Entity
[JsonConverter(typeof(NextLinkConverter))]
public string UpdatableAssetsNextLink { get; set; }

/// <summary>
/// Gets or sets update policies.
/// A collection of policies for approving the deployment of different content to an audience over time.
/// </summary>
[JsonPropertyName("updatePolicies")]
public IAdminWindowsUpdatesUpdatePoliciesCollectionPage UpdatePolicies { get; set; }

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

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,20 @@ public AndroidDeviceOwnerGeneralDeviceConfiguration()
[JsonPropertyName("kioskModeWiFiConfigurationEnabled")]
public bool? KioskModeWiFiConfigurationEnabled { get; set; }

/// <summary>
/// Gets or sets locate device lost mode enabled.
/// Indicates whether or not LocateDevice for devices with lost mode (COBO, COPE) is enabled.
/// </summary>
[JsonPropertyName("locateDeviceLostModeEnabled")]
public bool? LocateDeviceLostModeEnabled { get; set; }

/// <summary>
/// Gets or sets locate device userless disabled.
/// Indicates whether or not LocateDevice for userless (COSU) devices is disabled.
/// </summary>
[JsonPropertyName("locateDeviceUserlessDisabled")]
public bool? LocateDeviceUserlessDisabled { get; set; }

/// <summary>
/// Gets or sets microphone force mute.
/// Indicates whether or not to block unmuting the microphone on the device.
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/model/AndroidLobApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public AndroidLobApp()

/// <summary>
/// Gets or sets identity name.
/// The Identity Name.
/// The Identity Name. This property is deprecated starting in February 2023 (Release 2302).
/// </summary>
[JsonPropertyName("identityName")]
public string IdentityName { get; set; }

/// <summary>
/// Gets or sets identity version.
/// The identity version.
/// The identity version. This property is deprecated starting in February 2023 (Release 2302).
/// </summary>
[JsonPropertyName("identityVersion")]
public string IdentityVersion { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// ------------------------------------------------------------------------------
// 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: MethodRequestBody.cs.tt

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

/// <summary>
/// The type AndroidManagedStoreAccountEnterpriseSettingsAddAppsRequestBody.
/// </summary>
public partial class AndroidManagedStoreAccountEnterpriseSettingsAddAppsRequestBody
{

/// <summary>
/// Gets or sets ProductIds.
/// </summary>
[JsonPropertyName("productIds")]
public IEnumerable<string> ProductIds { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ public partial class AppLogCollectionDownloadDetails

/// <summary>
/// Gets or sets appLogDecryptionAlgorithm.
/// DecryptionAlgorithm for Content. Possible values are: aes256.
/// Decryption algorithm for Content. Default is ASE256. Possible values are: aes256, unknownFutureValue.
/// </summary>
[JsonPropertyName("appLogDecryptionAlgorithm")]
public AppLogDecryptionAlgorithm? AppLogDecryptionAlgorithm { get; set; }

/// <summary>
/// Gets or sets decryptionKey.
/// DecryptionKey as string
/// Decryption key that used to decrypt the log.
/// </summary>
[JsonPropertyName("decryptionKey")]
public string DecryptionKey { get; set; }

/// <summary>
/// Gets or sets downloadUrl.
/// Download SAS Url for completed AppLogUploadRequest
/// Download SAS (Shared Access Signature) Url for completed app log request.
/// </summary>
[JsonPropertyName("downloadUrl")]
public string DownloadUrl { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class AppLogCollectionRequestObject : Entity

/// <summary>
/// Gets or sets completed date time.
/// Time at which the upload log request reached a terminal state
/// Time at which the upload log request reached a completed state if not completed yet NULL will be returned.
/// </summary>
[JsonPropertyName("completedDateTime")]
public DateTimeOffset? CompletedDateTime { get; set; }
Expand All @@ -37,14 +37,14 @@ public partial class AppLogCollectionRequestObject : Entity

/// <summary>
/// Gets or sets error message.
/// Error message if any during the upload process
/// Indicates error message if any during the upload process.
/// </summary>
[JsonPropertyName("errorMessage")]
public string ErrorMessage { get; set; }

/// <summary>
/// Gets or sets status.
/// Log upload status. Possible values are: pending, completed, failed.
/// Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending. Possible values are: pending, completed, failed, unknownFutureValue.
/// </summary>
[JsonPropertyName("status")]
public AppLogUploadState? Status { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ public enum AppLogDecryptionAlgorithm
/// </summary>
Aes256 = 0,

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

}
}
5 changes: 5 additions & 0 deletions src/Microsoft.Graph/Generated/model/AppLogUploadState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@ public enum AppLogUploadState
/// </summary>
Failed = 2,

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class AppleOwnerTypeEnrollmentType

/// <summary>
/// Gets or sets enrollmentType.
/// The enrollment type. Possible values are: unknown, device, user.
/// The enrollment type. Possible values are: unknown, device, user, accountDrivenUserEnrollment, webDeviceEnrollment, unknownFutureValue.
/// </summary>
[JsonPropertyName("enrollmentType")]
public AppleUserInitiatedEnrollmentType? EnrollmentType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public partial class AppleUserInitiatedEnrollmentProfile : Entity

/// <summary>
/// Gets or sets default enrollment type.
/// The default profile enrollment type. Possible values are: unknown, device, user.
/// The default profile enrollment type. Possible values are: unknown, device, user, accountDrivenUserEnrollment, webDeviceEnrollment, unknownFutureValue.
/// </summary>
[JsonPropertyName("defaultEnrollmentType")]
public AppleUserInitiatedEnrollmentType? DefaultEnrollmentType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,20 @@ public enum AppleUserInitiatedEnrollmentType
/// </summary>
User = 2,

/// <summary>
/// Account Driven User Enrollment
/// </summary>
AccountDrivenUserEnrollment = 3,

/// <summary>
/// Web Device Enrollment
/// </summary>
WebDeviceEnrollment = 4,

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ public partial class AppliedAuthenticationEventListener

/// <summary>
/// Gets or sets eventType.
/// The type of authentication event that triggered the custom extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue.
/// </summary>
[JsonPropertyName("eventType")]
public AuthenticationEventType? EventType { get; set; }

/// <summary>
/// Gets or sets executedListenerId.
/// ID of the Event Listener that was executed.
/// </summary>
[JsonPropertyName("executedListenerId")]
public string ExecutedListenerId { get; set; }

/// <summary>
/// Gets or sets handlerResult.
/// The result from the listening client, such as an Azure Logic App and Azure Functions, of this authentication event.
/// </summary>
[JsonPropertyName("handlerResult")]
public AuthenticationEventHandlerResult HandlerResult { get; set; }
Expand Down
Loading