diff --git a/src/Microsoft.Graph/Generated/callrecords/model/ClientUserAgent.cs b/src/Microsoft.Graph/Generated/callrecords/model/ClientUserAgent.cs index c4c465f0f49..271b0c3f5c8 100644 --- a/src/Microsoft.Graph/Generated/callrecords/model/ClientUserAgent.cs +++ b/src/Microsoft.Graph/Generated/callrecords/model/ClientUserAgent.cs @@ -28,6 +28,20 @@ public ClientUserAgent() this.ODataType = "microsoft.graph.callRecords.clientUserAgent"; } + /// + /// Gets or sets azureADAppId. + /// The unique identifier of the Azure AD application used by this endpoint. + /// + [JsonPropertyName("azureADAppId")] + public string AzureADAppId { get; set; } + + /// + /// Gets or sets communicationServiceId. + /// Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs. + /// + [JsonPropertyName("communicationServiceId")] + public string CommunicationServiceId { get; set; } + /// /// Gets or sets platform. /// Identifies the platform used by this endpoint. Possible values are: unknown, windows, macOS, iOS, android, web, ipPhone, roomSystem, surfaceHub, holoLens, unknownFutureValue. diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtension.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtension.cs new file mode 100644 index 00000000000..ecef5c99aaf --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtension.cs @@ -0,0 +1,63 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Custom Task Extension. + /// + public partial class CustomTaskExtension : Microsoft.Graph.CustomCalloutExtension + { + + /// + /// The CustomTaskExtension constructor + /// + public CustomTaskExtension() + { + this.ODataType = "microsoft.graph.identityGovernance.customTaskExtension"; + } + + /// + /// Gets or sets callback configuration. + /// + [JsonPropertyName("callbackConfiguration")] + public Microsoft.Graph.CustomExtensionCallbackConfiguration CallbackConfiguration { get; set; } + + /// + /// Gets or sets created date time. + /// + [JsonPropertyName("createdDateTime")] + public DateTimeOffset? CreatedDateTime { get; set; } + + /// + /// Gets or sets last modified date time. + /// + [JsonPropertyName("lastModifiedDateTime")] + public DateTimeOffset? LastModifiedDateTime { get; set; } + + /// + /// Gets or sets created by. + /// + [JsonPropertyName("createdBy")] + public Microsoft.Graph.User CreatedBy { get; set; } + + /// + /// Gets or sets last modified by. + /// + [JsonPropertyName("lastModifiedBy")] + public Microsoft.Graph.User LastModifiedBy { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCallbackConfiguration.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCallbackConfiguration.cs new file mode 100644 index 00000000000..375add25840 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCallbackConfiguration.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type CustomTaskExtensionCallbackConfiguration. + /// + public partial class CustomTaskExtensionCallbackConfiguration : Microsoft.Graph.CustomExtensionCallbackConfiguration + { + /// + /// Initializes a new instance of the class. + /// + public CustomTaskExtensionCallbackConfiguration() + { + this.ODataType = "microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration"; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCallbackData.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCallbackData.cs new file mode 100644 index 00000000000..4491a5688ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCallbackData.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type CustomTaskExtensionCallbackData. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class CustomTaskExtensionCallbackData : Microsoft.Graph.CustomExtensionData + { + /// + /// Initializes a new instance of the class. + /// + public CustomTaskExtensionCallbackData() + { + this.ODataType = "microsoft.graph.identityGovernance.customTaskExtensionCallbackData"; + } + + /// + /// Gets or sets operationStatus. + /// + [JsonPropertyName("operationStatus")] + public CustomTaskExtensionOperationStatus? OperationStatus { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCalloutData.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCalloutData.cs new file mode 100644 index 00000000000..d0eed502430 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionCalloutData.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type CustomTaskExtensionCalloutData. + /// + public partial class CustomTaskExtensionCalloutData : Microsoft.Graph.CustomExtensionData + { + /// + /// Initializes a new instance of the class. + /// + public CustomTaskExtensionCalloutData() + { + this.ODataType = "microsoft.graph.identityGovernance.customTaskExtensionCalloutData"; + } + + /// + /// Gets or sets subject. + /// + [JsonPropertyName("subject")] + public Microsoft.Graph.User Subject { get; set; } + + /// + /// Gets or sets task. + /// + [JsonPropertyName("task")] + public TaskObject @Task { get; set; } + + /// + /// Gets or sets taskProcessingresult. + /// + [JsonPropertyName("taskProcessingresult")] + public TaskProcessingResult TaskProcessingresult { get; set; } + + /// + /// Gets or sets workflow. + /// + [JsonPropertyName("workflow")] + public Workflow Workflow { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionOperationStatus.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionOperationStatus.cs new file mode 100644 index 00000000000..c4237e191a2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/CustomTaskExtensionOperationStatus.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum CustomTaskExtensionOperationStatus. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum CustomTaskExtensionOperationStatus + { + + /// + /// Completed + /// + Completed = 0, + + /// + /// Failed + /// + Failed = 1, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 2, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleManagementSettings.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleManagementSettings.cs new file mode 100644 index 00000000000..99271245423 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleManagementSettings.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Lifecycle Management Settings. + /// + public partial class LifecycleManagementSettings : Microsoft.Graph.Entity + { + + /// + /// Gets or sets workflow schedule interval in hours. + /// + [JsonPropertyName("workflowScheduleIntervalInHours")] + public Int32? WorkflowScheduleIntervalInHours { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleTaskCategory.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleTaskCategory.cs new file mode 100644 index 00000000000..bccf1925d7d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleTaskCategory.cs @@ -0,0 +1,39 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum LifecycleTaskCategory. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + [System.Flags] + public enum LifecycleTaskCategory + { + + /// + /// Joiner + /// + Joiner = 1, + + /// + /// Leaver + /// + Leaver = 2, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 4, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowCategory.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowCategory.cs new file mode 100644 index 00000000000..378d16aa666 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowCategory.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum LifecycleWorkflowCategory. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum LifecycleWorkflowCategory + { + + /// + /// Joiner + /// + Joiner = 0, + + /// + /// Leaver + /// + Leaver = 1, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 2, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowProcessingStatus.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowProcessingStatus.cs new file mode 100644 index 00000000000..5fe799d6b2a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowProcessingStatus.cs @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum LifecycleWorkflowProcessingStatus. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum LifecycleWorkflowProcessingStatus + { + + /// + /// Queued + /// + Queued = 0, + + /// + /// In Progress + /// + InProgress = 1, + + /// + /// Completed + /// + Completed = 2, + + /// + /// Completed With Errors + /// + CompletedWithErrors = 3, + + /// + /// Canceled + /// + Canceled = 4, + + /// + /// Failed + /// + Failed = 5, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 6, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowsContainer.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowsContainer.cs new file mode 100644 index 00000000000..4de660204d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/LifecycleWorkflowsContainer.cs @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Lifecycle Workflows Container. + /// + public partial class LifecycleWorkflowsContainer : Microsoft.Graph.Entity + { + + /// + /// Gets or sets custom task extensions. + /// + [JsonPropertyName("customTaskExtensions")] + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage CustomTaskExtensions { get; set; } + + /// + /// Gets or sets customTaskExtensionsNextLink. + /// + [JsonPropertyName("customTaskExtensions@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string CustomTaskExtensionsNextLink { get; set; } + + /// + /// Gets or sets deleted items. + /// + [JsonPropertyName("deletedItems")] + public Microsoft.Graph.DeletedItemContainer DeletedItems { get; set; } + + /// + /// Gets or sets settings. + /// + [JsonPropertyName("settings")] + public LifecycleManagementSettings Settings { get; set; } + + /// + /// Gets or sets task definitions. + /// + [JsonPropertyName("taskDefinitions")] + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage TaskDefinitions { get; set; } + + /// + /// Gets or sets taskDefinitionsNextLink. + /// + [JsonPropertyName("taskDefinitions@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TaskDefinitionsNextLink { get; set; } + + /// + /// Gets or sets workflows. + /// + [JsonPropertyName("workflows")] + public ILifecycleWorkflowsContainerWorkflowsCollectionPage Workflows { get; set; } + + /// + /// Gets or sets workflowsNextLink. + /// + [JsonPropertyName("workflows@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string WorkflowsNextLink { get; set; } + + /// + /// Gets or sets workflow templates. + /// + [JsonPropertyName("workflowTemplates")] + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage WorkflowTemplates { get; set; } + + /// + /// Gets or sets workflowTemplatesNextLink. + /// + [JsonPropertyName("workflowTemplates@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string WorkflowTemplatesNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/OnDemandExecutionOnly.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/OnDemandExecutionOnly.cs new file mode 100644 index 00000000000..a05a3a79202 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/OnDemandExecutionOnly.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type OnDemandExecutionOnly. + /// + public partial class OnDemandExecutionOnly : WorkflowExecutionConditions + { + /// + /// Initializes a new instance of the class. + /// + public OnDemandExecutionOnly() + { + this.ODataType = "microsoft.graph.identityGovernance.onDemandExecutionOnly"; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Parameter.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Parameter.cs new file mode 100644 index 00000000000..d0153047c59 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Parameter.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Parameter. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class Parameter + { + + /// + /// Gets or sets name. + /// + [JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Gets or sets values. + /// + [JsonPropertyName("values")] + public IEnumerable Values { get; set; } + + /// + /// Gets or sets valueType. + /// + [JsonPropertyName("valueType")] + public ValueType? ValueType { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/RuleBasedSubjectSet.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/RuleBasedSubjectSet.cs new file mode 100644 index 00000000000..7530ac7a6a6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/RuleBasedSubjectSet.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type RuleBasedSubjectSet. + /// + public partial class RuleBasedSubjectSet : Microsoft.Graph.SubjectSet + { + /// + /// Initializes a new instance of the class. + /// + public RuleBasedSubjectSet() + { + this.ODataType = "microsoft.graph.identityGovernance.ruleBasedSubjectSet"; + } + + /// + /// Gets or sets rule. + /// + [JsonPropertyName("rule")] + public string Rule { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Run.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Run.cs new file mode 100644 index 00000000000..7ac588a07d4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Run.cs @@ -0,0 +1,124 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Run. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class Run : Microsoft.Graph.Entity + { + + /// + /// Gets or sets completed date time. + /// + [JsonPropertyName("completedDateTime")] + public DateTimeOffset? CompletedDateTime { get; set; } + + /// + /// Gets or sets failed tasks count. + /// + [JsonPropertyName("failedTasksCount")] + public Int32? FailedTasksCount { get; set; } + + /// + /// Gets or sets failed users count. + /// + [JsonPropertyName("failedUsersCount")] + public Int32? FailedUsersCount { get; set; } + + /// + /// Gets or sets last updated date time. + /// + [JsonPropertyName("lastUpdatedDateTime")] + public DateTimeOffset? LastUpdatedDateTime { get; set; } + + /// + /// Gets or sets processing status. + /// + [JsonPropertyName("processingStatus")] + public LifecycleWorkflowProcessingStatus? ProcessingStatus { get; set; } + + /// + /// Gets or sets scheduled date time. + /// + [JsonPropertyName("scheduledDateTime")] + public DateTimeOffset? ScheduledDateTime { get; set; } + + /// + /// Gets or sets started date time. + /// + [JsonPropertyName("startedDateTime")] + public DateTimeOffset? StartedDateTime { get; set; } + + /// + /// Gets or sets successful users count. + /// + [JsonPropertyName("successfulUsersCount")] + public Int32? SuccessfulUsersCount { get; set; } + + /// + /// Gets or sets total tasks count. + /// + [JsonPropertyName("totalTasksCount")] + public Int32? TotalTasksCount { get; set; } + + /// + /// Gets or sets total unprocessed tasks count. + /// + [JsonPropertyName("totalUnprocessedTasksCount")] + public Int32? TotalUnprocessedTasksCount { get; set; } + + /// + /// Gets or sets total users count. + /// + [JsonPropertyName("totalUsersCount")] + public Int32? TotalUsersCount { get; set; } + + /// + /// Gets or sets workflow execution type. + /// + [JsonPropertyName("workflowExecutionType")] + public WorkflowExecutionType? WorkflowExecutionType { get; set; } + + /// + /// Gets or sets task processing results. + /// + [JsonPropertyName("taskProcessingResults")] + public IRunTaskProcessingResultsCollectionPage TaskProcessingResults { get; set; } + + /// + /// Gets or sets taskProcessingResultsNextLink. + /// + [JsonPropertyName("taskProcessingResults@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TaskProcessingResultsNextLink { get; set; } + + /// + /// Gets or sets user processing results. + /// + [JsonPropertyName("userProcessingResults")] + public IRunUserProcessingResultsCollectionPage UserProcessingResults { get; set; } + + /// + /// Gets or sets userProcessingResultsNextLink. + /// + [JsonPropertyName("userProcessingResults@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string UserProcessingResultsNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/RunSummary.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/RunSummary.cs new file mode 100644 index 00000000000..4fef9827b5e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/RunSummary.cs @@ -0,0 +1,73 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type RunSummary. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class RunSummary + { + + /// + /// Gets or sets failedRuns. + /// + [JsonPropertyName("failedRuns")] + public Int32? FailedRuns { get; set; } + + /// + /// Gets or sets failedTasks. + /// + [JsonPropertyName("failedTasks")] + public Int32? FailedTasks { get; set; } + + /// + /// Gets or sets successfulRuns. + /// + [JsonPropertyName("successfulRuns")] + public Int32? SuccessfulRuns { get; set; } + + /// + /// Gets or sets totalRuns. + /// + [JsonPropertyName("totalRuns")] + public Int32? TotalRuns { get; set; } + + /// + /// Gets or sets totalTasks. + /// + [JsonPropertyName("totalTasks")] + public Int32? TotalTasks { get; set; } + + /// + /// Gets or sets totalUsers. + /// + [JsonPropertyName("totalUsers")] + public Int32? TotalUsers { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Task.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Task.cs new file mode 100644 index 00000000000..19131ffa125 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Task.cs @@ -0,0 +1,87 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Task. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class TaskObject : Microsoft.Graph.Entity + { + + /// + /// Gets or sets arguments. + /// + [JsonPropertyName("arguments")] + public IEnumerable Arguments { get; set; } + + /// + /// Gets or sets category. + /// + [JsonPropertyName("category")] + public LifecycleTaskCategory? Category { get; set; } + + /// + /// Gets or sets continue on error. + /// + [JsonPropertyName("continueOnError")] + public bool? ContinueOnError { get; set; } + + /// + /// Gets or sets description. + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Gets or sets display name. + /// + [JsonPropertyName("displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets execution sequence. + /// + [JsonPropertyName("executionSequence")] + public Int32? ExecutionSequence { get; set; } + + /// + /// Gets or sets is enabled. + /// + [JsonPropertyName("isEnabled")] + public bool? IsEnabled { get; set; } + + /// + /// Gets or sets task definition id. + /// + [JsonPropertyName("taskDefinitionId")] + public string TaskDefinitionId { get; set; } + + /// + /// Gets or sets task processing results. + /// + [JsonPropertyName("taskProcessingResults")] + public ITaskTaskProcessingResultsCollectionPage TaskProcessingResults { get; set; } + + /// + /// Gets or sets taskProcessingResultsNextLink. + /// + [JsonPropertyName("taskProcessingResults@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TaskProcessingResultsNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskDefinition.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskDefinition.cs new file mode 100644 index 00000000000..2eca6a5c294 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskDefinition.cs @@ -0,0 +1,62 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Task Definition. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class TaskDefinition : Microsoft.Graph.Entity + { + + /// + /// Gets or sets category. + /// + [JsonPropertyName("category")] + public LifecycleTaskCategory? Category { get; set; } + + /// + /// Gets or sets continue on error. + /// + [JsonPropertyName("continueOnError")] + public bool? ContinueOnError { get; set; } + + /// + /// Gets or sets description. + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Gets or sets display name. + /// + [JsonPropertyName("displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets parameters. + /// + [JsonPropertyName("parameters")] + public IEnumerable Parameters { get; set; } + + /// + /// Gets or sets version. + /// + [JsonPropertyName("version")] + public Int32? Version { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskProcessingResult.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskProcessingResult.cs new file mode 100644 index 00000000000..fa40294fcad --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskProcessingResult.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Task Processing Result. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class TaskProcessingResult : Microsoft.Graph.Entity + { + + /// + /// Gets or sets completed date time. + /// + [JsonPropertyName("completedDateTime")] + public DateTimeOffset? CompletedDateTime { get; set; } + + /// + /// Gets or sets created date time. + /// + [JsonPropertyName("createdDateTime")] + public DateTimeOffset? CreatedDateTime { get; set; } + + /// + /// Gets or sets failure reason. + /// + [JsonPropertyName("failureReason")] + public string FailureReason { get; set; } + + /// + /// Gets or sets processing status. + /// + [JsonPropertyName("processingStatus")] + public LifecycleWorkflowProcessingStatus? ProcessingStatus { get; set; } + + /// + /// Gets or sets started date time. + /// + [JsonPropertyName("startedDateTime")] + public DateTimeOffset? StartedDateTime { get; set; } + + /// + /// Gets or sets subject. + /// + [JsonPropertyName("subject")] + public Microsoft.Graph.User Subject { get; set; } + + /// + /// Gets or sets task. + /// + [JsonPropertyName("task")] + public TaskObject @Task { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskProcessingResultResumeRequestBody.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskProcessingResultResumeRequestBody.cs new file mode 100644 index 00000000000..95836598fd8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskProcessingResultResumeRequestBody.cs @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBody.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type TaskProcessingResultResumeRequestBody. + /// + public partial class TaskProcessingResultResumeRequestBody + { + + /// + /// Gets or sets Source. + /// + [JsonPropertyName("source")] + public string Source { get; set; } + + /// + /// Gets or sets Type. + /// + [JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Gets or sets Data. + /// + [JsonPropertyName("data")] + public CustomTaskExtensionCallbackData Data { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskReport.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskReport.cs new file mode 100644 index 00000000000..efd6855d318 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskReport.cs @@ -0,0 +1,105 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Task Report. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class TaskReport : Microsoft.Graph.Entity + { + + /// + /// Gets or sets completed date time. + /// + [JsonPropertyName("completedDateTime")] + public DateTimeOffset? CompletedDateTime { get; set; } + + /// + /// Gets or sets failed users count. + /// + [JsonPropertyName("failedUsersCount")] + public Int32? FailedUsersCount { get; set; } + + /// + /// Gets or sets last updated date time. + /// + [JsonPropertyName("lastUpdatedDateTime")] + public DateTimeOffset? LastUpdatedDateTime { get; set; } + + /// + /// Gets or sets processing status. + /// + [JsonPropertyName("processingStatus")] + public LifecycleWorkflowProcessingStatus? ProcessingStatus { get; set; } + + /// + /// Gets or sets run id. + /// + [JsonPropertyName("runId")] + public string RunId { get; set; } + + /// + /// Gets or sets started date time. + /// + [JsonPropertyName("startedDateTime")] + public DateTimeOffset? StartedDateTime { get; set; } + + /// + /// Gets or sets successful users count. + /// + [JsonPropertyName("successfulUsersCount")] + public Int32? SuccessfulUsersCount { get; set; } + + /// + /// Gets or sets total users count. + /// + [JsonPropertyName("totalUsersCount")] + public Int32? TotalUsersCount { get; set; } + + /// + /// Gets or sets unprocessed users count. + /// + [JsonPropertyName("unprocessedUsersCount")] + public Int32? UnprocessedUsersCount { get; set; } + + /// + /// Gets or sets task. + /// + [JsonPropertyName("task")] + public TaskObject @Task { get; set; } + + /// + /// Gets or sets task definition. + /// + [JsonPropertyName("taskDefinition")] + public TaskDefinition TaskDefinition { get; set; } + + /// + /// Gets or sets task processing results. + /// + [JsonPropertyName("taskProcessingResults")] + public ITaskReportTaskProcessingResultsCollectionPage TaskProcessingResults { get; set; } + + /// + /// Gets or sets taskProcessingResultsNextLink. + /// + [JsonPropertyName("taskProcessingResults@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TaskProcessingResultsNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskReportSummary.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskReportSummary.cs new file mode 100644 index 00000000000..97d27779e4f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TaskReportSummary.cs @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type TaskReportSummary. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class TaskReportSummary + { + + /// + /// Gets or sets failedTasks. + /// + [JsonPropertyName("failedTasks")] + public Int32? FailedTasks { get; set; } + + /// + /// Gets or sets successfulTasks. + /// + [JsonPropertyName("successfulTasks")] + public Int32? SuccessfulTasks { get; set; } + + /// + /// Gets or sets totalTasks. + /// + [JsonPropertyName("totalTasks")] + public Int32? TotalTasks { get; set; } + + /// + /// Gets or sets unprocessedTasks. + /// + [JsonPropertyName("unprocessedTasks")] + public Int32? UnprocessedTasks { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TimeBasedAttributeTrigger.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TimeBasedAttributeTrigger.cs new file mode 100644 index 00000000000..1d5e61be62a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TimeBasedAttributeTrigger.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type TimeBasedAttributeTrigger. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class TimeBasedAttributeTrigger : WorkflowExecutionTrigger + { + /// + /// Initializes a new instance of the class. + /// + public TimeBasedAttributeTrigger() + { + this.ODataType = "microsoft.graph.identityGovernance.timeBasedAttributeTrigger"; + } + + /// + /// Gets or sets offsetInDays. + /// + [JsonPropertyName("offsetInDays")] + public Int32? OffsetInDays { get; set; } + + /// + /// Gets or sets timeBasedAttribute. + /// + [JsonPropertyName("timeBasedAttribute")] + public WorkflowTriggerTimeBasedAttribute? TimeBasedAttribute { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TriggerAndScopeBasedConditions.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TriggerAndScopeBasedConditions.cs new file mode 100644 index 00000000000..31423e1ce55 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/TriggerAndScopeBasedConditions.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type TriggerAndScopeBasedConditions. + /// + public partial class TriggerAndScopeBasedConditions : WorkflowExecutionConditions + { + /// + /// Initializes a new instance of the class. + /// + public TriggerAndScopeBasedConditions() + { + this.ODataType = "microsoft.graph.identityGovernance.triggerAndScopeBasedConditions"; + } + + /// + /// Gets or sets scope. + /// + [JsonPropertyName("scope")] + public Microsoft.Graph.SubjectSet Scope { get; set; } + + /// + /// Gets or sets trigger. + /// + [JsonPropertyName("trigger")] + public WorkflowExecutionTrigger Trigger { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UserProcessingResult.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UserProcessingResult.cs new file mode 100644 index 00000000000..2569f4ce5dc --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UserProcessingResult.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type User Processing Result. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class UserProcessingResult : Microsoft.Graph.Entity + { + + /// + /// Gets or sets completed date time. + /// + [JsonPropertyName("completedDateTime")] + public DateTimeOffset? CompletedDateTime { get; set; } + + /// + /// Gets or sets failed tasks count. + /// + [JsonPropertyName("failedTasksCount")] + public Int32? FailedTasksCount { get; set; } + + /// + /// Gets or sets processing status. + /// + [JsonPropertyName("processingStatus")] + public LifecycleWorkflowProcessingStatus? ProcessingStatus { get; set; } + + /// + /// Gets or sets scheduled date time. + /// + [JsonPropertyName("scheduledDateTime")] + public DateTimeOffset? ScheduledDateTime { get; set; } + + /// + /// Gets or sets started date time. + /// + [JsonPropertyName("startedDateTime")] + public DateTimeOffset? StartedDateTime { get; set; } + + /// + /// Gets or sets total tasks count. + /// + [JsonPropertyName("totalTasksCount")] + public Int32? TotalTasksCount { get; set; } + + /// + /// Gets or sets total unprocessed tasks count. + /// + [JsonPropertyName("totalUnprocessedTasksCount")] + public Int32? TotalUnprocessedTasksCount { get; set; } + + /// + /// Gets or sets workflow execution type. + /// + [JsonPropertyName("workflowExecutionType")] + public WorkflowExecutionType? WorkflowExecutionType { get; set; } + + /// + /// Gets or sets workflow version. + /// + [JsonPropertyName("workflowVersion")] + public Int32? WorkflowVersion { get; set; } + + /// + /// Gets or sets subject. + /// + [JsonPropertyName("subject")] + public Microsoft.Graph.User Subject { get; set; } + + /// + /// Gets or sets task processing results. + /// + [JsonPropertyName("taskProcessingResults")] + public IUserProcessingResultTaskProcessingResultsCollectionPage TaskProcessingResults { get; set; } + + /// + /// Gets or sets taskProcessingResultsNextLink. + /// + [JsonPropertyName("taskProcessingResults@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TaskProcessingResultsNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UserSummary.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UserSummary.cs new file mode 100644 index 00000000000..606f07d4e4d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UserSummary.cs @@ -0,0 +1,67 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type UserSummary. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class UserSummary + { + + /// + /// Gets or sets failedTasks. + /// + [JsonPropertyName("failedTasks")] + public Int32? FailedTasks { get; set; } + + /// + /// Gets or sets failedUsers. + /// + [JsonPropertyName("failedUsers")] + public Int32? FailedUsers { get; set; } + + /// + /// Gets or sets successfulUsers. + /// + [JsonPropertyName("successfulUsers")] + public Int32? SuccessfulUsers { get; set; } + + /// + /// Gets or sets totalTasks. + /// + [JsonPropertyName("totalTasks")] + public Int32? TotalTasks { get; set; } + + /// + /// Gets or sets totalUsers. + /// + [JsonPropertyName("totalUsers")] + public Int32? TotalUsers { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UsersProcessingSummary.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UsersProcessingSummary.cs new file mode 100644 index 00000000000..4408d8a7a31 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/UsersProcessingSummary.cs @@ -0,0 +1,67 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type UsersProcessingSummary. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class UsersProcessingSummary + { + + /// + /// Gets or sets failedTasks. + /// + [JsonPropertyName("failedTasks")] + public Int32? FailedTasks { get; set; } + + /// + /// Gets or sets failedUsers. + /// + [JsonPropertyName("failedUsers")] + public Int32? FailedUsers { get; set; } + + /// + /// Gets or sets successfulUsers. + /// + [JsonPropertyName("successfulUsers")] + public Int32? SuccessfulUsers { get; set; } + + /// + /// Gets or sets totalTasks. + /// + [JsonPropertyName("totalTasks")] + public Int32? TotalTasks { get; set; } + + /// + /// Gets or sets totalUsers. + /// + [JsonPropertyName("totalUsers")] + public Int32? TotalUsers { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/ValueType.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/ValueType.cs new file mode 100644 index 00000000000..7696c7c95da --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/ValueType.cs @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum ValueType. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum ValueType + { + + /// + /// Enum + /// + Enum = 0, + + /// + /// String + /// + @String = 1, + + /// + /// Int + /// + Int = 2, + + /// + /// Bool + /// + Bool = 3, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 4, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Workflow.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Workflow.cs new file mode 100644 index 00000000000..8a96446924f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/Workflow.cs @@ -0,0 +1,134 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Workflow. + /// + public partial class Workflow : WorkflowBase + { + + /// + /// The Workflow constructor + /// + public Workflow() + { + this.ODataType = "microsoft.graph.identityGovernance.workflow"; + } + + /// + /// Gets or sets deleted date time. + /// + [JsonPropertyName("deletedDateTime")] + public DateTimeOffset? DeletedDateTime { get; set; } + + /// + /// Gets or sets id. + /// + [JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// Gets or sets is enabled. + /// + [JsonPropertyName("isEnabled")] + public bool? IsEnabled { get; set; } + + /// + /// Gets or sets is scheduling enabled. + /// + [JsonPropertyName("isSchedulingEnabled")] + public bool? IsSchedulingEnabled { get; set; } + + /// + /// Gets or sets next schedule run date time. + /// + [JsonPropertyName("nextScheduleRunDateTime")] + public DateTimeOffset? NextScheduleRunDateTime { get; set; } + + /// + /// Gets or sets version. + /// + [JsonPropertyName("version")] + public Int32? Version { get; set; } + + /// + /// Gets or sets execution scope. + /// + [JsonPropertyName("executionScope")] + public IWorkflowExecutionScopeCollectionWithReferencesPage ExecutionScope { get; set; } + + /// + /// Gets or sets executionScopeNextLink. + /// + [JsonPropertyName("executionScope@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string ExecutionScopeNextLink { get; set; } + + /// + /// Gets or sets runs. + /// + [JsonPropertyName("runs")] + public IWorkflowRunsCollectionPage Runs { get; set; } + + /// + /// Gets or sets runsNextLink. + /// + [JsonPropertyName("runs@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string RunsNextLink { get; set; } + + /// + /// Gets or sets task reports. + /// + [JsonPropertyName("taskReports")] + public IWorkflowTaskReportsCollectionPage TaskReports { get; set; } + + /// + /// Gets or sets taskReportsNextLink. + /// + [JsonPropertyName("taskReports@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TaskReportsNextLink { get; set; } + + /// + /// Gets or sets user processing results. + /// + [JsonPropertyName("userProcessingResults")] + public IWorkflowUserProcessingResultsCollectionPage UserProcessingResults { get; set; } + + /// + /// Gets or sets userProcessingResultsNextLink. + /// + [JsonPropertyName("userProcessingResults@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string UserProcessingResultsNextLink { get; set; } + + /// + /// Gets or sets versions. + /// + [JsonPropertyName("versions")] + public IWorkflowVersionsCollectionPage Versions { get; set; } + + /// + /// Gets or sets versionsNextLink. + /// + [JsonPropertyName("versions@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string VersionsNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowActivateRequestBody.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowActivateRequestBody.cs new file mode 100644 index 00000000000..7e61c725879 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowActivateRequestBody.cs @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBody.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowActivateRequestBody. + /// + public partial class WorkflowActivateRequestBody + { + + /// + /// Gets or sets Subjects. + /// + [JsonPropertyName("subjects")] + public IEnumerable Subjects { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowBase.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowBase.cs new file mode 100644 index 00000000000..463ccab5214 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowBase.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Workflow Base. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class WorkflowBase + { + + /// + /// The internal WorkflowBase constructor + /// + protected internal WorkflowBase() + { + // Don't allow initialization of abstract entity types + } + + /// + /// Gets or sets category. + /// + [JsonPropertyName("category")] + public LifecycleWorkflowCategory? Category { get; set; } + + /// + /// Gets or sets created date time. + /// + [JsonPropertyName("createdDateTime")] + public DateTimeOffset? CreatedDateTime { get; set; } + + /// + /// Gets or sets description. + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Gets or sets display name. + /// + [JsonPropertyName("displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets execution conditions. + /// + [JsonPropertyName("executionConditions")] + public WorkflowExecutionConditions ExecutionConditions { get; set; } + + /// + /// Gets or sets last modified date time. + /// + [JsonPropertyName("lastModifiedDateTime")] + public DateTimeOffset? LastModifiedDateTime { get; set; } + + /// + /// Gets or sets created by. + /// + [JsonPropertyName("createdBy")] + public Microsoft.Graph.User CreatedBy { get; set; } + + /// + /// Gets or sets last modified by. + /// + [JsonPropertyName("lastModifiedBy")] + public Microsoft.Graph.User LastModifiedBy { get; set; } + + /// + /// Gets or sets tasks. + /// + [JsonPropertyName("tasks")] + public IWorkflowBaseTasksCollectionPage Tasks { get; set; } + + /// + /// Gets or sets tasksNextLink. + /// + [JsonPropertyName("tasks@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TasksNextLink { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowCreateNewVersionRequestBody.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowCreateNewVersionRequestBody.cs new file mode 100644 index 00000000000..1aae65c1d5e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowCreateNewVersionRequestBody.cs @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBody.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowCreateNewVersionRequestBody. + /// + public partial class WorkflowCreateNewVersionRequestBody + { + + /// + /// Gets or sets Workflow. + /// + [JsonPropertyName("workflow")] + public Workflow Workflow { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionConditions.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionConditions.cs new file mode 100644 index 00000000000..5e17b008cc2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionConditions.cs @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowExecutionConditions. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class WorkflowExecutionConditions + { + + /// + /// The internal WorkflowExecutionConditions constructor + /// + protected internal WorkflowExecutionConditions() + { + // Don't allow initialization of abstract complex types + } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionTrigger.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionTrigger.cs new file mode 100644 index 00000000000..88b9d29576d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionTrigger.cs @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowExecutionTrigger. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class WorkflowExecutionTrigger + { + + /// + /// The internal WorkflowExecutionTrigger constructor + /// + protected internal WorkflowExecutionTrigger() + { + // Don't allow initialization of abstract complex types + } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionType.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionType.cs new file mode 100644 index 00000000000..f09006aae02 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowExecutionType.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum WorkflowExecutionType. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum WorkflowExecutionType + { + + /// + /// Scheduled + /// + Scheduled = 0, + + /// + /// On Demand + /// + OnDemand = 1, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 2, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowTemplate.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowTemplate.cs new file mode 100644 index 00000000000..314f235c93c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowTemplate.cs @@ -0,0 +1,63 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Workflow Template. + /// + [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))] + public partial class WorkflowTemplate : Microsoft.Graph.Entity + { + + /// + /// Gets or sets category. + /// + [JsonPropertyName("category")] + public LifecycleWorkflowCategory? Category { get; set; } + + /// + /// Gets or sets description. + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Gets or sets display name. + /// + [JsonPropertyName("displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets execution conditions. + /// + [JsonPropertyName("executionConditions")] + public WorkflowExecutionConditions ExecutionConditions { get; set; } + + /// + /// Gets or sets tasks. + /// + [JsonPropertyName("tasks")] + public IWorkflowTemplateTasksCollectionPage Tasks { get; set; } + + /// + /// Gets or sets tasksNextLink. + /// + [JsonPropertyName("tasks@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string TasksNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowTriggerTimeBasedAttribute.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowTriggerTimeBasedAttribute.cs new file mode 100644 index 00000000000..50bd4c1e727 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowTriggerTimeBasedAttribute.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Text.Json.Serialization; + + /// + /// The enum WorkflowTriggerTimeBasedAttribute. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum WorkflowTriggerTimeBasedAttribute + { + + /// + /// Employee Hire Date + /// + EmployeeHireDate = 0, + + /// + /// Employee Leave Date Time + /// + EmployeeLeaveDateTime = 1, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 2, + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowVersion.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowVersion.cs new file mode 100644 index 00000000000..32174308ca1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/model/WorkflowVersion.cs @@ -0,0 +1,39 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Workflow Version. + /// + public partial class WorkflowVersion : WorkflowBase + { + + /// + /// The WorkflowVersion constructor + /// + public WorkflowVersion() + { + this.ODataType = "microsoft.graph.identityGovernance.workflowVersion"; + } + + /// + /// Gets or sets version number. + /// + [JsonPropertyName("versionNumber")] + public Int32? VersionNumber { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/CustomTaskExtensionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/CustomTaskExtensionRequest.cs new file mode 100644 index 00000000000..f8669431109 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/CustomTaskExtensionRequest.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type CustomTaskExtensionRequest. + /// + public partial class CustomTaskExtensionRequest : Microsoft.Graph.BaseRequest, ICustomTaskExtensionRequest + { + /// + /// Constructs a new CustomTaskExtensionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public CustomTaskExtensionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified CustomTaskExtension using POST. + /// + /// The CustomTaskExtension to create. + /// The for the request. + /// The created CustomTaskExtension. + public async System.Threading.Tasks.Task CreateAsync(CustomTaskExtension customTaskExtensionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(customTaskExtensionToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified CustomTaskExtension using POST and returns a object. + /// + /// The CustomTaskExtension to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(CustomTaskExtension customTaskExtensionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(customTaskExtensionToCreate, cancellationToken); + } + + /// + /// Deletes the specified CustomTaskExtension. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified CustomTaskExtension and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified CustomTaskExtension. + /// + /// The for the request. + /// The CustomTaskExtension. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified CustomTaskExtension and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified CustomTaskExtension using PATCH. + /// + /// The CustomTaskExtension to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated CustomTaskExtension. + public async System.Threading.Tasks.Task UpdateAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(customTaskExtensionToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified CustomTaskExtension using PATCH and returns a object. + /// + /// The CustomTaskExtension to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(customTaskExtensionToUpdate, cancellationToken); + } + + /// + /// Updates the specified CustomTaskExtension using PUT. + /// + /// The CustomTaskExtension object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(customTaskExtensionToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified CustomTaskExtension using PUT and returns a object. + /// + /// The CustomTaskExtension object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(customTaskExtensionToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ICustomTaskExtensionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ICustomTaskExtensionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ICustomTaskExtensionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ICustomTaskExtensionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(CustomTaskExtension customTaskExtensionToInitialize) + { + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/CustomTaskExtensionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/CustomTaskExtensionRequestBuilder.cs new file mode 100644 index 00000000000..d66c1d6e567 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/CustomTaskExtensionRequestBuilder.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type CustomTaskExtensionRequestBuilder. + /// + public partial class CustomTaskExtensionRequestBuilder : Microsoft.Graph.CustomCalloutExtensionRequestBuilder, ICustomTaskExtensionRequestBuilder + { + + /// + /// Constructs a new CustomTaskExtensionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public CustomTaskExtensionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ICustomTaskExtensionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ICustomTaskExtensionRequest Request(IEnumerable options) + { + return new CustomTaskExtensionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for CreatedBy. + /// + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder CreatedBy + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("createdBy"), this.Client); + } + } + + /// + /// Gets the request builder for LastModifiedBy. + /// + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder LastModifiedBy + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("lastModifiedBy"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ICustomTaskExtensionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ICustomTaskExtensionRequest.cs new file mode 100644 index 00000000000..cc9463cacee --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ICustomTaskExtensionRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ICustomTaskExtensionRequest. + /// + public partial interface ICustomTaskExtensionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified CustomTaskExtension using POST. + /// + /// The CustomTaskExtension to create. + /// The for the request. + /// The created CustomTaskExtension. + System.Threading.Tasks.Task CreateAsync(CustomTaskExtension customTaskExtensionToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified CustomTaskExtension using POST and returns a object. + /// + /// The CustomTaskExtension to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(CustomTaskExtension customTaskExtensionToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified CustomTaskExtension. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified CustomTaskExtension and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified CustomTaskExtension. + /// + /// The for the request. + /// The CustomTaskExtension. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified CustomTaskExtension and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified CustomTaskExtension using PATCH. + /// + /// The CustomTaskExtension to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated CustomTaskExtension. + System.Threading.Tasks.Task UpdateAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified CustomTaskExtension using PATCH and returns a object. + /// + /// The CustomTaskExtension to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified CustomTaskExtension using PUT. + /// + /// The CustomTaskExtension object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified CustomTaskExtension using PUT and returns a object. + /// + /// The CustomTaskExtension object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(CustomTaskExtension customTaskExtensionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ICustomTaskExtensionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ICustomTaskExtensionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ICustomTaskExtensionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ICustomTaskExtensionRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ICustomTaskExtensionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ICustomTaskExtensionRequestBuilder.cs new file mode 100644 index 00000000000..f86629b32ad --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ICustomTaskExtensionRequestBuilder.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ICustomTaskExtensionRequestBuilder. + /// + public partial interface ICustomTaskExtensionRequestBuilder : Microsoft.Graph.ICustomCalloutExtensionRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ICustomTaskExtensionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ICustomTaskExtensionRequest Request(IEnumerable options); + + /// + /// Gets the request builder for CreatedBy. + /// + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder CreatedBy { get; } + + /// + /// Gets the request builder for LastModifiedBy. + /// + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder LastModifiedBy { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleManagementSettingsRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleManagementSettingsRequest.cs new file mode 100644 index 00000000000..2ab29e71b55 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleManagementSettingsRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ILifecycleManagementSettingsRequest. + /// + public partial interface ILifecycleManagementSettingsRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified LifecycleManagementSettings using POST. + /// + /// The LifecycleManagementSettings to create. + /// The for the request. + /// The created LifecycleManagementSettings. + System.Threading.Tasks.Task CreateAsync(LifecycleManagementSettings lifecycleManagementSettingsToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified LifecycleManagementSettings using POST and returns a object. + /// + /// The LifecycleManagementSettings to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(LifecycleManagementSettings lifecycleManagementSettingsToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified LifecycleManagementSettings. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified LifecycleManagementSettings and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified LifecycleManagementSettings. + /// + /// The for the request. + /// The LifecycleManagementSettings. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified LifecycleManagementSettings and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleManagementSettings using PATCH. + /// + /// The LifecycleManagementSettings to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated LifecycleManagementSettings. + System.Threading.Tasks.Task UpdateAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleManagementSettings using PATCH and returns a object. + /// + /// The LifecycleManagementSettings to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleManagementSettings using PUT. + /// + /// The LifecycleManagementSettings object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleManagementSettings using PUT and returns a object. + /// + /// The LifecycleManagementSettings object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ILifecycleManagementSettingsRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ILifecycleManagementSettingsRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ILifecycleManagementSettingsRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ILifecycleManagementSettingsRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleManagementSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleManagementSettingsRequestBuilder.cs new file mode 100644 index 00000000000..a3c17021ede --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleManagementSettingsRequestBuilder.cs @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ILifecycleManagementSettingsRequestBuilder. + /// + public partial interface ILifecycleManagementSettingsRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ILifecycleManagementSettingsRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ILifecycleManagementSettingsRequest Request(IEnumerable options); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage.cs new file mode 100644 index 00000000000..115b834b8cb --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest.cs new file mode 100644 index 00000000000..50e514ec689 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest. + /// + public partial interface ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified CustomTaskExtension to the collection via POST. + /// + /// The CustomTaskExtension to add. + /// The for the request. + /// The created CustomTaskExtension. + System.Threading.Tasks.Task AddAsync(CustomTaskExtension customTaskExtension, CancellationToken cancellationToken = default); + + /// + /// Adds the specified CustomTaskExtension to the collection via POST and returns a object of the request. + /// + /// The CustomTaskExtension to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(CustomTaskExtension customTaskExtension, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..ff49364404c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder. + /// + public partial interface ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified CustomTaskExtension. + /// + /// The ID for the CustomTaskExtension. + /// The . + ICustomTaskExtensionRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerRequest.cs new file mode 100644 index 00000000000..0989fd8844c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ILifecycleWorkflowsContainerRequest. + /// + public partial interface ILifecycleWorkflowsContainerRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified LifecycleWorkflowsContainer using POST. + /// + /// The LifecycleWorkflowsContainer to create. + /// The for the request. + /// The created LifecycleWorkflowsContainer. + System.Threading.Tasks.Task CreateAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified LifecycleWorkflowsContainer using POST and returns a object. + /// + /// The LifecycleWorkflowsContainer to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified LifecycleWorkflowsContainer. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified LifecycleWorkflowsContainer and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified LifecycleWorkflowsContainer. + /// + /// The for the request. + /// The LifecycleWorkflowsContainer. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified LifecycleWorkflowsContainer and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleWorkflowsContainer using PATCH. + /// + /// The LifecycleWorkflowsContainer to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated LifecycleWorkflowsContainer. + System.Threading.Tasks.Task UpdateAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleWorkflowsContainer using PATCH and returns a object. + /// + /// The LifecycleWorkflowsContainer to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleWorkflowsContainer using PUT. + /// + /// The LifecycleWorkflowsContainer object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified LifecycleWorkflowsContainer using PUT and returns a object. + /// + /// The LifecycleWorkflowsContainer object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ILifecycleWorkflowsContainerRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ILifecycleWorkflowsContainerRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ILifecycleWorkflowsContainerRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ILifecycleWorkflowsContainerRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerRequestBuilder.cs new file mode 100644 index 00000000000..f347d1032d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerRequestBuilder.cs @@ -0,0 +1,71 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ILifecycleWorkflowsContainerRequestBuilder. + /// + public partial interface ILifecycleWorkflowsContainerRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ILifecycleWorkflowsContainerRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ILifecycleWorkflowsContainerRequest Request(IEnumerable options); + + /// + /// Gets the request builder for CustomTaskExtensions. + /// + /// The . + ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder CustomTaskExtensions { get; } + + /// + /// Gets the request builder for DeletedItems. + /// + /// The . + Microsoft.Graph.IDeletedItemContainerRequestBuilder DeletedItems { get; } + + /// + /// Gets the request builder for Settings. + /// + /// The . + ILifecycleManagementSettingsRequestBuilder Settings { get; } + + /// + /// Gets the request builder for TaskDefinitions. + /// + /// The . + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder TaskDefinitions { get; } + + /// + /// Gets the request builder for Workflows. + /// + /// The . + ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder Workflows { get; } + + /// + /// Gets the request builder for WorkflowTemplates. + /// + /// The . + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder WorkflowTemplates { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage.cs new file mode 100644 index 00000000000..8870959fd5c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest.cs new file mode 100644 index 00000000000..a3dfbf04832 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest. + /// + public partial interface ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskDefinition to the collection via POST. + /// + /// The TaskDefinition to add. + /// The for the request. + /// The created TaskDefinition. + System.Threading.Tasks.Task AddAsync(TaskDefinition taskDefinition, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskDefinition to the collection via POST and returns a object of the request. + /// + /// The TaskDefinition to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskDefinition taskDefinition, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..36d5ce60b3c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder. + /// + public partial interface ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified TaskDefinition. + /// + /// The ID for the TaskDefinition. + /// The . + ITaskDefinitionRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage.cs new file mode 100644 index 00000000000..01fb15f9453 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest.cs new file mode 100644 index 00000000000..3fe1d34add2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest. + /// + public partial interface ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified WorkflowTemplate to the collection via POST. + /// + /// The WorkflowTemplate to add. + /// The for the request. + /// The created WorkflowTemplate. + System.Threading.Tasks.Task AddAsync(WorkflowTemplate workflowTemplate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified WorkflowTemplate to the collection via POST and returns a object of the request. + /// + /// The WorkflowTemplate to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(WorkflowTemplate workflowTemplate, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder.cs new file mode 100644 index 00000000000..72eab074482 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder. + /// + public partial interface ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified WorkflowTemplate. + /// + /// The ID for the WorkflowTemplate. + /// The . + IWorkflowTemplateRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionPage.cs new file mode 100644 index 00000000000..0757e1c1bd8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface ILifecycleWorkflowsContainerWorkflowsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface ILifecycleWorkflowsContainerWorkflowsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + ILifecycleWorkflowsContainerWorkflowsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionRequest.cs new file mode 100644 index 00000000000..efe3048327a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ILifecycleWorkflowsContainerWorkflowsCollectionRequest. + /// + public partial interface ILifecycleWorkflowsContainerWorkflowsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified Workflow to the collection via POST. + /// + /// The Workflow to add. + /// The for the request. + /// The created Workflow. + System.Threading.Tasks.Task AddAsync(Workflow workflow, CancellationToken cancellationToken = default); + + /// + /// Adds the specified Workflow to the collection via POST and returns a object of the request. + /// + /// The Workflow to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(Workflow workflow, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..6eb0ede84ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder. + /// + public partial interface ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ILifecycleWorkflowsContainerWorkflowsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified Workflow. + /// + /// The ID for the Workflow. + /// The . + IWorkflowRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunRequest.cs new file mode 100644 index 00000000000..21ec163bca1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IRunRequest. + /// + public partial interface IRunRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified Run using POST. + /// + /// The Run to create. + /// The for the request. + /// The created Run. + System.Threading.Tasks.Task CreateAsync(Run runToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified Run using POST and returns a object. + /// + /// The Run to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(Run runToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Run. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Run and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified Run. + /// + /// The for the request. + /// The Run. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified Run and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified Run using PATCH. + /// + /// The Run to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated Run. + System.Threading.Tasks.Task UpdateAsync(Run runToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Run using PATCH and returns a object. + /// + /// The Run to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(Run runToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Run using PUT. + /// + /// The Run object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(Run runToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Run using PUT and returns a object. + /// + /// The Run object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(Run runToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IRunRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IRunRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IRunRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IRunRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunRequestBuilder.cs new file mode 100644 index 00000000000..70fd9fa8fc4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunRequestBuilder.cs @@ -0,0 +1,49 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IRunRequestBuilder. + /// + public partial interface IRunRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new IRunRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new IRunRequest Request(IEnumerable options); + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + IRunTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults { get; } + + /// + /// Gets the request builder for UserProcessingResults. + /// + /// The . + IRunUserProcessingResultsCollectionRequestBuilder UserProcessingResults { get; } + + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunSummaryRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunSummaryRequest.cs new file mode 100644 index 00000000000..04c273f2770 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunSummaryRequest.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IRunSummaryRequest. + /// + public partial interface IRunSummaryRequest : Microsoft.Graph.IBaseRequest + { + + /// + /// Issues the GET request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task GetAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the GET request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IRunSummaryRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IRunSummaryRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunSummaryRequestBuilder.cs new file mode 100644 index 00000000000..11bc3efe3a8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunSummaryRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IRunSummaryRequestBuilder. + /// + public partial interface IRunSummaryRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IRunSummaryRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..8c9f0606a82 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IRunTaskProcessingResultsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IRunTaskProcessingResultsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IRunTaskProcessingResultsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..73faf7869b7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IRunTaskProcessingResultsCollectionRequest. + /// + public partial interface IRunTaskProcessingResultsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IRunTaskProcessingResultsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..52eff415136 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IRunTaskProcessingResultsCollectionRequestBuilder. + /// + public partial interface IRunTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IRunTaskProcessingResultsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IRunTaskProcessingResultsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified TaskProcessingResult. + /// + /// The ID for the TaskProcessingResult. + /// The . + ITaskProcessingResultRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..08d5b358070 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IRunUserProcessingResultsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IRunUserProcessingResultsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IRunUserProcessingResultsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..01b29e9630a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IRunUserProcessingResultsCollectionRequest. + /// + public partial interface IRunUserProcessingResultsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified UserProcessingResult to the collection via POST. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The created UserProcessingResult. + System.Threading.Tasks.Task AddAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default); + + /// + /// Adds the specified UserProcessingResult to the collection via POST and returns a object of the request. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IRunUserProcessingResultsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..9c2a6ef9dcb --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IRunUserProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IRunUserProcessingResultsCollectionRequestBuilder. + /// + public partial interface IRunUserProcessingResultsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IRunUserProcessingResultsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IRunUserProcessingResultsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified UserProcessingResult. + /// + /// The ID for the UserProcessingResult. + /// The . + IUserProcessingResultRequestBuilder this[string id] { get; } + + /// + /// Gets the request builder for UserProcessingResultSummary. + /// + /// The . + IUserProcessingResultSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionReferenceRequest.cs new file mode 100644 index 00000000000..e32ef3aa61a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionReferenceRequest.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Net.Http; + using System.Threading; + + /// + /// The interface ITaskDefinitionReferenceRequest. + /// + public partial interface ITaskDefinitionReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Deletes the specified TaskDefinition reference. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskDefinition reference and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Puts the specified TaskDefinition reference. + /// + /// The TaskDefinition reference reference to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default); + + /// + /// Puts the specified TaskDefinition reference and returns a object + /// + /// The TaskDefinition reference reference to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionReferenceRequestBuilder.cs new file mode 100644 index 00000000000..bc08486c9ed --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionReferenceRequestBuilder.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskDefinitionReferenceRequestBuilder. + /// + public partial interface ITaskDefinitionReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskDefinitionReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskDefinitionReferenceRequest Request(IEnumerable options); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionRequest.cs new file mode 100644 index 00000000000..cf097e725c7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskDefinitionRequest. + /// + public partial interface ITaskDefinitionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified TaskDefinition using POST. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The created TaskDefinition. + System.Threading.Tasks.Task CreateAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskDefinition using POST and returns a object. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskDefinition. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskDefinition. + /// + /// The for the request. + /// The TaskDefinition. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskDefinition using PATCH. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskDefinition. + System.Threading.Tasks.Task UpdateAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskDefinition using PATCH and returns a object. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskDefinition using PUT. + /// + /// The TaskDefinition object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskDefinition using PUT and returns a object. + /// + /// The TaskDefinition object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskDefinitionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskDefinitionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskDefinitionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskDefinitionRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionRequestBuilder.cs new file mode 100644 index 00000000000..7be09c9b9e3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionRequestBuilder.cs @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ITaskDefinitionRequestBuilder. + /// + public partial interface ITaskDefinitionRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ITaskDefinitionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ITaskDefinitionRequest Request(IEnumerable options); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionWithReferenceRequest.cs new file mode 100644 index 00000000000..553d201663e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionWithReferenceRequest.cs @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskDefinitionWithReferenceRequest. + /// + public partial interface ITaskDefinitionWithReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the specified TaskDefinition. + /// + /// The for the request. + /// The TaskDefinition. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskDefinition using POST. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The created TaskDefinition. + System.Threading.Tasks.Task CreateAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskDefinition using POST and returns a object. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskDefinition using PATCH. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskDefinition. + System.Threading.Tasks.Task UpdateAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskDefinition using PATCH and returns a object. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskDefinition. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskDefinitionWithReferenceRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskDefinitionWithReferenceRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskDefinitionWithReferenceRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskDefinitionWithReferenceRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..e7cfbf69599 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskDefinitionWithReferenceRequestBuilder.cs @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskDefinitionWithReferenceRequestBuilder. + /// + public partial interface ITaskDefinitionWithReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskDefinitionWithReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskDefinitionWithReferenceRequest Request(IEnumerable options); + + /// + /// Gets the request builder for the reference of the taskDefinition. + /// + /// The . + ITaskDefinitionReferenceRequestBuilder Reference { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultReferenceRequest.cs new file mode 100644 index 00000000000..faf862422a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultReferenceRequest.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Net.Http; + using System.Threading; + + /// + /// The interface ITaskProcessingResultReferenceRequest. + /// + public partial interface ITaskProcessingResultReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Deletes the specified TaskProcessingResult reference. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskProcessingResult reference and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Puts the specified TaskProcessingResult reference. + /// + /// The TaskProcessingResult reference reference to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default); + + /// + /// Puts the specified TaskProcessingResult reference and returns a object + /// + /// The TaskProcessingResult reference reference to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultReferenceRequestBuilder.cs new file mode 100644 index 00000000000..217e58e6a1d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultReferenceRequestBuilder.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskProcessingResultReferenceRequestBuilder. + /// + public partial interface ITaskProcessingResultReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskProcessingResultReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskProcessingResultReferenceRequest Request(IEnumerable options); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultRequest.cs new file mode 100644 index 00000000000..974e7a16eee --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskProcessingResultRequest. + /// + public partial interface ITaskProcessingResultRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified TaskProcessingResult using POST. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The created TaskProcessingResult. + System.Threading.Tasks.Task CreateAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskProcessingResult using POST and returns a object. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskProcessingResult. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskProcessingResult. + /// + /// The for the request. + /// The TaskProcessingResult. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskProcessingResult using PATCH. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskProcessingResult. + System.Threading.Tasks.Task UpdateAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskProcessingResult using PATCH and returns a object. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskProcessingResult using PUT. + /// + /// The TaskProcessingResult object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskProcessingResult using PUT and returns a object. + /// + /// The TaskProcessingResult object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskProcessingResultRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskProcessingResultRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskProcessingResultRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskProcessingResultRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultRequestBuilder.cs new file mode 100644 index 00000000000..b7373afe86c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultRequestBuilder.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ITaskProcessingResultRequestBuilder. + /// + public partial interface ITaskProcessingResultRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ITaskProcessingResultRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ITaskProcessingResultRequest Request(IEnumerable options); + + /// + /// Gets the request builder for Subject. + /// + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder Subject { get; } + + /// + /// Gets the request builder for @Task. + /// + /// The . + ITaskWithReferenceRequestBuilder @Task { get; } + + /// + /// Gets the request builder for TaskProcessingResultResume. + /// + /// The . + ITaskProcessingResultResumeRequestBuilder Resume( + CustomTaskExtensionCallbackData data, + string source = null, + string type = null); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultResumeRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultResumeRequest.cs new file mode 100644 index 00000000000..50e2bb82a93 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultResumeRequest.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface ITaskProcessingResultResumeRequest. + /// + public partial interface ITaskProcessingResultResumeRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the request body. + /// + TaskProcessingResultResumeRequestBody RequestBody { get; } + + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task PostResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskProcessingResultResumeRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskProcessingResultResumeRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultResumeRequestBuilder.cs new file mode 100644 index 00000000000..da7249c07fa --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultResumeRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ITaskProcessingResultResumeRequestBuilder. + /// + public partial interface ITaskProcessingResultResumeRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskProcessingResultResumeRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultWithReferenceRequest.cs new file mode 100644 index 00000000000..465f1d3901b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultWithReferenceRequest.cs @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskProcessingResultWithReferenceRequest. + /// + public partial interface ITaskProcessingResultWithReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the specified TaskProcessingResult. + /// + /// The for the request. + /// The TaskProcessingResult. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskProcessingResult using POST. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The created TaskProcessingResult. + System.Threading.Tasks.Task CreateAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskProcessingResult using POST and returns a object. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskProcessingResult using PATCH. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskProcessingResult. + System.Threading.Tasks.Task UpdateAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskProcessingResult using PATCH and returns a object. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskProcessingResult. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskProcessingResultWithReferenceRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskProcessingResultWithReferenceRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskProcessingResultWithReferenceRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskProcessingResultWithReferenceRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..ac5a1db8926 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskProcessingResultWithReferenceRequestBuilder.cs @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskProcessingResultWithReferenceRequestBuilder. + /// + public partial interface ITaskProcessingResultWithReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskProcessingResultWithReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskProcessingResultWithReferenceRequest Request(IEnumerable options); + + /// + /// Gets the request builder for the reference of the taskProcessingResult. + /// + /// The . + ITaskProcessingResultReferenceRequestBuilder Reference { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReferenceRequest.cs new file mode 100644 index 00000000000..820f60912d5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReferenceRequest.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Net.Http; + using System.Threading; + + /// + /// The interface ITaskReferenceRequest. + /// + public partial interface ITaskReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Deletes the specified Task reference. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Task reference and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Puts the specified Task reference. + /// + /// The Task reference reference to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default); + + /// + /// Puts the specified Task reference and returns a object + /// + /// The Task reference reference to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReferenceRequestBuilder.cs new file mode 100644 index 00000000000..c91f2d9aa2d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReferenceRequestBuilder.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskReferenceRequestBuilder. + /// + public partial interface ITaskReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskReferenceRequest Request(IEnumerable options); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportRequest.cs new file mode 100644 index 00000000000..84c277c08ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskReportRequest. + /// + public partial interface ITaskReportRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified TaskReport using POST. + /// + /// The TaskReport to create. + /// The for the request. + /// The created TaskReport. + System.Threading.Tasks.Task CreateAsync(TaskReport taskReportToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskReport using POST and returns a object. + /// + /// The TaskReport to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskReport taskReportToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskReport. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskReport and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskReport. + /// + /// The for the request. + /// The TaskReport. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskReport and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskReport using PATCH. + /// + /// The TaskReport to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskReport. + System.Threading.Tasks.Task UpdateAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskReport using PATCH and returns a object. + /// + /// The TaskReport to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskReport using PUT. + /// + /// The TaskReport object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskReport using PUT and returns a object. + /// + /// The TaskReport object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskReportRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskReportRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskReportRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskReportRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportRequestBuilder.cs new file mode 100644 index 00000000000..8901ad5f721 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportRequestBuilder.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ITaskReportRequestBuilder. + /// + public partial interface ITaskReportRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ITaskReportRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ITaskReportRequest Request(IEnumerable options); + + /// + /// Gets the request builder for @Task. + /// + /// The . + ITaskWithReferenceRequestBuilder @Task { get; } + + /// + /// Gets the request builder for TaskDefinition. + /// + /// The . + ITaskDefinitionWithReferenceRequestBuilder TaskDefinition { get; } + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + ITaskReportTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults { get; } + + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportSummaryRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportSummaryRequest.cs new file mode 100644 index 00000000000..ab91670f72d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportSummaryRequest.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface ITaskReportSummaryRequest. + /// + public partial interface ITaskReportSummaryRequest : Microsoft.Graph.IBaseRequest + { + + /// + /// Issues the GET request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task GetAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the GET request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskReportSummaryRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskReportSummaryRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportSummaryRequestBuilder.cs new file mode 100644 index 00000000000..86c2c4aa5fa --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportSummaryRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ITaskReportSummaryRequestBuilder. + /// + public partial interface ITaskReportSummaryRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskReportSummaryRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..815a57c6e3e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface ITaskReportTaskProcessingResultsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface ITaskReportTaskProcessingResultsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + ITaskReportTaskProcessingResultsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..68cb974ceea --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskReportTaskProcessingResultsCollectionRequest. + /// + public partial interface ITaskReportTaskProcessingResultsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + ITaskReportTaskProcessingResultsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..1996302fbbf --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskReportTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskReportTaskProcessingResultsCollectionRequestBuilder. + /// + public partial interface ITaskReportTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskReportTaskProcessingResultsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskReportTaskProcessingResultsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified TaskProcessingResult. + /// + /// The ID for the TaskProcessingResult. + /// The . + ITaskProcessingResultRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskRequest.cs new file mode 100644 index 00000000000..2def2bb133a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskRequest. + /// + public partial interface ITaskRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified TaskObject using POST. + /// + /// The TaskObject to create. + /// The for the request. + /// The created TaskObject. + System.Threading.Tasks.Task CreateAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskObject using POST and returns a object. + /// + /// The TaskObject to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskObject. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskObject and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskObject. + /// + /// The for the request. + /// The TaskObject. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskObject and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskObject using PATCH. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskObject. + System.Threading.Tasks.Task UpdateAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskObject using PATCH and returns a object. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskObject using PUT. + /// + /// The TaskObject object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskObject using PUT and returns a object. + /// + /// The TaskObject object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskRequestBuilder.cs new file mode 100644 index 00000000000..df7426d309b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface ITaskRequestBuilder. + /// + public partial interface ITaskRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new ITaskRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new ITaskRequest Request(IEnumerable options); + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + ITaskTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..ca20e84a46e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface ITaskTaskProcessingResultsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface ITaskTaskProcessingResultsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + ITaskTaskProcessingResultsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..20544ac53c8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskTaskProcessingResultsCollectionRequest. + /// + public partial interface ITaskTaskProcessingResultsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + ITaskTaskProcessingResultsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..be6c150d9fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskTaskProcessingResultsCollectionRequestBuilder. + /// + public partial interface ITaskTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskTaskProcessingResultsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskTaskProcessingResultsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified TaskProcessingResult. + /// + /// The ID for the TaskProcessingResult. + /// The . + ITaskProcessingResultRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskWithReferenceRequest.cs new file mode 100644 index 00000000000..de206b3bed4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskWithReferenceRequest.cs @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface ITaskWithReferenceRequest. + /// + public partial interface ITaskWithReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the specified TaskObject. + /// + /// The for the request. + /// The TaskObject. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified TaskObject and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskObject using POST. + /// + /// The TaskObject to create. + /// The for the request. + /// The created TaskObject. + System.Threading.Tasks.Task CreateAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified TaskObject using POST and returns a object. + /// + /// The TaskObject to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskObject using PATCH. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskObject. + System.Threading.Tasks.Task UpdateAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified TaskObject using PATCH and returns a object. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskObject. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified TaskObject and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + ITaskWithReferenceRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + ITaskWithReferenceRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + ITaskWithReferenceRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + ITaskWithReferenceRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..ae9876f0420 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/ITaskWithReferenceRequestBuilder.cs @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface ITaskWithReferenceRequestBuilder. + /// + public partial interface ITaskWithReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + ITaskWithReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + ITaskWithReferenceRequest Request(IEnumerable options); + + /// + /// Gets the request builder for the reference of the task. + /// + /// The . + ITaskReferenceRequestBuilder Reference { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultRequest.cs new file mode 100644 index 00000000000..c6c0733b248 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IUserProcessingResultRequest. + /// + public partial interface IUserProcessingResultRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified UserProcessingResult using POST. + /// + /// The UserProcessingResult to create. + /// The for the request. + /// The created UserProcessingResult. + System.Threading.Tasks.Task CreateAsync(UserProcessingResult userProcessingResultToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified UserProcessingResult using POST and returns a object. + /// + /// The UserProcessingResult to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(UserProcessingResult userProcessingResultToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified UserProcessingResult. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified UserProcessingResult and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified UserProcessingResult. + /// + /// The for the request. + /// The UserProcessingResult. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified UserProcessingResult and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified UserProcessingResult using PATCH. + /// + /// The UserProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated UserProcessingResult. + System.Threading.Tasks.Task UpdateAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified UserProcessingResult using PATCH and returns a object. + /// + /// The UserProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified UserProcessingResult using PUT. + /// + /// The UserProcessingResult object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified UserProcessingResult using PUT and returns a object. + /// + /// The UserProcessingResult object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IUserProcessingResultRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IUserProcessingResultRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IUserProcessingResultRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IUserProcessingResultRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultRequestBuilder.cs new file mode 100644 index 00000000000..5cc28c50ede --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultRequestBuilder.cs @@ -0,0 +1,49 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IUserProcessingResultRequestBuilder. + /// + public partial interface IUserProcessingResultRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new IUserProcessingResultRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new IUserProcessingResultRequest Request(IEnumerable options); + + /// + /// Gets the request builder for Subject. + /// + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder Subject { get; } + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults { get; } + + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultSummaryRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultSummaryRequest.cs new file mode 100644 index 00000000000..4e34d23a904 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultSummaryRequest.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IUserProcessingResultSummaryRequest. + /// + public partial interface IUserProcessingResultSummaryRequest : Microsoft.Graph.IBaseRequest + { + + /// + /// Issues the GET request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task GetAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the GET request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IUserProcessingResultSummaryRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IUserProcessingResultSummaryRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultSummaryRequestBuilder.cs new file mode 100644 index 00000000000..13fa6d97720 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultSummaryRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IUserProcessingResultSummaryRequestBuilder. + /// + public partial interface IUserProcessingResultSummaryRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IUserProcessingResultSummaryRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..6b0a40a4b23 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IUserProcessingResultTaskProcessingResultsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IUserProcessingResultTaskProcessingResultsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IUserProcessingResultTaskProcessingResultsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..8ee59367b8f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IUserProcessingResultTaskProcessingResultsCollectionRequest. + /// + public partial interface IUserProcessingResultTaskProcessingResultsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IUserProcessingResultTaskProcessingResultsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..a2a46505179 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder. + /// + public partial interface IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IUserProcessingResultTaskProcessingResultsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IUserProcessingResultTaskProcessingResultsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified TaskProcessingResult. + /// + /// The ID for the TaskProcessingResult. + /// The . + ITaskProcessingResultRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowActivateRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowActivateRequest.cs new file mode 100644 index 00000000000..b38ef1fb900 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowActivateRequest.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IWorkflowActivateRequest. + /// + public partial interface IWorkflowActivateRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the request body. + /// + WorkflowActivateRequestBody RequestBody { get; } + + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task PostResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowActivateRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowActivateRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowActivateRequestBuilder.cs new file mode 100644 index 00000000000..09cdcedf94e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowActivateRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowActivateRequestBuilder. + /// + public partial interface IWorkflowActivateRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowActivateRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseRequest.cs new file mode 100644 index 00000000000..63efe6dfcaa --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowBaseRequest. + /// + public partial interface IWorkflowBaseRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified WorkflowBase using POST. + /// + /// The WorkflowBase to create. + /// The for the request. + /// The created WorkflowBase. + System.Threading.Tasks.Task CreateAsync(WorkflowBase workflowBaseToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified WorkflowBase using POST and returns a object. + /// + /// The WorkflowBase to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(WorkflowBase workflowBaseToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified WorkflowBase. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified WorkflowBase and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified WorkflowBase. + /// + /// The for the request. + /// The WorkflowBase. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified WorkflowBase and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowBase using PATCH. + /// + /// The WorkflowBase to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated WorkflowBase. + System.Threading.Tasks.Task UpdateAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowBase using PATCH and returns a object. + /// + /// The WorkflowBase to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowBase using PUT. + /// + /// The WorkflowBase object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowBase using PUT and returns a object. + /// + /// The WorkflowBase object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowBaseRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowBaseRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowBaseRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowBaseRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseRequestBuilder.cs new file mode 100644 index 00000000000..592273fcd37 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseRequestBuilder.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowBaseRequestBuilder. + /// + public partial interface IWorkflowBaseRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowBaseRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowBaseRequest Request(IEnumerable options); + + /// + /// Gets the request builder for CreatedBy. + /// + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder CreatedBy { get; } + + /// + /// Gets the request builder for LastModifiedBy. + /// + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder LastModifiedBy { get; } + + /// + /// Gets the request builder for Tasks. + /// + /// The . + IWorkflowBaseTasksCollectionRequestBuilder Tasks { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionPage.cs new file mode 100644 index 00000000000..2966e4bb2ee --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowBaseTasksCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowBaseTasksCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowBaseTasksCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionRequest.cs new file mode 100644 index 00000000000..b161149cf12 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowBaseTasksCollectionRequest. + /// + public partial interface IWorkflowBaseTasksCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskObject to the collection via POST. + /// + /// The TaskObject to add. + /// The for the request. + /// The created TaskObject. + System.Threading.Tasks.Task AddAsync(TaskObject task, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskObject to the collection via POST and returns a object of the request. + /// + /// The TaskObject to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskObject task, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowBaseTasksCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionRequestBuilder.cs new file mode 100644 index 00000000000..6f428de983e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowBaseTasksCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowBaseTasksCollectionRequestBuilder. + /// + public partial interface IWorkflowBaseTasksCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowBaseTasksCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowBaseTasksCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified Task. + /// + /// The ID for the Task. + /// The . + ITaskRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowCreateNewVersionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowCreateNewVersionRequest.cs new file mode 100644 index 00000000000..c8b6ab41b52 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowCreateNewVersionRequest.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IWorkflowCreateNewVersionRequest. + /// + public partial interface IWorkflowCreateNewVersionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the request body. + /// + WorkflowCreateNewVersionRequestBody RequestBody { get; } + + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task> PostResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowCreateNewVersionRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowCreateNewVersionRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowCreateNewVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowCreateNewVersionRequestBuilder.cs new file mode 100644 index 00000000000..3dfb7e99816 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowCreateNewVersionRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowCreateNewVersionRequestBuilder. + /// + public partial interface IWorkflowCreateNewVersionRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowCreateNewVersionRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionReferencesRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionReferencesRequest.cs new file mode 100644 index 00000000000..b0f47db6381 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionReferencesRequest.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionReferencesRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IWorkflowExecutionScopeCollectionReferencesRequest. + /// + public partial interface IWorkflowExecutionScopeCollectionReferencesRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified Microsoft.Graph.User to the collection via POST. + /// + /// The Microsoft.Graph.User to add. + /// The for the request. + System.Threading.Tasks.Task AddAsync(Microsoft.Graph.User user, CancellationToken cancellationToken = default); + + /// + /// Adds the specified Microsoft.Graph.User to the collection via POST and returns a object of the request. + /// + /// The Microsoft.Graph.User to add. + /// The for the request. + System.Threading.Tasks.Task AddResponseAsync(Microsoft.Graph.User user, CancellationToken cancellationToken = default); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionReferencesRequestBuilder.cs new file mode 100644 index 00000000000..4551ffe8795 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionReferencesRequestBuilder.cs @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionReferencesRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowExecutionScopeCollectionReferencesRequestBuilder. + /// + public partial interface IWorkflowExecutionScopeCollectionReferencesRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowExecutionScopeCollectionReferencesRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowExecutionScopeCollectionReferencesRequest Request(IEnumerable options); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesPage.cs new file mode 100644 index 00000000000..7edf2b6dc3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionWithReferencesPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowExecutionScopeCollectionWithReferencesPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowExecutionScopeCollectionWithReferencesPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowExecutionScopeCollectionWithReferencesRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesRequest.cs new file mode 100644 index 00000000000..b602de0ceec --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesRequest.cs @@ -0,0 +1,94 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionWithReferencesRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowExecutionScopeCollectionWithReferencesRequest. + /// + public partial interface IWorkflowExecutionScopeCollectionWithReferencesRequest : Microsoft.Graph.IBaseRequest + { + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowExecutionScopeCollectionWithReferencesRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder.cs new file mode 100644 index 00000000000..cd653f36e4f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder.cs @@ -0,0 +1,46 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionWithReferencesRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder. + /// + public partial interface IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowExecutionScopeCollectionWithReferencesRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowExecutionScopeCollectionWithReferencesRequest Request(IEnumerable options); + + /// + /// Gets an for the specified Microsoft.Graph.User. + /// + /// The ID for the Microsoft.Graph.User. + /// The . + Microsoft.Graph.IUserWithReferenceRequestBuilder this[string id] { get; } + + /// + /// Gets an for the references in the collection. + /// + /// The . + IWorkflowExecutionScopeCollectionReferencesRequestBuilder References { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowReferenceRequest.cs new file mode 100644 index 00000000000..b1d3e876987 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowReferenceRequest.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IWorkflowReferenceRequest. + /// + public partial interface IWorkflowReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Deletes the specified Workflow reference. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Workflow reference and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Puts the specified Workflow reference. + /// + /// The Workflow reference reference to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default); + + /// + /// Puts the specified Workflow reference and returns a object + /// + /// The Workflow reference reference to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowReferenceRequestBuilder.cs new file mode 100644 index 00000000000..ed20246ceaf --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowReferenceRequestBuilder.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowReferenceRequestBuilder. + /// + public partial interface IWorkflowReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowReferenceRequest Request(IEnumerable options); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRequest.cs new file mode 100644 index 00000000000..7335659a4a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowRequest. + /// + public partial interface IWorkflowRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified Workflow using POST. + /// + /// The Workflow to create. + /// The for the request. + /// The created Workflow. + System.Threading.Tasks.Task CreateAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified Workflow using POST and returns a object. + /// + /// The Workflow to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Workflow. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Workflow and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified Workflow. + /// + /// The for the request. + /// The Workflow. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified Workflow and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified Workflow using PATCH. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated Workflow. + System.Threading.Tasks.Task UpdateAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Workflow using PATCH and returns a object. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Workflow using PUT. + /// + /// The Workflow object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Workflow using PUT and returns a object. + /// + /// The Workflow object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRequestBuilder.cs new file mode 100644 index 00000000000..8665546886a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRequestBuilder.cs @@ -0,0 +1,85 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowRequestBuilder. + /// + public partial interface IWorkflowRequestBuilder : IWorkflowBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new IWorkflowRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new IWorkflowRequest Request(IEnumerable options); + + /// + /// Gets the request builder for ExecutionScope. + /// + /// The . + IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder ExecutionScope { get; } + + /// + /// Gets the request builder for Runs. + /// + /// The . + IWorkflowRunsCollectionRequestBuilder Runs { get; } + + /// + /// Gets the request builder for TaskReports. + /// + /// The . + IWorkflowTaskReportsCollectionRequestBuilder TaskReports { get; } + + /// + /// Gets the request builder for UserProcessingResults. + /// + /// The . + IWorkflowUserProcessingResultsCollectionRequestBuilder UserProcessingResults { get; } + + /// + /// Gets the request builder for Versions. + /// + /// The . + IWorkflowVersionsCollectionRequestBuilder Versions { get; } + + /// + /// Gets the request builder for WorkflowActivate. + /// + /// The . + IWorkflowActivateRequestBuilder Activate( + IEnumerable subjects = null); + + /// + /// Gets the request builder for WorkflowCreateNewVersion. + /// + /// The . + IWorkflowCreateNewVersionRequestBuilder CreateNewVersion( + Workflow workflow = null); + + /// + /// Gets the request builder for WorkflowRestore. + /// + /// The . + IWorkflowRestoreRequestBuilder Restore(); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRestoreRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRestoreRequest.cs new file mode 100644 index 00000000000..d75e6e8603e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRestoreRequest.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The interface IWorkflowRestoreRequest. + /// + public partial interface IWorkflowRestoreRequest : Microsoft.Graph.IBaseRequest + { + + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default); + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + System.Threading.Tasks.Task> PostResponseAsync(CancellationToken cancellationToken = default); + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowRestoreRequest Expand(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowRestoreRequest Select(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRestoreRequestBuilder.cs new file mode 100644 index 00000000000..f59adca34bc --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRestoreRequestBuilder.cs @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IMethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowRestoreRequestBuilder. + /// + public partial interface IWorkflowRestoreRequestBuilder : IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowRestoreRequest Request(IEnumerable options = null); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionPage.cs new file mode 100644 index 00000000000..53a04a41881 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowRunsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowRunsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowRunsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionRequest.cs new file mode 100644 index 00000000000..5d893663f1c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowRunsCollectionRequest. + /// + public partial interface IWorkflowRunsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified Run to the collection via POST. + /// + /// The Run to add. + /// The for the request. + /// The created Run. + System.Threading.Tasks.Task AddAsync(Run run, CancellationToken cancellationToken = default); + + /// + /// Adds the specified Run to the collection via POST and returns a object of the request. + /// + /// The Run to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(Run run, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowRunsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowRunsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowRunsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowRunsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowRunsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowRunsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowRunsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowRunsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..d60356550e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowRunsCollectionRequestBuilder.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowRunsCollectionRequestBuilder. + /// + public partial interface IWorkflowRunsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowRunsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowRunsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified Run. + /// + /// The ID for the Run. + /// The . + IRunRequestBuilder this[string id] { get; } + + /// + /// Gets the request builder for RunSummary. + /// + /// The . + IRunSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionPage.cs new file mode 100644 index 00000000000..c477b799c04 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowTaskReportsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowTaskReportsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowTaskReportsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionRequest.cs new file mode 100644 index 00000000000..40888dd4cf2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowTaskReportsCollectionRequest. + /// + public partial interface IWorkflowTaskReportsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskReport to the collection via POST. + /// + /// The TaskReport to add. + /// The for the request. + /// The created TaskReport. + System.Threading.Tasks.Task AddAsync(TaskReport taskReport, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskReport to the collection via POST and returns a object of the request. + /// + /// The TaskReport to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskReport taskReport, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowTaskReportsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..2d2c4ec150c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTaskReportsCollectionRequestBuilder.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowTaskReportsCollectionRequestBuilder. + /// + public partial interface IWorkflowTaskReportsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowTaskReportsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowTaskReportsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified TaskReport. + /// + /// The ID for the TaskReport. + /// The . + ITaskReportRequestBuilder this[string id] { get; } + + /// + /// Gets the request builder for TaskReportSummary. + /// + /// The . + ITaskReportSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateRequest.cs new file mode 100644 index 00000000000..5d98305db01 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowTemplateRequest. + /// + public partial interface IWorkflowTemplateRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified WorkflowTemplate using POST. + /// + /// The WorkflowTemplate to create. + /// The for the request. + /// The created WorkflowTemplate. + System.Threading.Tasks.Task CreateAsync(WorkflowTemplate workflowTemplateToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified WorkflowTemplate using POST and returns a object. + /// + /// The WorkflowTemplate to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(WorkflowTemplate workflowTemplateToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified WorkflowTemplate. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified WorkflowTemplate and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified WorkflowTemplate. + /// + /// The for the request. + /// The WorkflowTemplate. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified WorkflowTemplate and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowTemplate using PATCH. + /// + /// The WorkflowTemplate to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated WorkflowTemplate. + System.Threading.Tasks.Task UpdateAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowTemplate using PATCH and returns a object. + /// + /// The WorkflowTemplate to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowTemplate using PUT. + /// + /// The WorkflowTemplate object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowTemplate using PUT and returns a object. + /// + /// The WorkflowTemplate object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowTemplateRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowTemplateRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowTemplateRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowTemplateRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateRequestBuilder.cs new file mode 100644 index 00000000000..3fd744cce27 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowTemplateRequestBuilder. + /// + public partial interface IWorkflowTemplateRequestBuilder : Microsoft.Graph.IEntityRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new IWorkflowTemplateRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new IWorkflowTemplateRequest Request(IEnumerable options); + + /// + /// Gets the request builder for Tasks. + /// + /// The . + IWorkflowTemplateTasksCollectionRequestBuilder Tasks { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionPage.cs new file mode 100644 index 00000000000..567418f48c0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowTemplateTasksCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowTemplateTasksCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowTemplateTasksCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionRequest.cs new file mode 100644 index 00000000000..a26e9c3d486 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowTemplateTasksCollectionRequest. + /// + public partial interface IWorkflowTemplateTasksCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified TaskObject to the collection via POST. + /// + /// The TaskObject to add. + /// The for the request. + /// The created TaskObject. + System.Threading.Tasks.Task AddAsync(TaskObject task, CancellationToken cancellationToken = default); + + /// + /// Adds the specified TaskObject to the collection via POST and returns a object of the request. + /// + /// The TaskObject to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(TaskObject task, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowTemplateTasksCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionRequestBuilder.cs new file mode 100644 index 00000000000..408941e02a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowTemplateTasksCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowTemplateTasksCollectionRequestBuilder. + /// + public partial interface IWorkflowTemplateTasksCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowTemplateTasksCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowTemplateTasksCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified Task. + /// + /// The ID for the Task. + /// The . + ITaskRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..7c593519cb7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowUserProcessingResultsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowUserProcessingResultsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowUserProcessingResultsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..22b701775c9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowUserProcessingResultsCollectionRequest. + /// + public partial interface IWorkflowUserProcessingResultsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified UserProcessingResult to the collection via POST. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The created UserProcessingResult. + System.Threading.Tasks.Task AddAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default); + + /// + /// Adds the specified UserProcessingResult to the collection via POST and returns a object of the request. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowUserProcessingResultsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..6915d44a2c9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowUserProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowUserProcessingResultsCollectionRequestBuilder. + /// + public partial interface IWorkflowUserProcessingResultsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowUserProcessingResultsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowUserProcessingResultsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified UserProcessingResult. + /// + /// The ID for the UserProcessingResult. + /// The . + IUserProcessingResultRequestBuilder this[string id] { get; } + + /// + /// Gets the request builder for UserProcessingResultSummary. + /// + /// The . + IUserProcessingResultSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionRequest.cs new file mode 100644 index 00000000000..a60705c9129 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionRequest.cs @@ -0,0 +1,130 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowVersionRequest. + /// + public partial interface IWorkflowVersionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Creates the specified WorkflowVersion using POST. + /// + /// The WorkflowVersion to create. + /// The for the request. + /// The created WorkflowVersion. + System.Threading.Tasks.Task CreateAsync(WorkflowVersion workflowVersionToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified WorkflowVersion using POST and returns a object. + /// + /// The WorkflowVersion to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(WorkflowVersion workflowVersionToCreate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified WorkflowVersion. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified WorkflowVersion and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified WorkflowVersion. + /// + /// The for the request. + /// The WorkflowVersion. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified WorkflowVersion and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowVersion using PATCH. + /// + /// The WorkflowVersion to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated WorkflowVersion. + System.Threading.Tasks.Task UpdateAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowVersion using PATCH and returns a object. + /// + /// The WorkflowVersion to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowVersion using PUT. + /// + /// The WorkflowVersion object to update. + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task PutAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified WorkflowVersion using PUT and returns a object. + /// + /// The WorkflowVersion object to update. + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task> PutResponseAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowVersionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowVersionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowVersionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowVersionRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionRequestBuilder.cs new file mode 100644 index 00000000000..bb6c2727388 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionRequestBuilder.cs @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The interface IWorkflowVersionRequestBuilder. + /// + public partial interface IWorkflowVersionRequestBuilder : IWorkflowBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + new IWorkflowVersionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + new IWorkflowVersionRequest Request(IEnumerable options); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionPage.cs new file mode 100644 index 00000000000..5828ea846da --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionPage.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Text.Json.Serialization; + + /// + /// The interface IWorkflowVersionsCollectionPage. + /// + [InterfaceConverter(typeof(Microsoft.Graph.InterfaceConverter))] + public interface IWorkflowVersionsCollectionPage : Microsoft.Graph.ICollectionPage + { + /// + /// Gets the next page instance. + /// + IWorkflowVersionsCollectionRequest NextPageRequest { get; } + + /// + /// Initializes the NextPageRequest property. + /// + void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionRequest.cs new file mode 100644 index 00000000000..7bddd1cbb6b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionRequest.cs @@ -0,0 +1,110 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowVersionsCollectionRequest. + /// + public partial interface IWorkflowVersionsCollectionRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Adds the specified WorkflowVersion to the collection via POST. + /// + /// The WorkflowVersion to add. + /// The for the request. + /// The created WorkflowVersion. + System.Threading.Tasks.Task AddAsync(WorkflowVersion workflowVersion, CancellationToken cancellationToken = default); + + /// + /// Adds the specified WorkflowVersion to the collection via POST and returns a object of the request. + /// + /// The WorkflowVersion to add. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> AddResponseAsync(WorkflowVersion workflowVersion, CancellationToken cancellationToken = default); + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Select(Expression> selectExpression); + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Top(int value); + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Filter(string value); + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + IWorkflowVersionsCollectionRequest Skip(int value); + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + IWorkflowVersionsCollectionRequest OrderBy(string value); + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..c09f0f44bb3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowVersionsCollectionRequestBuilder.cs @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowVersionsCollectionRequestBuilder. + /// + public partial interface IWorkflowVersionsCollectionRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowVersionsCollectionRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowVersionsCollectionRequest Request(IEnumerable options); + + /// + /// Gets an for the specified WorkflowVersion. + /// + /// The ID for the WorkflowVersion. + /// The . + IWorkflowVersionRequestBuilder this[string id] { get; } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowWithReferenceRequest.cs new file mode 100644 index 00000000000..af818d3e9fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowWithReferenceRequest.cs @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The interface IWorkflowWithReferenceRequest. + /// + public partial interface IWorkflowWithReferenceRequest : Microsoft.Graph.IBaseRequest + { + /// + /// Gets the specified Workflow. + /// + /// The for the request. + /// The Workflow. + System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Gets the specified Workflow and returns a object. + /// + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Creates the specified Workflow using POST. + /// + /// The Workflow to create. + /// The for the request. + /// The created Workflow. + System.Threading.Tasks.Task CreateAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default); + + /// + /// Creates the specified Workflow using POST and returns a object. + /// + /// The Workflow to create. + /// The for the request. + /// The object of the request. + System.Threading.Tasks.Task> CreateResponseAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Workflow using PATCH. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated Workflow. + System.Threading.Tasks.Task UpdateAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default); + + /// + /// Updates the specified Workflow using PATCH and returns a object. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + System.Threading.Tasks.Task> UpdateResponseAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Workflow. + /// + /// The for the request. + /// The task to await. + System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default); + + /// + /// Deletes the specified Workflow and returns a object. + /// + /// The for the request. + /// The task of to await. + System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default); + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + IWorkflowWithReferenceRequest Expand(string value); + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + IWorkflowWithReferenceRequest Expand(Expression> expandExpression); + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + IWorkflowWithReferenceRequest Select(string value); + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + IWorkflowWithReferenceRequest Select(Expression> selectExpression); + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..fa0a1a41772 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/IWorkflowWithReferenceRequestBuilder.cs @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: IEntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The interface IWorkflowWithReferenceRequestBuilder. + /// + public partial interface IWorkflowWithReferenceRequestBuilder : Microsoft.Graph.IBaseRequestBuilder + { + /// + /// Builds the request. + /// + /// The built request. + IWorkflowWithReferenceRequest Request(); + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + IWorkflowWithReferenceRequest Request(IEnumerable options); + + /// + /// Gets the request builder for the reference of the workflow. + /// + /// The . + IWorkflowReferenceRequestBuilder Reference { get; } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleManagementSettingsRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleManagementSettingsRequest.cs new file mode 100644 index 00000000000..5d053440d86 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleManagementSettingsRequest.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type LifecycleManagementSettingsRequest. + /// + public partial class LifecycleManagementSettingsRequest : Microsoft.Graph.BaseRequest, ILifecycleManagementSettingsRequest + { + /// + /// Constructs a new LifecycleManagementSettingsRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public LifecycleManagementSettingsRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified LifecycleManagementSettings using POST. + /// + /// The LifecycleManagementSettings to create. + /// The for the request. + /// The created LifecycleManagementSettings. + public async System.Threading.Tasks.Task CreateAsync(LifecycleManagementSettings lifecycleManagementSettingsToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(lifecycleManagementSettingsToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified LifecycleManagementSettings using POST and returns a object. + /// + /// The LifecycleManagementSettings to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(LifecycleManagementSettings lifecycleManagementSettingsToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(lifecycleManagementSettingsToCreate, cancellationToken); + } + + /// + /// Deletes the specified LifecycleManagementSettings. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified LifecycleManagementSettings and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified LifecycleManagementSettings. + /// + /// The for the request. + /// The LifecycleManagementSettings. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified LifecycleManagementSettings and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified LifecycleManagementSettings using PATCH. + /// + /// The LifecycleManagementSettings to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated LifecycleManagementSettings. + public async System.Threading.Tasks.Task UpdateAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(lifecycleManagementSettingsToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified LifecycleManagementSettings using PATCH and returns a object. + /// + /// The LifecycleManagementSettings to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(lifecycleManagementSettingsToUpdate, cancellationToken); + } + + /// + /// Updates the specified LifecycleManagementSettings using PUT. + /// + /// The LifecycleManagementSettings object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(lifecycleManagementSettingsToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified LifecycleManagementSettings using PUT and returns a object. + /// + /// The LifecycleManagementSettings object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(LifecycleManagementSettings lifecycleManagementSettingsToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(lifecycleManagementSettingsToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ILifecycleManagementSettingsRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ILifecycleManagementSettingsRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ILifecycleManagementSettingsRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ILifecycleManagementSettingsRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(LifecycleManagementSettings lifecycleManagementSettingsToInitialize) + { + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleManagementSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleManagementSettingsRequestBuilder.cs new file mode 100644 index 00000000000..e1d816747ca --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleManagementSettingsRequestBuilder.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type LifecycleManagementSettingsRequestBuilder. + /// + public partial class LifecycleManagementSettingsRequestBuilder : Microsoft.Graph.EntityRequestBuilder, ILifecycleManagementSettingsRequestBuilder + { + + /// + /// Constructs a new LifecycleManagementSettingsRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public LifecycleManagementSettingsRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ILifecycleManagementSettingsRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ILifecycleManagementSettingsRequest Request(IEnumerable options) + { + return new LifecycleManagementSettingsRequest(this.RequestUrl, this.Client, options); + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage.cs new file mode 100644 index 00000000000..7756d12590d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type LifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage. + /// + public partial class LifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage : Microsoft.Graph.CollectionPage, ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage + { + /// + /// Gets the next page instance. + /// + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest.cs new file mode 100644 index 00000000000..0743da886b3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest. + /// + public partial class LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest : Microsoft.Graph.BaseRequest, ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest + { + /// + /// Constructs a new LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified CustomTaskExtension to the collection via POST. + /// + /// The CustomTaskExtension to add. + /// The for the request. + /// The created CustomTaskExtension. + public System.Threading.Tasks.Task AddAsync(CustomTaskExtension customTaskExtension, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(customTaskExtension, cancellationToken); + } + + /// + /// Adds the specified CustomTaskExtension to the collection via POST and returns a object of the request. + /// + /// The CustomTaskExtension to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(CustomTaskExtension customTaskExtension, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(customTaskExtension, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..5e82b20ebf5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder. + /// + public partial class LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder + { + /// + /// Constructs a new LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest Request(IEnumerable options) + { + return new LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified LifecycleWorkflowsContainerCustomTaskExtension. + /// + /// The ID for the LifecycleWorkflowsContainerCustomTaskExtension. + /// The . + public ICustomTaskExtensionRequestBuilder this[string id] + { + get + { + return new CustomTaskExtensionRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionResponse.cs new file mode 100644 index 00000000000..1e792e08b4b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerCustomTaskExtensionsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type LifecycleWorkflowsContainerCustomTaskExtensionsCollectionResponse. + /// + public class LifecycleWorkflowsContainerCustomTaskExtensionsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequest.cs new file mode 100644 index 00000000000..7cda82e02af --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequest.cs @@ -0,0 +1,279 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type LifecycleWorkflowsContainerRequest. + /// + public partial class LifecycleWorkflowsContainerRequest : Microsoft.Graph.BaseRequest, ILifecycleWorkflowsContainerRequest + { + /// + /// Constructs a new LifecycleWorkflowsContainerRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public LifecycleWorkflowsContainerRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified LifecycleWorkflowsContainer using POST. + /// + /// The LifecycleWorkflowsContainer to create. + /// The for the request. + /// The created LifecycleWorkflowsContainer. + public async System.Threading.Tasks.Task CreateAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(lifecycleWorkflowsContainerToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified LifecycleWorkflowsContainer using POST and returns a object. + /// + /// The LifecycleWorkflowsContainer to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(lifecycleWorkflowsContainerToCreate, cancellationToken); + } + + /// + /// Deletes the specified LifecycleWorkflowsContainer. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified LifecycleWorkflowsContainer and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified LifecycleWorkflowsContainer. + /// + /// The for the request. + /// The LifecycleWorkflowsContainer. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified LifecycleWorkflowsContainer and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified LifecycleWorkflowsContainer using PATCH. + /// + /// The LifecycleWorkflowsContainer to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated LifecycleWorkflowsContainer. + public async System.Threading.Tasks.Task UpdateAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(lifecycleWorkflowsContainerToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified LifecycleWorkflowsContainer using PATCH and returns a object. + /// + /// The LifecycleWorkflowsContainer to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(lifecycleWorkflowsContainerToUpdate, cancellationToken); + } + + /// + /// Updates the specified LifecycleWorkflowsContainer using PUT. + /// + /// The LifecycleWorkflowsContainer object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(lifecycleWorkflowsContainerToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified LifecycleWorkflowsContainer using PUT and returns a object. + /// + /// The LifecycleWorkflowsContainer object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(lifecycleWorkflowsContainerToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ILifecycleWorkflowsContainerRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ILifecycleWorkflowsContainerRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(LifecycleWorkflowsContainer lifecycleWorkflowsContainerToInitialize) + { + + if (lifecycleWorkflowsContainerToInitialize != null) + { + if (lifecycleWorkflowsContainerToInitialize.CustomTaskExtensions != null && lifecycleWorkflowsContainerToInitialize.CustomTaskExtensions.CurrentPage != null) + { + lifecycleWorkflowsContainerToInitialize.CustomTaskExtensions.InitializeNextPageRequest(this.Client, lifecycleWorkflowsContainerToInitialize.CustomTaskExtensionsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + lifecycleWorkflowsContainerToInitialize.CustomTaskExtensions.AdditionalData = lifecycleWorkflowsContainerToInitialize.AdditionalData; + } + if (lifecycleWorkflowsContainerToInitialize.TaskDefinitions != null && lifecycleWorkflowsContainerToInitialize.TaskDefinitions.CurrentPage != null) + { + lifecycleWorkflowsContainerToInitialize.TaskDefinitions.InitializeNextPageRequest(this.Client, lifecycleWorkflowsContainerToInitialize.TaskDefinitionsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + lifecycleWorkflowsContainerToInitialize.TaskDefinitions.AdditionalData = lifecycleWorkflowsContainerToInitialize.AdditionalData; + } + if (lifecycleWorkflowsContainerToInitialize.Workflows != null && lifecycleWorkflowsContainerToInitialize.Workflows.CurrentPage != null) + { + lifecycleWorkflowsContainerToInitialize.Workflows.InitializeNextPageRequest(this.Client, lifecycleWorkflowsContainerToInitialize.WorkflowsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + lifecycleWorkflowsContainerToInitialize.Workflows.AdditionalData = lifecycleWorkflowsContainerToInitialize.AdditionalData; + } + if (lifecycleWorkflowsContainerToInitialize.WorkflowTemplates != null && lifecycleWorkflowsContainerToInitialize.WorkflowTemplates.CurrentPage != null) + { + lifecycleWorkflowsContainerToInitialize.WorkflowTemplates.InitializeNextPageRequest(this.Client, lifecycleWorkflowsContainerToInitialize.WorkflowTemplatesNextLink); + // Copy the additional data collection to the page itself so that information is not lost + lifecycleWorkflowsContainerToInitialize.WorkflowTemplates.AdditionalData = lifecycleWorkflowsContainerToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequestBuilder.cs new file mode 100644 index 00000000000..62b2970f48a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequestBuilder.cs @@ -0,0 +1,126 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type LifecycleWorkflowsContainerRequestBuilder. + /// + public partial class LifecycleWorkflowsContainerRequestBuilder : Microsoft.Graph.EntityRequestBuilder, ILifecycleWorkflowsContainerRequestBuilder + { + + /// + /// Constructs a new LifecycleWorkflowsContainerRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public LifecycleWorkflowsContainerRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ILifecycleWorkflowsContainerRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ILifecycleWorkflowsContainerRequest Request(IEnumerable options) + { + return new LifecycleWorkflowsContainerRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for CustomTaskExtensions. + /// + /// The . + public ILifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder CustomTaskExtensions + { + get + { + return new LifecycleWorkflowsContainerCustomTaskExtensionsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("customTaskExtensions"), this.Client); + } + } + + /// + /// Gets the request builder for DeletedItems. + /// + /// The . + public Microsoft.Graph.IDeletedItemContainerRequestBuilder DeletedItems + { + get + { + return new Microsoft.Graph.DeletedItemContainerRequestBuilder(this.AppendSegmentToRequestUrl("deletedItems"), this.Client); + } + } + + /// + /// Gets the request builder for Settings. + /// + /// The . + public ILifecycleManagementSettingsRequestBuilder Settings + { + get + { + return new LifecycleManagementSettingsRequestBuilder(this.AppendSegmentToRequestUrl("settings"), this.Client); + } + } + + /// + /// Gets the request builder for TaskDefinitions. + /// + /// The . + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder TaskDefinitions + { + get + { + return new LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("taskDefinitions"), this.Client); + } + } + + /// + /// Gets the request builder for Workflows. + /// + /// The . + public ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder Workflows + { + get + { + return new LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("workflows"), this.Client); + } + } + + /// + /// Gets the request builder for WorkflowTemplates. + /// + /// The . + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder WorkflowTemplates + { + get + { + return new LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder(this.AppendSegmentToRequestUrl("workflowTemplates"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionPage.cs new file mode 100644 index 00000000000..16f274d6985 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type LifecycleWorkflowsContainerTaskDefinitionsCollectionPage. + /// + public partial class LifecycleWorkflowsContainerTaskDefinitionsCollectionPage : Microsoft.Graph.CollectionPage, ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage + { + /// + /// Gets the next page instance. + /// + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest.cs new file mode 100644 index 00000000000..01df84bc05f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest. + /// + public partial class LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest : Microsoft.Graph.BaseRequest, ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest + { + /// + /// Constructs a new LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskDefinition to the collection via POST. + /// + /// The TaskDefinition to add. + /// The for the request. + /// The created TaskDefinition. + public System.Threading.Tasks.Task AddAsync(TaskDefinition taskDefinition, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(taskDefinition, cancellationToken); + } + + /// + /// Adds the specified TaskDefinition to the collection via POST and returns a object of the request. + /// + /// The TaskDefinition to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskDefinition taskDefinition, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskDefinition, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..a4298c72126 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder. + /// + public partial class LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder + { + /// + /// Constructs a new LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public LifecycleWorkflowsContainerTaskDefinitionsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionRequest Request(IEnumerable options) + { + return new LifecycleWorkflowsContainerTaskDefinitionsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified LifecycleWorkflowsContainerTaskDefinition. + /// + /// The ID for the LifecycleWorkflowsContainerTaskDefinition. + /// The . + public ITaskDefinitionRequestBuilder this[string id] + { + get + { + return new TaskDefinitionRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionResponse.cs new file mode 100644 index 00000000000..5b275210a67 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerTaskDefinitionsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type LifecycleWorkflowsContainerTaskDefinitionsCollectionResponse. + /// + public class LifecycleWorkflowsContainerTaskDefinitionsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public ILifecycleWorkflowsContainerTaskDefinitionsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionPage.cs new file mode 100644 index 00000000000..cc53408585b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type LifecycleWorkflowsContainerWorkflowTemplatesCollectionPage. + /// + public partial class LifecycleWorkflowsContainerWorkflowTemplatesCollectionPage : Microsoft.Graph.CollectionPage, ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage + { + /// + /// Gets the next page instance. + /// + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest.cs new file mode 100644 index 00000000000..e64fbba8484 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest. + /// + public partial class LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest : Microsoft.Graph.BaseRequest, ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest + { + /// + /// Constructs a new LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified WorkflowTemplate to the collection via POST. + /// + /// The WorkflowTemplate to add. + /// The for the request. + /// The created WorkflowTemplate. + public System.Threading.Tasks.Task AddAsync(WorkflowTemplate workflowTemplate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(workflowTemplate, cancellationToken); + } + + /// + /// Adds the specified WorkflowTemplate to the collection via POST and returns a object of the request. + /// + /// The WorkflowTemplate to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(WorkflowTemplate workflowTemplate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowTemplate, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder.cs new file mode 100644 index 00000000000..7e0a794ed8c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder. + /// + public partial class LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder + { + /// + /// Constructs a new LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest Request(IEnumerable options) + { + return new LifecycleWorkflowsContainerWorkflowTemplatesCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified LifecycleWorkflowsContainerWorkflowTemplate. + /// + /// The ID for the LifecycleWorkflowsContainerWorkflowTemplate. + /// The . + public IWorkflowTemplateRequestBuilder this[string id] + { + get + { + return new WorkflowTemplateRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionResponse.cs new file mode 100644 index 00000000000..d86c245b7f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowTemplatesCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type LifecycleWorkflowsContainerWorkflowTemplatesCollectionResponse. + /// + public class LifecycleWorkflowsContainerWorkflowTemplatesCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public ILifecycleWorkflowsContainerWorkflowTemplatesCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionPage.cs new file mode 100644 index 00000000000..0cd6ce245eb --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type LifecycleWorkflowsContainerWorkflowsCollectionPage. + /// + public partial class LifecycleWorkflowsContainerWorkflowsCollectionPage : Microsoft.Graph.CollectionPage, ILifecycleWorkflowsContainerWorkflowsCollectionPage + { + /// + /// Gets the next page instance. + /// + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new LifecycleWorkflowsContainerWorkflowsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionRequest.cs new file mode 100644 index 00000000000..b58546ec5d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type LifecycleWorkflowsContainerWorkflowsCollectionRequest. + /// + public partial class LifecycleWorkflowsContainerWorkflowsCollectionRequest : Microsoft.Graph.BaseRequest, ILifecycleWorkflowsContainerWorkflowsCollectionRequest + { + /// + /// Constructs a new LifecycleWorkflowsContainerWorkflowsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public LifecycleWorkflowsContainerWorkflowsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified Workflow to the collection via POST. + /// + /// The Workflow to add. + /// The for the request. + /// The created Workflow. + public System.Threading.Tasks.Task AddAsync(Workflow workflow, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(workflow, cancellationToken); + } + + /// + /// Adds the specified Workflow to the collection via POST and returns a object of the request. + /// + /// The Workflow to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(Workflow workflow, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflow, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..a6fed18dd0b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder. + /// + public partial class LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ILifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder + { + /// + /// Constructs a new LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public LifecycleWorkflowsContainerWorkflowsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ILifecycleWorkflowsContainerWorkflowsCollectionRequest Request(IEnumerable options) + { + return new LifecycleWorkflowsContainerWorkflowsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified LifecycleWorkflowsContainerWorkflow. + /// + /// The ID for the LifecycleWorkflowsContainerWorkflow. + /// The . + public IWorkflowRequestBuilder this[string id] + { + get + { + return new WorkflowRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionResponse.cs new file mode 100644 index 00000000000..cde0c4a862f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/LifecycleWorkflowsContainerWorkflowsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type LifecycleWorkflowsContainerWorkflowsCollectionResponse. + /// + public class LifecycleWorkflowsContainerWorkflowsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public ILifecycleWorkflowsContainerWorkflowsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunRequest.cs new file mode 100644 index 00000000000..e551b3f3000 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunRequest.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type RunRequest. + /// + public partial class RunRequest : Microsoft.Graph.BaseRequest, IRunRequest + { + /// + /// Constructs a new RunRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public RunRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified Run using POST. + /// + /// The Run to create. + /// The for the request. + /// The created Run. + public async System.Threading.Tasks.Task CreateAsync(Run runToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(runToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified Run using POST and returns a object. + /// + /// The Run to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(Run runToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(runToCreate, cancellationToken); + } + + /// + /// Deletes the specified Run. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Run and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified Run. + /// + /// The for the request. + /// The Run. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified Run and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified Run using PATCH. + /// + /// The Run to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated Run. + public async System.Threading.Tasks.Task UpdateAsync(Run runToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(runToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified Run using PATCH and returns a object. + /// + /// The Run to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(Run runToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(runToUpdate, cancellationToken); + } + + /// + /// Updates the specified Run using PUT. + /// + /// The Run object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(Run runToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(runToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified Run using PUT and returns a object. + /// + /// The Run object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(Run runToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(runToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IRunRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IRunRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IRunRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IRunRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(Run runToInitialize) + { + + if (runToInitialize != null) + { + if (runToInitialize.TaskProcessingResults != null && runToInitialize.TaskProcessingResults.CurrentPage != null) + { + runToInitialize.TaskProcessingResults.InitializeNextPageRequest(this.Client, runToInitialize.TaskProcessingResultsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + runToInitialize.TaskProcessingResults.AdditionalData = runToInitialize.AdditionalData; + } + if (runToInitialize.UserProcessingResults != null && runToInitialize.UserProcessingResults.CurrentPage != null) + { + runToInitialize.UserProcessingResults.InitializeNextPageRequest(this.Client, runToInitialize.UserProcessingResultsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + runToInitialize.UserProcessingResults.AdditionalData = runToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunRequestBuilder.cs new file mode 100644 index 00000000000..51408c45434 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunRequestBuilder.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type RunRequestBuilder. + /// + public partial class RunRequestBuilder : Microsoft.Graph.EntityRequestBuilder, IRunRequestBuilder + { + + /// + /// Constructs a new RunRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public RunRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new IRunRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new IRunRequest Request(IEnumerable options) + { + return new RunRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + public IRunTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults + { + get + { + return new RunTaskProcessingResultsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("taskProcessingResults"), this.Client); + } + } + + /// + /// Gets the request builder for UserProcessingResults. + /// + /// The . + public IRunUserProcessingResultsCollectionRequestBuilder UserProcessingResults + { + get + { + return new RunUserProcessingResultsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("userProcessingResults"), this.Client); + } + } + + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunSummaryRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunSummaryRequest.cs new file mode 100644 index 00000000000..20091cf27f3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunSummaryRequest.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type RunSummaryRequest. + /// + public partial class RunSummaryRequest : Microsoft.Graph.BaseRequest, IRunSummaryRequest + { + /// + /// Constructs a new RunSummaryRequest. + /// + public RunSummaryRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Issues the GET request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task GetAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsync(null, cancellationToken); + } + + /// + /// Issues the GET request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IRunSummaryRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IRunSummaryRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunSummaryRequestBuilder.cs new file mode 100644 index 00000000000..9af82cc0d1c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunSummaryRequestBuilder.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type RunSummaryRequestBuilder. + /// + public partial class RunSummaryRequestBuilder : Microsoft.Graph.BaseFunctionMethodRequestBuilder, IRunSummaryRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + /// A startDateTime parameter for the OData method call. + /// A endDateTime parameter for the OData method call. + public RunSummaryRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client, + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + : base(requestUrl, client) + { + this.SetParameter("startDateTime", startDateTime, false); + this.SetParameter("endDateTime", endDateTime, false); + this.SetFunctionParameters(); + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override IRunSummaryRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new RunSummaryRequest(functionUrl, this.Client, options); + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..f2f82bc2ce8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type RunTaskProcessingResultsCollectionPage. + /// + public partial class RunTaskProcessingResultsCollectionPage : Microsoft.Graph.CollectionPage, IRunTaskProcessingResultsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IRunTaskProcessingResultsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new RunTaskProcessingResultsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..44f4f8ee492 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type RunTaskProcessingResultsCollectionRequest. + /// + public partial class RunTaskProcessingResultsCollectionRequest : Microsoft.Graph.BaseRequest, IRunTaskProcessingResultsCollectionRequest + { + /// + /// Constructs a new RunTaskProcessingResultsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public RunTaskProcessingResultsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + public System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(taskProcessingResult, cancellationToken); + } + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskProcessingResult, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IRunTaskProcessingResultsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..24f89731841 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type RunTaskProcessingResultsCollectionRequestBuilder. + /// + public partial class RunTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IRunTaskProcessingResultsCollectionRequestBuilder + { + /// + /// Constructs a new RunTaskProcessingResultsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public RunTaskProcessingResultsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IRunTaskProcessingResultsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IRunTaskProcessingResultsCollectionRequest Request(IEnumerable options) + { + return new RunTaskProcessingResultsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified RunTaskProcessingResult. + /// + /// The ID for the RunTaskProcessingResult. + /// The . + public ITaskProcessingResultRequestBuilder this[string id] + { + get + { + return new TaskProcessingResultRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionResponse.cs new file mode 100644 index 00000000000..b214df7a923 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunTaskProcessingResultsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type RunTaskProcessingResultsCollectionResponse. + /// + public class RunTaskProcessingResultsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IRunTaskProcessingResultsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..a5057a07f3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type RunUserProcessingResultsCollectionPage. + /// + public partial class RunUserProcessingResultsCollectionPage : Microsoft.Graph.CollectionPage, IRunUserProcessingResultsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IRunUserProcessingResultsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new RunUserProcessingResultsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..ecdbfe07f3d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type RunUserProcessingResultsCollectionRequest. + /// + public partial class RunUserProcessingResultsCollectionRequest : Microsoft.Graph.BaseRequest, IRunUserProcessingResultsCollectionRequest + { + /// + /// Constructs a new RunUserProcessingResultsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public RunUserProcessingResultsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified UserProcessingResult to the collection via POST. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The created UserProcessingResult. + public System.Threading.Tasks.Task AddAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(userProcessingResult, cancellationToken); + } + + /// + /// Adds the specified UserProcessingResult to the collection via POST and returns a object of the request. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(userProcessingResult, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IRunUserProcessingResultsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..818ecd7e2ff --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type RunUserProcessingResultsCollectionRequestBuilder. + /// + public partial class RunUserProcessingResultsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IRunUserProcessingResultsCollectionRequestBuilder + { + /// + /// Constructs a new RunUserProcessingResultsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public RunUserProcessingResultsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IRunUserProcessingResultsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IRunUserProcessingResultsCollectionRequest Request(IEnumerable options) + { + return new RunUserProcessingResultsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified RunUserProcessingResult. + /// + /// The ID for the RunUserProcessingResult. + /// The . + public IUserProcessingResultRequestBuilder this[string id] + { + get + { + return new UserProcessingResultRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + /// + /// Gets the request builder for UserProcessingResultSummary. + /// + /// The . + public IUserProcessingResultSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + { + return new UserProcessingResultSummaryRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.summary"), + this.Client, + startDateTime, + endDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionResponse.cs new file mode 100644 index 00000000000..a6b9465ffc5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/RunUserProcessingResultsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type RunUserProcessingResultsCollectionResponse. + /// + public class RunUserProcessingResultsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IRunUserProcessingResultsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionReferenceRequest.cs new file mode 100644 index 00000000000..5deac5fc0d8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionReferenceRequest.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + + /// + /// The type TaskDefinitionReferenceRequest. + /// + public partial class TaskDefinitionReferenceRequest : Microsoft.Graph.BaseRequest, ITaskDefinitionReferenceRequest + { + /// + /// Constructs a new TaskDefinitionReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskDefinitionReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Deletes the specified TaskDefinition reference. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskDefinition reference and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Puts the specified TaskDefinition reference. + /// + /// The TaskDefinition reference to update. + /// The for the request. + /// The task to await. + public System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsync(referenceRequestBody, cancellationToken); + } + + /// + /// Puts the specified TaskDefinition reference and returns object. + /// + /// The TaskDefinition reference to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsyncWithGraphResponse(referenceRequestBody, cancellationToken); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionReferenceRequestBuilder.cs new file mode 100644 index 00000000000..d8c158176d6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionReferenceRequestBuilder.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskDefinitionReferenceRequestBuilder. + /// + public partial class TaskDefinitionReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskDefinitionReferenceRequestBuilder + { + /// + /// Constructs a new TaskDefinitionReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskDefinitionReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskDefinitionReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskDefinitionReferenceRequest Request(IEnumerable options) + { + return new TaskDefinitionReferenceRequest(this.RequestUrl, this.Client, options); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionRequest.cs new file mode 100644 index 00000000000..b9fecf341a5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionRequest.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskDefinitionRequest. + /// + public partial class TaskDefinitionRequest : Microsoft.Graph.BaseRequest, ITaskDefinitionRequest + { + /// + /// Constructs a new TaskDefinitionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskDefinitionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified TaskDefinition using POST. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The created TaskDefinition. + public async System.Threading.Tasks.Task CreateAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskDefinitionToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified TaskDefinition using POST and returns a object. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskDefinitionToCreate, cancellationToken); + } + + /// + /// Deletes the specified TaskDefinition. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified TaskDefinition. + /// + /// The for the request. + /// The TaskDefinition. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified TaskDefinition using PATCH. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskDefinition. + public async System.Threading.Tasks.Task UpdateAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskDefinitionToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskDefinition using PATCH and returns a object. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskDefinitionToUpdate, cancellationToken); + } + + /// + /// Updates the specified TaskDefinition using PUT. + /// + /// The TaskDefinition object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(taskDefinitionToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskDefinition using PUT and returns a object. + /// + /// The TaskDefinition object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(taskDefinitionToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskDefinitionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskDefinitionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskDefinitionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskDefinitionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(TaskDefinition taskDefinitionToInitialize) + { + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionRequestBuilder.cs new file mode 100644 index 00000000000..2ba5ace18c8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionRequestBuilder.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type TaskDefinitionRequestBuilder. + /// + public partial class TaskDefinitionRequestBuilder : Microsoft.Graph.EntityRequestBuilder, ITaskDefinitionRequestBuilder + { + + /// + /// Constructs a new TaskDefinitionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskDefinitionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ITaskDefinitionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ITaskDefinitionRequest Request(IEnumerable options) + { + return new TaskDefinitionRequest(this.RequestUrl, this.Client, options); + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequest.cs new file mode 100644 index 00000000000..e60680f2970 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequest.cs @@ -0,0 +1,210 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskDefinitionWithReferenceRequest. + /// + public partial class TaskDefinitionWithReferenceRequest : Microsoft.Graph.BaseRequest, ITaskDefinitionWithReferenceRequest + { + /// + /// Constructs a new TaskDefinitionWithReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskDefinitionWithReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Gets the specified TaskDefinition. + /// + /// The for the request. + /// The TaskDefinition. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + return retrievedEntity; + } + + /// + /// Gets the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Creates the specified TaskDefinition using POST. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The created TaskDefinition. + public async System.Threading.Tasks.Task CreateAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskDefinitionToCreate, cancellationToken).ConfigureAwait(false); + return newEntity; + } + + /// + /// Creates the specified TaskDefinition using POST and returns a object. + /// + /// The TaskDefinition to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskDefinition taskDefinitionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskDefinitionToCreate, cancellationToken); + } + + /// + /// Updates the specified TaskDefinition using PATCH. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskDefinition. + public async System.Threading.Tasks.Task UpdateAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskDefinitionToUpdate, cancellationToken).ConfigureAwait(false); + return updatedEntity; + } + + /// + /// Updates the specified TaskDefinition using PATCH and returns a object. + /// + /// The TaskDefinition to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskDefinition taskDefinitionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskDefinitionToUpdate, cancellationToken); + } + + /// + /// Deletes the specified TaskDefinition. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskDefinition and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskDefinitionWithReferenceRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskDefinitionWithReferenceRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskDefinitionWithReferenceRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskDefinitionWithReferenceRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..8b55faa34ff --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskDefinitionWithReferenceRequestBuilder. + /// + public partial class TaskDefinitionWithReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskDefinitionWithReferenceRequestBuilder + { + + /// + /// Constructs a new TaskDefinitionWithReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskDefinitionWithReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskDefinitionWithReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskDefinitionWithReferenceRequest Request(IEnumerable options) + { + return new TaskDefinitionWithReferenceRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for the reference of the taskDefinition. + /// + /// The . + public ITaskDefinitionReferenceRequestBuilder Reference + { + get + { + return new TaskDefinitionReferenceRequestBuilder(this.AppendSegmentToRequestUrl("$ref"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequest.cs new file mode 100644 index 00000000000..5f97258400a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequest.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + + /// + /// The type TaskProcessingResultReferenceRequest. + /// + public partial class TaskProcessingResultReferenceRequest : Microsoft.Graph.BaseRequest, ITaskProcessingResultReferenceRequest + { + /// + /// Constructs a new TaskProcessingResultReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskProcessingResultReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Deletes the specified TaskProcessingResult reference. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskProcessingResult reference and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Puts the specified TaskProcessingResult reference. + /// + /// The TaskProcessingResult reference to update. + /// The for the request. + /// The task to await. + public System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsync(referenceRequestBody, cancellationToken); + } + + /// + /// Puts the specified TaskProcessingResult reference and returns object. + /// + /// The TaskProcessingResult reference to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsyncWithGraphResponse(referenceRequestBody, cancellationToken); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequestBuilder.cs new file mode 100644 index 00000000000..ba4f3dad830 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequestBuilder.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskProcessingResultReferenceRequestBuilder. + /// + public partial class TaskProcessingResultReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskProcessingResultReferenceRequestBuilder + { + /// + /// Constructs a new TaskProcessingResultReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskProcessingResultReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskProcessingResultReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskProcessingResultReferenceRequest Request(IEnumerable options) + { + return new TaskProcessingResultReferenceRequest(this.RequestUrl, this.Client, options); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultRequest.cs new file mode 100644 index 00000000000..665bd1a878b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultRequest.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskProcessingResultRequest. + /// + public partial class TaskProcessingResultRequest : Microsoft.Graph.BaseRequest, ITaskProcessingResultRequest + { + /// + /// Constructs a new TaskProcessingResultRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskProcessingResultRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified TaskProcessingResult using POST. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The created TaskProcessingResult. + public async System.Threading.Tasks.Task CreateAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskProcessingResultToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified TaskProcessingResult using POST and returns a object. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskProcessingResultToCreate, cancellationToken); + } + + /// + /// Deletes the specified TaskProcessingResult. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified TaskProcessingResult. + /// + /// The for the request. + /// The TaskProcessingResult. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified TaskProcessingResult using PATCH. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskProcessingResult. + public async System.Threading.Tasks.Task UpdateAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskProcessingResultToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskProcessingResult using PATCH and returns a object. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskProcessingResultToUpdate, cancellationToken); + } + + /// + /// Updates the specified TaskProcessingResult using PUT. + /// + /// The TaskProcessingResult object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(taskProcessingResultToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskProcessingResult using PUT and returns a object. + /// + /// The TaskProcessingResult object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(taskProcessingResultToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskProcessingResultRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskProcessingResultRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskProcessingResultRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskProcessingResultRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(TaskProcessingResult taskProcessingResultToInitialize) + { + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultRequestBuilder.cs new file mode 100644 index 00000000000..b20b8d4b0ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultRequestBuilder.cs @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type TaskProcessingResultRequestBuilder. + /// + public partial class TaskProcessingResultRequestBuilder : Microsoft.Graph.EntityRequestBuilder, ITaskProcessingResultRequestBuilder + { + + /// + /// Constructs a new TaskProcessingResultRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskProcessingResultRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ITaskProcessingResultRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ITaskProcessingResultRequest Request(IEnumerable options) + { + return new TaskProcessingResultRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for Subject. + /// + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder Subject + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("subject"), this.Client); + } + } + + /// + /// Gets the request builder for @Task. + /// + /// The . + public ITaskWithReferenceRequestBuilder @Task + { + get + { + return new TaskWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("@Task"), this.Client); + } + } + + /// + /// Gets the request builder for TaskProcessingResultResume. + /// + /// The . + public ITaskProcessingResultResumeRequestBuilder Resume( + CustomTaskExtensionCallbackData data, + string source = null, + string type = null) + { + return new TaskProcessingResultResumeRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.resume"), + this.Client, + data, + source, + type); + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultResumeRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultResumeRequest.cs new file mode 100644 index 00000000000..d4225dde574 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultResumeRequest.cs @@ -0,0 +1,88 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type TaskProcessingResultResumeRequest. + /// + public partial class TaskProcessingResultResumeRequest : Microsoft.Graph.BaseRequest, ITaskProcessingResultResumeRequest + { + /// + /// Constructs a new TaskProcessingResultResumeRequest. + /// + public TaskProcessingResultResumeRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.RequestBody = new TaskProcessingResultResumeRequestBody(); + } + + /// + /// Gets the request body. + /// + public TaskProcessingResultResumeRequestBody RequestBody { get; private set; } + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsync(this.RequestBody, cancellationToken); + } + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task PostResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(this.RequestBody, cancellationToken); + } + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskProcessingResultResumeRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskProcessingResultResumeRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultResumeRequestBuilder.cs new file mode 100644 index 00000000000..d320535e498 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultResumeRequestBuilder.cs @@ -0,0 +1,70 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type TaskProcessingResultResumeRequestBuilder. + /// + public partial class TaskProcessingResultResumeRequestBuilder : Microsoft.Graph.BaseActionMethodRequestBuilder, ITaskProcessingResultResumeRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + /// A data parameter for the OData method call. + /// A source parameter for the OData method call. + /// A type parameter for the OData method call. + public TaskProcessingResultResumeRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client, + CustomTaskExtensionCallbackData data, + string source, + string type) + : base(requestUrl, client) + { + this.SetParameter("data", data, false); + this.SetParameter("source", source, true); + this.SetParameter("type", type, true); + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override ITaskProcessingResultResumeRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new TaskProcessingResultResumeRequest(functionUrl, this.Client, options); + + if (this.HasParameter("data")) + { + request.RequestBody.Data = this.GetParameter("data"); + } + + if (this.HasParameter("source")) + { + request.RequestBody.Source = this.GetParameter("source"); + } + + if (this.HasParameter("type")) + { + request.RequestBody.Type = this.GetParameter("type"); + } + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequest.cs new file mode 100644 index 00000000000..f28f659759b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequest.cs @@ -0,0 +1,210 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskProcessingResultWithReferenceRequest. + /// + public partial class TaskProcessingResultWithReferenceRequest : Microsoft.Graph.BaseRequest, ITaskProcessingResultWithReferenceRequest + { + /// + /// Constructs a new TaskProcessingResultWithReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskProcessingResultWithReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Gets the specified TaskProcessingResult. + /// + /// The for the request. + /// The TaskProcessingResult. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + return retrievedEntity; + } + + /// + /// Gets the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Creates the specified TaskProcessingResult using POST. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The created TaskProcessingResult. + public async System.Threading.Tasks.Task CreateAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskProcessingResultToCreate, cancellationToken).ConfigureAwait(false); + return newEntity; + } + + /// + /// Creates the specified TaskProcessingResult using POST and returns a object. + /// + /// The TaskProcessingResult to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskProcessingResult taskProcessingResultToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskProcessingResultToCreate, cancellationToken); + } + + /// + /// Updates the specified TaskProcessingResult using PATCH. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskProcessingResult. + public async System.Threading.Tasks.Task UpdateAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskProcessingResultToUpdate, cancellationToken).ConfigureAwait(false); + return updatedEntity; + } + + /// + /// Updates the specified TaskProcessingResult using PATCH and returns a object. + /// + /// The TaskProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskProcessingResult taskProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskProcessingResultToUpdate, cancellationToken); + } + + /// + /// Deletes the specified TaskProcessingResult. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskProcessingResult and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskProcessingResultWithReferenceRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskProcessingResultWithReferenceRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskProcessingResultWithReferenceRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskProcessingResultWithReferenceRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..828cb249659 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskProcessingResultWithReferenceRequestBuilder. + /// + public partial class TaskProcessingResultWithReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskProcessingResultWithReferenceRequestBuilder + { + + /// + /// Constructs a new TaskProcessingResultWithReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskProcessingResultWithReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskProcessingResultWithReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskProcessingResultWithReferenceRequest Request(IEnumerable options) + { + return new TaskProcessingResultWithReferenceRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for the reference of the taskProcessingResult. + /// + /// The . + public ITaskProcessingResultReferenceRequestBuilder Reference + { + get + { + return new TaskProcessingResultReferenceRequestBuilder(this.AppendSegmentToRequestUrl("$ref"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReferenceRequest.cs new file mode 100644 index 00000000000..cb20af7e4d1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReferenceRequest.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + + /// + /// The type TaskReferenceRequest. + /// + public partial class TaskReferenceRequest : Microsoft.Graph.BaseRequest, ITaskReferenceRequest + { + /// + /// Constructs a new TaskReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Deletes the specified Task reference. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Task reference and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Puts the specified Task reference. + /// + /// The Task reference to update. + /// The for the request. + /// The task to await. + public System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsync(referenceRequestBody, cancellationToken); + } + + /// + /// Puts the specified Task reference and returns object. + /// + /// The Task reference to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsyncWithGraphResponse(referenceRequestBody, cancellationToken); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReferenceRequestBuilder.cs new file mode 100644 index 00000000000..d745a8a89fb --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReferenceRequestBuilder.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskReferenceRequestBuilder. + /// + public partial class TaskReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskReferenceRequestBuilder + { + /// + /// Constructs a new TaskReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskReferenceRequest Request(IEnumerable options) + { + return new TaskReferenceRequest(this.RequestUrl, this.Client, options); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportRequest.cs new file mode 100644 index 00000000000..23a36348bbf --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportRequest.cs @@ -0,0 +1,261 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskReportRequest. + /// + public partial class TaskReportRequest : Microsoft.Graph.BaseRequest, ITaskReportRequest + { + /// + /// Constructs a new TaskReportRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskReportRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified TaskReport using POST. + /// + /// The TaskReport to create. + /// The for the request. + /// The created TaskReport. + public async System.Threading.Tasks.Task CreateAsync(TaskReport taskReportToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskReportToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified TaskReport using POST and returns a object. + /// + /// The TaskReport to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskReport taskReportToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskReportToCreate, cancellationToken); + } + + /// + /// Deletes the specified TaskReport. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified TaskReport and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified TaskReport. + /// + /// The for the request. + /// The TaskReport. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified TaskReport and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified TaskReport using PATCH. + /// + /// The TaskReport to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskReport. + public async System.Threading.Tasks.Task UpdateAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskReportToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskReport using PATCH and returns a object. + /// + /// The TaskReport to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskReportToUpdate, cancellationToken); + } + + /// + /// Updates the specified TaskReport using PUT. + /// + /// The TaskReport object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(taskReportToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskReport using PUT and returns a object. + /// + /// The TaskReport object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(TaskReport taskReportToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(taskReportToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskReportRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskReportRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskReportRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskReportRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(TaskReport taskReportToInitialize) + { + + if (taskReportToInitialize != null) + { + if (taskReportToInitialize.TaskProcessingResults != null && taskReportToInitialize.TaskProcessingResults.CurrentPage != null) + { + taskReportToInitialize.TaskProcessingResults.InitializeNextPageRequest(this.Client, taskReportToInitialize.TaskProcessingResultsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + taskReportToInitialize.TaskProcessingResults.AdditionalData = taskReportToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportRequestBuilder.cs new file mode 100644 index 00000000000..992c34832c5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportRequestBuilder.cs @@ -0,0 +1,92 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type TaskReportRequestBuilder. + /// + public partial class TaskReportRequestBuilder : Microsoft.Graph.EntityRequestBuilder, ITaskReportRequestBuilder + { + + /// + /// Constructs a new TaskReportRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskReportRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ITaskReportRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ITaskReportRequest Request(IEnumerable options) + { + return new TaskReportRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for @Task. + /// + /// The . + public ITaskWithReferenceRequestBuilder @Task + { + get + { + return new TaskWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("@Task"), this.Client); + } + } + + /// + /// Gets the request builder for TaskDefinition. + /// + /// The . + public ITaskDefinitionWithReferenceRequestBuilder TaskDefinition + { + get + { + return new TaskDefinitionWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("taskDefinition"), this.Client); + } + } + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + public ITaskReportTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults + { + get + { + return new TaskReportTaskProcessingResultsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("taskProcessingResults"), this.Client); + } + } + + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportSummaryRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportSummaryRequest.cs new file mode 100644 index 00000000000..7c58203e0a6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportSummaryRequest.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type TaskReportSummaryRequest. + /// + public partial class TaskReportSummaryRequest : Microsoft.Graph.BaseRequest, ITaskReportSummaryRequest + { + /// + /// Constructs a new TaskReportSummaryRequest. + /// + public TaskReportSummaryRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Issues the GET request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task GetAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsync(null, cancellationToken); + } + + /// + /// Issues the GET request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskReportSummaryRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskReportSummaryRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportSummaryRequestBuilder.cs new file mode 100644 index 00000000000..c62dc33edf5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportSummaryRequestBuilder.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type TaskReportSummaryRequestBuilder. + /// + public partial class TaskReportSummaryRequestBuilder : Microsoft.Graph.BaseFunctionMethodRequestBuilder, ITaskReportSummaryRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + /// A startDateTime parameter for the OData method call. + /// A endDateTime parameter for the OData method call. + public TaskReportSummaryRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client, + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + : base(requestUrl, client) + { + this.SetParameter("startDateTime", startDateTime, false); + this.SetParameter("endDateTime", endDateTime, false); + this.SetFunctionParameters(); + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override ITaskReportSummaryRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new TaskReportSummaryRequest(functionUrl, this.Client, options); + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..857901a237c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type TaskReportTaskProcessingResultsCollectionPage. + /// + public partial class TaskReportTaskProcessingResultsCollectionPage : Microsoft.Graph.CollectionPage, ITaskReportTaskProcessingResultsCollectionPage + { + /// + /// Gets the next page instance. + /// + public ITaskReportTaskProcessingResultsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new TaskReportTaskProcessingResultsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..0d4522b12b9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskReportTaskProcessingResultsCollectionRequest. + /// + public partial class TaskReportTaskProcessingResultsCollectionRequest : Microsoft.Graph.BaseRequest, ITaskReportTaskProcessingResultsCollectionRequest + { + /// + /// Constructs a new TaskReportTaskProcessingResultsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskReportTaskProcessingResultsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + public System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(taskProcessingResult, cancellationToken); + } + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskProcessingResult, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public ITaskReportTaskProcessingResultsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..bd104e11ed6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskReportTaskProcessingResultsCollectionRequestBuilder. + /// + public partial class TaskReportTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskReportTaskProcessingResultsCollectionRequestBuilder + { + /// + /// Constructs a new TaskReportTaskProcessingResultsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskReportTaskProcessingResultsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskReportTaskProcessingResultsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskReportTaskProcessingResultsCollectionRequest Request(IEnumerable options) + { + return new TaskReportTaskProcessingResultsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified TaskReportTaskProcessingResult. + /// + /// The ID for the TaskReportTaskProcessingResult. + /// The . + public ITaskProcessingResultRequestBuilder this[string id] + { + get + { + return new TaskProcessingResultRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionResponse.cs new file mode 100644 index 00000000000..701c70af3bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskReportTaskProcessingResultsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type TaskReportTaskProcessingResultsCollectionResponse. + /// + public class TaskReportTaskProcessingResultsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public ITaskReportTaskProcessingResultsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskRequest.cs new file mode 100644 index 00000000000..d0abd0bb70b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskRequest.cs @@ -0,0 +1,261 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskRequest. + /// + public partial class TaskRequest : Microsoft.Graph.BaseRequest, ITaskRequest + { + /// + /// Constructs a new TaskRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified TaskObject using POST. + /// + /// The TaskObject to create. + /// The for the request. + /// The created TaskObject. + public async System.Threading.Tasks.Task CreateAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskObjectToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified TaskObject using POST and returns a object. + /// + /// The TaskObject to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskObjectToCreate, cancellationToken); + } + + /// + /// Deletes the specified Task. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Task and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified TaskObject. + /// + /// The for the request. + /// The TaskObject. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified TaskObject and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified TaskObject using PATCH. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskObject. + public async System.Threading.Tasks.Task UpdateAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskObjectToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskObject using PATCH and returns a object. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskObjectToUpdate, cancellationToken); + } + + /// + /// Updates the specified TaskObject using PUT. + /// + /// The TaskObject object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(taskObjectToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified TaskObject using PUT and returns a object. + /// + /// The TaskObject object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(taskObjectToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(TaskObject taskToInitialize) + { + + if (taskToInitialize != null) + { + if (taskToInitialize.TaskProcessingResults != null && taskToInitialize.TaskProcessingResults.CurrentPage != null) + { + taskToInitialize.TaskProcessingResults.InitializeNextPageRequest(this.Client, taskToInitialize.TaskProcessingResultsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + taskToInitialize.TaskProcessingResults.AdditionalData = taskToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskRequestBuilder.cs new file mode 100644 index 00000000000..be59d73fd1f --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskRequestBuilder.cs @@ -0,0 +1,66 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type TaskRequestBuilder. + /// + public partial class TaskRequestBuilder : Microsoft.Graph.EntityRequestBuilder, ITaskRequestBuilder + { + + /// + /// Constructs a new TaskRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new ITaskRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new ITaskRequest Request(IEnumerable options) + { + return new TaskRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + public ITaskTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults + { + get + { + return new TaskTaskProcessingResultsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("taskProcessingResults"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..aea05f63f01 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type TaskTaskProcessingResultsCollectionPage. + /// + public partial class TaskTaskProcessingResultsCollectionPage : Microsoft.Graph.CollectionPage, ITaskTaskProcessingResultsCollectionPage + { + /// + /// Gets the next page instance. + /// + public ITaskTaskProcessingResultsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new TaskTaskProcessingResultsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..00ff86d3641 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskTaskProcessingResultsCollectionRequest. + /// + public partial class TaskTaskProcessingResultsCollectionRequest : Microsoft.Graph.BaseRequest, ITaskTaskProcessingResultsCollectionRequest + { + /// + /// Constructs a new TaskTaskProcessingResultsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskTaskProcessingResultsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + public System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(taskProcessingResult, cancellationToken); + } + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskProcessingResult, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public ITaskTaskProcessingResultsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..f17f3c56e23 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskTaskProcessingResultsCollectionRequestBuilder. + /// + public partial class TaskTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskTaskProcessingResultsCollectionRequestBuilder + { + /// + /// Constructs a new TaskTaskProcessingResultsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskTaskProcessingResultsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskTaskProcessingResultsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskTaskProcessingResultsCollectionRequest Request(IEnumerable options) + { + return new TaskTaskProcessingResultsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified TaskTaskProcessingResult. + /// + /// The ID for the TaskTaskProcessingResult. + /// The . + public ITaskProcessingResultRequestBuilder this[string id] + { + get + { + return new TaskProcessingResultRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionResponse.cs new file mode 100644 index 00000000000..97057849343 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskTaskProcessingResultsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type TaskTaskProcessingResultsCollectionResponse. + /// + public class TaskTaskProcessingResultsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public ITaskTaskProcessingResultsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskWithReferenceRequest.cs new file mode 100644 index 00000000000..2f4e7340691 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskWithReferenceRequest.cs @@ -0,0 +1,210 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type TaskWithReferenceRequest. + /// + public partial class TaskWithReferenceRequest : Microsoft.Graph.BaseRequest, ITaskWithReferenceRequest + { + /// + /// Constructs a new TaskWithReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public TaskWithReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Gets the specified TaskObject. + /// + /// The for the request. + /// The TaskObject. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + return retrievedEntity; + } + + /// + /// Gets the specified TaskObject and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Creates the specified TaskObject using POST. + /// + /// The TaskObject to create. + /// The for the request. + /// The created TaskObject. + public async System.Threading.Tasks.Task CreateAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(taskObjectToCreate, cancellationToken).ConfigureAwait(false); + return newEntity; + } + + /// + /// Creates the specified TaskObject using POST and returns a object. + /// + /// The TaskObject to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(TaskObject taskObjectToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskObjectToCreate, cancellationToken); + } + + /// + /// Updates the specified TaskObject using PATCH. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated TaskObject. + public async System.Threading.Tasks.Task UpdateAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(taskObjectToUpdate, cancellationToken).ConfigureAwait(false); + return updatedEntity; + } + + /// + /// Updates the specified TaskObject using PATCH and returns a object. + /// + /// The TaskObject to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(TaskObject taskObjectToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(taskObjectToUpdate, cancellationToken); + } + + /// + /// Deletes the specified Task. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Task and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public ITaskWithReferenceRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public ITaskWithReferenceRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public ITaskWithReferenceRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public ITaskWithReferenceRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..7f415490e3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/TaskWithReferenceRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type TaskWithReferenceRequestBuilder. + /// + public partial class TaskWithReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, ITaskWithReferenceRequestBuilder + { + + /// + /// Constructs a new TaskWithReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public TaskWithReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public ITaskWithReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public ITaskWithReferenceRequest Request(IEnumerable options) + { + return new TaskWithReferenceRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for the reference of the task. + /// + /// The . + public ITaskReferenceRequestBuilder Reference + { + get + { + return new TaskReferenceRequestBuilder(this.AppendSegmentToRequestUrl("$ref"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultRequest.cs new file mode 100644 index 00000000000..527beda0a97 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultRequest.cs @@ -0,0 +1,261 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type UserProcessingResultRequest. + /// + public partial class UserProcessingResultRequest : Microsoft.Graph.BaseRequest, IUserProcessingResultRequest + { + /// + /// Constructs a new UserProcessingResultRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public UserProcessingResultRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified UserProcessingResult using POST. + /// + /// The UserProcessingResult to create. + /// The for the request. + /// The created UserProcessingResult. + public async System.Threading.Tasks.Task CreateAsync(UserProcessingResult userProcessingResultToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(userProcessingResultToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified UserProcessingResult using POST and returns a object. + /// + /// The UserProcessingResult to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(UserProcessingResult userProcessingResultToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(userProcessingResultToCreate, cancellationToken); + } + + /// + /// Deletes the specified UserProcessingResult. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified UserProcessingResult and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified UserProcessingResult. + /// + /// The for the request. + /// The UserProcessingResult. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified UserProcessingResult and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified UserProcessingResult using PATCH. + /// + /// The UserProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated UserProcessingResult. + public async System.Threading.Tasks.Task UpdateAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(userProcessingResultToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified UserProcessingResult using PATCH and returns a object. + /// + /// The UserProcessingResult to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(userProcessingResultToUpdate, cancellationToken); + } + + /// + /// Updates the specified UserProcessingResult using PUT. + /// + /// The UserProcessingResult object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(userProcessingResultToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified UserProcessingResult using PUT and returns a object. + /// + /// The UserProcessingResult object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(UserProcessingResult userProcessingResultToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(userProcessingResultToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IUserProcessingResultRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IUserProcessingResultRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IUserProcessingResultRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IUserProcessingResultRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(UserProcessingResult userProcessingResultToInitialize) + { + + if (userProcessingResultToInitialize != null) + { + if (userProcessingResultToInitialize.TaskProcessingResults != null && userProcessingResultToInitialize.TaskProcessingResults.CurrentPage != null) + { + userProcessingResultToInitialize.TaskProcessingResults.InitializeNextPageRequest(this.Client, userProcessingResultToInitialize.TaskProcessingResultsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + userProcessingResultToInitialize.TaskProcessingResults.AdditionalData = userProcessingResultToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultRequestBuilder.cs new file mode 100644 index 00000000000..8285d013f3c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultRequestBuilder.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type UserProcessingResultRequestBuilder. + /// + public partial class UserProcessingResultRequestBuilder : Microsoft.Graph.EntityRequestBuilder, IUserProcessingResultRequestBuilder + { + + /// + /// Constructs a new UserProcessingResultRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public UserProcessingResultRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new IUserProcessingResultRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new IUserProcessingResultRequest Request(IEnumerable options) + { + return new UserProcessingResultRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for Subject. + /// + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder Subject + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("subject"), this.Client); + } + } + + /// + /// Gets the request builder for TaskProcessingResults. + /// + /// The . + public IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder TaskProcessingResults + { + get + { + return new UserProcessingResultTaskProcessingResultsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("taskProcessingResults"), this.Client); + } + } + + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultSummaryRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultSummaryRequest.cs new file mode 100644 index 00000000000..b525dbadd38 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultSummaryRequest.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type UserProcessingResultSummaryRequest. + /// + public partial class UserProcessingResultSummaryRequest : Microsoft.Graph.BaseRequest, IUserProcessingResultSummaryRequest + { + /// + /// Constructs a new UserProcessingResultSummaryRequest. + /// + public UserProcessingResultSummaryRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Issues the GET request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task GetAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsync(null, cancellationToken); + } + + /// + /// Issues the GET request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IUserProcessingResultSummaryRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IUserProcessingResultSummaryRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultSummaryRequestBuilder.cs new file mode 100644 index 00000000000..d5c777cbb78 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultSummaryRequestBuilder.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type UserProcessingResultSummaryRequestBuilder. + /// + public partial class UserProcessingResultSummaryRequestBuilder : Microsoft.Graph.BaseFunctionMethodRequestBuilder, IUserProcessingResultSummaryRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + /// A startDateTime parameter for the OData method call. + /// A endDateTime parameter for the OData method call. + public UserProcessingResultSummaryRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client, + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + : base(requestUrl, client) + { + this.SetParameter("startDateTime", startDateTime, false); + this.SetParameter("endDateTime", endDateTime, false); + this.SetFunctionParameters(); + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override IUserProcessingResultSummaryRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new UserProcessingResultSummaryRequest(functionUrl, this.Client, options); + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..9057c845c29 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type UserProcessingResultTaskProcessingResultsCollectionPage. + /// + public partial class UserProcessingResultTaskProcessingResultsCollectionPage : Microsoft.Graph.CollectionPage, IUserProcessingResultTaskProcessingResultsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IUserProcessingResultTaskProcessingResultsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new UserProcessingResultTaskProcessingResultsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..8bc3f0b12da --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type UserProcessingResultTaskProcessingResultsCollectionRequest. + /// + public partial class UserProcessingResultTaskProcessingResultsCollectionRequest : Microsoft.Graph.BaseRequest, IUserProcessingResultTaskProcessingResultsCollectionRequest + { + /// + /// Constructs a new UserProcessingResultTaskProcessingResultsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public UserProcessingResultTaskProcessingResultsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskProcessingResult to the collection via POST. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The created TaskProcessingResult. + public System.Threading.Tasks.Task AddAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(taskProcessingResult, cancellationToken); + } + + /// + /// Adds the specified TaskProcessingResult to the collection via POST and returns a object of the request. + /// + /// The TaskProcessingResult to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskProcessingResult taskProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskProcessingResult, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IUserProcessingResultTaskProcessingResultsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..92e09d91349 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type UserProcessingResultTaskProcessingResultsCollectionRequestBuilder. + /// + public partial class UserProcessingResultTaskProcessingResultsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IUserProcessingResultTaskProcessingResultsCollectionRequestBuilder + { + /// + /// Constructs a new UserProcessingResultTaskProcessingResultsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public UserProcessingResultTaskProcessingResultsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IUserProcessingResultTaskProcessingResultsCollectionRequest Request(IEnumerable options) + { + return new UserProcessingResultTaskProcessingResultsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified UserProcessingResultTaskProcessingResult. + /// + /// The ID for the UserProcessingResultTaskProcessingResult. + /// The . + public ITaskProcessingResultRequestBuilder this[string id] + { + get + { + return new TaskProcessingResultRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionResponse.cs new file mode 100644 index 00000000000..21f523b8c81 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/UserProcessingResultTaskProcessingResultsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type UserProcessingResultTaskProcessingResultsCollectionResponse. + /// + public class UserProcessingResultTaskProcessingResultsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IUserProcessingResultTaskProcessingResultsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowActivateRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowActivateRequest.cs new file mode 100644 index 00000000000..5d35e539028 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowActivateRequest.cs @@ -0,0 +1,88 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type WorkflowActivateRequest. + /// + public partial class WorkflowActivateRequest : Microsoft.Graph.BaseRequest, IWorkflowActivateRequest + { + /// + /// Constructs a new WorkflowActivateRequest. + /// + public WorkflowActivateRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.RequestBody = new WorkflowActivateRequestBody(); + } + + /// + /// Gets the request body. + /// + public WorkflowActivateRequestBody RequestBody { get; private set; } + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsync(this.RequestBody, cancellationToken); + } + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task PostResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(this.RequestBody, cancellationToken); + } + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowActivateRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowActivateRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowActivateRequestBuilder.cs new file mode 100644 index 00000000000..fc8973e9924 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowActivateRequestBuilder.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowActivateRequestBuilder. + /// + public partial class WorkflowActivateRequestBuilder : Microsoft.Graph.BaseActionMethodRequestBuilder, IWorkflowActivateRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + /// A subjects parameter for the OData method call. + public WorkflowActivateRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable subjects) + : base(requestUrl, client) + { + this.SetParameter("subjects", subjects, true); + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override IWorkflowActivateRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new WorkflowActivateRequest(functionUrl, this.Client, options); + + if (this.HasParameter("subjects")) + { + request.RequestBody.Subjects = this.GetParameter>("subjects"); + } + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseRequest.cs new file mode 100644 index 00000000000..2330369eaae --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseRequest.cs @@ -0,0 +1,261 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowBaseRequest. + /// + public partial class WorkflowBaseRequest : Microsoft.Graph.BaseRequest, IWorkflowBaseRequest + { + /// + /// Constructs a new WorkflowBaseRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowBaseRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified WorkflowBase using POST. + /// + /// The WorkflowBase to create. + /// The for the request. + /// The created WorkflowBase. + public async System.Threading.Tasks.Task CreateAsync(WorkflowBase workflowBaseToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(workflowBaseToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified WorkflowBase using POST and returns a object. + /// + /// The WorkflowBase to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(WorkflowBase workflowBaseToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowBaseToCreate, cancellationToken); + } + + /// + /// Deletes the specified WorkflowBase. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified WorkflowBase and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified WorkflowBase. + /// + /// The for the request. + /// The WorkflowBase. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified WorkflowBase and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified WorkflowBase using PATCH. + /// + /// The WorkflowBase to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated WorkflowBase. + public async System.Threading.Tasks.Task UpdateAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(workflowBaseToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified WorkflowBase using PATCH and returns a object. + /// + /// The WorkflowBase to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(workflowBaseToUpdate, cancellationToken); + } + + /// + /// Updates the specified WorkflowBase using PUT. + /// + /// The WorkflowBase object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(workflowBaseToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified WorkflowBase using PUT and returns a object. + /// + /// The WorkflowBase object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(WorkflowBase workflowBaseToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(workflowBaseToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowBaseRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowBaseRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowBaseRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowBaseRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(WorkflowBase workflowBaseToInitialize) + { + + if (workflowBaseToInitialize != null) + { + if (workflowBaseToInitialize.Tasks != null && workflowBaseToInitialize.Tasks.CurrentPage != null) + { + workflowBaseToInitialize.Tasks.InitializeNextPageRequest(this.Client, workflowBaseToInitialize.TasksNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowBaseToInitialize.Tasks.AdditionalData = workflowBaseToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseRequestBuilder.cs new file mode 100644 index 00000000000..a10e73a428d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseRequestBuilder.cs @@ -0,0 +1,90 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowBaseRequestBuilder. + /// + public partial class WorkflowBaseRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowBaseRequestBuilder + { + + /// + /// Constructs a new WorkflowBaseRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowBaseRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowBaseRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowBaseRequest Request(IEnumerable options) + { + return new WorkflowBaseRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for CreatedBy. + /// + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder CreatedBy + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("createdBy"), this.Client); + } + } + + /// + /// Gets the request builder for LastModifiedBy. + /// + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder LastModifiedBy + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl("lastModifiedBy"), this.Client); + } + } + + /// + /// Gets the request builder for Tasks. + /// + /// The . + public IWorkflowBaseTasksCollectionRequestBuilder Tasks + { + get + { + return new WorkflowBaseTasksCollectionRequestBuilder(this.AppendSegmentToRequestUrl("tasks"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionPage.cs new file mode 100644 index 00000000000..da54e6b89f9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowBaseTasksCollectionPage. + /// + public partial class WorkflowBaseTasksCollectionPage : Microsoft.Graph.CollectionPage, IWorkflowBaseTasksCollectionPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowBaseTasksCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowBaseTasksCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionRequest.cs new file mode 100644 index 00000000000..1fca28f540b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowBaseTasksCollectionRequest. + /// + public partial class WorkflowBaseTasksCollectionRequest : Microsoft.Graph.BaseRequest, IWorkflowBaseTasksCollectionRequest + { + /// + /// Constructs a new WorkflowBaseTasksCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowBaseTasksCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskObject to the collection via POST. + /// + /// The TaskObject to add. + /// The for the request. + /// The created TaskObject. + public System.Threading.Tasks.Task AddAsync(TaskObject task, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(task, cancellationToken); + } + + /// + /// Adds the specified TaskObject to the collection via POST and returns a object of the request. + /// + /// The TaskObject to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskObject task, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(task, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowBaseTasksCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionRequestBuilder.cs new file mode 100644 index 00000000000..6d2a2f1f488 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowBaseTasksCollectionRequestBuilder. + /// + public partial class WorkflowBaseTasksCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowBaseTasksCollectionRequestBuilder + { + /// + /// Constructs a new WorkflowBaseTasksCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowBaseTasksCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowBaseTasksCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowBaseTasksCollectionRequest Request(IEnumerable options) + { + return new WorkflowBaseTasksCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowBaseTask. + /// + /// The ID for the WorkflowBaseTask. + /// The . + public ITaskRequestBuilder this[string id] + { + get + { + return new TaskRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionResponse.cs new file mode 100644 index 00000000000..fd591c4eec3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowBaseTasksCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowBaseTasksCollectionResponse. + /// + public class WorkflowBaseTasksCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowBaseTasksCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequest.cs new file mode 100644 index 00000000000..6039bd463e9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequest.cs @@ -0,0 +1,88 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type WorkflowCreateNewVersionRequest. + /// + public partial class WorkflowCreateNewVersionRequest : Microsoft.Graph.BaseRequest, IWorkflowCreateNewVersionRequest + { + /// + /// Constructs a new WorkflowCreateNewVersionRequest. + /// + public WorkflowCreateNewVersionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.RequestBody = new WorkflowCreateNewVersionRequestBody(); + } + + /// + /// Gets the request body. + /// + public WorkflowCreateNewVersionRequestBody RequestBody { get; private set; } + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsync(this.RequestBody, cancellationToken); + } + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task> PostResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(this.RequestBody, cancellationToken); + } + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowCreateNewVersionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowCreateNewVersionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequestBuilder.cs new file mode 100644 index 00000000000..0d428a735cf --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequestBuilder.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowCreateNewVersionRequestBuilder. + /// + public partial class WorkflowCreateNewVersionRequestBuilder : Microsoft.Graph.BaseActionMethodRequestBuilder, IWorkflowCreateNewVersionRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + /// A workflow parameter for the OData method call. + public WorkflowCreateNewVersionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client, + Workflow workflow) + : base(requestUrl, client) + { + this.SetParameter("workflow", workflow, true); + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override IWorkflowCreateNewVersionRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new WorkflowCreateNewVersionRequest(functionUrl, this.Client, options); + + if (this.HasParameter("workflow")) + { + request.RequestBody.Workflow = this.GetParameter("workflow"); + } + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionReferencesRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionReferencesRequest.cs new file mode 100644 index 00000000000..e33438111df --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionReferencesRequest.cs @@ -0,0 +1,76 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionReferencesRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + + /// + /// The type WorkflowExecutionScopeCollectionReferencesRequest. + /// + public partial class WorkflowExecutionScopeCollectionReferencesRequest : Microsoft.Graph.BaseRequest, IWorkflowExecutionScopeCollectionReferencesRequest + { + /// + /// Constructs a new WorkflowExecutionScopeCollectionReferencesRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowExecutionScopeCollectionReferencesRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified Microsoft.Graph.User to the collection via POST. + /// + /// The Microsoft.Graph.User to add. + /// The for the request. + /// The task to await. + public System.Threading.Tasks.Task AddAsync(Microsoft.Graph.User user, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + + if (string.IsNullOrEmpty(user.Id)) + { + throw new Microsoft.Graph.ServiceException(new Microsoft.Graph.Error { Code = "invalidRequest", Message = "ID is required to add a reference." }); + } + + var requestBody = new Microsoft.Graph.ReferenceRequestBody { ODataId = string.Format("{0}/users/{1}", this.Client.BaseUrl, user.Id) }; + return this.SendAsync(requestBody, cancellationToken); + } + + /// + /// Adds the specified Microsoft.Graph.User to the collection via POST and returns a object of the request. + /// + /// The Microsoft.Graph.User to add. + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task AddResponseAsync(Microsoft.Graph.User user, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + + if (string.IsNullOrEmpty(user.Id)) + { + throw new Microsoft.Graph.ServiceException(new Microsoft.Graph.Error { Code = "invalidRequest", Message = "ID is required to add a reference." }); + } + + var requestBody = new Microsoft.Graph.ReferenceRequestBody { ODataId = string.Format("{0}/users/{1}", this.Client.BaseUrl, user.Id) }; + return this.SendAsyncWithGraphResponse(requestBody, cancellationToken); + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionReferencesRequestBuilder.cs new file mode 100644 index 00000000000..4f2a597dee3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionReferencesRequestBuilder.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionReferencesRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowExecutionScopeCollectionReferencesRequestBuilder. + /// + public partial class WorkflowExecutionScopeCollectionReferencesRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowExecutionScopeCollectionReferencesRequestBuilder + { + + /// + /// Constructs a new WorkflowExecutionScopeCollectionReferencesRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowExecutionScopeCollectionReferencesRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowExecutionScopeCollectionReferencesRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowExecutionScopeCollectionReferencesRequest Request(IEnumerable options) + { + return new WorkflowExecutionScopeCollectionReferencesRequest(this.RequestUrl, this.Client, options); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesPage.cs new file mode 100644 index 00000000000..3e5907e2ceb --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionWithReferencesPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowExecutionScopeCollectionWithReferencesPage. + /// + public partial class WorkflowExecutionScopeCollectionWithReferencesPage : Microsoft.Graph.CollectionPage, IWorkflowExecutionScopeCollectionWithReferencesPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowExecutionScopeCollectionWithReferencesRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowExecutionScopeCollectionWithReferencesRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesRequest.cs new file mode 100644 index 00000000000..a452328ab98 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesRequest.cs @@ -0,0 +1,182 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionWithReferencesRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowExecutionScopeCollectionWithReferencesRequest. + /// + public partial class WorkflowExecutionScopeCollectionWithReferencesRequest : Microsoft.Graph.BaseRequest, IWorkflowExecutionScopeCollectionWithReferencesRequest + { + /// + /// Constructs a new WorkflowExecutionScopeCollectionWithReferencesRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowExecutionScopeCollectionWithReferencesRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowExecutionScopeCollectionWithReferencesRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesRequestBuilder.cs new file mode 100644 index 00000000000..f762ebb9893 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesRequestBuilder.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionWithReferencesRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowExecutionScopeCollectionWithReferencesRequestBuilder. + /// + public partial class WorkflowExecutionScopeCollectionWithReferencesRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder + { + + /// + /// Constructs a new WorkflowExecutionScopeCollectionWithReferencesRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowExecutionScopeCollectionWithReferencesRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowExecutionScopeCollectionWithReferencesRequest Request(IEnumerable options) + { + return new WorkflowExecutionScopeCollectionWithReferencesRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowMicrosoft.Graph.User. + /// + /// The ID for the WorkflowMicrosoft.Graph.User. + /// The . + public Microsoft.Graph.IUserWithReferenceRequestBuilder this[string id] + { + get + { + return new Microsoft.Graph.UserWithReferenceRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + /// + /// Gets an for the references in the collection. + /// + /// The . + public IWorkflowExecutionScopeCollectionReferencesRequestBuilder References + { + get + { + return new WorkflowExecutionScopeCollectionReferencesRequestBuilder(this.AppendSegmentToRequestUrl("$ref"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesResponse.cs new file mode 100644 index 00000000000..d2ef245fa9c --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowExecutionScopeCollectionWithReferencesResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionWithReferencesResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowExecutionScopeCollectionWithReferencesResponse. + /// + public class WorkflowExecutionScopeCollectionWithReferencesResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowExecutionScopeCollectionWithReferencesPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowReferenceRequest.cs new file mode 100644 index 00000000000..fe48ab6a295 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowReferenceRequest.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + + /// + /// The type WorkflowReferenceRequest. + /// + public partial class WorkflowReferenceRequest : Microsoft.Graph.BaseRequest, IWorkflowReferenceRequest + { + /// + /// Constructs a new WorkflowReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Deletes the specified Workflow reference. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Workflow reference and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Puts the specified Workflow reference. + /// + /// The Workflow reference to update. + /// The for the request. + /// The task to await. + public System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsync(referenceRequestBody, cancellationToken); + } + + /// + /// Puts the specified Workflow reference and returns object. + /// + /// The Workflow reference to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task PutResponseAsync(string id, CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.PUT; + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + var referenceRequestBody = new ReferenceRequestBody() + { + ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id) + }; + return this.SendAsyncWithGraphResponse(referenceRequestBody, cancellationToken); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowReferenceRequestBuilder.cs new file mode 100644 index 00000000000..fbac9885207 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowReferenceRequestBuilder.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowReferenceRequestBuilder. + /// + public partial class WorkflowReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowReferenceRequestBuilder + { + /// + /// Constructs a new WorkflowReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowReferenceRequest Request(IEnumerable options) + { + return new WorkflowReferenceRequest(this.RequestUrl, this.Client, options); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRequest.cs new file mode 100644 index 00000000000..2ffe901926e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRequest.cs @@ -0,0 +1,285 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowRequest. + /// + public partial class WorkflowRequest : Microsoft.Graph.BaseRequest, IWorkflowRequest + { + /// + /// Constructs a new WorkflowRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified Workflow using POST. + /// + /// The Workflow to create. + /// The for the request. + /// The created Workflow. + public async System.Threading.Tasks.Task CreateAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(workflowToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified Workflow using POST and returns a object. + /// + /// The Workflow to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowToCreate, cancellationToken); + } + + /// + /// Deletes the specified Workflow. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Workflow and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified Workflow. + /// + /// The for the request. + /// The Workflow. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified Workflow and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified Workflow using PATCH. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated Workflow. + public async System.Threading.Tasks.Task UpdateAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(workflowToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified Workflow using PATCH and returns a object. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(workflowToUpdate, cancellationToken); + } + + /// + /// Updates the specified Workflow using PUT. + /// + /// The Workflow object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(workflowToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified Workflow using PUT and returns a object. + /// + /// The Workflow object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(workflowToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(Workflow workflowToInitialize) + { + + if (workflowToInitialize != null) + { + if (workflowToInitialize.ExecutionScope != null && workflowToInitialize.ExecutionScope.CurrentPage != null) + { + workflowToInitialize.ExecutionScope.InitializeNextPageRequest(this.Client, workflowToInitialize.ExecutionScopeNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowToInitialize.ExecutionScope.AdditionalData = workflowToInitialize.AdditionalData; + } + if (workflowToInitialize.Runs != null && workflowToInitialize.Runs.CurrentPage != null) + { + workflowToInitialize.Runs.InitializeNextPageRequest(this.Client, workflowToInitialize.RunsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowToInitialize.Runs.AdditionalData = workflowToInitialize.AdditionalData; + } + if (workflowToInitialize.TaskReports != null && workflowToInitialize.TaskReports.CurrentPage != null) + { + workflowToInitialize.TaskReports.InitializeNextPageRequest(this.Client, workflowToInitialize.TaskReportsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowToInitialize.TaskReports.AdditionalData = workflowToInitialize.AdditionalData; + } + if (workflowToInitialize.UserProcessingResults != null && workflowToInitialize.UserProcessingResults.CurrentPage != null) + { + workflowToInitialize.UserProcessingResults.InitializeNextPageRequest(this.Client, workflowToInitialize.UserProcessingResultsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowToInitialize.UserProcessingResults.AdditionalData = workflowToInitialize.AdditionalData; + } + if (workflowToInitialize.Versions != null && workflowToInitialize.Versions.CurrentPage != null) + { + workflowToInitialize.Versions.InitializeNextPageRequest(this.Client, workflowToInitialize.VersionsNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowToInitialize.Versions.AdditionalData = workflowToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRequestBuilder.cs new file mode 100644 index 00000000000..44be5ec8ba2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRequestBuilder.cs @@ -0,0 +1,151 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowRequestBuilder. + /// + public partial class WorkflowRequestBuilder : WorkflowBaseRequestBuilder, IWorkflowRequestBuilder + { + + /// + /// Constructs a new WorkflowRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new IWorkflowRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new IWorkflowRequest Request(IEnumerable options) + { + return new WorkflowRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for ExecutionScope. + /// + /// The . + public IWorkflowExecutionScopeCollectionWithReferencesRequestBuilder ExecutionScope + { + get + { + return new WorkflowExecutionScopeCollectionWithReferencesRequestBuilder(this.AppendSegmentToRequestUrl("executionScope"), this.Client); + } + } + + /// + /// Gets the request builder for Runs. + /// + /// The . + public IWorkflowRunsCollectionRequestBuilder Runs + { + get + { + return new WorkflowRunsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("runs"), this.Client); + } + } + + /// + /// Gets the request builder for TaskReports. + /// + /// The . + public IWorkflowTaskReportsCollectionRequestBuilder TaskReports + { + get + { + return new WorkflowTaskReportsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("taskReports"), this.Client); + } + } + + /// + /// Gets the request builder for UserProcessingResults. + /// + /// The . + public IWorkflowUserProcessingResultsCollectionRequestBuilder UserProcessingResults + { + get + { + return new WorkflowUserProcessingResultsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("userProcessingResults"), this.Client); + } + } + + /// + /// Gets the request builder for Versions. + /// + /// The . + public IWorkflowVersionsCollectionRequestBuilder Versions + { + get + { + return new WorkflowVersionsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("versions"), this.Client); + } + } + + /// + /// Gets the request builder for WorkflowActivate. + /// + /// The . + public IWorkflowActivateRequestBuilder Activate( + IEnumerable subjects = null) + { + return new WorkflowActivateRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.activate"), + this.Client, + subjects); + } + + /// + /// Gets the request builder for WorkflowCreateNewVersion. + /// + /// The . + public IWorkflowCreateNewVersionRequestBuilder CreateNewVersion( + Workflow workflow = null) + { + return new WorkflowCreateNewVersionRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.createNewVersion"), + this.Client, + workflow); + } + + /// + /// Gets the request builder for WorkflowRestore. + /// + /// The . + public IWorkflowRestoreRequestBuilder Restore() + { + return new WorkflowRestoreRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.restore"), + this.Client); + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRestoreRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRestoreRequest.cs new file mode 100644 index 00000000000..208c39ef0f8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRestoreRequest.cs @@ -0,0 +1,81 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + + /// + /// The type WorkflowRestoreRequest. + /// + public partial class WorkflowRestoreRequest : Microsoft.Graph.BaseRequest, IWorkflowRestoreRequest + { + /// + /// Constructs a new WorkflowRestoreRequest. + /// + public WorkflowRestoreRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Issues the POST request. + /// + /// The for the request. + /// The task to await for async call. + public System.Threading.Tasks.Task PostAsync( + CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsync(null, cancellationToken); + } + + /// + /// Issues the POST request and returns a object. + /// + /// The for the request. + /// The object of the request + public System.Threading.Tasks.Task> PostResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowRestoreRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowRestoreRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRestoreRequestBuilder.cs new file mode 100644 index 00000000000..2c5cd94daa5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRestoreRequestBuilder.cs @@ -0,0 +1,46 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowRestoreRequestBuilder. + /// + public partial class WorkflowRestoreRequestBuilder : Microsoft.Graph.BaseActionMethodRequestBuilder, IWorkflowRestoreRequestBuilder + { + /// + /// Constructs a new . + /// + /// The URL for the request. + /// The for handling requests. + public WorkflowRestoreRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// A method used by the base class to construct a request class instance. + /// + /// The request URL to + /// The query and header options for the request. + /// An instance of a specific request class. + protected override IWorkflowRestoreRequest CreateRequest(string functionUrl, IEnumerable options) + { + var request = new WorkflowRestoreRequest(functionUrl, this.Client, options); + + return request; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionPage.cs new file mode 100644 index 00000000000..a9a7f6a84d9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowRunsCollectionPage. + /// + public partial class WorkflowRunsCollectionPage : Microsoft.Graph.CollectionPage, IWorkflowRunsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowRunsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowRunsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionRequest.cs new file mode 100644 index 00000000000..b09d29969c8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowRunsCollectionRequest. + /// + public partial class WorkflowRunsCollectionRequest : Microsoft.Graph.BaseRequest, IWorkflowRunsCollectionRequest + { + /// + /// Constructs a new WorkflowRunsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowRunsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified Run to the collection via POST. + /// + /// The Run to add. + /// The for the request. + /// The created Run. + public System.Threading.Tasks.Task AddAsync(Run run, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(run, cancellationToken); + } + + /// + /// Adds the specified Run to the collection via POST and returns a object of the request. + /// + /// The Run to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(Run run, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(run, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowRunsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowRunsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..f5470827166 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionRequestBuilder.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowRunsCollectionRequestBuilder. + /// + public partial class WorkflowRunsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowRunsCollectionRequestBuilder + { + /// + /// Constructs a new WorkflowRunsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowRunsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowRunsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowRunsCollectionRequest Request(IEnumerable options) + { + return new WorkflowRunsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowRun. + /// + /// The ID for the WorkflowRun. + /// The . + public IRunRequestBuilder this[string id] + { + get + { + return new RunRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + /// + /// Gets the request builder for RunSummary. + /// + /// The . + public IRunSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + { + return new RunSummaryRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.summary"), + this.Client, + startDateTime, + endDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionResponse.cs new file mode 100644 index 00000000000..2f7ce07bdc4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowRunsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowRunsCollectionResponse. + /// + public class WorkflowRunsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowRunsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionPage.cs new file mode 100644 index 00000000000..8ba1898d313 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowTaskReportsCollectionPage. + /// + public partial class WorkflowTaskReportsCollectionPage : Microsoft.Graph.CollectionPage, IWorkflowTaskReportsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowTaskReportsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowTaskReportsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionRequest.cs new file mode 100644 index 00000000000..6aba3de558d --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowTaskReportsCollectionRequest. + /// + public partial class WorkflowTaskReportsCollectionRequest : Microsoft.Graph.BaseRequest, IWorkflowTaskReportsCollectionRequest + { + /// + /// Constructs a new WorkflowTaskReportsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowTaskReportsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskReport to the collection via POST. + /// + /// The TaskReport to add. + /// The for the request. + /// The created TaskReport. + public System.Threading.Tasks.Task AddAsync(TaskReport taskReport, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(taskReport, cancellationToken); + } + + /// + /// Adds the specified TaskReport to the collection via POST and returns a object of the request. + /// + /// The TaskReport to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskReport taskReport, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(taskReport, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowTaskReportsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..e5ad8a38ff3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionRequestBuilder.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowTaskReportsCollectionRequestBuilder. + /// + public partial class WorkflowTaskReportsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowTaskReportsCollectionRequestBuilder + { + /// + /// Constructs a new WorkflowTaskReportsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowTaskReportsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowTaskReportsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowTaskReportsCollectionRequest Request(IEnumerable options) + { + return new WorkflowTaskReportsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowTaskReport. + /// + /// The ID for the WorkflowTaskReport. + /// The . + public ITaskReportRequestBuilder this[string id] + { + get + { + return new TaskReportRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + /// + /// Gets the request builder for TaskReportSummary. + /// + /// The . + public ITaskReportSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + { + return new TaskReportSummaryRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.summary"), + this.Client, + startDateTime, + endDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionResponse.cs new file mode 100644 index 00000000000..498b843ce96 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTaskReportsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowTaskReportsCollectionResponse. + /// + public class WorkflowTaskReportsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowTaskReportsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateRequest.cs new file mode 100644 index 00000000000..1bbf742268b --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateRequest.cs @@ -0,0 +1,261 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowTemplateRequest. + /// + public partial class WorkflowTemplateRequest : Microsoft.Graph.BaseRequest, IWorkflowTemplateRequest + { + /// + /// Constructs a new WorkflowTemplateRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowTemplateRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified WorkflowTemplate using POST. + /// + /// The WorkflowTemplate to create. + /// The for the request. + /// The created WorkflowTemplate. + public async System.Threading.Tasks.Task CreateAsync(WorkflowTemplate workflowTemplateToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(workflowTemplateToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified WorkflowTemplate using POST and returns a object. + /// + /// The WorkflowTemplate to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(WorkflowTemplate workflowTemplateToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowTemplateToCreate, cancellationToken); + } + + /// + /// Deletes the specified WorkflowTemplate. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified WorkflowTemplate and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified WorkflowTemplate. + /// + /// The for the request. + /// The WorkflowTemplate. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified WorkflowTemplate and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified WorkflowTemplate using PATCH. + /// + /// The WorkflowTemplate to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated WorkflowTemplate. + public async System.Threading.Tasks.Task UpdateAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(workflowTemplateToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified WorkflowTemplate using PATCH and returns a object. + /// + /// The WorkflowTemplate to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(workflowTemplateToUpdate, cancellationToken); + } + + /// + /// Updates the specified WorkflowTemplate using PUT. + /// + /// The WorkflowTemplate object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(workflowTemplateToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified WorkflowTemplate using PUT and returns a object. + /// + /// The WorkflowTemplate object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(WorkflowTemplate workflowTemplateToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(workflowTemplateToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowTemplateRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowTemplateRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowTemplateRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowTemplateRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(WorkflowTemplate workflowTemplateToInitialize) + { + + if (workflowTemplateToInitialize != null) + { + if (workflowTemplateToInitialize.Tasks != null && workflowTemplateToInitialize.Tasks.CurrentPage != null) + { + workflowTemplateToInitialize.Tasks.InitializeNextPageRequest(this.Client, workflowTemplateToInitialize.TasksNextLink); + // Copy the additional data collection to the page itself so that information is not lost + workflowTemplateToInitialize.Tasks.AdditionalData = workflowTemplateToInitialize.AdditionalData; + } + + } + + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateRequestBuilder.cs new file mode 100644 index 00000000000..b0cee4d27f6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateRequestBuilder.cs @@ -0,0 +1,66 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowTemplateRequestBuilder. + /// + public partial class WorkflowTemplateRequestBuilder : Microsoft.Graph.EntityRequestBuilder, IWorkflowTemplateRequestBuilder + { + + /// + /// Constructs a new WorkflowTemplateRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowTemplateRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new IWorkflowTemplateRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new IWorkflowTemplateRequest Request(IEnumerable options) + { + return new WorkflowTemplateRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for Tasks. + /// + /// The . + public IWorkflowTemplateTasksCollectionRequestBuilder Tasks + { + get + { + return new WorkflowTemplateTasksCollectionRequestBuilder(this.AppendSegmentToRequestUrl("tasks"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionPage.cs new file mode 100644 index 00000000000..f2dd5524ef0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowTemplateTasksCollectionPage. + /// + public partial class WorkflowTemplateTasksCollectionPage : Microsoft.Graph.CollectionPage, IWorkflowTemplateTasksCollectionPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowTemplateTasksCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowTemplateTasksCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionRequest.cs new file mode 100644 index 00000000000..ef316df7d8a --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowTemplateTasksCollectionRequest. + /// + public partial class WorkflowTemplateTasksCollectionRequest : Microsoft.Graph.BaseRequest, IWorkflowTemplateTasksCollectionRequest + { + /// + /// Constructs a new WorkflowTemplateTasksCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowTemplateTasksCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified TaskObject to the collection via POST. + /// + /// The TaskObject to add. + /// The for the request. + /// The created TaskObject. + public System.Threading.Tasks.Task AddAsync(TaskObject task, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(task, cancellationToken); + } + + /// + /// Adds the specified TaskObject to the collection via POST and returns a object of the request. + /// + /// The TaskObject to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(TaskObject task, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(task, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowTemplateTasksCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionRequestBuilder.cs new file mode 100644 index 00000000000..7dfd4735077 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowTemplateTasksCollectionRequestBuilder. + /// + public partial class WorkflowTemplateTasksCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowTemplateTasksCollectionRequestBuilder + { + /// + /// Constructs a new WorkflowTemplateTasksCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowTemplateTasksCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowTemplateTasksCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowTemplateTasksCollectionRequest Request(IEnumerable options) + { + return new WorkflowTemplateTasksCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowTemplateTask. + /// + /// The ID for the WorkflowTemplateTask. + /// The . + public ITaskRequestBuilder this[string id] + { + get + { + return new TaskRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionResponse.cs new file mode 100644 index 00000000000..47bb2b6cc33 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowTemplateTasksCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowTemplateTasksCollectionResponse. + /// + public class WorkflowTemplateTasksCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowTemplateTasksCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionPage.cs new file mode 100644 index 00000000000..498d85e3516 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowUserProcessingResultsCollectionPage. + /// + public partial class WorkflowUserProcessingResultsCollectionPage : Microsoft.Graph.CollectionPage, IWorkflowUserProcessingResultsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowUserProcessingResultsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowUserProcessingResultsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionRequest.cs new file mode 100644 index 00000000000..50735927ca3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowUserProcessingResultsCollectionRequest. + /// + public partial class WorkflowUserProcessingResultsCollectionRequest : Microsoft.Graph.BaseRequest, IWorkflowUserProcessingResultsCollectionRequest + { + /// + /// Constructs a new WorkflowUserProcessingResultsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowUserProcessingResultsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified UserProcessingResult to the collection via POST. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The created UserProcessingResult. + public System.Threading.Tasks.Task AddAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(userProcessingResult, cancellationToken); + } + + /// + /// Adds the specified UserProcessingResult to the collection via POST and returns a object of the request. + /// + /// The UserProcessingResult to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(UserProcessingResult userProcessingResult, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(userProcessingResult, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowUserProcessingResultsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..81f78b8a487 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionRequestBuilder.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowUserProcessingResultsCollectionRequestBuilder. + /// + public partial class WorkflowUserProcessingResultsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowUserProcessingResultsCollectionRequestBuilder + { + /// + /// Constructs a new WorkflowUserProcessingResultsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowUserProcessingResultsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowUserProcessingResultsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowUserProcessingResultsCollectionRequest Request(IEnumerable options) + { + return new WorkflowUserProcessingResultsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowUserProcessingResult. + /// + /// The ID for the WorkflowUserProcessingResult. + /// The . + public IUserProcessingResultRequestBuilder this[string id] + { + get + { + return new UserProcessingResultRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + /// + /// Gets the request builder for UserProcessingResultSummary. + /// + /// The . + public IUserProcessingResultSummaryRequestBuilder Summary( + DateTimeOffset startDateTime, + DateTimeOffset endDateTime) + { + return new UserProcessingResultSummaryRequestBuilder( + this.AppendSegmentToRequestUrl("microsoft.graph.identityGovernance.summary"), + this.Client, + startDateTime, + endDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionResponse.cs new file mode 100644 index 00000000000..995fb11466e --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowUserProcessingResultsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowUserProcessingResultsCollectionResponse. + /// + public class WorkflowUserProcessingResultsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowUserProcessingResultsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionRequest.cs new file mode 100644 index 00000000000..19ac3156819 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionRequest.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowVersionRequest. + /// + public partial class WorkflowVersionRequest : Microsoft.Graph.BaseRequest, IWorkflowVersionRequest + { + /// + /// Constructs a new WorkflowVersionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowVersionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Creates the specified WorkflowVersion using POST. + /// + /// The WorkflowVersion to create. + /// The for the request. + /// The created WorkflowVersion. + public async System.Threading.Tasks.Task CreateAsync(WorkflowVersion workflowVersionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(workflowVersionToCreate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(newEntity); + return newEntity; + } + + /// + /// Creates the specified WorkflowVersion using POST and returns a object. + /// + /// The WorkflowVersion to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(WorkflowVersion workflowVersionToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowVersionToCreate, cancellationToken); + } + + /// + /// Deletes the specified WorkflowVersion. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified WorkflowVersion and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Gets the specified WorkflowVersion. + /// + /// The for the request. + /// The WorkflowVersion. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(retrievedEntity); + return retrievedEntity; + } + + /// + /// Gets the specified WorkflowVersion and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Updates the specified WorkflowVersion using PATCH. + /// + /// The WorkflowVersion to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated WorkflowVersion. + public async System.Threading.Tasks.Task UpdateAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(workflowVersionToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified WorkflowVersion using PATCH and returns a object. + /// + /// The WorkflowVersion to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(workflowVersionToUpdate, cancellationToken); + } + + /// + /// Updates the specified WorkflowVersion using PUT. + /// + /// The WorkflowVersion object to update. + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task PutAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + var updatedEntity = await this.SendAsync(workflowVersionToUpdate, cancellationToken).ConfigureAwait(false); + this.InitializeCollectionProperties(updatedEntity); + return updatedEntity; + } + + /// + /// Updates the specified WorkflowVersion using PUT and returns a object. + /// + /// The WorkflowVersion object to update. + /// The for the request. + /// The task to await of . + public System.Threading.Tasks.Task> PutResponseAsync(WorkflowVersion workflowVersionToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PUT; + return this.SendAsyncWithGraphResponse(workflowVersionToUpdate, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowVersionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowVersionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowVersionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowVersionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Initializes any collection properties after deserialization, like next requests for paging. + /// + /// The with the collection properties to initialize. + private void InitializeCollectionProperties(WorkflowVersion workflowVersionToInitialize) + { + + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionRequestBuilder.cs new file mode 100644 index 00000000000..f9171311ff5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionRequestBuilder.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + + /// + /// The type WorkflowVersionRequestBuilder. + /// + public partial class WorkflowVersionRequestBuilder : WorkflowBaseRequestBuilder, IWorkflowVersionRequestBuilder + { + + /// + /// Constructs a new WorkflowVersionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowVersionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public new IWorkflowVersionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public new IWorkflowVersionRequest Request(IEnumerable options) + { + return new WorkflowVersionRequest(this.RequestUrl, this.Client, options); + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionPage.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionPage.cs new file mode 100644 index 00000000000..081da9d8fe7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + + /// + /// The type WorkflowVersionsCollectionPage. + /// + public partial class WorkflowVersionsCollectionPage : Microsoft.Graph.CollectionPage, IWorkflowVersionsCollectionPage + { + /// + /// Gets the next page instance. + /// + public IWorkflowVersionsCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(Microsoft.Graph.IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new WorkflowVersionsCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionRequest.cs new file mode 100644 index 00000000000..56f4f4244f6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowVersionsCollectionRequest. + /// + public partial class WorkflowVersionsCollectionRequest : Microsoft.Graph.BaseRequest, IWorkflowVersionsCollectionRequest + { + /// + /// Constructs a new WorkflowVersionsCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowVersionsCollectionRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + /// + /// Adds the specified WorkflowVersion to the collection via POST. + /// + /// The WorkflowVersion to add. + /// The for the request. + /// The created WorkflowVersion. + public System.Threading.Tasks.Task AddAsync(WorkflowVersion workflowVersion, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsync(workflowVersion, cancellationToken); + } + + /// + /// Adds the specified WorkflowVersion to the collection via POST and returns a object of the request. + /// + /// The WorkflowVersion to add. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> AddResponseAsync(WorkflowVersion workflowVersion, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowVersion, cancellationToken); + } + + + /// + /// Gets the collection page. + /// + /// The for the request. + /// The collection page. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + if (response?.Value?.CurrentPage != null) + { + response.Value.InitializeNextPageRequest(this.Client, response.NextLink); + // Copy the additional data collection to the page itself so that information is not lost + response.Value.AdditionalData = response.AdditionalData; + return response.Value; + } + + return null; + } + + /// + /// Gets the collection page and returns a object. + /// + /// The for the request. + /// The object. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + /// + /// Adds the specified top value to the request. + /// + /// The top value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Top(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$top", value.ToString())); + return this; + } + + /// + /// Adds the specified filter value to the request. + /// + /// The filter value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Filter(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$filter", value)); + return this; + } + + /// + /// Adds the specified skip value to the request. + /// + /// The skip value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest Skip(int value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$skip", value.ToString())); + return this; + } + + /// + /// Adds the specified orderby value to the request. + /// + /// The orderby value. + /// The request object to send. + public IWorkflowVersionsCollectionRequest OrderBy(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$orderby", value)); + return this; + } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionRequestBuilder.cs new file mode 100644 index 00000000000..d91f984d9f8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequestBuilder.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowVersionsCollectionRequestBuilder. + /// + public partial class WorkflowVersionsCollectionRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowVersionsCollectionRequestBuilder + { + /// + /// Constructs a new WorkflowVersionsCollectionRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowVersionsCollectionRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowVersionsCollectionRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowVersionsCollectionRequest Request(IEnumerable options) + { + return new WorkflowVersionsCollectionRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets an for the specified WorkflowWorkflowVersion. + /// + /// The ID for the WorkflowWorkflowVersion. + /// The . + public IWorkflowVersionRequestBuilder this[string id] + { + get + { + return new WorkflowVersionRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client); + } + } + + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionResponse.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionResponse.cs new file mode 100644 index 00000000000..89854213a55 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowVersionsCollectionResponse.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionResponse.cs.tt +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System.Collections.Generic; + using System.Text.Json.Serialization; + + /// + /// The type WorkflowVersionsCollectionResponse. + /// + public class WorkflowVersionsCollectionResponse + { + /// + /// Gets or sets the value. + /// + [JsonPropertyName("value")] + public IWorkflowVersionsCollectionPage Value { get; set; } + + /// + /// Gets or sets the nextLink string value. + /// + [JsonPropertyName("@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string NextLink { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowWithReferenceRequest.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowWithReferenceRequest.cs new file mode 100644 index 00000000000..c16468d3c40 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowWithReferenceRequest.cs @@ -0,0 +1,210 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequest.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type WorkflowWithReferenceRequest. + /// + public partial class WorkflowWithReferenceRequest : Microsoft.Graph.BaseRequest, IWorkflowWithReferenceRequest + { + /// + /// Constructs a new WorkflowWithReferenceRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public WorkflowWithReferenceRequest( + string requestUrl, + Microsoft.Graph.IBaseClient client, + IEnumerable options) + : base(requestUrl, client, options) + { + } + + /// + /// Gets the specified Workflow. + /// + /// The for the request. + /// The Workflow. + public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + return retrievedEntity; + } + + /// + /// Gets the specified Workflow and returns a object. + /// + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.GET; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Creates the specified Workflow using POST. + /// + /// The Workflow to create. + /// The for the request. + /// The created Workflow. + public async System.Threading.Tasks.Task CreateAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + var newEntity = await this.SendAsync(workflowToCreate, cancellationToken).ConfigureAwait(false); + return newEntity; + } + + /// + /// Creates the specified Workflow using POST and returns a object. + /// + /// The Workflow to create. + /// The for the request. + /// The object of the request. + public System.Threading.Tasks.Task> CreateResponseAsync(Workflow workflowToCreate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.POST; + return this.SendAsyncWithGraphResponse(workflowToCreate, cancellationToken); + } + + /// + /// Updates the specified Workflow using PATCH. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The updated Workflow. + public async System.Threading.Tasks.Task UpdateAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + var updatedEntity = await this.SendAsync(workflowToUpdate, cancellationToken).ConfigureAwait(false); + return updatedEntity; + } + + /// + /// Updates the specified Workflow using PATCH and returns a object. + /// + /// The Workflow to update. + /// The for the request. + /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph. + /// The object of the request. + public System.Threading.Tasks.Task> UpdateResponseAsync(Workflow workflowToUpdate, CancellationToken cancellationToken = default) + { + this.ContentType = CoreConstants.MimeTypeNames.Application.Json; + this.Method = HttpMethods.PATCH; + return this.SendAsyncWithGraphResponse(workflowToUpdate, cancellationToken); + } + + /// + /// Deletes the specified Workflow. + /// + /// The for the request. + /// The task to await. + public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + await this.SendAsync(null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Workflow and returns a object. + /// + /// The for the request. + /// The task of to await. + public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default) + { + this.Method = HttpMethods.DELETE; + return this.SendAsyncWithGraphResponse(null, cancellationToken); + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expand value. + /// The request object to send. + public IWorkflowWithReferenceRequest Expand(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + return this; + } + + /// + /// Adds the specified expand value to the request. + /// + /// The expression from which to calculate the expand value. + /// The request object to send. + public IWorkflowWithReferenceRequest Expand(Expression> expandExpression) + { + if (expandExpression == null) + { + throw new ArgumentNullException(nameof(expandExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(expandExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value)); + } + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The select value. + /// The request object to send. + public IWorkflowWithReferenceRequest Select(string value) + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + return this; + } + + /// + /// Adds the specified select value to the request. + /// + /// The expression from which to calculate the select value. + /// The request object to send. + public IWorkflowWithReferenceRequest Select(Expression> selectExpression) + { + if (selectExpression == null) + { + throw new ArgumentNullException(nameof(selectExpression)); + } + string error; + string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error); + if (value == null) + { + throw new ArgumentException(error, nameof(selectExpression)); + } + else + { + this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value)); + } + return this; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowWithReferenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowWithReferenceRequestBuilder.cs new file mode 100644 index 00000000000..a5ee9889c37 --- /dev/null +++ b/src/Microsoft.Graph/Generated/identitygovernancenamespace/requests/WorkflowWithReferenceRequestBuilder.cs @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityWithReferenceRequestBuilder.cs.tt + +namespace Microsoft.Graph.IdentityGovernanceNamespace +{ + using System; + using System.Collections.Generic; + + /// + /// The type WorkflowWithReferenceRequestBuilder. + /// + public partial class WorkflowWithReferenceRequestBuilder : Microsoft.Graph.BaseRequestBuilder, IWorkflowWithReferenceRequestBuilder + { + + /// + /// Constructs a new WorkflowWithReferenceRequestBuilder. + /// + /// The URL for the built request. + /// The for handling requests. + public WorkflowWithReferenceRequestBuilder( + string requestUrl, + Microsoft.Graph.IBaseClient client) + : base(requestUrl, client) + { + } + + /// + /// Builds the request. + /// + /// The built request. + public IWorkflowWithReferenceRequest Request() + { + return this.Request(null); + } + + /// + /// Builds the request. + /// + /// The query and header options for the request. + /// The built request. + public IWorkflowWithReferenceRequest Request(IEnumerable options) + { + return new WorkflowWithReferenceRequest(this.RequestUrl, this.Client, options); + } + + /// + /// Gets the request builder for the reference of the workflow. + /// + /// The . + public IWorkflowReferenceRequestBuilder Reference + { + get + { + return new WorkflowReferenceRequestBuilder(this.AppendSegmentToRequestUrl("$ref"), this.Client); + } + } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/AndroidDeviceOwnerEnrollmentProfile.cs b/src/Microsoft.Graph/Generated/model/AndroidDeviceOwnerEnrollmentProfile.cs index 679673b39fe..ebafebd37ed 100644 --- a/src/Microsoft.Graph/Generated/model/AndroidDeviceOwnerEnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/model/AndroidDeviceOwnerEnrollmentProfile.cs @@ -28,6 +28,13 @@ public partial class AndroidDeviceOwnerEnrollmentProfile : Entity [JsonPropertyName("accountId")] public string AccountId { get; set; } + /// + /// Gets or sets configure wifi. + /// Boolean that indicates that the Wi-Fi network should be configured during device provisioning. When set to TRUE, device provisioning will use Wi-Fi related properties to automatically connect to Wi-Fi networks. When set to FALSE or undefined, other Wi-Fi related properties will be ignored. Default value is TRUE. Returned by default. + /// + [JsonPropertyName("configureWifi")] + public bool? ConfigureWifi { get; set; } + /// /// Gets or sets created date time. /// Date time the enrollment profile was created. diff --git a/src/Microsoft.Graph/Generated/model/Application.cs b/src/Microsoft.Graph/Generated/model/Application.cs index 6f51631966b..541b323f484 100644 --- a/src/Microsoft.Graph/Generated/model/Application.cs +++ b/src/Microsoft.Graph/Generated/model/Application.cs @@ -184,6 +184,7 @@ public Application() /// /// Gets or sets request signature verification. + /// Specifies whether this application requires Azure AD to verify the signed authentication requests. /// [JsonPropertyName("requestSignatureVerification")] public RequestSignatureVerification RequestSignatureVerification { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/AuditActor.cs b/src/Microsoft.Graph/Generated/model/AuditActor.cs index eb63dd7c0e1..219c7a98da3 100644 --- a/src/Microsoft.Graph/Generated/model/AuditActor.cs +++ b/src/Microsoft.Graph/Generated/model/AuditActor.cs @@ -35,6 +35,13 @@ public partial class AuditActor [JsonPropertyName("applicationId")] public string ApplicationId { get; set; } + /// + /// Gets or sets auditActorType. + /// Actor Type. + /// + [JsonPropertyName("auditActorType")] + public string AuditActorType { get; set; } + /// /// Gets or sets ipAddress. /// IPAddress. diff --git a/src/Microsoft.Graph/Generated/model/AuditResource.cs b/src/Microsoft.Graph/Generated/model/AuditResource.cs index 17bb266041f..d72ef3057cd 100644 --- a/src/Microsoft.Graph/Generated/model/AuditResource.cs +++ b/src/Microsoft.Graph/Generated/model/AuditResource.cs @@ -21,6 +21,13 @@ namespace Microsoft.Graph public partial class AuditResource { + /// + /// Gets or sets auditResourceType. + /// Audit resource's type. + /// + [JsonPropertyName("auditResourceType")] + public string AuditResourceType { get; set; } + /// /// Gets or sets displayName. /// Display name. diff --git a/src/Microsoft.Graph/Generated/model/AutoRestartNotificationDismissalMethod.cs b/src/Microsoft.Graph/Generated/model/AutoRestartNotificationDismissalMethod.cs index e59604f9827..521593b83de 100644 --- a/src/Microsoft.Graph/Generated/model/AutoRestartNotificationDismissalMethod.cs +++ b/src/Microsoft.Graph/Generated/model/AutoRestartNotificationDismissalMethod.cs @@ -34,5 +34,10 @@ public enum AutoRestartNotificationDismissalMethod /// User = 2, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 3, + } } diff --git a/src/Microsoft.Graph/Generated/model/CertificateConnectorDetails.cs b/src/Microsoft.Graph/Generated/model/CertificateConnectorDetails.cs index 1897817a737..c7d2d33e3c7 100644 --- a/src/Microsoft.Graph/Generated/model/CertificateConnectorDetails.cs +++ b/src/Microsoft.Graph/Generated/model/CertificateConnectorDetails.cs @@ -27,6 +27,13 @@ public partial class CertificateConnectorDetails : Entity [JsonPropertyName("connectorName")] public string ConnectorName { get; set; } + /// + /// Gets or sets connector version. + /// Version of the connector installed. + /// + [JsonPropertyName("connectorVersion")] + public string ConnectorVersion { get; set; } + /// /// Gets or sets enrollment date time. /// Date/time when this connector was enrolled. diff --git a/src/Microsoft.Graph/Generated/model/ComanagementEligibleDevice.cs b/src/Microsoft.Graph/Generated/model/ComanagementEligibleDevice.cs index 0208a10003a..dd6798ba62e 100644 --- a/src/Microsoft.Graph/Generated/model/ComanagementEligibleDevice.cs +++ b/src/Microsoft.Graph/Generated/model/ComanagementEligibleDevice.cs @@ -121,7 +121,7 @@ public partial class ComanagementEligibleDevice : Entity /// /// Gets or sets status. - /// ComanagementEligibleStatus. Possible values are: comanaged, eligible, eligibleButNotAzureAdJoined, needsOsUpdate, ineligible. + /// ComanagementEligibleStatus. Possible values are: comanaged, eligible, eligibleButNotAzureAdJoined, needsOsUpdate, ineligible, scheduledForEnrollment. /// [JsonPropertyName("status")] public ComanagementEligibleType? Status { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/ComanagementEligibleType.cs b/src/Microsoft.Graph/Generated/model/ComanagementEligibleType.cs index 1f34cdabd4f..35790116c0b 100644 --- a/src/Microsoft.Graph/Generated/model/ComanagementEligibleType.cs +++ b/src/Microsoft.Graph/Generated/model/ComanagementEligibleType.cs @@ -44,5 +44,10 @@ public enum ComanagementEligibleType /// Ineligible = 5, + /// + /// Scheduled For Enrollment + /// + ScheduledForEnrollment = 6, + } } diff --git a/src/Microsoft.Graph/Generated/model/ConfigurationManagerClientInformation.cs b/src/Microsoft.Graph/Generated/model/ConfigurationManagerClientInformation.cs index 12932dd12ec..61fd67ac0cd 100644 --- a/src/Microsoft.Graph/Generated/model/ConfigurationManagerClientInformation.cs +++ b/src/Microsoft.Graph/Generated/model/ConfigurationManagerClientInformation.cs @@ -28,6 +28,13 @@ public partial class ConfigurationManagerClientInformation [JsonPropertyName("clientIdentifier")] public string ClientIdentifier { get; set; } + /// + /// Gets or sets clientVersion. + /// Configuration Manager Client version from SCCM + /// + [JsonPropertyName("clientVersion")] + public string ClientVersion { get; set; } + /// /// Gets or sets isBlocked. /// Configuration Manager Client blocked status from SCCM diff --git a/src/Microsoft.Graph/Generated/model/CorsConfiguration.cs b/src/Microsoft.Graph/Generated/model/CorsConfiguration.cs index d3850e40f9f..9c7bc1f802a 100644 --- a/src/Microsoft.Graph/Generated/model/CorsConfiguration.cs +++ b/src/Microsoft.Graph/Generated/model/CorsConfiguration.cs @@ -23,30 +23,35 @@ public partial class CorsConfiguration /// /// Gets or sets allowedHeaders. + /// The request headers that the origin domain may specify on the CORS request. The wildcard character * indicates that any header beginning with the specified prefix is allowed. /// [JsonPropertyName("allowedHeaders")] public IEnumerable AllowedHeaders { get; set; } /// /// Gets or sets allowedMethods. + /// The HTTP request methods that the origin domain may use for a CORS request. /// [JsonPropertyName("allowedMethods")] public IEnumerable AllowedMethods { get; set; } /// /// Gets or sets allowedOrigins. + /// The origin domains that are permitted to make a request against the service via CORS. The origin domain is the domain from which the request originates. The origin must be an exact case-sensitive match with the origin that the user age sends to the service. /// [JsonPropertyName("allowedOrigins")] public IEnumerable AllowedOrigins { get; set; } /// /// Gets or sets maxAgeInSeconds. + /// The maximum amount of time that a browser should cache the response to the preflight OPTIONS request. /// [JsonPropertyName("maxAgeInSeconds")] public Int32? MaxAgeInSeconds { get; set; } /// /// Gets or sets resource. + /// Resource within the application segment for which CORS permissions are granted. / grants permission for whole app segment. /// [JsonPropertyName("resource")] public string Resource { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/CreateRemoteHelpSessionResponse.cs b/src/Microsoft.Graph/Generated/model/CreateRemoteHelpSessionResponse.cs new file mode 100644 index 00000000000..332749e13d4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/CreateRemoteHelpSessionResponse.cs @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Create Remote Help Session Response. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class CreateRemoteHelpSessionResponse + { + + /// + /// Gets or sets session key. + /// The unique identifier for a session + /// + [JsonPropertyName("sessionKey")] + public string SessionKey { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/model/DataProcessorServiceForWindowsFeaturesOnboarding.cs b/src/Microsoft.Graph/Generated/model/DataProcessorServiceForWindowsFeaturesOnboarding.cs new file mode 100644 index 00000000000..546c7b610cb --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/DataProcessorServiceForWindowsFeaturesOnboarding.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type DataProcessorServiceForWindowsFeaturesOnboarding. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class DataProcessorServiceForWindowsFeaturesOnboarding + { + + /// + /// Gets or sets areDataProcessorServiceForWindowsFeaturesEnabled. + /// Indicates whether the tenant has enabled MEM features utilizing Data Processor Service for Windows (DPSW) data. When TRUE, the tenant has enabled MEM features utilizing Data Processor Service for Windows (DPSW) data. When FALSE, the tenant has not enabled MEM features utilizing Data Processor Service for Windows (DPSW) data. Default value is FALSE. + /// + [JsonPropertyName("areDataProcessorServiceForWindowsFeaturesEnabled")] + public bool? AreDataProcessorServiceForWindowsFeaturesEnabled { get; set; } + + /// + /// Gets or sets hasValidWindowsLicense. + /// Indicates whether the tenant has required Windows license. When TRUE, the tenant has the required Windows license. When FALSE, the tenant does not have the required Windows license. Default value is FALSE. + /// + [JsonPropertyName("hasValidWindowsLicense")] + public bool? HasValidWindowsLicense { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/DeletedItemContainer.cs b/src/Microsoft.Graph/Generated/model/DeletedItemContainer.cs new file mode 100644 index 00000000000..fbfd209d888 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/DeletedItemContainer.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Deleted Item Container. + /// + public partial class DeletedItemContainer : Entity + { + + /// + /// Gets or sets workflows. + /// + [JsonPropertyName("workflows")] + public IDeletedItemContainerWorkflowsCollectionPage Workflows { get; set; } + + /// + /// Gets or sets workflowsNextLink. + /// + [JsonPropertyName("workflows@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string WorkflowsNextLink { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/model/DepMacOSEnrollmentProfile.cs b/src/Microsoft.Graph/Generated/model/DepMacOSEnrollmentProfile.cs index 2d484367c89..4f20268573c 100644 --- a/src/Microsoft.Graph/Generated/model/DepMacOSEnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/model/DepMacOSEnrollmentProfile.cs @@ -49,6 +49,20 @@ public DepMacOSEnrollmentProfile() [JsonPropertyName("chooseYourLockScreenDisabled")] public bool? ChooseYourLockScreenDisabled { get; set; } + /// + /// Gets or sets dont auto populate primary account info. + /// Indicates whether Setup Assistant will auto populate the primary account information + /// + [JsonPropertyName("dontAutoPopulatePrimaryAccountInfo")] + public bool? DontAutoPopulatePrimaryAccountInfo { get; set; } + + /// + /// Gets or sets enable restrict editing. + /// Indicates whether the user will enable blockediting + /// + [JsonPropertyName("enableRestrictEditing")] + public bool? EnableRestrictEditing { get; set; } + /// /// Gets or sets file vault disabled. /// Indicates if file vault is disabled @@ -70,6 +84,34 @@ public DepMacOSEnrollmentProfile() [JsonPropertyName("iCloudStorageDisabled")] public bool? ICloudStorageDisabled { get; set; } + /// + /// Gets or sets is local primary account. + /// Indicates whether the profile is a local account + /// + [JsonPropertyName("isLocalPrimaryAccount")] + public bool? IsLocalPrimaryAccount { get; set; } + + /// + /// Gets or sets is primary user. + /// Indicates whether the profile is a primary user + /// + [JsonPropertyName("isPrimaryUser")] + public bool? IsPrimaryUser { get; set; } + + /// + /// Gets or sets lock primary account info. + /// Indicates whether the primary account information will be locked + /// + [JsonPropertyName("lockPrimaryAccountInfo")] + public bool? LockPrimaryAccountInfo { get; set; } + + /// + /// Gets or sets managed local user short name. + /// Indicates whether or not this is the short name of the local account to manage + /// + [JsonPropertyName("managedLocalUserShortName")] + public bool? ManagedLocalUserShortName { get; set; } + /// /// Gets or sets pass code disabled. /// Indicates if Passcode setup pane is disabled @@ -77,6 +119,41 @@ public DepMacOSEnrollmentProfile() [JsonPropertyName("passCodeDisabled")] public bool? PassCodeDisabled { get; set; } + /// + /// Gets or sets prefill account info. + /// Indicates whether the user will prefill their account info + /// + [JsonPropertyName("prefillAccountInfo")] + public bool? PrefillAccountInfo { get; set; } + + /// + /// Gets or sets primary account full name. + /// Indicates what the full name for the primary account is + /// + [JsonPropertyName("primaryAccountFullName")] + public string PrimaryAccountFullName { get; set; } + + /// + /// Gets or sets primary account user name. + /// Indicates what the account name for the primary account is + /// + [JsonPropertyName("primaryAccountUserName")] + public string PrimaryAccountUserName { get; set; } + + /// + /// Gets or sets primary user. + /// Indicates who the primary user of the profile is + /// + [JsonPropertyName("primaryUser")] + public string PrimaryUser { get; set; } + + /// + /// Gets or sets primary user full name. + /// Indicates who the primary user of the profile is + /// + [JsonPropertyName("primaryUserFullName")] + public string PrimaryUserFullName { get; set; } + /// /// Gets or sets registration disabled. /// Indicates if registration is disabled @@ -84,6 +161,27 @@ public DepMacOSEnrollmentProfile() [JsonPropertyName("registrationDisabled")] public bool? RegistrationDisabled { get; set; } + /// + /// Gets or sets request requires network tether. + /// Indicates if the device is network-tethered to run the command + /// + [JsonPropertyName("requestRequiresNetworkTether")] + public bool? RequestRequiresNetworkTether { get; set; } + + /// + /// Gets or sets set primary setup account as regular user. + /// Indicates whether Setup Assistant will set the account as a regular user + /// + [JsonPropertyName("setPrimarySetupAccountAsRegularUser")] + public bool? SetPrimarySetupAccountAsRegularUser { get; set; } + + /// + /// Gets or sets skip primary setup account creation. + /// Indicates whether Setup Assistant will skip the user interface for primary account setup + /// + [JsonPropertyName("skipPrimarySetupAccountCreation")] + public bool? SkipPrimarySetupAccountCreation { get; set; } + /// /// Gets or sets zoom disabled. /// Indicates if zoom setup pane is disabled diff --git a/src/Microsoft.Graph/Generated/model/DetectedApp.cs b/src/Microsoft.Graph/Generated/model/DetectedApp.cs index 16c8e270c1b..0d5a6a2e5da 100644 --- a/src/Microsoft.Graph/Generated/model/DetectedApp.cs +++ b/src/Microsoft.Graph/Generated/model/DetectedApp.cs @@ -17,6 +17,7 @@ namespace Microsoft.Graph /// /// The type Detected App. /// + [JsonConverter(typeof(DerivedTypeConverter))] public partial class DetectedApp : Entity { @@ -34,6 +35,20 @@ public partial class DetectedApp : Entity [JsonPropertyName("displayName")] public string DisplayName { get; set; } + /// + /// Gets or sets platform. + /// Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0). Possible values are: unknown, windows, windowsMobile, windowsHolographic, ios, macOS, chromeOS, androidOSP, androidDeviceAdministrator, androidWorkProfile, androidDedicatedAndFullyManaged. + /// + [JsonPropertyName("platform")] + public DetectedAppPlatformType? Platform { get; set; } + + /// + /// Gets or sets publisher. + /// Indicates the publisher of the discovered application. For example: 'Microsoft'. The default value is an empty string. + /// + [JsonPropertyName("publisher")] + public string Publisher { get; set; } + /// /// Gets or sets size in byte. /// Discovered application size in bytes. Read-only diff --git a/src/Microsoft.Graph/Generated/model/DetectedAppPlatformType.cs b/src/Microsoft.Graph/Generated/model/DetectedAppPlatformType.cs new file mode 100644 index 00000000000..e4111b927e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/DetectedAppPlatformType.cs @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph +{ + using System.Text.Json.Serialization; + + /// + /// The enum DetectedAppPlatformType. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum DetectedAppPlatformType + { + + /// + /// Unknown + /// + Unknown = 0, + + /// + /// Windows + /// + Windows = 1, + + /// + /// Windows Mobile + /// + WindowsMobile = 2, + + /// + /// Windows Holographic + /// + WindowsHolographic = 3, + + /// + /// Ios + /// + Ios = 4, + + /// + /// Mac OS + /// + MacOS = 5, + + /// + /// Chrome OS + /// + ChromeOS = 6, + + /// + /// Android OSP + /// + AndroidOSP = 7, + + /// + /// Android Device Administrator + /// + AndroidDeviceAdministrator = 8, + + /// + /// Android Work Profile + /// + AndroidWorkProfile = 9, + + /// + /// Android Dedicated And Fully Managed + /// + AndroidDedicatedAndFullyManaged = 10, + + } +} diff --git a/src/Microsoft.Graph/Generated/model/DeviceManagement.cs b/src/Microsoft.Graph/Generated/model/DeviceManagement.cs index 30dedd5b381..671a9fc9107 100644 --- a/src/Microsoft.Graph/Generated/model/DeviceManagement.cs +++ b/src/Microsoft.Graph/Generated/model/DeviceManagement.cs @@ -91,6 +91,13 @@ public partial class DeviceManagement : Entity [JsonPropertyName("adminConsent")] public AdminConsent AdminConsent { get; set; } + /// + /// Gets or sets data processor service for windows features onboarding. + /// A configuration entity for MEM features that utilize Data Processor Service for Windows (DPSW) data. + /// + [JsonPropertyName("dataProcessorServiceForWindowsFeaturesOnboarding")] + public DataProcessorServiceForWindowsFeaturesOnboarding DataProcessorServiceForWindowsFeaturesOnboarding { get; set; } + /// /// Gets or sets device protection overview. /// Device protection overview. diff --git a/src/Microsoft.Graph/Generated/model/DeviceManagementExportJob.cs b/src/Microsoft.Graph/Generated/model/DeviceManagementExportJob.cs index e19a645ee97..bc3198fb91b 100644 --- a/src/Microsoft.Graph/Generated/model/DeviceManagementExportJob.cs +++ b/src/Microsoft.Graph/Generated/model/DeviceManagementExportJob.cs @@ -37,7 +37,7 @@ public partial class DeviceManagementExportJob : Entity /// /// Gets or sets format. - /// Format of the exported report. Possible values are: csv, json. + /// Format of the exported report. Possible values are: csv, pdf, json, unknownFutureValue. /// [JsonPropertyName("format")] public DeviceManagementReportFileFormat? Format { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/DeviceManagementReportFileFormat.cs b/src/Microsoft.Graph/Generated/model/DeviceManagementReportFileFormat.cs index e48e961582b..8d8275d3b05 100644 --- a/src/Microsoft.Graph/Generated/model/DeviceManagementReportFileFormat.cs +++ b/src/Microsoft.Graph/Generated/model/DeviceManagementReportFileFormat.cs @@ -24,10 +24,20 @@ public enum DeviceManagementReportFileFormat /// Csv = 0, + /// + /// Pdf + /// + Pdf = 1, + /// /// Json /// - Json = 1, + Json = 2, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 3, } } diff --git a/src/Microsoft.Graph/Generated/model/DeviceManagementReportsGetZebraFotaDeploymentReportRequestBody.cs b/src/Microsoft.Graph/Generated/model/DeviceManagementReportsGetZebraFotaDeploymentReportRequestBody.cs index ca4e36a7ff6..810531ed285 100644 --- a/src/Microsoft.Graph/Generated/model/DeviceManagementReportsGetZebraFotaDeploymentReportRequestBody.cs +++ b/src/Microsoft.Graph/Generated/model/DeviceManagementReportsGetZebraFotaDeploymentReportRequestBody.cs @@ -66,7 +66,7 @@ public partial class DeviceManagementReportsGetZebraFotaDeploymentReportRequestB /// Gets or sets SessionId. /// [JsonPropertyName("sessionId")] - public Int32 SessionId { get; set; } + public string SessionId { get; set; } /// /// Gets or sets Filter. diff --git a/src/Microsoft.Graph/Generated/model/IdentityGovernance.cs b/src/Microsoft.Graph/Generated/model/IdentityGovernance.cs index 125f4f2986f..e2daa5c616c 100644 --- a/src/Microsoft.Graph/Generated/model/IdentityGovernance.cs +++ b/src/Microsoft.Graph/Generated/model/IdentityGovernance.cs @@ -21,6 +21,12 @@ namespace Microsoft.Graph public partial class IdentityGovernance { + /// + /// Gets or sets lifecycle workflows. + /// + [JsonPropertyName("lifecycleWorkflows")] + public Microsoft.Graph.IdentityGovernanceNamespace.LifecycleWorkflowsContainer LifecycleWorkflows { get; set; } + /// /// Gets or sets access reviews. /// diff --git a/src/Microsoft.Graph/Generated/model/ManagedDeviceCreateRemoteHelpSessionRequestBody.cs b/src/Microsoft.Graph/Generated/model/ManagedDeviceCreateRemoteHelpSessionRequestBody.cs new file mode 100644 index 00000000000..3a010eb2186 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/ManagedDeviceCreateRemoteHelpSessionRequestBody.cs @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBody.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type ManagedDeviceCreateRemoteHelpSessionRequestBody. + /// + public partial class ManagedDeviceCreateRemoteHelpSessionRequestBody + { + + /// + /// Gets or sets SessionType. + /// + [JsonPropertyName("sessionType")] + public string SessionType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/ManagedDeviceRequestRemoteHelpSessionAccessRequestBody.cs b/src/Microsoft.Graph/Generated/model/ManagedDeviceRequestRemoteHelpSessionAccessRequestBody.cs new file mode 100644 index 00000000000..0a1ce82e3c1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/ManagedDeviceRequestRemoteHelpSessionAccessRequestBody.cs @@ -0,0 +1,36 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: MethodRequestBody.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type ManagedDeviceRequestRemoteHelpSessionAccessRequestBody. + /// + public partial class ManagedDeviceRequestRemoteHelpSessionAccessRequestBody + { + + /// + /// Gets or sets SessionKey. + /// + [JsonPropertyName("sessionKey")] + public string SessionKey { get; set; } + + /// + /// Gets or sets PubSubConnectionId. + /// + [JsonPropertyName("pubSubConnectionId")] + public string PubSubConnectionId { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/MembershipOutlierInsight.cs b/src/Microsoft.Graph/Generated/model/MembershipOutlierInsight.cs index df655d651cc..2f8f6d766d5 100644 --- a/src/Microsoft.Graph/Generated/model/MembershipOutlierInsight.cs +++ b/src/Microsoft.Graph/Generated/model/MembershipOutlierInsight.cs @@ -31,36 +31,42 @@ public MembershipOutlierInsight() /// /// Gets or sets container id. + /// Indicates the identifier of the container, for example, a group ID. /// [JsonPropertyName("containerId")] public string ContainerId { get; set; } /// /// Gets or sets member id. + /// Indicates the identifier of the user. /// [JsonPropertyName("memberId")] public string MemberId { get; set; } /// /// Gets or sets outlier container type. + /// Indicates the type of container. The possible values are: group, unknownFutureValue. /// [JsonPropertyName("outlierContainerType")] public OutlierContainerType? OutlierContainerType { get; set; } /// /// Gets or sets outlier member type. + /// Indicates the type of outlier member. The possible values are: user, unknownFutureValue. /// [JsonPropertyName("outlierMemberType")] public OutlierMemberType? OutlierMemberType { get; set; } /// /// Gets or sets container. + /// Navigation link to the container directory object. For example, to a group. /// [JsonPropertyName("container")] public DirectoryObject Container { get; set; } /// /// Gets or sets member. + /// Navigation link to a member object. For example, to a user. /// [JsonPropertyName("member")] public DirectoryObject Member { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/MobileThreatDefenseConnector.cs b/src/Microsoft.Graph/Generated/model/MobileThreatDefenseConnector.cs index 8d4a9bfaeb6..6f40f9c8105 100644 --- a/src/Microsoft.Graph/Generated/model/MobileThreatDefenseConnector.cs +++ b/src/Microsoft.Graph/Generated/model/MobileThreatDefenseConnector.cs @@ -140,6 +140,13 @@ public partial class MobileThreatDefenseConnector : Entity [JsonPropertyName("windowsEnabled")] public bool? WindowsEnabled { get; set; } + /// + /// Gets or sets windows mobile application management enabled. + /// When TRUE, app protection policies using the Device Threat Level rule will evaluate devices including data from this connector for Windows. When FALSE, Intune will not use device risk details sent over this connector during app protection policies calculation for policies with a Device Threat Level configured. Existing devices that are not compliant due to risk levels obtained from this connector will also become compliant. + /// + [JsonPropertyName("windowsMobileApplicationManagementEnabled")] + public bool? WindowsMobileApplicationManagementEnabled { get; set; } + } } diff --git a/src/Microsoft.Graph/Generated/model/OnPremisesApplicationSegment.cs b/src/Microsoft.Graph/Generated/model/OnPremisesApplicationSegment.cs index 0a9554e8756..476ecfd248e 100644 --- a/src/Microsoft.Graph/Generated/model/OnPremisesApplicationSegment.cs +++ b/src/Microsoft.Graph/Generated/model/OnPremisesApplicationSegment.cs @@ -23,24 +23,28 @@ public partial class OnPremisesApplicationSegment /// /// Gets or sets alternateUrl. + /// If you're configuring a traffic manager in front of multiple App Proxy application segments, contains the user-friendly URL that will point to the traffic manager. /// [JsonPropertyName("alternateUrl")] public string AlternateUrl { get; set; } /// /// Gets or sets corsConfigurations. + /// CORS Rule definition for a particular application segment. /// [JsonPropertyName("corsConfigurations")] public IEnumerable CorsConfigurations { get; set; } /// /// Gets or sets externalUrl. + /// The published external URL for the application segment; for example, https://intranet.contoso.com./ /// [JsonPropertyName("externalUrl")] public string ExternalUrl { get; set; } /// /// Gets or sets internalUrl. + /// The internal URL of the application segment; for example, https://intranet/. /// [JsonPropertyName("internalUrl")] public string InternalUrl { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OnPremisesPublishing.cs b/src/Microsoft.Graph/Generated/model/OnPremisesPublishing.cs index 6d66e80e6b4..5d29d17ee55 100644 --- a/src/Microsoft.Graph/Generated/model/OnPremisesPublishing.cs +++ b/src/Microsoft.Graph/Generated/model/OnPremisesPublishing.cs @@ -121,6 +121,7 @@ public partial class OnPremisesPublishing /// /// Gets or sets onPremisesApplicationSegments. + /// Represents the application segment collection for an on-premises wildcard application. /// [JsonPropertyName("onPremisesApplicationSegments")] public IEnumerable OnPremisesApplicationSegments { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageDetail.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageDetail.cs index 010878dfaeb..958c17fcda3 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageDetail.cs @@ -44,7 +44,7 @@ public partial class OrganizationalMessageDetail : Entity /// /// Gets or sets frequency. - /// The frequency at which a client will see the message. Possible values are: weeklyOnce, monthlyOnce, monthlyTwice. + /// The frequency at which a client will see the message. Possible values are: weeklyOnce, monthlyOnce, monthlyTwice, unknownFutureValue. /// [JsonPropertyName("frequency")] public OrganizationalMessageFrequency? Frequency { get; set; } @@ -58,7 +58,7 @@ public partial class OrganizationalMessageDetail : Entity /// /// Gets or sets scenario. - /// Indicates the scenario for the message. Possible values are: onboarding, lifecycle. + /// Indicates the scenario for the message. Possible values are: onboarding, lifecycle, unknownFutureValue. /// [JsonPropertyName("scenario")] public OrganizationalMessageScenario? Scenario { get; set; } @@ -72,14 +72,14 @@ public partial class OrganizationalMessageDetail : Entity /// /// Gets or sets status. - /// Indicates the deployment status of the message. Possible values are: scheduled, active, completed, cancelled. + /// Indicates the deployment status of the message. Possible values are: scheduled, active, completed, cancelled, unknownFutureValue. /// [JsonPropertyName("status")] public OrganizationalMessageStatus? Status { get; set; } /// /// Gets or sets surface. - /// Indicates the area where content will be displayed to customers. Possible values are: actionCenter, getStarted, softLanding. + /// Indicates the area where content will be displayed to customers. Possible values are: actionCenter, getStarted, softLanding, unknownFutureValue. /// [JsonPropertyName("surface")] public OrganizationalMessageSurface? Surface { get; set; } @@ -93,7 +93,7 @@ public partial class OrganizationalMessageDetail : Entity /// /// Gets or sets theme. - /// Indicates the theme for the experience. Possible values are: update, training, welcomeToWindows. + /// Indicates the theme for the experience. Possible values are: update, training, welcomeToWindows, explore, unknownFutureValue. /// [JsonPropertyName("theme")] public OrganizationalMessageTheme? Theme { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageFrequency.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageFrequency.cs index 83bc3e65d1b..e224cf83f77 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageFrequency.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageFrequency.cs @@ -34,5 +34,10 @@ public enum OrganizationalMessageFrequency /// MonthlyTwice = 2, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 3, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageGuidedContent.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageGuidedContent.cs index ce4093d22ab..539b37b0d33 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageGuidedContent.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageGuidedContent.cs @@ -37,21 +37,21 @@ public partial class OrganizationalMessageGuidedContent : Entity /// /// Gets or sets scenario. - /// Indicates the scenario for the guided content. Possible values are: onboarding, lifecycle. + /// Indicates the scenario for the guided content. Possible values are: onboarding, lifecycle, unknownFutureValue. /// [JsonPropertyName("scenario")] public OrganizationalMessageScenario? Scenario { get; set; } /// /// Gets or sets surface. - /// Indicates the area where content will be displayed to customers. Possible values are: actionCenter, getStarted, softLanding. + /// Indicates the area where content will be displayed to customers. Possible values are: actionCenter, getStarted, softLanding, unknownFutureValue. /// [JsonPropertyName("surface")] public OrganizationalMessageSurface? Surface { get; set; } /// /// Gets or sets theme. - /// Indicates the theme for the guided content. Possible values are: update, training, welcomeToWindows. + /// Indicates the theme for the guided content. Possible values are: update, training, welcomeToWindows, explore, unknownFutureValue. /// [JsonPropertyName("theme")] public OrganizationalMessageTheme? Theme { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogo.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogo.cs index d4a812f94d4..771ef3a627e 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogo.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogo.cs @@ -23,7 +23,7 @@ public partial class OrganizationalMessageLogo /// /// Gets or sets contentType. - /// The content type of the logo that is contained in the logo array. This is null when logoCdnUrl is used to send the logo. Possible values are: png. + /// The content type of the logo that is contained in the logo array. This is null when logoCdnUrl is used to send the logo. Possible values are: png, unknownFutureValue. /// [JsonPropertyName("contentType")] public OrganizationalMessageLogoType? ContentType { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogoType.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogoType.cs index 55840bfdca0..a0ebb4da37b 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogoType.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageLogoType.cs @@ -24,5 +24,10 @@ public enum OrganizationalMessageLogoType /// Png = 0, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 1, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacement.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacement.cs index 39d1e918865..3c9754e534a 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacement.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacement.cs @@ -44,5 +44,10 @@ public enum OrganizationalMessagePlacement /// Card3 = 4, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 5, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacementDetail.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacementDetail.cs index 51d05639127..a193392c8cf 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacementDetail.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessagePlacementDetail.cs @@ -23,7 +23,7 @@ public partial class OrganizationalMessagePlacementDetail /// /// Gets or sets placement. - /// Indicates the name of the placement. Possible values are: default, card0, card1, card2, card3. + /// Indicates the name of the placement. Possible values are: default, card0, card1, card2, card3, unknownFutureValue. /// [JsonPropertyName("placement")] public OrganizationalMessagePlacement? Placement { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageScenario.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageScenario.cs index 56f730efea8..5993f0948dc 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageScenario.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageScenario.cs @@ -29,5 +29,10 @@ public enum OrganizationalMessageScenario /// Lifecycle = 1, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 2, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageStatus.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageStatus.cs index 9a948cc165b..7059e0fa647 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageStatus.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageStatus.cs @@ -39,5 +39,10 @@ public enum OrganizationalMessageStatus /// Cancelled = 3, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 4, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageSurface.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageSurface.cs index a2d2590fd38..01ffcd68b6a 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageSurface.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageSurface.cs @@ -34,5 +34,10 @@ public enum OrganizationalMessageSurface /// SoftLanding = 2, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 3, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargeting.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargeting.cs index 469f31c6420..cb62ed46bb8 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargeting.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargeting.cs @@ -37,7 +37,7 @@ public partial class OrganizationalMessageTargeting /// /// Gets or sets targetingType. - /// Indicates the type of targeting. Possible values are: aadGroup. + /// Indicates the type of targeting. Possible values are: aadGroup, unknownFutureValue. /// [JsonPropertyName("targetingType")] public OrganizationalMessageTargetingType? TargetingType { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargetingType.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargetingType.cs index def371dede3..8cf2558c6ad 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargetingType.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageTargetingType.cs @@ -24,5 +24,10 @@ public enum OrganizationalMessageTargetingType /// AadGroup = 0, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 1, + } } diff --git a/src/Microsoft.Graph/Generated/model/OrganizationalMessageTheme.cs b/src/Microsoft.Graph/Generated/model/OrganizationalMessageTheme.cs index 3473dfef13a..b907ae41f8d 100644 --- a/src/Microsoft.Graph/Generated/model/OrganizationalMessageTheme.cs +++ b/src/Microsoft.Graph/Generated/model/OrganizationalMessageTheme.cs @@ -34,5 +34,15 @@ public enum OrganizationalMessageTheme /// WelcomeToWindows = 2, + /// + /// Explore + /// + Explore = 3, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 4, + } } diff --git a/src/Microsoft.Graph/Generated/model/PrivilegedApproval.cs b/src/Microsoft.Graph/Generated/model/PrivilegedApproval.cs index d7f42cacabd..f32d91ef7b4 100644 --- a/src/Microsoft.Graph/Generated/model/PrivilegedApproval.cs +++ b/src/Microsoft.Graph/Generated/model/PrivilegedApproval.cs @@ -83,7 +83,7 @@ public partial class PrivilegedApproval : Entity /// Read-only. The role assignment request for this approval object /// [JsonPropertyName("request")] - public PrivilegedRoleAssignmentRequest Request { get; set; } + public PrivilegedRoleAssignmentRequestObject Request { get; set; } /// /// Gets or sets role info. diff --git a/src/Microsoft.Graph/Generated/model/RequestRemoteHelpSessionAccessResponse.cs b/src/Microsoft.Graph/Generated/model/RequestRemoteHelpSessionAccessResponse.cs new file mode 100644 index 00000000000..f3572feb092 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/RequestRemoteHelpSessionAccessResponse.cs @@ -0,0 +1,59 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Request Remote Help Session Access Response. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class RequestRemoteHelpSessionAccessResponse + { + + /// + /// Gets or sets pub sub encryption. + /// AES encryption Initialization Vector for encrypting client messages sent to PubSub + /// + [JsonPropertyName("pubSubEncryption")] + public string PubSubEncryption { get; set; } + + /// + /// Gets or sets pub sub encryption key. + /// The unique identifier for encrypting client messages sent to PubSub + /// + [JsonPropertyName("pubSubEncryptionKey")] + public string PubSubEncryptionKey { get; set; } + + /// + /// Gets or sets session key. + /// The unique identifier for a session + /// + [JsonPropertyName("sessionKey")] + public string SessionKey { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/model/RequestSignatureVerification.cs b/src/Microsoft.Graph/Generated/model/RequestSignatureVerification.cs index cd15297504f..9bd8175d227 100644 --- a/src/Microsoft.Graph/Generated/model/RequestSignatureVerification.cs +++ b/src/Microsoft.Graph/Generated/model/RequestSignatureVerification.cs @@ -23,12 +23,14 @@ public partial class RequestSignatureVerification /// /// Gets or sets allowedWeakAlgorithms. + /// Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue. /// [JsonPropertyName("allowedWeakAlgorithms")] public WeakAlgorithms? AllowedWeakAlgorithms { get; set; } /// /// Gets or sets isSignedRequestRequired. + /// Specifies whether signed authentication requests for this application should be required. /// [JsonPropertyName("isSignedRequestRequired")] public bool? IsSignedRequestRequired { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/RetrieveRemoteHelpSessionResponse.cs b/src/Microsoft.Graph/Generated/model/RetrieveRemoteHelpSessionResponse.cs new file mode 100644 index 00000000000..8a9cac948f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/RetrieveRemoteHelpSessionResponse.cs @@ -0,0 +1,101 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Retrieve Remote Help Session Response. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class RetrieveRemoteHelpSessionResponse + { + + /// + /// Gets or sets acs group id. + /// ACS Group Id + /// + [JsonPropertyName("acsGroupId")] + public string AcsGroupId { get; set; } + + /// + /// Gets or sets acs helper user id. + /// Helper ACS User Id + /// + [JsonPropertyName("acsHelperUserId")] + public string AcsHelperUserId { get; set; } + + /// + /// Gets or sets acs helper user token. + /// Helper ACS User Token + /// + [JsonPropertyName("acsHelperUserToken")] + public string AcsHelperUserToken { get; set; } + + /// + /// Gets or sets acs sharer user id. + /// Sharer ACS User Id + /// + [JsonPropertyName("acsSharerUserId")] + public string AcsSharerUserId { get; set; } + + /// + /// Gets or sets device name. + /// Android Device Name + /// + [JsonPropertyName("deviceName")] + public string DeviceName { get; set; } + + /// + /// Gets or sets pub sub group id. + /// Azure Pubsub Group Id + /// + [JsonPropertyName("pubSubGroupId")] + public string PubSubGroupId { get; set; } + + /// + /// Gets or sets pub sub helper access uri. + /// Azure Pubsub Group Id + /// + [JsonPropertyName("pubSubHelperAccessUri")] + public string PubSubHelperAccessUri { get; set; } + + /// + /// Gets or sets session expiration date time. + /// Azure Pubsub Session Expiration Date Time. + /// + [JsonPropertyName("sessionExpirationDateTime")] + public DateTimeOffset? SessionExpirationDateTime { get; set; } + + /// + /// Gets or sets session key. + /// The unique identifier for a session + /// + [JsonPropertyName("sessionKey")] + public string SessionKey { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/model/SubjectSet.cs b/src/Microsoft.Graph/Generated/model/SubjectSet.cs new file mode 100644 index 00000000000..91ec4b704b6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/SubjectSet.cs @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type SubjectSet. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class SubjectSet + { + + /// + /// The internal SubjectSet constructor + /// + protected internal SubjectSet() + { + // Don't allow initialization of abstract complex types + } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/UnifiedRoleAssignmentScheduleRequest.cs b/src/Microsoft.Graph/Generated/model/UnifiedRoleAssignmentScheduleRequest.cs index 5ee55c189ae..56a498ed521 100644 --- a/src/Microsoft.Graph/Generated/model/UnifiedRoleAssignmentScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/model/UnifiedRoleAssignmentScheduleRequest.cs @@ -57,7 +57,7 @@ public partial class UnifiedRoleAssignmentScheduleRequestObject : RequestObject /// /// Gets or sets principal id. - /// Identifier of the principal that has been granted the assignment. Supports $filter (eq, ne). + /// Identifier of the principal that has been granted the assignment. Can be a user, role-assignable group, or a service principal. Supports $filter (eq, ne). /// [JsonPropertyName("principalId")] public string PrincipalId { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/UnifiedRoleEligibilityScheduleRequest.cs b/src/Microsoft.Graph/Generated/model/UnifiedRoleEligibilityScheduleRequest.cs index c86940a0ff1..e5b04ec5df2 100644 --- a/src/Microsoft.Graph/Generated/model/UnifiedRoleEligibilityScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/model/UnifiedRoleEligibilityScheduleRequest.cs @@ -57,7 +57,7 @@ public partial class UnifiedRoleEligibilityScheduleRequestObject : RequestObject /// /// Gets or sets principal id. - /// Identifier of the principal that has been granted the role eligibility. Supports $filter (eq, ne). + /// Identifier of the principal that has been granted the role eligibility. Can be a user or a role-assignable group. You can grant only active assignments service principals. Supports $filter (eq, ne). /// [JsonPropertyName("principalId")] public string PrincipalId { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/WinGetApp.cs b/src/Microsoft.Graph/Generated/model/WinGetApp.cs new file mode 100644 index 00000000000..3ff8ddf0ec7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/WinGetApp.cs @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Win Get App. + /// + public partial class WinGetApp : MobileApp + { + + /// + /// The WinGetApp constructor + /// + public WinGetApp() + { + this.ODataType = "microsoft.graph.winGetApp"; + } + + /// + /// Gets or sets install experience. + /// The install experience settings associated with this application, which are used to ensure the desired install experiences on the target device are taken into account. This includes the account type (System or User) that actions should be run as on target devices. Required at creation time. + /// + [JsonPropertyName("installExperience")] + public WinGetAppInstallExperience InstallExperience { get; set; } + + /// + /// Gets or sets package identifier. + /// The PackageIdentifier from the WinGet source repository REST API. This also maps to the Id when using the WinGet client command line application. Required at creation time, cannot be modified on existing objects. + /// + [JsonPropertyName("packageIdentifier")] + public string PackageIdentifier { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/model/WinGetAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/model/WinGetAppAssignmentSettings.cs new file mode 100644 index 00000000000..93a349d15eb --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/WinGetAppAssignmentSettings.cs @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WinGetAppAssignmentSettings. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class WinGetAppAssignmentSettings : MobileAppAssignmentSettings + { + /// + /// Initializes a new instance of the class. + /// + public WinGetAppAssignmentSettings() + { + this.ODataType = "microsoft.graph.winGetAppAssignmentSettings"; + } + + /// + /// Gets or sets installTimeSettings. + /// The install time settings to apply for this app assignment. + /// + [JsonPropertyName("installTimeSettings")] + public WinGetAppInstallTimeSettings InstallTimeSettings { get; set; } + + /// + /// Gets or sets notifications. + /// The notification status for this app assignment. Possible values are: showAll, showReboot, hideAll, unknownFutureValue. + /// + [JsonPropertyName("notifications")] + public WinGetAppNotification? Notifications { get; set; } + + /// + /// Gets or sets restartSettings. + /// The reboot settings to apply for this app assignment. + /// + [JsonPropertyName("restartSettings")] + public WinGetAppRestartSettings RestartSettings { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/WinGetAppInstallExperience.cs b/src/Microsoft.Graph/Generated/model/WinGetAppInstallExperience.cs new file mode 100644 index 00000000000..1f709fb7d67 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/WinGetAppInstallExperience.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WinGetAppInstallExperience. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class WinGetAppInstallExperience + { + + /// + /// Gets or sets runAsAccount. + /// Indicates the type of execution context the app setup runs in on target devices. Options include values of the RunAsAccountType enum, which are System and User. Required at creation time, cannot be modified on existing objects. Possible values are: system, user. + /// + [JsonPropertyName("runAsAccount")] + public RunAsAccountType? RunAsAccount { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/WinGetAppInstallTimeSettings.cs b/src/Microsoft.Graph/Generated/model/WinGetAppInstallTimeSettings.cs new file mode 100644 index 00000000000..e4acfc16c9f --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/WinGetAppInstallTimeSettings.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WinGetAppInstallTimeSettings. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class WinGetAppInstallTimeSettings + { + + /// + /// Gets or sets deadlineDateTime. + /// The time at which the app should be installed. + /// + [JsonPropertyName("deadlineDateTime")] + public DateTimeOffset? DeadlineDateTime { get; set; } + + /// + /// Gets or sets useLocalTime. + /// Whether the local device time or UTC time should be used when determining the deadline times. + /// + [JsonPropertyName("useLocalTime")] + public bool? UseLocalTime { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/WinGetAppNotification.cs b/src/Microsoft.Graph/Generated/model/WinGetAppNotification.cs new file mode 100644 index 00000000000..213d845e20b --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/WinGetAppNotification.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph +{ + using System.Text.Json.Serialization; + + /// + /// The enum WinGetAppNotification. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum WinGetAppNotification + { + + /// + /// Show All + /// + ShowAll = 0, + + /// + /// Show Reboot + /// + ShowReboot = 1, + + /// + /// Hide All + /// + HideAll = 2, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 3, + + } +} diff --git a/src/Microsoft.Graph/Generated/model/WinGetAppRestartSettings.cs b/src/Microsoft.Graph/Generated/model/WinGetAppRestartSettings.cs new file mode 100644 index 00000000000..7ed1dec4b7f --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/WinGetAppRestartSettings.cs @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type WinGetAppRestartSettings. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class WinGetAppRestartSettings + { + + /// + /// Gets or sets countdownDisplayBeforeRestartInMinutes. + /// The number of minutes before the restart time to display the countdown dialog for pending restarts. + /// + [JsonPropertyName("countdownDisplayBeforeRestartInMinutes")] + public Int32? CountdownDisplayBeforeRestartInMinutes { get; set; } + + /// + /// Gets or sets gracePeriodInMinutes. + /// The number of minutes to wait before restarting the device after an app installation. + /// + [JsonPropertyName("gracePeriodInMinutes")] + public Int32? GracePeriodInMinutes { get; set; } + + /// + /// Gets or sets restartNotificationSnoozeDurationInMinutes. + /// The number of minutes to snooze the restart notification dialog when the snooze button is selected. + /// + [JsonPropertyName("restartNotificationSnoozeDurationInMinutes")] + public Int32? RestartNotificationSnoozeDurationInMinutes { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessConfiguration.cs b/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessConfiguration.cs index 1d18c20d815..90390e2f5a8 100644 --- a/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessConfiguration.cs +++ b/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessConfiguration.cs @@ -31,252 +31,252 @@ public WindowsUpdateForBusinessConfiguration() /// /// Gets or sets allow windows11upgrade. - /// Allow eligible Windows 10 devices to upgrade to the latest version of Windows 11. + /// When TRUE, allows eligible Windows 10 devices to upgrade to Windows 11. When FALSE, implies the device stays on the existing operating system. Returned by default. Query parameters are not supported. /// [JsonPropertyName("allowWindows11Upgrade")] public bool? AllowWindows11Upgrade { get; set; } /// /// Gets or sets automatic update mode. - /// Automatic update mode. Possible values are: userDefined, notifyDownload, autoInstallAtMaintenanceTime, autoInstallAndRebootAtMaintenanceTime, autoInstallAndRebootAtScheduledTime, autoInstallAndRebootWithoutEndUserControl, windowsDefault. + /// The Automatic Update Mode. Possible values are: UserDefined, NotifyDownload, AutoInstallAtMaintenanceTime, AutoInstallAndRebootAtMaintenanceTime, AutoInstallAndRebootAtScheduledTime, AutoInstallAndRebootWithoutEndUserControl, WindowsDefault. UserDefined is the default value, no intent. Returned by default. Query parameters are not supported. Possible values are: userDefined, notifyDownload, autoInstallAtMaintenanceTime, autoInstallAndRebootAtMaintenanceTime, autoInstallAndRebootAtScheduledTime, autoInstallAndRebootWithoutEndUserControl, windowsDefault. /// [JsonPropertyName("automaticUpdateMode")] public AutomaticUpdateMode? AutomaticUpdateMode { get; set; } /// /// Gets or sets auto restart notification dismissal. - /// Specify the method by which the auto-restart required notification is dismissed. Possible values are: notConfigured, automatic, user. + /// Specify the method by which the auto-restart required notification is dismissed. Possible values are: NotConfigured, Automatic, User. Returned by default. Query parameters are not supported. Possible values are: notConfigured, automatic, user, unknownFutureValue. /// [JsonPropertyName("autoRestartNotificationDismissal")] public AutoRestartNotificationDismissalMethod? AutoRestartNotificationDismissal { get; set; } /// /// Gets or sets business ready updates only. - /// Determines which branch devices will receive their updates from. Possible values are: userDefined, all, businessReadyOnly, windowsInsiderBuildFast, windowsInsiderBuildSlow, windowsInsiderBuildRelease. + /// Determines which branch devices will receive their updates from. Possible values are: UserDefined, All, BusinessReadyOnly, WindowsInsiderBuildFast, WindowsInsiderBuildSlow, WindowsInsiderBuildRelease. Returned by default. Query parameters are not supported. Possible values are: userDefined, all, businessReadyOnly, windowsInsiderBuildFast, windowsInsiderBuildSlow, windowsInsiderBuildRelease. /// [JsonPropertyName("businessReadyUpdatesOnly")] public WindowsUpdateType? BusinessReadyUpdatesOnly { get; set; } /// /// Gets or sets deadline for feature updates in days. - /// Number of days before feature updates are installed automatically with valid range from 0 to 30 days + /// Number of days before feature updates are installed automatically with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("deadlineForFeatureUpdatesInDays")] public Int32? DeadlineForFeatureUpdatesInDays { get; set; } /// /// Gets or sets deadline for quality updates in days. - /// Number of days before quality updates are installed automatically with valid range from 0 to 30 days + /// Number of days before quality updates are installed automatically with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("deadlineForQualityUpdatesInDays")] public Int32? DeadlineForQualityUpdatesInDays { get; set; } /// /// Gets or sets deadline grace period in days. - /// Number of days after deadline until restarts occur automatically with valid range from 0 to 7 days + /// Number of days after deadline until restarts occur automatically with valid range from 0 to 7 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("deadlineGracePeriodInDays")] public Int32? DeadlineGracePeriodInDays { get; set; } /// /// Gets or sets delivery optimization mode. - /// Delivery Optimization Mode. Possible values are: userDefined, httpOnly, httpWithPeeringNat, httpWithPeeringPrivateGroup, httpWithInternetPeering, simpleDownload, bypassMode. + /// The Delivery Optimization Mode. Possible values are: UserDefined, HttpOnly, HttpWithPeeringNat, HttpWithPeeringPrivateGroup, HttpWithInternetPeering, SimpleDownload, BypassMode. UserDefined allows the user to set. Returned by default. Query parameters are not supported. Possible values are: userDefined, httpOnly, httpWithPeeringNat, httpWithPeeringPrivateGroup, httpWithInternetPeering, simpleDownload, bypassMode. /// [JsonPropertyName("deliveryOptimizationMode")] public WindowsDeliveryOptimizationMode? DeliveryOptimizationMode { get; set; } /// /// Gets or sets drivers excluded. - /// Exclude Windows update Drivers + /// When TRUE, excludes Windows update Drivers. When FALSE, does not exclude Windows update Drivers. Returned by default. Query parameters are not supported. /// [JsonPropertyName("driversExcluded")] public bool? DriversExcluded { get; set; } /// /// Gets or sets engaged restart deadline in days. - /// Deadline in days before automatically scheduling and executing a pending restart outside of active hours, with valid range from 2 to 30 days + /// Deadline in days before automatically scheduling and executing a pending restart outside of active hours, with valid range from 2 to 30 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("engagedRestartDeadlineInDays")] public Int32? EngagedRestartDeadlineInDays { get; set; } /// /// Gets or sets engaged restart snooze schedule in days. - /// Number of days a user can snooze Engaged Restart reminder notifications with valid range from 1 to 3 days + /// Number of days a user can snooze Engaged Restart reminder notifications with valid range from 1 to 3 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("engagedRestartSnoozeScheduleInDays")] public Int32? EngagedRestartSnoozeScheduleInDays { get; set; } /// /// Gets or sets engaged restart transition schedule in days. - /// Number of days before transitioning from Auto Restarts scheduled outside of active hours to Engaged Restart, which requires the user to schedule, with valid range from 0 to 30 days + /// Number of days before transitioning from Auto Restarts scheduled outside of active hours to Engaged Restart, which requires the user to schedule, with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("engagedRestartTransitionScheduleInDays")] public Int32? EngagedRestartTransitionScheduleInDays { get; set; } /// /// Gets or sets feature updates deferral period in days. - /// Defer Feature Updates by these many days + /// Defer Feature Updates by these many days with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("featureUpdatesDeferralPeriodInDays")] public Int32? FeatureUpdatesDeferralPeriodInDays { get; set; } /// /// Gets or sets feature updates paused. - /// Pause Feature Updates + /// When TRUE, assigned devices are paused from receiving feature updates for up to 35 days from the time you pause the ring. When FALSE, does not pause Feature Updates. Returned by default. Query parameters are not supported.s /// [JsonPropertyName("featureUpdatesPaused")] public bool? FeatureUpdatesPaused { get; set; } /// /// Gets or sets feature updates pause expiry date time. - /// Feature Updates Pause Expiry datetime + /// The Feature Updates Pause Expiry datetime. This value is 35 days from the time admin paused or extended the pause for the ring. Returned by default. Query parameters are not supported. /// [JsonPropertyName("featureUpdatesPauseExpiryDateTime")] public DateTimeOffset? FeatureUpdatesPauseExpiryDateTime { get; set; } /// /// Gets or sets feature updates pause start date. - /// Feature Updates Pause start date. This property is read-only. + /// The Feature Updates Pause start date. This value is the time when the admin paused or extended the pause for the ring. Returned by default. Query parameters are not supported. This property is read-only. /// [JsonPropertyName("featureUpdatesPauseStartDate")] public Date FeatureUpdatesPauseStartDate { get; set; } /// /// Gets or sets feature updates rollback start date time. - /// Feature Updates Rollback Start datetime + /// The Feature Updates Rollback Start datetime.This value is the time when the admin rolled back the Feature update for the ring.Returned by default.Query parameters are not supported. /// [JsonPropertyName("featureUpdatesRollbackStartDateTime")] public DateTimeOffset? FeatureUpdatesRollbackStartDateTime { get; set; } /// /// Gets or sets feature updates rollback window in days. - /// The number of days after a Feature Update for which a rollback is valid + /// The number of days after a Feature Update for which a rollback is valid with valid range from 2 to 60 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("featureUpdatesRollbackWindowInDays")] public Int32? FeatureUpdatesRollbackWindowInDays { get; set; } /// /// Gets or sets feature updates will be rolled back. - /// Specifies whether to rollback Feature Updates on the next device check in + /// When TRUE, rollback Feature Updates on the next device check in. When FALSE, do not rollback Feature Updates on the next device check in. Returned by default.Query parameters are not supported. /// [JsonPropertyName("featureUpdatesWillBeRolledBack")] public bool? FeatureUpdatesWillBeRolledBack { get; set; } /// /// Gets or sets installation schedule. - /// Installation schedule + /// The Installation Schedule. Possible values are: ActiveHoursStart, ActiveHoursEnd, ScheduledInstallDay, ScheduledInstallTime. Returned by default. Query parameters are not supported. /// [JsonPropertyName("installationSchedule")] public WindowsUpdateInstallScheduleType InstallationSchedule { get; set; } /// /// Gets or sets microsoft update service allowed. - /// Allow Microsoft Update Service + /// When TRUE, allows Microsoft Update Service. When FALSE, does not allow Microsoft Update Service. Returned by default. Query parameters are not supported. /// [JsonPropertyName("microsoftUpdateServiceAllowed")] public bool? MicrosoftUpdateServiceAllowed { get; set; } /// /// Gets or sets postpone reboot until after deadline. - /// Specifies if the device should wait until deadline for rebooting outside of active hours + /// When TRUE the device should wait until deadline for rebooting outside of active hours. When FALSE the device should not wait until deadline for rebooting outside of active hours. Returned by default. Query parameters are not supported. /// [JsonPropertyName("postponeRebootUntilAfterDeadline")] public bool? PostponeRebootUntilAfterDeadline { get; set; } /// /// Gets or sets prerelease features. - /// The pre-release features. Possible values are: userDefined, settingsOnly, settingsAndExperimentations, notAllowed. + /// The Pre-Release Features. Possible values are: UserDefined, SettingsOnly, SettingsAndExperimentations, NotAllowed. UserDefined is the default value, no intent. Returned by default. Query parameters are not supported. Possible values are: userDefined, settingsOnly, settingsAndExperimentations, notAllowed. /// [JsonPropertyName("prereleaseFeatures")] public PrereleaseFeatures? PrereleaseFeatures { get; set; } /// /// Gets or sets quality updates deferral period in days. - /// Defer Quality Updates by these many days + /// Defer Quality Updates by these many days with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. /// [JsonPropertyName("qualityUpdatesDeferralPeriodInDays")] public Int32? QualityUpdatesDeferralPeriodInDays { get; set; } /// /// Gets or sets quality updates paused. - /// Pause Quality Updates + /// When TRUE, assigned devices are paused from receiving quality updates for up to 35 days from the time you pause the ring. When FALSE, does not pause Quality Updates. Returned by default. Query parameters are not supported. /// [JsonPropertyName("qualityUpdatesPaused")] public bool? QualityUpdatesPaused { get; set; } /// /// Gets or sets quality updates pause expiry date time. - /// Quality Updates Pause Expiry datetime + /// The Quality Updates Pause Expiry datetime. This value is 35 days from the time admin paused or extended the pause for the ring. Returned by default. Query parameters are not supported. /// [JsonPropertyName("qualityUpdatesPauseExpiryDateTime")] public DateTimeOffset? QualityUpdatesPauseExpiryDateTime { get; set; } /// /// Gets or sets quality updates pause start date. - /// Quality Updates Pause start date. This property is read-only. + /// The Quality Updates Pause start date. This value is the time when the admin paused or extended the pause for the ring. Returned by default. Query parameters are not supported. This property is read-only. /// [JsonPropertyName("qualityUpdatesPauseStartDate")] public Date QualityUpdatesPauseStartDate { get; set; } /// /// Gets or sets quality updates rollback start date time. - /// Quality Updates Rollback Start datetime + /// The Quality Updates Rollback Start datetime. This value is the time when the admin rolled back the Quality update for the ring. Returned by default. Query parameters are not supported. /// [JsonPropertyName("qualityUpdatesRollbackStartDateTime")] public DateTimeOffset? QualityUpdatesRollbackStartDateTime { get; set; } /// /// Gets or sets quality updates will be rolled back. - /// Specifies whether to rollback Quality Updates on the next device check in + /// When TRUE, rollback Quality Updates on the next device check in. When FALSE, do not rollback Quality Updates on the next device check in. Returned by default. Query parameters are not supported. /// [JsonPropertyName("qualityUpdatesWillBeRolledBack")] public bool? QualityUpdatesWillBeRolledBack { get; set; } /// /// Gets or sets schedule imminent restart warning in minutes. - /// Specify the period for auto-restart imminent warning notifications. Supported values: 15, 30 or 60 (minutes). + /// Specify the period for auto-restart imminent warning notifications. Supported values: 15, 30 or 60 (minutes). Returned by default. Query parameters are not supported. /// [JsonPropertyName("scheduleImminentRestartWarningInMinutes")] public Int32? ScheduleImminentRestartWarningInMinutes { get; set; } /// /// Gets or sets schedule restart warning in hours. - /// Specify the period for auto-restart warning reminder notifications. Supported values: 2, 4, 8, 12 or 24 (hours). + /// Specify the period for auto-restart warning reminder notifications. Supported values: 2, 4, 8, 12 or 24 (hours). Returned by default. Query parameters are not supported. /// [JsonPropertyName("scheduleRestartWarningInHours")] public Int32? ScheduleRestartWarningInHours { get; set; } /// /// Gets or sets skip checks before restart. - /// Set to skip all check before restart: Battery level = 40%, User presence, Display Needed, Presentation mode, Full screen mode, phone call state, game mode etc. + /// When TRUE, skips all checks before restart: Battery level = 40%, User presence, Display Needed, Presentation mode, Full screen mode, phone call state, game mode etc. When FALSE, does not skip all checks before restart. Returned by default. Query parameters are not supported. /// [JsonPropertyName("skipChecksBeforeRestart")] public bool? SkipChecksBeforeRestart { get; set; } /// /// Gets or sets update notification level. - /// Specifies what Windows Update notifications users see. Possible values are: notConfigured, defaultNotifications, restartWarningsOnly, disableAllNotifications. + /// Specifies what Windows Update notifications users see. Possible values are: NotConfigured, DefaultNotifications, RestartWarningsOnly, DisableAllNotifications. Returned by default. Query parameters are not supported. Possible values are: notConfigured, defaultNotifications, restartWarningsOnly, disableAllNotifications, unknownFutureValue. /// [JsonPropertyName("updateNotificationLevel")] public WindowsUpdateNotificationDisplayOption? UpdateNotificationLevel { get; set; } /// /// Gets or sets update weeks. - /// Scheduled the update installation on the weeks of the month. Possible values are: userDefined, firstWeek, secondWeek, thirdWeek, fourthWeek, everyWeek. + /// Schedule the update installation on the weeks of the month. Possible values are: UserDefined, FirstWeek, SecondWeek, ThirdWeek, FourthWeek, EveryWeek. Returned by default. Query parameters are not supported. Possible values are: userDefined, firstWeek, secondWeek, thirdWeek, fourthWeek, everyWeek, unknownFutureValue. /// [JsonPropertyName("updateWeeks")] public WindowsUpdateForBusinessUpdateWeeks? UpdateWeeks { get; set; } /// /// Gets or sets user pause access. - /// Specifies whether to enable end user’s access to pause software updates. Possible values are: notConfigured, enabled, disabled. + /// Specifies whether to enable end user’s access to pause software updates. Possible values are: NotConfigured, Enabled, Disabled. Returned by default. Query parameters are not supported. Possible values are: notConfigured, enabled, disabled. /// [JsonPropertyName("userPauseAccess")] public Enablement? UserPauseAccess { get; set; } /// /// Gets or sets user windows update scan access. - /// Specifies whether to disable user’s access to scan Windows Update. Possible values are: notConfigured, enabled, disabled. + /// Specifies whether to disable user’s access to scan Windows Update. Possible values are: NotConfigured, Enabled, Disabled. Returned by default. Query parameters are not supported. Possible values are: notConfigured, enabled, disabled. /// [JsonPropertyName("userWindowsUpdateScanAccess")] public Enablement? UserWindowsUpdateScanAccess { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessUpdateWeeks.cs b/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessUpdateWeeks.cs index 54462488716..b389e91cf25 100644 --- a/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessUpdateWeeks.cs +++ b/src/Microsoft.Graph/Generated/model/WindowsUpdateForBusinessUpdateWeeks.cs @@ -50,5 +50,10 @@ public enum WindowsUpdateForBusinessUpdateWeeks /// EveryWeek = 15, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 22, + } } diff --git a/src/Microsoft.Graph/Generated/model/WindowsUpdateNotificationDisplayOption.cs b/src/Microsoft.Graph/Generated/model/WindowsUpdateNotificationDisplayOption.cs index 00963fff488..d8102e60321 100644 --- a/src/Microsoft.Graph/Generated/model/WindowsUpdateNotificationDisplayOption.cs +++ b/src/Microsoft.Graph/Generated/model/WindowsUpdateNotificationDisplayOption.cs @@ -39,5 +39,10 @@ public enum WindowsUpdateNotificationDisplayOption /// DisableAllNotifications = 3, + /// + /// Unknown Future Value + /// + UnknownFutureValue = 4, + } } diff --git a/src/Microsoft.Graph/Generated/requests/CreateRemoteHelpSessionResponseRequest.cs b/src/Microsoft.Graph/Generated/requests/CreateRemoteHelpSessionResponseRequest.cs new file mode 100644 index 00000000000..bae0d852ab4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/requests/CreateRemoteHelpSessionResponseRequest.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityRequest.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type CreateRemoteHelpSessionResponseRequest. + /// + public partial class CreateRemoteHelpSessionResponseRequest : BaseRequest, ICreateRemoteHelpSessionResponseRequest + { + /// + /// Constructs a new CreateRemoteHelpSessionResponseRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public CreateRemoteHelpSessionResponseRequest( + string requestUrl, + IBaseClient client, + IEnumerable