diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
index aca3274c7fe..6d1596b461c 100644
--- a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
@@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
///
- /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
- /// Find more info here
+ /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -69,7 +69,7 @@ public async Task PostAsync(InvitePostRequestBody b
return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
+ /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
index 13514aa514e..00614da8a5b 100644
--- a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
@@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
RequestAdapter = requestAdapter;
}
///
- /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
- /// Find more info here
+ /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -72,8 +72,8 @@ public async Task DeleteAsync(Action
- /// Get the externalMeetingRegistration details associated with an onlineMeeting.
- /// Find more info here
+ /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti
return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
+ /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get the externalMeetingRegistration details associated with an onlineMeeting.
+ /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -208,7 +208,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() {
}
}
///
- /// Get the externalMeetingRegistration details associated with an onlineMeeting.
+ /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer.
///
public class RegistrationRequestBuilderGetQueryParameters {
/// Expand related entities
diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs
index 4bc09af7800..519576da115 100644
--- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs
@@ -48,7 +48,7 @@ public ProvisionOnDemandRequestBuilder(string rawUrl, IRequestAdapter requestAda
}
///
/// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds.
- /// Find more info here
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs
index 77968793288..ea50ee9ce6f 100644
--- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs
@@ -91,7 +91,7 @@ public async Task DeleteAsync(Action
- /// Get synchronization from applications
+ /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API.
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -155,7 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get synchronization from applications
+ /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -225,7 +225,7 @@ public SynchronizationRequestBuilderDeleteRequestConfiguration() {
}
}
///
- /// Get synchronization from applications
+ /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API.
///
public class SynchronizationRequestBuilderGetQueryParameters {
/// Expand related entities
diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
index fc5eda4ba3d..5f419c197c4 100644
--- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
@@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
///
- /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
- /// Find more info here
+ /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -69,7 +69,7 @@ public async Task PostAsync(InvitePostRequestBody b
return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
+ /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
index b8a5a5a02cc..d3aa5518da2 100644
--- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
@@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
RequestAdapter = requestAdapter;
}
///
- /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
- /// Find more info here
+ /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -72,8 +72,8 @@ public async Task DeleteAsync(Action
- /// Get the externalMeetingRegistration details associated with an onlineMeeting.
- /// Find more info here
+ /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti
return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
+ /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get the externalMeetingRegistration details associated with an onlineMeeting.
+ /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -208,7 +208,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() {
}
}
///
- /// Get the externalMeetingRegistration details associated with an onlineMeeting.
+ /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer.
///
public class RegistrationRequestBuilderGetQueryParameters {
/// Expand related entities
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs
index 0eef4e46976..bb1f90a8dd3 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs
@@ -72,6 +72,27 @@ public async Task GetAsync(Acti
return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyStateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
+ /// Create new navigation property to deviceHealthScriptStates for deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PostAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -98,6 +119,34 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Create new navigation property to deviceHealthScriptStates for deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState body, Action requestConfiguration = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.POST,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ if (requestConfiguration != null) {
+ var requestConfig = new DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
/// Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity.
///
/// Property in multi-part unique identifier of deviceHealthScriptPolicyState
@@ -191,5 +240,21 @@ public DeviceHealthScriptStatesRequestBuilderGetRequestConfiguration() {
Headers = new RequestHeaders();
}
}
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new deviceHealthScriptStatesRequestBuilderPostRequestConfiguration and sets the default values.
+ ///
+ public DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
}
}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs
index 9fb6d2d8e53..4d4b276316e 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs
@@ -53,6 +53,25 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapt
RequestAdapter = requestAdapter;
}
///
+ /// Delete navigation property deviceHealthScriptStates for deviceManagement
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
/// Cancellation token to use when cancelling requests
@@ -72,6 +91,51 @@ public async Task GetAsync(Action(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
+ /// Update the navigation property deviceHealthScriptStates in deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PatchAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Delete navigation property deviceHealthScriptStates for deviceManagement
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.DELETE,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ if (requestConfiguration != null) {
+ var requestConfig = new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -98,6 +162,50 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Update the navigation property deviceHealthScriptStates in deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState body, Action requestConfiguration = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.PATCH,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ if (requestConfiguration != null) {
+ var requestConfig = new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values.
+ ///
+ public WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
public class WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters {
@@ -140,5 +248,21 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration() {
Headers = new RequestHeaders();
}
}
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values.
+ ///
+ public WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
}
}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs
index e8d3b460818..5f43815058a 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs
@@ -72,6 +72,27 @@ public async Task GetAsync(Acti
return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyStateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
+ /// Create new navigation property to deviceHealthScriptStates for deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PostAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -98,6 +119,34 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Create new navigation property to deviceHealthScriptStates for deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState body, Action requestConfiguration = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.POST,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ if (requestConfiguration != null) {
+ var requestConfig = new DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
/// Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity.
///
/// Property in multi-part unique identifier of deviceHealthScriptPolicyState
@@ -191,5 +240,21 @@ public DeviceHealthScriptStatesRequestBuilderGetRequestConfiguration() {
Headers = new RequestHeaders();
}
}
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new deviceHealthScriptStatesRequestBuilderPostRequestConfiguration and sets the default values.
+ ///
+ public DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
}
}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs
index 7b8654edf76..51f18eee7ef 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs
@@ -53,6 +53,25 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapt
RequestAdapter = requestAdapter;
}
///
+ /// Delete navigation property deviceHealthScriptStates for deviceManagement
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
/// Cancellation token to use when cancelling requests
@@ -72,6 +91,51 @@ public async Task GetAsync(Action(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
+ /// Update the navigation property deviceHealthScriptStates in deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PatchAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Delete navigation property deviceHealthScriptStates for deviceManagement
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.DELETE,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ if (requestConfiguration != null) {
+ var requestConfig = new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -98,6 +162,50 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Update the navigation property deviceHealthScriptStates in deviceManagement
+ ///
+ /// Contains properties for policy run state of the device health script.
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState body, Action requestConfiguration = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.PATCH,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ if (requestConfiguration != null) {
+ var requestConfig = new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values.
+ ///
+ public WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ ///
/// Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
///
public class WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters {
@@ -140,5 +248,21 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration() {
Headers = new RequestHeaders();
}
}
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values.
+ ///
+ public WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
}
}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs
index 74744f1ee97..b50ea455d59 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs
@@ -9,6 +9,8 @@
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Reprovision;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.RetryPartnerAgentInstallation;
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Start;
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Stop;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Troubleshoot;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -73,6 +75,14 @@ public class CloudPCItemRequestBuilder {
public RetryPartnerAgentInstallationRequestBuilder RetryPartnerAgentInstallation { get =>
new RetryPartnerAgentInstallationRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the start method.
+ public StartRequestBuilder Start { get =>
+ new StartRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the stop method.
+ public StopRequestBuilder Stop { get =>
+ new StopRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to call the troubleshoot method.
public TroubleshootRequestBuilder Troubleshoot { get =>
new TroubleshootRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs
similarity index 60%
rename from src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs
index 17bba640610..44704751ba9 100644
--- a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs
@@ -7,11 +7,11 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.Graph.Beta.Me.ActivateServicePlan {
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Start {
///
- /// Provides operations to call the activateServicePlan method.
+ /// Provides operations to call the start method.
///
- public class ActivateServicePlanRequestBuilder {
+ public class StartRequestBuilder {
/// Path parameters for the request
private Dictionary PathParameters { get; set; }
/// The request adapter to use to execute the requests.
@@ -19,48 +19,45 @@ public class ActivateServicePlanRequestBuilder {
/// Url template to use to build the URL for the current request builder
private string UrlTemplate { get; set; }
///
- /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values.
+ /// Instantiates a new StartRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public ActivateServicePlanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ public StartRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
_ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
- UrlTemplate = "{+baseurl}/me/activateServicePlan";
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/start";
var urlTplParams = new Dictionary(pathParameters);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
///
- /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values.
+ /// Instantiates a new StartRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public ActivateServicePlanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
- UrlTemplate = "{+baseurl}/me/activateServicePlan";
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/start";
var urlTplParams = new Dictionary();
if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
///
- /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user.
- /// Find more info here
+ /// Invoke action start
///
- /// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -68,26 +65,23 @@ public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action
- /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user.
+ /// Invoke action start
///
- /// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default) {
+ public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default) {
+ public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) {
#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation {
HttpMethod = Method.POST,
UrlTemplate = UrlTemplate,
PathParameters = PathParameters,
};
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
if (requestConfiguration != null) {
- var requestConfig = new ActivateServicePlanRequestBuilderPostRequestConfiguration();
+ var requestConfig = new StartRequestBuilderPostRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddRequestOptions(requestConfig.Options);
requestInfo.AddHeaders(requestConfig.Headers);
@@ -97,15 +91,15 @@ public RequestInformation ToPostRequestInformation(ActivateServicePlanPostReques
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class ActivateServicePlanRequestBuilderPostRequestConfiguration {
+ public class StartRequestBuilderPostRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
///
- /// Instantiates a new activateServicePlanRequestBuilderPostRequestConfiguration and sets the default values.
+ /// Instantiates a new startRequestBuilderPostRequestConfiguration and sets the default values.
///
- public ActivateServicePlanRequestBuilderPostRequestConfiguration() {
+ public StartRequestBuilderPostRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs
similarity index 59%
rename from src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs
index be7184b45ab..4b7b612e135 100644
--- a/src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs
@@ -7,11 +7,11 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.Graph.Beta.Users.Item.ActivateServicePlan {
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Stop {
///
- /// Provides operations to call the activateServicePlan method.
+ /// Provides operations to call the stop method.
///
- public class ActivateServicePlanRequestBuilder {
+ public class StopRequestBuilder {
/// Path parameters for the request
private Dictionary PathParameters { get; set; }
/// The request adapter to use to execute the requests.
@@ -19,48 +19,45 @@ public class ActivateServicePlanRequestBuilder {
/// Url template to use to build the URL for the current request builder
private string UrlTemplate { get; set; }
///
- /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values.
+ /// Instantiates a new StopRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public ActivateServicePlanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
_ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
- UrlTemplate = "{+baseurl}/users/{user%2Did}/activateServicePlan";
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/stop";
var urlTplParams = new Dictionary(pathParameters);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
///
- /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values.
+ /// Instantiates a new StopRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public ActivateServicePlanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
- UrlTemplate = "{+baseurl}/users/{user%2Did}/activateServicePlan";
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/stop";
var urlTplParams = new Dictionary();
if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
///
- /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user.
- /// Find more info here
+ /// Invoke action stop
///
- /// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -68,26 +65,23 @@ public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action
- /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user.
+ /// Invoke action stop
///
- /// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default) {
+ public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default) {
+ public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) {
#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation {
HttpMethod = Method.POST,
UrlTemplate = UrlTemplate,
PathParameters = PathParameters,
};
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
if (requestConfiguration != null) {
- var requestConfig = new ActivateServicePlanRequestBuilderPostRequestConfiguration();
+ var requestConfig = new StopRequestBuilderPostRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddRequestOptions(requestConfig.Options);
requestInfo.AddHeaders(requestConfig.Headers);
@@ -97,15 +91,15 @@ public RequestInformation ToPostRequestInformation(ActivateServicePlanPostReques
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class ActivateServicePlanRequestBuilderPostRequestConfiguration {
+ public class StopRequestBuilderPostRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
///
- /// Instantiates a new activateServicePlanRequestBuilderPostRequestConfiguration and sets the default values.
+ /// Instantiates a new stopRequestBuilderPostRequestConfiguration and sets the default values.
///
- public ActivateServicePlanRequestBuilderPostRequestConfiguration() {
+ public StopRequestBuilderPostRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs
similarity index 61%
rename from src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs
rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs
index 516cd7b62aa..ebaff8f2781 100644
--- a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs
@@ -4,8 +4,8 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
-namespace Microsoft.Graph.Beta.Me.ActivateServicePlan {
- public class ActivateServicePlanPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable {
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ApplyConfig {
+ public class ApplyConfigPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable {
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary AdditionalData {
get { return BackingStore?.Get>("additionalData"); }
@@ -13,20 +13,24 @@ public IDictionary AdditionalData {
}
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
- /// The servicePlanId property
- public Guid? ServicePlanId {
- get { return BackingStore?.Get("servicePlanId"); }
- set { BackingStore?.Set("servicePlanId", value); }
+ /// The cloudPcIds property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? CloudPcIds {
+ get { return BackingStore?.Get?>("cloudPcIds"); }
+ set { BackingStore?.Set("cloudPcIds", value); }
}
- /// The skuId property
- public Guid? SkuId {
- get { return BackingStore?.Get("skuId"); }
- set { BackingStore?.Set("skuId", value); }
+#nullable restore
+#else
+ public List CloudPcIds {
+ get { return BackingStore?.Get>("cloudPcIds"); }
+ set { BackingStore?.Set("cloudPcIds", value); }
}
+#endif
///
- /// Instantiates a new activateServicePlanPostRequestBody and sets the default values.
+ /// Instantiates a new applyConfigPostRequestBody and sets the default values.
///
- public ActivateServicePlanPostRequestBody() {
+ public ApplyConfigPostRequestBody() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary();
}
@@ -34,17 +38,16 @@ public ActivateServicePlanPostRequestBody() {
/// Creates a new instance of the appropriate class based on discriminator value
///
/// The parse node to use to read the discriminator value and create the object
- public static ActivateServicePlanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
+ public static ApplyConfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new ActivateServicePlanPostRequestBody();
+ return new ApplyConfigPostRequestBody();
}
///
/// The deserialization information for the current model
///
public IDictionary> GetFieldDeserializers() {
return new Dictionary> {
- {"servicePlanId", n => { ServicePlanId = n.GetGuidValue(); } },
- {"skuId", n => { SkuId = n.GetGuidValue(); } },
+ {"cloudPcIds", n => { CloudPcIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } },
};
}
///
@@ -53,8 +56,7 @@ public IDictionary> GetFieldDeserializers() {
/// Serialization writer to use to serialize this model
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteGuidValue("servicePlanId", ServicePlanId);
- writer.WriteGuidValue("skuId", SkuId);
+ writer.WriteCollectionOfPrimitiveValues("cloudPcIds", CloudPcIds);
writer.WriteAdditionalData(AdditionalData);
}
}
diff --git a/src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs
similarity index 67%
rename from src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs
index bf55d84b778..d5583d867ab 100644
--- a/src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs
@@ -7,11 +7,11 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.Graph.Beta.Organization.Item.ActivateService {
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ApplyConfig {
///
- /// Provides operations to call the activateService method.
+ /// Provides operations to call the applyConfig method.
///
- public class ActivateServiceRequestBuilder {
+ public class ApplyConfigRequestBuilder {
/// Path parameters for the request
private Dictionary PathParameters { get; set; }
/// The request adapter to use to execute the requests.
@@ -19,45 +19,44 @@ public class ActivateServiceRequestBuilder {
/// Url template to use to build the URL for the current request builder
private string UrlTemplate { get; set; }
///
- /// Instantiates a new ActivateServiceRequestBuilder and sets the default values.
+ /// Instantiates a new ApplyConfigRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public ActivateServiceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ public ApplyConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
_ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
- UrlTemplate = "{+baseurl}/organization/{organization%2Did}/activateService";
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/applyConfig";
var urlTplParams = new Dictionary(pathParameters);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
///
- /// Instantiates a new ActivateServiceRequestBuilder and sets the default values.
+ /// Instantiates a new ApplyConfigRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public ActivateServiceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ public ApplyConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
- UrlTemplate = "{+baseurl}/organization/{organization%2Did}/activateService";
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/applyConfig";
var urlTplParams = new Dictionary();
if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
///
- /// Activate a service for an organization.
- /// Find more info here
+ /// Invoke action applyConfig
///
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(ActivateServicePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task PostAsync(ApplyConfigPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task PostAsync(ActivateServicePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task PostAsync(ApplyConfigPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
@@ -68,16 +67,16 @@ public async Task PostAsync(ActivateServicePostRequestBody body, Action
- /// Activate a service for an organization.
+ /// Invoke action applyConfig
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBody body, Action? requestConfiguration = default) {
+ public RequestInformation ToPostRequestInformation(ApplyConfigPostRequestBody body, Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBody body, Action requestConfiguration = default) {
+ public RequestInformation ToPostRequestInformation(ApplyConfigPostRequestBody body, Action requestConfiguration = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation {
@@ -87,7 +86,7 @@ public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBod
};
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
if (requestConfiguration != null) {
- var requestConfig = new ActivateServiceRequestBuilderPostRequestConfiguration();
+ var requestConfig = new ApplyConfigRequestBuilderPostRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddRequestOptions(requestConfig.Options);
requestInfo.AddHeaders(requestConfig.Headers);
@@ -97,15 +96,15 @@ public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBod
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class ActivateServiceRequestBuilderPostRequestConfiguration {
+ public class ApplyConfigRequestBuilderPostRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
///
- /// Instantiates a new activateServiceRequestBuilderPostRequestConfiguration and sets the default values.
+ /// Instantiates a new applyConfigRequestBuilderPostRequestConfiguration and sets the default values.
///
- public ActivateServiceRequestBuilderPostRequestConfiguration() {
+ public ApplyConfigRequestBuilderPostRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs
new file mode 100644
index 00000000000..caa2e98db73
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs
@@ -0,0 +1,108 @@
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Apply {
+ ///
+ /// Provides operations to call the apply method.
+ ///
+ public class ApplyRequestBuilder {
+ /// Path parameters for the request
+ private Dictionary PathParameters { get; set; }
+ /// The request adapter to use to execute the requests.
+ private IRequestAdapter RequestAdapter { get; set; }
+ /// Url template to use to build the URL for the current request builder
+ private string UrlTemplate { get; set; }
+ ///
+ /// Instantiates a new ApplyRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ApplyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/apply";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new ApplyRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/apply";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Invoke action apply
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Invoke action apply
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.POST,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ if (requestConfiguration != null) {
+ var requestConfig = new ApplyRequestBuilderPostRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class ApplyRequestBuilderPostRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new applyRequestBuilderPostRequestConfiguration and sets the default values.
+ ///
+ public ApplyRequestBuilderPostRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs
new file mode 100644
index 00000000000..f0735b1918d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs
@@ -0,0 +1,189 @@
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Count;
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers {
+ ///
+ /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
+ ///
+ public class AssignedUsersRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Path parameters for the request
+ private Dictionary PathParameters { get; set; }
+ /// The request adapter to use to execute the requests.
+ private IRequestAdapter RequestAdapter { get; set; }
+ /// Url template to use to build the URL for the current request builder
+ private string UrlTemplate { get; set; }
+ /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
+ public UserItemRequestBuilder this[string position] { get {
+ var urlTplParams = new Dictionary(PathParameters);
+ if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("user%2Did", position);
+ return new UserItemRequestBuilder(urlTplParams, RequestAdapter);
+ } }
+ ///
+ /// Instantiates a new AssignedUsersRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AssignedUsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new AssignedUsersRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public AssignedUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get assignedUsers from deviceManagement
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get assignedUsers from deviceManagement
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.GET,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ if (requestConfiguration != null) {
+ var requestConfig = new AssignedUsersRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get assignedUsers from deviceManagement
+ ///
+ public class AssignedUsersRequestBuilderGetQueryParameters {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class AssignedUsersRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public AssignedUsersRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignedUsersRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new assignedUsersRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public AssignedUsersRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..c50538c9346
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs
@@ -0,0 +1,137 @@
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Count {
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ public class CountRequestBuilder {
+ /// Path parameters for the request
+ private Dictionary PathParameters { get; set; }
+ /// The request adapter to use to execute the requests.
+ private IRequestAdapter RequestAdapter { get; set; }
+ /// Url template to use to build the URL for the current request builder
+ private string UrlTemplate { get; set; }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.GET,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "text/plain");
+ if (requestConfiguration != null) {
+ var requestConfig = new CountRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ public class CountRequestBuilderGetQueryParameters {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class CountRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public CountRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs
new file mode 100644
index 00000000000..d0e84e55569
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs
@@ -0,0 +1,138 @@
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item {
+ ///
+ /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
+ ///
+ public class UserItemRequestBuilder {
+ /// Path parameters for the request
+ private Dictionary PathParameters { get; set; }
+ /// The request adapter to use to execute the requests.
+ private IRequestAdapter RequestAdapter { get; set; }
+ /// Url template to use to build the URL for the current request builder
+ private string UrlTemplate { get; set; }
+ ///
+ /// Instantiates a new UserItemRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new UserItemRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get assignedUsers from deviceManagement
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get assignedUsers from deviceManagement
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.GET,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ if (requestConfiguration != null) {
+ var requestConfig = new UserItemRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get assignedUsers from deviceManagement
+ ///
+ public class UserItemRequestBuilderGetQueryParameters {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class UserItemRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public UserItemRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs
index f93e39d7268..6f23b916222 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Kiota.Abstractions;
@@ -13,6 +14,10 @@ namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPoli
/// Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity.
///
public class CloudPcProvisioningPolicyAssignmentItemRequestBuilder {
+ /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
+ public AssignedUsersRequestBuilder AssignedUsers { get =>
+ new AssignedUsersRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Path parameters for the request
private Dictionary PathParameters { get; set; }
/// The request adapter to use to execute the requests.
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs
index 1a387922165..e7a699f1e0a 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Apply;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments;
using Microsoft.Graph.Beta.Models;
@@ -15,6 +16,10 @@ namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPoli
/// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity.
///
public class CloudPcProvisioningPolicyItemRequestBuilder {
+ /// Provides operations to call the apply method.
+ public ApplyRequestBuilder Apply { get =>
+ new ApplyRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to call the assign method.
public AssignRequestBuilder Assign { get =>
new AssignRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs
index c834c1f64d3..110188f69c3 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ApplyConfig;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Count;
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item;
using Microsoft.Graph.Beta.Models;
@@ -15,6 +16,10 @@ namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPoli
/// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity.
///
public class ProvisioningPoliciesRequestBuilder {
+ /// Provides operations to call the applyConfig method.
+ public ApplyConfigRequestBuilder ApplyConfig { get =>
+ new ApplyConfigRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to count the resources in the collection.
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs
index 7c3b3c78ae2..16a21ecd7c2 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs
@@ -78,6 +78,27 @@ public async Task GetAsync(Action(requestInfo, DriveItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
+ /// Create new navigation property to bundles for drives
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(Microsoft.Graph.Beta.Models.DriveItem body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PostAsync(Microsoft.Graph.Beta.Models.DriveItem body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
/// Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -104,6 +125,34 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Create new navigation property to bundles for drives
+ ///
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.DriveItem body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.DriveItem body, Action requestConfiguration = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.POST,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ if (requestConfiguration != null) {
+ var requestConfig = new BundlesRequestBuilderPostRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
/// Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive.
///
public class BundlesRequestBuilderGetQueryParameters {
@@ -185,5 +234,21 @@ public BundlesRequestBuilderGetRequestConfiguration() {
Headers = new RequestHeaders();
}
}
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class BundlesRequestBuilderPostRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new bundlesRequestBuilderPostRequestConfiguration and sets the default values.
+ ///
+ public BundlesRequestBuilderPostRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
}
}
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs
index 4bf831f7c47..fb459455a86 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs
@@ -80,6 +80,11 @@ public string Scope {
set { BackingStore?.Set("scope", value); }
}
#endif
+ /// The sendNotification property
+ public bool? SendNotification {
+ get { return BackingStore?.Get("sendNotification"); }
+ set { BackingStore?.Set("sendNotification", value); }
+ }
/// The type property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -120,6 +125,7 @@ public IDictionary> GetFieldDeserializers() {
{"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } },
{"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } },
{"scope", n => { Scope = n.GetStringValue(); } },
+ {"sendNotification", n => { SendNotification = n.GetBoolValue(); } },
{"type", n => { Type = n.GetStringValue(); } },
};
}
@@ -135,6 +141,7 @@ public void Serialize(ISerializationWriter writer) {
writer.WriteCollectionOfObjectValues("recipients", Recipients);
writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions);
writer.WriteStringValue("scope", Scope);
+ writer.WriteBoolValue("sendNotification", SendNotification);
writer.WriteStringValue("type", Type);
writer.WriteAdditionalData(AdditionalData);
}
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs
index 386608cd4ec..392737d0613 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs
@@ -70,7 +70,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of nameditem objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs
index 07edde3a0bc..4e1d79d27fa 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs
@@ -66,7 +66,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of table objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs
index 53c4023e0cf..ba8c278d10f 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs
@@ -67,7 +67,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of chart objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs
index 2a7bf99b542..1fa92d2adc7 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs
@@ -60,8 +60,8 @@ public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
///
- /// Retrieve a list of chartpoints objects.
- /// Find more info here
+ /// Retrieve a list of chartpoint objects.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -110,7 +110,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action<
return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Retrieve a list of chartpoints objects.
+ /// Retrieve a list of chartpoint objects.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -164,7 +164,7 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti
return requestInfo;
}
///
- /// Retrieve a list of chartpoints objects.
+ /// Retrieve a list of chartpoint objects.
///
public class PointsRequestBuilderGetQueryParameters {
/// Include count of items
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs
index 6c5c2eceb49..33540a1f872 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs
@@ -61,7 +61,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of chartseries objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs
index 023e60b40bd..ce21086fa95 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs
@@ -66,6 +66,11 @@ public string Scope {
set { BackingStore?.Set("scope", value); }
}
#endif
+ /// The sendNotification property
+ public bool? SendNotification {
+ get { return BackingStore?.Get("sendNotification"); }
+ set { BackingStore?.Set("sendNotification", value); }
+ }
/// The type property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -105,6 +110,7 @@ public IDictionary> GetFieldDeserializers() {
{"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } },
{"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } },
{"scope", n => { Scope = n.GetStringValue(); } },
+ {"sendNotification", n => { SendNotification = n.GetBoolValue(); } },
{"type", n => { Type = n.GetStringValue(); } },
};
}
@@ -119,6 +125,7 @@ public void Serialize(ISerializationWriter writer) {
writer.WriteCollectionOfObjectValues("recipients", Recipients);
writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions);
writer.WriteStringValue("scope", Scope);
+ writer.WriteBoolValue("sendNotification", SendNotification);
writer.WriteStringValue("type", Type);
writer.WriteAdditionalData(AdditionalData);
}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs
index 4320e105230..6eab2c92947 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
index 3a07c5f981b..b4489dcdc06 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
index f99fb742c7f..452479ff6a8 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
index 9c68c8ce0c6..c6946f25f41 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
index 568c4bd42b3..aa5bc7dbb98 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs
index 082fc1035ae..d89768efa35 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
index 7fe2b3ad4e9..e5ea605b531 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
index f3da477baf9..2632e27c1c9 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
index 854becced85..fae7a17dc64 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
index 562c7db338f..70b5f247d44 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs
index a01d20bf399..ce0546fb375 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
index 987169bef9d..0eaf085d48b 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
index 890fabb0416..272b461c8ec 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
index a88c646e014..48b4a0e53bf 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
- /// Find more info here
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
+ /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
index 8ffe6895d6c..7403ea1adfe 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs
@@ -84,8 +84,8 @@ public async Task GetAsync(Action