diff --git a/CHANGELOG.md b/CHANGELOG.md index 9159270e41a..698baf8fefa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.64.0] - 2023-07-13 + +### Added + +- AccessPackage derived types and related requests. +- The following were added to the SecurityNamespace: +- EdiscoveryExportOperation model and requests. +- EdiscoveryReviewSetExport model and related requests. +- EdiscoveryReviewSetQueryExport model and related requests. +- ExportFileMetadata model. +- ExportFileStructure model. +- ExportOptions model. + ## [5.63.0] - 2023-07-07 ### Added diff --git a/README.md b/README.md index a5a3f5a21da..b1280e5896b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph:5.63.0' + implementation 'com.microsoft.graph:microsoft-graph:5.64.0' // Uncomment the line below if you are building an android application //implementation 'com.google.guava:guava:30.1.1-android' // This dependency is only needed if you are using the TokenCrendentialAuthProvider @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 5.63.0 + 5.64.0 @@ -194,5 +194,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index 712ad701b8a..3e27e4da532 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 5 -mavenMinorVersion = 63 +mavenMinorVersion = 64 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -117,5 +117,6 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index d90327e858c..22e23f1d5be 100644 --- a/src/main/java/com/microsoft/graph/info/Constants.java +++ b/src/main/java/com/microsoft/graph/info/Constants.java @@ -18,7 +18,7 @@ private Constants() { /** The client secret to use for unit testing */ public static final String CLIENTSECRET = "clientsecret"; /** The SDK version */ - public static final String VERSION_NAME = "5.63.0"; + public static final String VERSION_NAME = "5.64.0"; } @@ -94,5 +94,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/AccessPackage.java b/src/main/java/com/microsoft/graph/models/AccessPackage.java index 87dca96ac4e..3d195928524 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackage.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackage.java @@ -13,6 +13,7 @@ import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.AccessPackageAssignmentPolicyCollectionPage; import com.microsoft.graph.requests.GroupCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionPage; import com.google.gson.JsonObject; @@ -115,6 +116,15 @@ public class AccessPackage extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.GroupCollectionPage incompatibleGroups; + /** + * The Resource Role Scopes. + * + */ + @SerializedName(value = "resourceRoleScopes", alternate = {"ResourceRoleScopes"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionPage resourceRoleScopes; + /** * Sets the raw JSON object @@ -140,5 +150,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("incompatibleGroups")) { incompatibleGroups = serializer.deserializeObject(json.get("incompatibleGroups"), com.microsoft.graph.requests.GroupCollectionPage.class); } + + if (json.has("resourceRoleScopes")) { + resourceRoleScopes = serializer.deserializeObject(json.get("resourceRoleScopes"), com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignment.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignment.java index c55358cd6e9..67670409283 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignment.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignment.java @@ -8,6 +8,8 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.CustomExtensionCalloutInstance; import com.microsoft.graph.models.EntitlementManagementSchedule; import com.microsoft.graph.models.AccessPackageAssignmentState; import com.microsoft.graph.models.AccessPackage; @@ -30,6 +32,15 @@ public class AccessPackageAssignment extends Entity implements IJsonBackedObject { + /** + * The Custom Extension Callout Instances. + * + */ + @SerializedName(value = "customExtensionCalloutInstances", alternate = {"CustomExtensionCalloutInstances"}) + @Expose + @Nullable + public java.util.List customExtensionCalloutInstances; + /** * The Expired Date Time. * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentPolicy.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentPolicy.java index e242a5f0f6c..b876ea573c6 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentPolicy.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentPolicy.java @@ -19,6 +19,7 @@ import com.microsoft.graph.models.AccessPackage; import com.microsoft.graph.models.AccessPackageCatalog; import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionPage; import com.microsoft.graph.requests.AccessPackageQuestionCollectionPage; @@ -153,6 +154,15 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked @Nullable public AccessPackageCatalog catalog; + /** + * The Custom Extension Stage Settings. + * + */ + @SerializedName(value = "customExtensionStageSettings", alternate = {"CustomExtensionStageSettings"}) + @Expose + @Nullable + public com.microsoft.graph.requests.CustomExtensionStageSettingCollectionPage customExtensionStageSettings; + /** * The Questions. * Questions that are posed to the requestor. @@ -172,6 +182,10 @@ public class AccessPackageAssignmentPolicy extends Entity implements IJsonBacked public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("customExtensionStageSettings")) { + customExtensionStageSettings = serializer.deserializeObject(json.get("customExtensionStageSettings"), com.microsoft.graph.requests.CustomExtensionStageSettingCollectionPage.class); + } + if (json.has("questions")) { questions = serializer.deserializeObject(json.get("questions"), com.microsoft.graph.requests.AccessPackageQuestionCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java index 5c1c061f62e..60ccb08b732 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequest.java @@ -10,6 +10,7 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.AccessPackageAnswer; +import com.microsoft.graph.models.CustomExtensionCalloutInstance; import com.microsoft.graph.models.AccessPackageRequestType; import com.microsoft.graph.models.EntitlementManagementSchedule; import com.microsoft.graph.models.AccessPackageRequestState; @@ -60,6 +61,15 @@ public class AccessPackageAssignmentRequest extends Entity implements IJsonBacke @Nullable public java.time.OffsetDateTime createdDateTime; + /** + * The Custom Extension Callout Instances. + * + */ + @SerializedName(value = "customExtensionCalloutInstances", alternate = {"CustomExtensionCalloutInstances"}) + @Expose + @Nullable + public java.util.List customExtensionCalloutInstances; + /** * The Request Type. * The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property cannot be changed once set. diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java new file mode 100644 index 00000000000..ce6309b64f9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestCallbackData.java @@ -0,0 +1,75 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.AccessPackageCustomExtensionStage; +import com.microsoft.graph.models.CustomExtensionData; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Callback Data. + */ +public class AccessPackageAssignmentRequestCallbackData extends CustomExtensionData implements IJsonBackedObject { + + + /** + * The Custom Extension Stage Instance Detail. + * + */ + @SerializedName(value = "customExtensionStageInstanceDetail", alternate = {"CustomExtensionStageInstanceDetail"}) + @Expose + @Nullable + public String customExtensionStageInstanceDetail; + + /** + * The Custom Extension Stage Instance Id. + * + */ + @SerializedName(value = "customExtensionStageInstanceId", alternate = {"CustomExtensionStageInstanceId"}) + @Expose + @Nullable + public String customExtensionStageInstanceId; + + /** + * The Stage. + * + */ + @SerializedName(value = "stage", alternate = {"Stage"}) + @Expose + @Nullable + public AccessPackageCustomExtensionStage stage; + + /** + * The State. + * + */ + @SerializedName(value = "state", alternate = {"State"}) + @Expose + @Nullable + public String state; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestResumeParameterSet.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestResumeParameterSet.java new file mode 100644 index 00000000000..f6c7193c8dc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestResumeParameterSet.java @@ -0,0 +1,153 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.CustomExtensionData; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Resume Parameter Set. + */ +public class AccessPackageAssignmentRequestResumeParameterSet { + /** + * The source. + * + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public String source; + + /** + * The type. + * + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public String type; + + /** + * The data. + * + */ + @SerializedName(value = "data", alternate = {"Data"}) + @Expose + @Nullable + public CustomExtensionData data; + + + /** + * Instiaciates a new AccessPackageAssignmentRequestResumeParameterSet + */ + public AccessPackageAssignmentRequestResumeParameterSet() {} + /** + * Instiaciates a new AccessPackageAssignmentRequestResumeParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected AccessPackageAssignmentRequestResumeParameterSet(@Nonnull final AccessPackageAssignmentRequestResumeParameterSetBuilder builder) { + this.source = builder.source; + this.type = builder.type; + this.data = builder.data; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static AccessPackageAssignmentRequestResumeParameterSetBuilder newBuilder() { + return new AccessPackageAssignmentRequestResumeParameterSetBuilder(); + } + /** + * Fluent builder for the AccessPackageAssignmentRequestResumeParameterSet + */ + public static final class AccessPackageAssignmentRequestResumeParameterSetBuilder { + /** + * The source parameter value + */ + @Nullable + protected String source; + /** + * Sets the Source + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AccessPackageAssignmentRequestResumeParameterSetBuilder withSource(@Nullable final String val) { + this.source = val; + return this; + } + /** + * The type parameter value + */ + @Nullable + protected String type; + /** + * Sets the Type + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AccessPackageAssignmentRequestResumeParameterSetBuilder withType(@Nullable final String val) { + this.type = val; + return this; + } + /** + * The data parameter value + */ + @Nullable + protected CustomExtensionData data; + /** + * Sets the Data + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AccessPackageAssignmentRequestResumeParameterSetBuilder withData(@Nullable final CustomExtensionData val) { + this.data = val; + return this; + } + /** + * Instanciates a new AccessPackageAssignmentRequestResumeParameterSetBuilder + */ + @Nullable + protected AccessPackageAssignmentRequestResumeParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public AccessPackageAssignmentRequestResumeParameterSet build() { + return new AccessPackageAssignmentRequestResumeParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + if(this.source != null) { + result.add(new com.microsoft.graph.options.FunctionOption("source", source)); + } + if(this.type != null) { + result.add(new com.microsoft.graph.options.FunctionOption("type", type)); + } + if(this.data != null) { + result.add(new com.microsoft.graph.options.FunctionOption("data", data)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestWorkflowExtension.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestWorkflowExtension.java new file mode 100644 index 00000000000..6acaf88687c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentRequestWorkflowExtension.java @@ -0,0 +1,84 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.CustomExtensionCallbackConfiguration; +import com.microsoft.graph.models.CustomCalloutExtension; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Workflow Extension. + */ +public class AccessPackageAssignmentRequestWorkflowExtension extends CustomCalloutExtension implements IJsonBackedObject { + + + /** + * The Callback Configuration. + * + */ + @SerializedName(value = "callbackConfiguration", alternate = {"CallbackConfiguration"}) + @Expose + @Nullable + public CustomExtensionCallbackConfiguration callbackConfiguration; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public String createdBy; + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public String lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentWorkflowExtension.java b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentWorkflowExtension.java new file mode 100644 index 00000000000..3dfeed8321b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAssignmentWorkflowExtension.java @@ -0,0 +1,84 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.CustomExtensionCallbackConfiguration; +import com.microsoft.graph.models.CustomCalloutExtension; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Workflow Extension. + */ +public class AccessPackageAssignmentWorkflowExtension extends CustomCalloutExtension implements IJsonBackedObject { + + + /** + * The Callback Configuration. + * + */ + @SerializedName(value = "callbackConfiguration", alternate = {"CallbackConfiguration"}) + @Expose + @Nullable + public CustomExtensionCallbackConfiguration callbackConfiguration; + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public String createdBy; + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public String lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageCatalog.java b/src/main/java/com/microsoft/graph/models/AccessPackageCatalog.java index f7e95ca28ae..f0b3979a6e7 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageCatalog.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageCatalog.java @@ -13,6 +13,10 @@ import com.microsoft.graph.models.AccessPackageCatalogState; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.AccessPackageCollectionPage; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionPage; import com.google.gson.JsonObject; @@ -99,6 +103,42 @@ public class AccessPackageCatalog extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.AccessPackageCollectionPage accessPackages; + /** + * The Custom Workflow Extensions. + * + */ + @SerializedName(value = "customWorkflowExtensions", alternate = {"CustomWorkflowExtensions"}) + @Expose + @Nullable + public com.microsoft.graph.requests.CustomCalloutExtensionCollectionPage customWorkflowExtensions; + + /** + * The Resource Roles. + * + */ + @SerializedName(value = "resourceRoles", alternate = {"ResourceRoles"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceRoleCollectionPage resourceRoles; + + /** + * The Resources. + * + */ + @SerializedName(value = "resources", alternate = {"Resources"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceCollectionPage resources; + + /** + * The Resource Scopes. + * + */ + @SerializedName(value = "resourceScopes", alternate = {"ResourceScopes"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceScopeCollectionPage resourceScopes; + /** * Sets the raw JSON object @@ -112,5 +152,21 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("accessPackages")) { accessPackages = serializer.deserializeObject(json.get("accessPackages"), com.microsoft.graph.requests.AccessPackageCollectionPage.class); } + + if (json.has("customWorkflowExtensions")) { + customWorkflowExtensions = serializer.deserializeObject(json.get("customWorkflowExtensions"), com.microsoft.graph.requests.CustomCalloutExtensionCollectionPage.class); + } + + if (json.has("resourceRoles")) { + resourceRoles = serializer.deserializeObject(json.get("resourceRoles"), com.microsoft.graph.requests.AccessPackageResourceRoleCollectionPage.class); + } + + if (json.has("resources")) { + resources = serializer.deserializeObject(json.get("resources"), com.microsoft.graph.requests.AccessPackageResourceCollectionPage.class); + } + + if (json.has("resourceScopes")) { + resourceScopes = serializer.deserializeObject(json.get("resourceScopes"), com.microsoft.graph.requests.AccessPackageResourceScopeCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageCustomExtensionStage.java b/src/main/java/com/microsoft/graph/models/AccessPackageCustomExtensionStage.java new file mode 100644 index 00000000000..30b5854ff03 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageCustomExtensionStage.java @@ -0,0 +1,46 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +/** + * The Enum Access Package Custom Extension Stage. +*/ +public enum AccessPackageCustomExtensionStage +{ + /** + * assignment Request Created + */ + ASSIGNMENT_REQUEST_CREATED, + /** + * assignment Request Approved + */ + ASSIGNMENT_REQUEST_APPROVED, + /** + * assignment Request Granted + */ + ASSIGNMENT_REQUEST_GRANTED, + /** + * assignment Request Removed + */ + ASSIGNMENT_REQUEST_REMOVED, + /** + * assignment Fourteen Days Before Expiration + */ + ASSIGNMENT_FOURTEEN_DAYS_BEFORE_EXPIRATION, + /** + * assignment One Day Before Expiration + */ + ASSIGNMENT_ONE_DAY_BEFORE_EXPIRATION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AccessPackageCustomExtensionStage values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResource.java b/src/main/java/com/microsoft/graph/models/AccessPackageResource.java new file mode 100644 index 00000000000..c78e2e3b409 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResource.java @@ -0,0 +1,131 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource. + */ +public class AccessPackageResource extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Modified Date Time. + * + */ + @SerializedName(value = "modifiedDateTime", alternate = {"ModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime modifiedDateTime; + + /** + * The Origin Id. + * + */ + @SerializedName(value = "originId", alternate = {"OriginId"}) + @Expose + @Nullable + public String originId; + + /** + * The Origin System. + * + */ + @SerializedName(value = "originSystem", alternate = {"OriginSystem"}) + @Expose + @Nullable + public String originSystem; + + /** + * The Environment. + * + */ + @SerializedName(value = "environment", alternate = {"Environment"}) + @Expose + @Nullable + public AccessPackageResourceEnvironment environment; + + /** + * The Roles. + * + */ + @SerializedName(value = "roles", alternate = {"Roles"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceRoleCollectionPage roles; + + /** + * The Scopes. + * + */ + @SerializedName(value = "scopes", alternate = {"Scopes"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceScopeCollectionPage scopes; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + + if (json.has("roles")) { + roles = serializer.deserializeObject(json.get("roles"), com.microsoft.graph.requests.AccessPackageResourceRoleCollectionPage.class); + } + + if (json.has("scopes")) { + scopes = serializer.deserializeObject(json.get("scopes"), com.microsoft.graph.requests.AccessPackageResourceScopeCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java new file mode 100644 index 00000000000..97e00c08902 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceEnvironment.java @@ -0,0 +1,116 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.AccessPackageResourceCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment. + */ +public class AccessPackageResourceEnvironment extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Is Default Environment. + * + */ + @SerializedName(value = "isDefaultEnvironment", alternate = {"IsDefaultEnvironment"}) + @Expose + @Nullable + public Boolean isDefaultEnvironment; + + /** + * The Modified Date Time. + * + */ + @SerializedName(value = "modifiedDateTime", alternate = {"ModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime modifiedDateTime; + + /** + * The Origin Id. + * + */ + @SerializedName(value = "originId", alternate = {"OriginId"}) + @Expose + @Nullable + public String originId; + + /** + * The Origin System. + * + */ + @SerializedName(value = "originSystem", alternate = {"OriginSystem"}) + @Expose + @Nullable + public String originSystem; + + /** + * The Resources. + * + */ + @SerializedName(value = "resources", alternate = {"Resources"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceCollectionPage resources; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + + if (json.has("resources")) { + resources = serializer.deserializeObject(json.get("resources"), com.microsoft.graph.requests.AccessPackageResourceCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceRequest.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceRequest.java new file mode 100644 index 00000000000..44fa839b5da --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceRequest.java @@ -0,0 +1,87 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.AccessPackageRequestType; +import com.microsoft.graph.models.AccessPackageRequestState; +import com.microsoft.graph.models.AccessPackageCatalog; +import com.microsoft.graph.models.AccessPackageResource; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request. + */ +public class AccessPackageResourceRequest extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Request Type. + * + */ + @SerializedName(value = "requestType", alternate = {"RequestType"}) + @Expose + @Nullable + public AccessPackageRequestType requestType; + + /** + * The State. + * + */ + @SerializedName(value = "state", alternate = {"State"}) + @Expose + @Nullable + public AccessPackageRequestState state; + + /** + * The Catalog. + * + */ + @SerializedName(value = "catalog", alternate = {"Catalog"}) + @Expose + @Nullable + public AccessPackageCatalog catalog; + + /** + * The Resource. + * + */ + @SerializedName(value = "resource", alternate = {"Resource"}) + @Expose + @Nullable + public AccessPackageResource resource; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceRole.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceRole.java new file mode 100644 index 00000000000..4ba6f25fc9e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceRole.java @@ -0,0 +1,84 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.AccessPackageResource; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role. + */ +public class AccessPackageResourceRole extends Entity implements IJsonBackedObject { + + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Origin Id. + * + */ + @SerializedName(value = "originId", alternate = {"OriginId"}) + @Expose + @Nullable + public String originId; + + /** + * The Origin System. + * + */ + @SerializedName(value = "originSystem", alternate = {"OriginSystem"}) + @Expose + @Nullable + public String originSystem; + + /** + * The Resource. + * + */ + @SerializedName(value = "resource", alternate = {"Resource"}) + @Expose + @Nullable + public AccessPackageResource resource; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceRoleScope.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceRoleScope.java new file mode 100644 index 00000000000..49af464f79d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceRoleScope.java @@ -0,0 +1,67 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.AccessPackageResourceRole; +import com.microsoft.graph.models.AccessPackageResourceScope; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope. + */ +public class AccessPackageResourceRoleScope extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Role. + * + */ + @SerializedName(value = "role", alternate = {"Role"}) + @Expose + @Nullable + public AccessPackageResourceRole role; + + /** + * The Scope. + * + */ + @SerializedName(value = "scope", alternate = {"Scope"}) + @Expose + @Nullable + public AccessPackageResourceScope scope; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageResourceScope.java b/src/main/java/com/microsoft/graph/models/AccessPackageResourceScope.java new file mode 100644 index 00000000000..243da4e0a2e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessPackageResourceScope.java @@ -0,0 +1,93 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.AccessPackageResource; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope. + */ +public class AccessPackageResourceScope extends Entity implements IJsonBackedObject { + + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Is Root Scope. + * + */ + @SerializedName(value = "isRootScope", alternate = {"IsRootScope"}) + @Expose + @Nullable + public Boolean isRootScope; + + /** + * The Origin Id. + * + */ + @SerializedName(value = "originId", alternate = {"OriginId"}) + @Expose + @Nullable + public String originId; + + /** + * The Origin System. + * + */ + @SerializedName(value = "originSystem", alternate = {"OriginSystem"}) + @Expose + @Nullable + public String originSystem; + + /** + * The Resource. + * + */ + @SerializedName(value = "resource", alternate = {"Resource"}) + @Expose + @Nullable + public AccessPackageResource resource; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/Application.java b/src/main/java/com/microsoft/graph/models/Application.java index b17d02379e7..d9ee6866365 100644 --- a/src/main/java/com/microsoft/graph/models/Application.java +++ b/src/main/java/com/microsoft/graph/models/Application.java @@ -418,7 +418,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject { /** * The Synchronization. - * + * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. */ @SerializedName(value = "synchronization", alternate = {"Synchronization"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttributeDefinition.java b/src/main/java/com/microsoft/graph/models/AttributeDefinition.java index 9a085d445e7..e425012fa86 100644 --- a/src/main/java/com/microsoft/graph/models/AttributeDefinition.java +++ b/src/main/java/com/microsoft/graph/models/AttributeDefinition.java @@ -45,7 +45,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Anchor. - * + * true if the attribute should be used as the anchor for the object. Anchor attributes must have a unique value identifying an object, and must be immutable. Default is false. One, and only one, of the object's attributes must be designated as the anchor to support synchronization. */ @SerializedName(value = "anchor", alternate = {"Anchor"}) @Expose @@ -63,7 +63,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Case Exact. - * + * true if value of this attribute should be treated as case-sensitive. This setting affects how the synchronization engine detects changes for the attribute. */ @SerializedName(value = "caseExact", alternate = {"CaseExact"}) @Expose @@ -81,7 +81,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Flow Null Values. - * + * 'true' to allow null values for attributes. */ @SerializedName(value = "flowNullValues", alternate = {"FlowNullValues"}) @Expose @@ -90,7 +90,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * + * Metadata for the given object. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose @@ -99,7 +99,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Multivalued. - * + * true if an attribute can have multiple values. Default is false. */ @SerializedName(value = "multivalued", alternate = {"Multivalued"}) @Expose @@ -108,7 +108,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Mutability. - * + * An attribute's mutability. Possible values are: ReadWrite, ReadOnly, Immutable, WriteOnly. Default is ReadWrite. */ @SerializedName(value = "mutability", alternate = {"Mutability"}) @Expose @@ -117,7 +117,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Name of the attribute. Must be unique within the object definition. Not nullable. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -126,7 +126,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Referenced Objects. - * + * For attributes with reference type, lists referenced objects (for example, the manager attribute would list User as the referenced object). */ @SerializedName(value = "referencedObjects", alternate = {"ReferencedObjects"}) @Expose @@ -135,7 +135,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Required. - * + * true if attribute is required. Object can not be created if any of the required attributes are missing. If during synchronization, the required attribute has no value, the default value will be used. If default the value was not set, synchronization will record an error. */ @SerializedName(value = "required", alternate = {"Required"}) @Expose @@ -144,7 +144,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * + * Attribute value type. Possible values are: String, Integer, Reference, Binary, Boolean,DateTime. Default is String. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttributeDefinitionMetadataEntry.java b/src/main/java/com/microsoft/graph/models/AttributeDefinitionMetadataEntry.java index 9b32b91f686..4da567e5809 100644 --- a/src/main/java/com/microsoft/graph/models/AttributeDefinitionMetadataEntry.java +++ b/src/main/java/com/microsoft/graph/models/AttributeDefinitionMetadataEntry.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Possible values are: BaseAttributeName, ComplexObjectDefinition, IsContainer, IsCustomerDefined, IsDomainQualified, LinkPropertyNames, LinkTypeName, MaximumLength, ReferencedProperty. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * Value of the metadata property. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttributeMapping.java b/src/main/java/com/microsoft/graph/models/AttributeMapping.java index ea3331f79e5..2c5f60e293b 100644 --- a/src/main/java/com/microsoft/graph/models/AttributeMapping.java +++ b/src/main/java/com/microsoft/graph/models/AttributeMapping.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Default Value. - * + * Default value to be used in case the source property was evaluated to null. Optional. */ @SerializedName(value = "defaultValue", alternate = {"DefaultValue"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Export Missing References. - * + * For internal use only. */ @SerializedName(value = "exportMissingReferences", alternate = {"ExportMissingReferences"}) @Expose @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Flow Behavior. - * + * Defines when this attribute should be exported to the target directory. Possible values are: FlowWhenChanged and FlowAlways. Default is FlowWhenChanged. */ @SerializedName(value = "flowBehavior", alternate = {"FlowBehavior"}) @Expose @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Flow Type. - * + * Defines when this attribute should be updated in the target directory. Possible values are: Always (default) ObjectAddOnly - only when new object is created MultiValueAddOnly - only when the change is adding new values to a multi-valued attribute ValueAddOnly - If there is a current value, only flows 'Add' operations; will not flow 'Remove' operations AttributeAddOnly - Only propagates changes if no current value exists at all */ @SerializedName(value = "flowType", alternate = {"FlowType"}) @Expose @@ -78,7 +78,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Matching Priority. - * + * If higher than 0, this attribute will be used to perform an initial match of the objects between source and target directories. The synchronization engine will try to find the matching object using attribute with lowest value of matching priority first. If not found, the attribute with the next matching priority will be used, and so on a until match is found or no more matching attributes are left. Only attributes that are expected to have unique values, such as email, should be used as matching attributes. */ @SerializedName(value = "matchingPriority", alternate = {"MatchingPriority"}) @Expose @@ -87,7 +87,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Source. - * + * Defines how a value should be extracted (or transformed) from the source object. */ @SerializedName(value = "source", alternate = {"Source"}) @Expose @@ -96,7 +96,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Target Attribute Name. - * + * Name of the attribute on the target object. */ @SerializedName(value = "targetAttributeName", alternate = {"TargetAttributeName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttributeMappingFunctionSchema.java b/src/main/java/com/microsoft/graph/models/AttributeMappingFunctionSchema.java index daa838d5ec0..edf51edf7cc 100644 --- a/src/main/java/com/microsoft/graph/models/AttributeMappingFunctionSchema.java +++ b/src/main/java/com/microsoft/graph/models/AttributeMappingFunctionSchema.java @@ -29,7 +29,7 @@ public class AttributeMappingFunctionSchema extends Entity implements IJsonBacke /** * The Parameters. - * + * Collection of function parameters. */ @SerializedName(value = "parameters", alternate = {"Parameters"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttributeMappingParameterSchema.java b/src/main/java/com/microsoft/graph/models/AttributeMappingParameterSchema.java index c249327ec2a..743e058ab34 100644 --- a/src/main/java/com/microsoft/graph/models/AttributeMappingParameterSchema.java +++ b/src/main/java/com/microsoft/graph/models/AttributeMappingParameterSchema.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Allow Multiple Occurrences. - * + * The given parameter can be provided multiple times (for example, multiple input strings in the Concatenate(string,string,...) function). */ @SerializedName(value = "allowMultipleOccurrences", alternate = {"AllowMultipleOccurrences"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Parameter name. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Required. - * + * true if the parameter is required; otherwise false. */ @SerializedName(value = "required", alternate = {"Required"}) @Expose @@ -67,7 +67,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * + * The possible values are: String, Integer, Reference, Binary, Boolean, DateTime. Default is String. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AttributeMappingSource.java b/src/main/java/com/microsoft/graph/models/AttributeMappingSource.java index 4e5873c5f3e..c38d1953c89 100644 --- a/src/main/java/com/microsoft/graph/models/AttributeMappingSource.java +++ b/src/main/java/com/microsoft/graph/models/AttributeMappingSource.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Expression. - * + * Equivalent expression representation of this attributeMappingSource object. */ @SerializedName(value = "expression", alternate = {"Expression"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Name parameter of the mapping source. Depending on the type property value, this can be the name of the function, the name of the source attribute, or a constant value to be used. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Parameters. - * + * If this object represents a function, lists function parameters. Parameters consist of attributeMappingSource objects themselves, allowing for complex expressions. If type is not Function, this property will be null/empty array. */ @SerializedName(value = "parameters", alternate = {"Parameters"}) @Expose @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * + * The type of this attribute mapping source. Possible values are: Attribute, Constant, Function. Default is Attribute. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java index a19d60ead0a..2fa85ce6fc1 100644 --- a/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java +++ b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java @@ -29,7 +29,7 @@ public class AuthenticationMethodsRoot extends Entity implements IJsonBackedObje /** * The User Registration Details. - * + * Represents the state of a user's authentication methods, including which methods are registered and which features the user is registered and capable of (such as multi-factor authentication, self-service password reset, and passwordless authentication). */ @SerializedName(value = "userRegistrationDetails", alternate = {"UserRegistrationDetails"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutInstance.java b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutInstance.java new file mode 100644 index 00000000000..8519459710e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutInstance.java @@ -0,0 +1,96 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.CustomExtensionCalloutInstanceStatus; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Callout Instance. + */ +public class CustomExtensionCalloutInstance implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Custom Extension Id. + * + */ + @SerializedName(value = "customExtensionId", alternate = {"CustomExtensionId"}) + @Expose + @Nullable + public String customExtensionId; + + /** + * The Detail. + * + */ + @SerializedName(value = "detail", alternate = {"Detail"}) + @Expose + @Nullable + public String detail; + + /** + * The External Correlation Id. + * + */ + @SerializedName(value = "externalCorrelationId", alternate = {"ExternalCorrelationId"}) + @Expose + @Nullable + public String externalCorrelationId; + + /** + * The Id. + * + */ + @SerializedName(value = "id", alternate = {"Id"}) + @Expose + @Nullable + public String id; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public CustomExtensionCalloutInstanceStatus status; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutInstanceStatus.java b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutInstanceStatus.java new file mode 100644 index 00000000000..417d78ae428 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutInstanceStatus.java @@ -0,0 +1,42 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +/** + * The Enum Custom Extension Callout Instance Status. +*/ +public enum CustomExtensionCalloutInstanceStatus +{ + /** + * callout Sent + */ + CALLOUT_SENT, + /** + * callback Received + */ + CALLBACK_RECEIVED, + /** + * callout Failed + */ + CALLOUT_FAILED, + /** + * callback Timed Out + */ + CALLBACK_TIMED_OUT, + /** + * waiting For Callback + */ + WAITING_FOR_CALLBACK, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For CustomExtensionCalloutInstanceStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/CustomExtensionStageSetting.java b/src/main/java/com/microsoft/graph/models/CustomExtensionStageSetting.java new file mode 100644 index 00000000000..75407b96933 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionStageSetting.java @@ -0,0 +1,58 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.AccessPackageCustomExtensionStage; +import com.microsoft.graph.models.CustomCalloutExtension; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting. + */ +public class CustomExtensionStageSetting extends Entity implements IJsonBackedObject { + + + /** + * The Stage. + * + */ + @SerializedName(value = "stage", alternate = {"Stage"}) + @Expose + @Nullable + public AccessPackageCustomExtensionStage stage; + + /** + * The Custom Extension. + * + */ + @SerializedName(value = "customExtension", alternate = {"CustomExtension"}) + @Expose + @Nullable + public CustomCalloutExtension customExtension; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java index 9497fb0470e..358a2c6339b 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java +++ b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java @@ -91,7 +91,7 @@ public class DeviceLogCollectionResponse extends Entity implements IJsonBackedOb /** * The Status. - * Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending. + * Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending. Possible values are: pending, completed, failed, unknownFutureValue. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java b/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java index 8f3bc232384..d9f49ddc617 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java +++ b/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Clean Device Count. - * Clean device count. + * Indicates number of devices reporting as clean */ @SerializedName(value = "cleanDeviceCount", alternate = {"CleanDeviceCount"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Critical Failures Device Count. - * Critical failures device count. + * Indicates number of devices with critical failures */ @SerializedName(value = "criticalFailuresDeviceCount", alternate = {"CriticalFailuresDeviceCount"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Inactive Threat Agent Device Count. - * Device with inactive threat agent count + * Indicates number of devices with inactive threat agent */ @SerializedName(value = "inactiveThreatAgentDeviceCount", alternate = {"InactiveThreatAgentDeviceCount"}) @Expose @@ -66,7 +66,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Pending Full Scan Device Count. - * Pending full scan device count. + * Indicates number of devices pending full scan */ @SerializedName(value = "pendingFullScanDeviceCount", alternate = {"PendingFullScanDeviceCount"}) @Expose @@ -75,7 +75,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Pending Manual Steps Device Count. - * Pending manual steps device count. + * Indicates number of devices with pending manual steps */ @SerializedName(value = "pendingManualStepsDeviceCount", alternate = {"PendingManualStepsDeviceCount"}) @Expose @@ -84,7 +84,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Pending Offline Scan Device Count. - * Pending offline scan device count. + * Indicates number of pending offline scan devices */ @SerializedName(value = "pendingOfflineScanDeviceCount", alternate = {"PendingOfflineScanDeviceCount"}) @Expose @@ -93,7 +93,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Pending Quick Scan Device Count. - * Pending quick scan device count. Valid values -2147483648 to 2147483647 + * Indicates the number of devices that have a pending full scan. Valid values -2147483648 to 2147483647 */ @SerializedName(value = "pendingQuickScanDeviceCount", alternate = {"PendingQuickScanDeviceCount"}) @Expose @@ -102,7 +102,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Pending Restart Device Count. - * Pending restart device count. + * Indicates number of devices pending restart */ @SerializedName(value = "pendingRestartDeviceCount", alternate = {"PendingRestartDeviceCount"}) @Expose @@ -111,7 +111,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Pending Signature Update Device Count. - * Device with old signature count. + * Indicates number of devices with an old signature */ @SerializedName(value = "pendingSignatureUpdateDeviceCount", alternate = {"PendingSignatureUpdateDeviceCount"}) @Expose @@ -129,7 +129,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Unknown State Threat Agent Device Count. - * Device with threat agent state as unknown count. + * Indicates number of devices with threat agent state as unknown */ @SerializedName(value = "unknownStateThreatAgentDeviceCount", alternate = {"UnknownStateThreatAgentDeviceCount"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java b/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java index f9aa862351d..c4cdcb51df0 100644 --- a/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java +++ b/src/main/java/com/microsoft/graph/models/DirectoryDefinition.java @@ -30,7 +30,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Discoverabilities. - * + * Read-only value indicating what type of discovery the app supports. The possible values are: None, AttributeNames, AttributeDataTypes, AttributeReadOnly, ReferenceAttributes, UnknownFutureValue. This is a multi-valued object. */ @SerializedName(value = "discoverabilities", alternate = {"Discoverabilities"}) @Expose @@ -39,7 +39,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Discovery Date Time. - * + * Represents the discovery date and time using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "discoveryDateTime", alternate = {"DiscoveryDateTime"}) @Expose @@ -48,7 +48,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Name. - * + * Name of the directory. Must be unique within the synchronization schema. Not nullable. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -57,7 +57,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Objects. - * + * Collection of objects supported by the directory. */ @SerializedName(value = "objects", alternate = {"Objects"}) @Expose @@ -66,7 +66,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Read Only. - * + * Whether this object is read-only. */ @SerializedName(value = "readOnly", alternate = {"ReadOnly"}) @Expose @@ -75,7 +75,7 @@ public class DirectoryDefinition extends Entity implements IJsonBackedObject { /** * The Version. - * + * Read only value that indicates version discovered. null if discovery has not yet occurred. */ @SerializedName(value = "version", alternate = {"Version"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/EntitlementManagement.java b/src/main/java/com/microsoft/graph/models/EntitlementManagement.java index bb9cf34f639..9f9ff87269d 100644 --- a/src/main/java/com/microsoft/graph/models/EntitlementManagement.java +++ b/src/main/java/com/microsoft/graph/models/EntitlementManagement.java @@ -18,6 +18,10 @@ import com.microsoft.graph.requests.AccessPackageAssignmentCollectionPage; import com.microsoft.graph.requests.AccessPackageCatalogCollectionPage; import com.microsoft.graph.requests.ConnectedOrganizationCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionPage; +import com.microsoft.graph.requests.AccessPackageResourceCollectionPage; import com.google.gson.JsonObject; @@ -97,6 +101,42 @@ public class EntitlementManagement extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.ConnectedOrganizationCollectionPage connectedOrganizations; + /** + * The Resource Environments. + * + */ + @SerializedName(value = "resourceEnvironments", alternate = {"ResourceEnvironments"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionPage resourceEnvironments; + + /** + * The Resource Requests. + * + */ + @SerializedName(value = "resourceRequests", alternate = {"ResourceRequests"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceRequestCollectionPage resourceRequests; + + /** + * The Resource Role Scopes. + * + */ + @SerializedName(value = "resourceRoleScopes", alternate = {"ResourceRoleScopes"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionPage resourceRoleScopes; + + /** + * The Resources. + * + */ + @SerializedName(value = "resources", alternate = {"Resources"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AccessPackageResourceCollectionPage resources; + /** * The Settings. * The settings that control the behavior of Azure AD entitlement management. @@ -143,5 +183,21 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("connectedOrganizations")) { connectedOrganizations = serializer.deserializeObject(json.get("connectedOrganizations"), com.microsoft.graph.requests.ConnectedOrganizationCollectionPage.class); } + + if (json.has("resourceEnvironments")) { + resourceEnvironments = serializer.deserializeObject(json.get("resourceEnvironments"), com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionPage.class); + } + + if (json.has("resourceRequests")) { + resourceRequests = serializer.deserializeObject(json.get("resourceRequests"), com.microsoft.graph.requests.AccessPackageResourceRequestCollectionPage.class); + } + + if (json.has("resourceRoleScopes")) { + resourceRoleScopes = serializer.deserializeObject(json.get("resourceRoleScopes"), com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionPage.class); + } + + if (json.has("resources")) { + resources = serializer.deserializeObject(json.get("resources"), com.microsoft.graph.requests.AccessPackageResourceCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/ExpressionInputObject.java b/src/main/java/com/microsoft/graph/models/ExpressionInputObject.java index 14bd777d4a3..bde008be1b5 100644 --- a/src/main/java/com/microsoft/graph/models/ExpressionInputObject.java +++ b/src/main/java/com/microsoft/graph/models/ExpressionInputObject.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Definition. - * + * Definition of the test object. */ @SerializedName(value = "definition", alternate = {"Definition"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Properties. - * + * Property values of the test object. */ @SerializedName(value = "properties", alternate = {"Properties"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Filter.java b/src/main/java/com/microsoft/graph/models/Filter.java index 8ec01b3571e..84fc5bc33ea 100644 --- a/src/main/java/com/microsoft/graph/models/Filter.java +++ b/src/main/java/com/microsoft/graph/models/Filter.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Category Filter Groups. - * + * *Experimental* Filter group set used to decide whether given object belongs and should be processed as part of this object mapping. An object is considered in scope if ANY of the groups in the collection is evaluated to true. */ @SerializedName(value = "categoryFilterGroups", alternate = {"CategoryFilterGroups"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Groups. - * + * Filter group set used to decide whether given object is in scope for provisioning. This is the filter which should be used in most cases. If an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is not satisfied any longer, such object will get de-provisioned'. An object is considered in scope if ANY of the groups in the collection is evaluated to true. */ @SerializedName(value = "groups", alternate = {"Groups"}) @Expose @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Input Filter Groups. - * + * *Experimental* Filter group set used to filter out objects at the early stage of reading them from the directory. If an object doesn't satisfy this filter it will not be processed further. Important to understand is that if an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is no longer satisfied, such object will NOT get de-provisioned. An object is considered in scope if ANY of the groups in the collection is evaluated to true. */ @SerializedName(value = "inputFilterGroups", alternate = {"InputFilterGroups"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/FilterClause.java b/src/main/java/com/microsoft/graph/models/FilterClause.java index ebd3096e64d..5419127cd07 100644 --- a/src/main/java/com/microsoft/graph/models/FilterClause.java +++ b/src/main/java/com/microsoft/graph/models/FilterClause.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Operator Name. - * + * Name of the operator to be applied to the source and target operands. Must be one of the supported operators. Supported operators can be discovered. */ @SerializedName(value = "operatorName", alternate = {"OperatorName"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Source Operand Name. - * + * Name of source operand (the operand being tested). The source operand name must match one of the attribute names on the source object. */ @SerializedName(value = "sourceOperandName", alternate = {"SourceOperandName"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Target Operand. - * + * Values that the source operand will be tested against. */ @SerializedName(value = "targetOperand", alternate = {"TargetOperand"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/FilterGroup.java b/src/main/java/com/microsoft/graph/models/FilterGroup.java index 0c6e22f6e76..f928c0ba12b 100644 --- a/src/main/java/com/microsoft/graph/models/FilterGroup.java +++ b/src/main/java/com/microsoft/graph/models/FilterGroup.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Clauses. - * + * Filter clauses (conditions) of this group. All clauses in a group must be satisfied in order for the filter group to evaluate to true. */ @SerializedName(value = "clauses", alternate = {"Clauses"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Human-readable name of the filter group. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/FilterOperand.java b/src/main/java/com/microsoft/graph/models/FilterOperand.java index bafaf68f8f5..e8e1c48f950 100644 --- a/src/main/java/com/microsoft/graph/models/FilterOperand.java +++ b/src/main/java/com/microsoft/graph/models/FilterOperand.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Values. - * + * Collection of values. */ @SerializedName(value = "values", alternate = {"Values"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/FilterOperatorSchema.java b/src/main/java/com/microsoft/graph/models/FilterOperatorSchema.java index d2b427e37a2..839c9000cbf 100644 --- a/src/main/java/com/microsoft/graph/models/FilterOperatorSchema.java +++ b/src/main/java/com/microsoft/graph/models/FilterOperatorSchema.java @@ -31,7 +31,7 @@ public class FilterOperatorSchema extends Entity implements IJsonBackedObject { /** * The Arity. - * + * Arity of the operator. Possible values are: Binary, Unary. The default is Binary. */ @SerializedName(value = "arity", alternate = {"Arity"}) @Expose @@ -40,7 +40,7 @@ public class FilterOperatorSchema extends Entity implements IJsonBackedObject { /** * The Multivalued Comparison Type. - * + * Possible values are: All, Any. Applies only to multivalued attributes. All means that all values must satisfy the condition. Any means that at least one value has to satisfy the condition. The default is All. */ @SerializedName(value = "multivaluedComparisonType", alternate = {"MultivaluedComparisonType"}) @Expose @@ -49,7 +49,7 @@ public class FilterOperatorSchema extends Entity implements IJsonBackedObject { /** * The Supported Attribute Types. - * + * Attribute types supported by the operator. Possible values are: Boolean, Binary, Reference, Integer, String. */ @SerializedName(value = "supportedAttributeTypes", alternate = {"SupportedAttributeTypes"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java index 000cda7ebae..bfa9d81b895 100644 --- a/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java @@ -45,7 +45,7 @@ public class IosStoreAppAssignmentSettings extends MobileAppAssignmentSettings i /** * The Vpn Configuration Id. - * The VPN Configuration Id to apply for this app. + * This is the unique identifier (Id) of the VPN Configuration to apply to the app. */ @SerializedName(value = "vpnConfigurationId", alternate = {"VpnConfigurationId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/MalwareStateForWindowsDevice.java b/src/main/java/com/microsoft/graph/models/MalwareStateForWindowsDevice.java index e4c07f330a6..50ea4ce5930 100644 --- a/src/main/java/com/microsoft/graph/models/MalwareStateForWindowsDevice.java +++ b/src/main/java/com/microsoft/graph/models/MalwareStateForWindowsDevice.java @@ -29,7 +29,7 @@ public class MalwareStateForWindowsDevice extends Entity implements IJsonBackedO /** * The Detection Count. - * Number of times the malware is detected + * Indicates the number of times the malware is detected */ @SerializedName(value = "detectionCount", alternate = {"DetectionCount"}) @Expose @@ -38,7 +38,7 @@ public class MalwareStateForWindowsDevice extends Entity implements IJsonBackedO /** * The Device Name. - * Device name + * Indicates the name of the device being evaluated for malware state */ @SerializedName(value = "deviceName", alternate = {"DeviceName"}) @Expose @@ -47,7 +47,7 @@ public class MalwareStateForWindowsDevice extends Entity implements IJsonBackedO /** * The Execution State. - * Execution status of the malware like blocked/executing etc. Possible values are: unknown, blocked, allowed, running, notRunning. + * Indicates execution status of the malware. Possible values are: unknown, blocked, allowed, running, notRunning. Defaults to unknown. Possible values are: unknown, blocked, allowed, running, notRunning. */ @SerializedName(value = "executionState", alternate = {"ExecutionState"}) @Expose @@ -74,7 +74,7 @@ public class MalwareStateForWindowsDevice extends Entity implements IJsonBackedO /** * The Threat State. - * Threat status of the malware like cleaned/quarantined/allowed etc. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. + * Indicates threat status of the malware. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. defaults to noStatusCleared. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. */ @SerializedName(value = "threatState", alternate = {"ThreatState"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ManagedDevice.java b/src/main/java/com/microsoft/graph/models/ManagedDevice.java index cf208307dac..1260dde8392 100644 --- a/src/main/java/com/microsoft/graph/models/ManagedDevice.java +++ b/src/main/java/com/microsoft/graph/models/ManagedDevice.java @@ -45,7 +45,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Activation Lock Bypass Code. - * The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. Individual GET call with select query options is needed to retrieve actual values. Supports: $select. $Search is not supported. Read-only. This property is read-only. + * The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only. */ @SerializedName(value = "activationLockBypassCode", alternate = {"ActivationLockBypassCode"}) @Expose @@ -90,7 +90,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Compliance State. - * Compliance state of the device. This property is read-only. Possible values are: unknown, compliant, noncompliant, conflict, error, inGracePeriod, configManager. + * Compliance state of the device. Examples: Compliant, Conflict, Error, etc. Default is unknown. Supports $filter operator 'eq' and 'or'. This property is read-only. Possible values are: unknown, compliant, noncompliant, conflict, error, inGracePeriod, configManager. */ @SerializedName(value = "complianceState", alternate = {"ComplianceState"}) @Expose @@ -117,7 +117,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Device Category Display Name. - * Device category display name. This property is read-only. + * Device category display name. Default is an empty string. Supports $filter operator 'eq' and 'or'. This property is read-only. */ @SerializedName(value = "deviceCategoryDisplayName", alternate = {"DeviceCategoryDisplayName"}) @Expose @@ -198,7 +198,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Enrolled Date Time. - * Enrollment time of the device. This property is read-only. + * Enrollment time of the device. Supports $filter operator 'lt' and 'gt'. This property is read-only. */ @SerializedName(value = "enrolledDateTime", alternate = {"EnrolledDateTime"}) @Expose @@ -252,7 +252,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Iccid. - * Integrated Circuit Card Identifier, it is A SIM card's unique identification number. Return default value null in LIST managedDevices. Real value only returned in singel device GET call with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only. + * Integrated Circuit Card Identifier, it is A SIM card's unique identification number. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only. */ @SerializedName(value = "iccid", alternate = {"Iccid"}) @Expose @@ -288,7 +288,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Jail Broken. - * whether the device is jail broken or rooted. This property is read-only. + * Whether the device is jail broken or rooted. Default is an empty string. Supports $filter operator 'eq' and 'or'. This property is read-only. */ @SerializedName(value = "jailBroken", alternate = {"JailBroken"}) @Expose @@ -297,7 +297,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Last Sync Date Time. - * The date and time that the device last completed a successful sync with Intune. This property is read-only. + * The date and time that the device last completed a successful sync with Intune. Supports $filter operator 'lt' and 'gt'. This property is read-only. */ @SerializedName(value = "lastSyncDateTime", alternate = {"LastSyncDateTime"}) @Expose @@ -324,7 +324,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Management Agent. - * Management channel of the device. Intune, EAS, etc. This property is read-only. Possible values are: eas, mdm, easMdm, intuneClient, easIntuneClient, configurationManagerClient, configurationManagerClientMdm, configurationManagerClientMdmEas, unknown, jamf, googleCloudDevicePolicyController. + * Management channel of the device. Examples: Intune, EAS, etc. Default is unknown. Supports $filter operator 'eq' and 'or'. This property is read-only. Possible values are: eas, mdm, easMdm, intuneClient, easIntuneClient, configurationManagerClient, configurationManagerClientMdm, configurationManagerClientMdmEas, unknown, jamf, googleCloudDevicePolicyController. */ @SerializedName(value = "managementAgent", alternate = {"ManagementAgent"}) @Expose @@ -369,7 +369,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Notes. - * Notes on the device created by IT Admin. Return default value null in LIST managedDevices. Real value only returned in singel device GET call with device id and included in select parameter. Supports: $select. $Search is not supported. + * Notes on the device created by IT Admin. Default is null. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. */ @SerializedName(value = "notes", alternate = {"Notes"}) @Expose @@ -414,7 +414,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Physical Memory In Bytes. - * Total Memory in Bytes. Return default value 0 in LIST managedDevices. Real value only returned in singel device GET call with device id and included in select parameter. Supports: $select. Default value is 0. Read-only. This property is read-only. + * Total Memory in Bytes. Default is 0. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. Read-only. This property is read-only. */ @SerializedName(value = "physicalMemoryInBytes", alternate = {"PhysicalMemoryInBytes"}) @Expose @@ -432,7 +432,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Remote Assistance Session Url. - * Url that allows a Remote Assistance session to be established with the device. This property is read-only. + * Url that allows a Remote Assistance session to be established with the device. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. This property is read-only. */ @SerializedName(value = "remoteAssistanceSessionUrl", alternate = {"RemoteAssistanceSessionUrl"}) @Expose @@ -477,7 +477,7 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { /** * The Udid. - * Unique Device Identifier for iOS and macOS devices. Return default value null in LIST managedDevices. Real value only returned in singel device GET call with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only. + * Unique Device Identifier for iOS and macOS devices. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only. */ @SerializedName(value = "udid", alternate = {"Udid"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ObjectDefinition.java b/src/main/java/com/microsoft/graph/models/ObjectDefinition.java index e24547ad672..a42e874647e 100644 --- a/src/main/java/com/microsoft/graph/models/ObjectDefinition.java +++ b/src/main/java/com/microsoft/graph/models/ObjectDefinition.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Attributes. - * + * Defines attributes of the object. */ @SerializedName(value = "attributes", alternate = {"Attributes"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * + * Metadata for the given object. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Name of the object. Must be unique within a directory definition. Not nullable. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Supported Apis. - * + * The API that the provisioning service queries to retrieve data for synchronization. */ @SerializedName(value = "supportedApis", alternate = {"SupportedApis"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ObjectDefinitionMetadataEntry.java b/src/main/java/com/microsoft/graph/models/ObjectDefinitionMetadataEntry.java index 55934c20648..ddad17dc78d 100644 --- a/src/main/java/com/microsoft/graph/models/ObjectDefinitionMetadataEntry.java +++ b/src/main/java/com/microsoft/graph/models/ObjectDefinitionMetadataEntry.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Possible values are: PropertyNameAccountEnabled, PropertyNameSoftDeleted, IsSoftDeletionSupported, IsSynchronizeAllSupported, ConnectorDataStorageRequired, Extensions, LinkTypeName. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * Value of the metadata property. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ObjectMapping.java b/src/main/java/com/microsoft/graph/models/ObjectMapping.java index 63ff06be60b..b74aeeb54a6 100644 --- a/src/main/java/com/microsoft/graph/models/ObjectMapping.java +++ b/src/main/java/com/microsoft/graph/models/ObjectMapping.java @@ -44,7 +44,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Attribute Mappings. - * + * Attribute mappings define which attributes to map from the source object into the target object and how they should flow. A number of functions are available to support the transformation of the original source values. */ @SerializedName(value = "attributeMappings", alternate = {"AttributeMappings"}) @Expose @@ -53,7 +53,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Enabled. - * + * When true, this object mapping will be processed during synchronization. When false, this object mapping will be skipped. */ @SerializedName(value = "enabled", alternate = {"Enabled"}) @Expose @@ -62,7 +62,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Flow Types. - * + * Which flow types are enabled for this object mapping. Add creates new objects in the target directory, Update modifies existing objects, and Delete deprovisions existing users. The default is Add, Update, Delete. */ @SerializedName(value = "flowTypes", alternate = {"FlowTypes"}) @Expose @@ -71,7 +71,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * + * Additional extension properties. Unless mentioned explicitly, metadata values should not be changed. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose @@ -80,7 +80,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Human-friendly name of the object mapping. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -89,7 +89,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Scope. - * + * Defines a filter to be used when deciding whether a given object should be provisioned. For example, you might want to only provision users that are located in the US. */ @SerializedName(value = "scope", alternate = {"Scope"}) @Expose @@ -98,7 +98,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Source Object Name. - * + * Name of the object in the source directory. Must match the object name from the source directory definition. */ @SerializedName(value = "sourceObjectName", alternate = {"SourceObjectName"}) @Expose @@ -107,7 +107,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Target Object Name. - * + * Name of the object in target directory. Must match the object name from the target directory definition. */ @SerializedName(value = "targetObjectName", alternate = {"TargetObjectName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ObjectMappingMetadataEntry.java b/src/main/java/com/microsoft/graph/models/ObjectMappingMetadataEntry.java index b3c081be6b1..ed7e8a92b8c 100644 --- a/src/main/java/com/microsoft/graph/models/ObjectMappingMetadataEntry.java +++ b/src/main/java/com/microsoft/graph/models/ObjectMappingMetadataEntry.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Possible values are: EscrowBehavior, DisableMonitoringForChanges, OriginalJoiningProperty, Disposition, IsCustomerDefined, ExcludeFromReporting, Unsynchronized. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * Value of the metadata property. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ParseExpressionResponse.java b/src/main/java/com/microsoft/graph/models/ParseExpressionResponse.java index faf9a94e70d..6fa3196c132 100644 --- a/src/main/java/com/microsoft/graph/models/ParseExpressionResponse.java +++ b/src/main/java/com/microsoft/graph/models/ParseExpressionResponse.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Error. - * + * Error details, if expression evaluation resulted in an error. */ @SerializedName(value = "error", alternate = {"Error"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Evaluation Result. - * + * A collection of values produced by the evaluation of the expression. */ @SerializedName(value = "evaluationResult", alternate = {"EvaluationResult"}) @Expose @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Evaluation Succeeded. - * + * true if the evaluation was successful. */ @SerializedName(value = "evaluationSucceeded", alternate = {"EvaluationSucceeded"}) @Expose @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Parsed Expression. - * + * An attributeMappingSource object representing the parsed expression. */ @SerializedName(value = "parsedExpression", alternate = {"ParsedExpression"}) @Expose @@ -78,7 +78,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Parsing Succeeded. - * + * true if the expression was parsed successfully. */ @SerializedName(value = "parsingSucceeded", alternate = {"ParsingSucceeded"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ReferencedObject.java b/src/main/java/com/microsoft/graph/models/ReferencedObject.java index 49effdc4bff..84a52f60040 100644 --- a/src/main/java/com/microsoft/graph/models/ReferencedObject.java +++ b/src/main/java/com/microsoft/graph/models/ReferencedObject.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Referenced Object Name. - * + * Name of the referenced object. Must match one of the objects in the directory definition. */ @SerializedName(value = "referencedObjectName", alternate = {"ReferencedObjectName"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Referenced Property. - * + * Currently not supported. Name of the property in the referenced object, the value for which is used as the reference. */ @SerializedName(value = "referencedProperty", alternate = {"ReferencedProperty"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ReportRoot.java b/src/main/java/com/microsoft/graph/models/ReportRoot.java index 27db37beaba..ae9da074e06 100644 --- a/src/main/java/com/microsoft/graph/models/ReportRoot.java +++ b/src/main/java/com/microsoft/graph/models/ReportRoot.java @@ -42,7 +42,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Authentication Methods. - * + * Container for navigation properties for Azure AD authentication methods resources. */ @SerializedName(value = "authenticationMethods", alternate = {"AuthenticationMethods"}) @Expose @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Daily Print Usage By Printer. - * + * Retrieve a list of daily print usage summaries, grouped by printer. */ @SerializedName(value = "dailyPrintUsageByPrinter", alternate = {"DailyPrintUsageByPrinter"}) @Expose @@ -60,7 +60,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Daily Print Usage By User. - * + * Retrieve a list of daily print usage summaries, grouped by user. */ @SerializedName(value = "dailyPrintUsageByUser", alternate = {"DailyPrintUsageByUser"}) @Expose @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Monthly Print Usage By Printer. - * + * Retrieve a list of monthly print usage summaries, grouped by printer. */ @SerializedName(value = "monthlyPrintUsageByPrinter", alternate = {"MonthlyPrintUsageByPrinter"}) @Expose @@ -78,7 +78,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Monthly Print Usage By User. - * + * Retrieve a list of monthly print usage summaries, grouped by user. */ @SerializedName(value = "monthlyPrintUsageByUser", alternate = {"MonthlyPrintUsageByUser"}) @Expose @@ -87,7 +87,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Security. - * + * Represents an abstract type that contains resources for attack simulation and training reports. */ @SerializedName(value = "security", alternate = {"Security"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ServicePrincipal.java b/src/main/java/com/microsoft/graph/models/ServicePrincipal.java index 62dcbddf3a6..f144fd7f69d 100644 --- a/src/main/java/com/microsoft/graph/models/ServicePrincipal.java +++ b/src/main/java/com/microsoft/graph/models/ServicePrincipal.java @@ -465,7 +465,7 @@ public class ServicePrincipal extends DirectoryObject implements IJsonBackedObje /** * The Synchronization. - * + * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. */ @SerializedName(value = "synchronization", alternate = {"Synchronization"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/StringKeyAttributeMappingSourceValuePair.java b/src/main/java/com/microsoft/graph/models/StringKeyAttributeMappingSourceValuePair.java index a0a41fdef3a..41aad8ba782 100644 --- a/src/main/java/com/microsoft/graph/models/StringKeyAttributeMappingSourceValuePair.java +++ b/src/main/java/com/microsoft/graph/models/StringKeyAttributeMappingSourceValuePair.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * The name of the parameter. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * The value of the parameter. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/StringKeyLongValuePair.java b/src/main/java/com/microsoft/graph/models/StringKeyLongValuePair.java index efaac5592c8..1e872c3d964 100644 --- a/src/main/java/com/microsoft/graph/models/StringKeyLongValuePair.java +++ b/src/main/java/com/microsoft/graph/models/StringKeyLongValuePair.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * The mapping of the user type from the source system to the target system. For example:User to User - For Azure AD to Azure AD synchronization worker to user - For Workday to Azure AD synchronization. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * Total number of synchronized objects. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/StringKeyObjectValuePair.java b/src/main/java/com/microsoft/graph/models/StringKeyObjectValuePair.java index d97bcb1300e..bef28f896ba 100644 --- a/src/main/java/com/microsoft/graph/models/StringKeyObjectValuePair.java +++ b/src/main/java/com/microsoft/graph/models/StringKeyObjectValuePair.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Key. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/StringKeyStringValuePair.java b/src/main/java/com/microsoft/graph/models/StringKeyStringValuePair.java index 3b4186d820f..d7513d220e7 100644 --- a/src/main/java/com/microsoft/graph/models/StringKeyStringValuePair.java +++ b/src/main/java/com/microsoft/graph/models/StringKeyStringValuePair.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Key. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * Value. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Synchronization.java b/src/main/java/com/microsoft/graph/models/Synchronization.java index fae874a87e9..5e8ed07a6bd 100644 --- a/src/main/java/com/microsoft/graph/models/Synchronization.java +++ b/src/main/java/com/microsoft/graph/models/Synchronization.java @@ -31,7 +31,7 @@ public class Synchronization extends Entity implements IJsonBackedObject { /** * The Secrets. - * + * Represents a collection of credentials to access provisioned cloud applications. */ @SerializedName(value = "secrets", alternate = {"Secrets"}) @Expose @@ -40,7 +40,7 @@ public class Synchronization extends Entity implements IJsonBackedObject { /** * The Jobs. - * + * Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. */ @SerializedName(value = "jobs", alternate = {"Jobs"}) @Expose @@ -49,7 +49,7 @@ public class Synchronization extends Entity implements IJsonBackedObject { /** * The Templates. - * + * Pre-configured synchronization settings for a particular application. */ @SerializedName(value = "templates", alternate = {"Templates"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationError.java b/src/main/java/com/microsoft/graph/models/SynchronizationError.java index 692797d873e..a767854d8fb 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationError.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationError.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Code. - * + * The error code. For example, AzureDirectoryB2BManagementPolicyCheckFailure. */ @SerializedName(value = "code", alternate = {"Code"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Message. - * + * The error message. For example, Policy permitting auto-redemption of invitations not configured. */ @SerializedName(value = "message", alternate = {"Message"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Tenant Actionable. - * + * The action to take to resolve the error. For example, false. */ @SerializedName(value = "tenantActionable", alternate = {"TenantActionable"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationJob.java b/src/main/java/com/microsoft/graph/models/SynchronizationJob.java index caa82e07612..c90aa23e472 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationJob.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationJob.java @@ -32,7 +32,7 @@ public class SynchronizationJob extends Entity implements IJsonBackedObject { /** * The Schedule. - * + * Schedule used to run the job. Read-only. */ @SerializedName(value = "schedule", alternate = {"Schedule"}) @Expose @@ -41,7 +41,7 @@ public class SynchronizationJob extends Entity implements IJsonBackedObject { /** * The Status. - * + * Status of the job, which includes when the job was last run, current job state, and errors. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose @@ -50,7 +50,7 @@ public class SynchronizationJob extends Entity implements IJsonBackedObject { /** * The Synchronization Job Settings. - * + * Settings associated with the job. Some settings are inherited from the template. */ @SerializedName(value = "synchronizationJobSettings", alternate = {"SynchronizationJobSettings"}) @Expose @@ -59,7 +59,7 @@ public class SynchronizationJob extends Entity implements IJsonBackedObject { /** * The Template Id. - * + * Identifier of the synchronization template this job is based on. */ @SerializedName(value = "templateId", alternate = {"TemplateId"}) @Expose @@ -68,7 +68,7 @@ public class SynchronizationJob extends Entity implements IJsonBackedObject { /** * The Schema. - * + * The synchronization schema configured for the job. */ @SerializedName(value = "schema", alternate = {"Schema"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationJobApplicationParameters.java b/src/main/java/com/microsoft/graph/models/SynchronizationJobApplicationParameters.java index 26799a6c53c..1c881678c44 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationJobApplicationParameters.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationJobApplicationParameters.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Rule Id. - * + * The identifier of the synchronizationRule to be applied. This rule ID is defined in the schema for a given synchronization job or template. */ @SerializedName(value = "ruleId", alternate = {"RuleId"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Subjects. - * + * The identifiers of one or more objects to which a synchronizationJob is to be applied. */ @SerializedName(value = "subjects", alternate = {"Subjects"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java b/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java index 92fa1d77404..fe1a4642744 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationJobRestartCriteria.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Reset Scope. - * + * Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to re-evaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Azure portal. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. */ @SerializedName(value = "resetScope", alternate = {"ResetScope"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationJobSubject.java b/src/main/java/com/microsoft/graph/models/SynchronizationJobSubject.java index 907360e683c..2194006f84c 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationJobSubject.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationJobSubject.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Links. - * + * Principals that you would like to provision. */ @SerializedName(value = "links", alternate = {"Links"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Object Id. - * + * The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. */ @SerializedName(value = "objectId", alternate = {"ObjectId"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Object Type Name. - * + * The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Azure AD and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Azure AD.Group for synchronizing a group between Azure AD and a third-party application. */ @SerializedName(value = "objectTypeName", alternate = {"ObjectTypeName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationLinkedObjects.java b/src/main/java/com/microsoft/graph/models/SynchronizationLinkedObjects.java index aef283d7a0a..c854f1036b7 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationLinkedObjects.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationLinkedObjects.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Members. - * + * All group members that you would like to provision. */ @SerializedName(value = "members", alternate = {"Members"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationMetadataEntry.java b/src/main/java/com/microsoft/graph/models/SynchronizationMetadataEntry.java index 722e2cec741..e63fe773106 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationMetadataEntry.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationMetadataEntry.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Possible values are: GalleryApplicationIdentifier, GalleryApplicationKey, IsOAuthEnabled, IsSynchronizationAgentAssignmentRequired, IsSynchronizationAgentRequired, IsSynchronizationInPreview, OAuthSettings, SynchronizationLearnMoreIbizaFwLink, ConfigurationFields. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * Value of the metadata property. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationProgress.java b/src/main/java/com/microsoft/graph/models/SynchronizationProgress.java index f42283b1bf4..6c076d8349d 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationProgress.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationProgress.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Completed Units. - * + * The numerator of a progress ratio; the number of units of changes already processed. */ @SerializedName(value = "completedUnits", alternate = {"CompletedUnits"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Progress Observation Date Time. - * + * The time of a progress observation as an offset in minutes from UTC. */ @SerializedName(value = "progressObservationDateTime", alternate = {"ProgressObservationDateTime"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Total Units. - * + * The denominator of a progress ratio; a number of units of changes to be processed to accomplish synchronization. */ @SerializedName(value = "totalUnits", alternate = {"TotalUnits"}) @Expose @@ -66,7 +66,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Units. - * + * An optional description of the units. */ @SerializedName(value = "units", alternate = {"Units"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationQuarantine.java b/src/main/java/com/microsoft/graph/models/SynchronizationQuarantine.java index 7aae534f476..2ad9ae12822 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationQuarantine.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationQuarantine.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Current Began. - * + * Date and time when the quarantine was last evaluated and imposed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "currentBegan", alternate = {"CurrentBegan"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Error. - * + * Describes the error(s) that occurred when putting the synchronization job into quarantine. */ @SerializedName(value = "error", alternate = {"Error"}) @Expose @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Next Attempt. - * + * Date and time when the next attempt to re-evaluate the quarantine will be made. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "nextAttempt", alternate = {"NextAttempt"}) @Expose @@ -68,7 +68,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Reason. - * + * A code that signifies why the quarantine was imposed. The possible values are: EncounteredBaseEscrowThreshold, EncounteredTotalEscrowThreshold, EncounteredEscrowProportionThreshold, EncounteredQuarantineException, Unknown, QuarantinedOnDemand, TooManyDeletes, IngestionInterrupted. */ @SerializedName(value = "reason", alternate = {"Reason"}) @Expose @@ -77,7 +77,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Series Began. - * + * Date and time when the quarantine was first imposed in this series (a series starts when a quarantine is first imposed, and is reset as soon as the quarantine is lifted). The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "seriesBegan", alternate = {"SeriesBegan"}) @Expose @@ -86,7 +86,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Series Count. - * + * Number of times in this series the quarantine was re-evaluated and left in effect (a series starts when quarantine is first imposed, and is reset as soon as quarantine is lifted). */ @SerializedName(value = "seriesCount", alternate = {"SeriesCount"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationRule.java b/src/main/java/com/microsoft/graph/models/SynchronizationRule.java index ff3c9c292f6..b1a248c5016 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationRule.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationRule.java @@ -53,7 +53,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Editable. - * + * true if the synchronization rule can be customized; false if this rule is read-only and should not be changed. */ @SerializedName(value = "editable", alternate = {"Editable"}) @Expose @@ -71,7 +71,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Id. - * + * Synchronization rule identifier. Must be one of the identifiers recognized by the synchronization engine. Supported rule identifiers can be found in the synchronization template returned by the API. */ @SerializedName(value = "id", alternate = {"Id"}) @Expose @@ -80,7 +80,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Metadata. - * + * Additional extension properties. Unless instructed explicitly by the support team, metadata values should not be changed. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose @@ -89,7 +89,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Human-readable name of the synchronization rule. Not nullable. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -98,7 +98,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Object Mappings. - * + * Collection of object mappings supported by the rule. Tells the synchronization engine which objects should be synchronized. */ @SerializedName(value = "objectMappings", alternate = {"ObjectMappings"}) @Expose @@ -107,7 +107,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Priority. - * + * Priority relative to other rules in the synchronizationSchema. Rules with the lowest priority number will be processed first. */ @SerializedName(value = "priority", alternate = {"Priority"}) @Expose @@ -116,7 +116,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Source Directory Name. - * + * Name of the source directory. Must match one of the directory definitions in synchronizationSchema. */ @SerializedName(value = "sourceDirectoryName", alternate = {"SourceDirectoryName"}) @Expose @@ -125,7 +125,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Target Directory Name. - * + * Name of the target directory. Must match one of the directory definitions in synchronizationSchema. */ @SerializedName(value = "targetDirectoryName", alternate = {"TargetDirectoryName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java b/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java index af5f47231b2..03d91c33051 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationSchedule.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Expiration. - * + * Date and time when this job will expire. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "expiration", alternate = {"Expiration"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Interval. - * + * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of 1 month. */ @SerializedName(value = "interval", alternate = {"Interval"}) @Expose @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The State. - * + * The possible values are: Active, Disabled, Paused. */ @SerializedName(value = "state", alternate = {"State"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationSchema.java b/src/main/java/com/microsoft/graph/models/SynchronizationSchema.java index 3146cf850ba..98253ecefd6 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationSchema.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationSchema.java @@ -30,7 +30,7 @@ public class SynchronizationSchema extends Entity implements IJsonBackedObject { /** * The Synchronization Rules. - * + * A collection of synchronization rules configured for the synchronizationJob or synchronizationTemplate. */ @SerializedName(value = "synchronizationRules", alternate = {"SynchronizationRules"}) @Expose @@ -39,7 +39,7 @@ public class SynchronizationSchema extends Entity implements IJsonBackedObject { /** * The Version. - * + * The version of the schema, updated automatically with every schema change. */ @SerializedName(value = "version", alternate = {"Version"}) @Expose @@ -48,7 +48,7 @@ public class SynchronizationSchema extends Entity implements IJsonBackedObject { /** * The Directories. - * + * Contains the collection of directories and all of their objects. */ @SerializedName(value = "directories", alternate = {"Directories"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationSecretKeyStringValuePair.java b/src/main/java/com/microsoft/graph/models/SynchronizationSecretKeyStringValuePair.java index e0a76251001..c4dc4eda528 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationSecretKeyStringValuePair.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationSecretKeyStringValuePair.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * + * Possible values are: None, UserName, Password, SecretToken, AppKey, BaseAddress, ClientIdentifier, ClientSecret, SingleSignOnType, Sandbox, Url, Domain, ConsumerKey, ConsumerSecret, TokenKey, TokenExpiration, Oauth2AccessToken, Oauth2AccessTokenCreationTime, Oauth2RefreshToken, SyncAll, InstanceName, Oauth2ClientId, Oauth2ClientSecret, CompanyId, UpdateKeyOnSoftDelete, SynchronizationSchedule, SystemOfRecord, SandboxName, EnforceDomain, SyncNotificationSettings, SkipOutOfScopeDeletions, Oauth2AuthorizationCode, Oauth2RedirectUri, ApplicationTemplateIdentifier, Oauth2TokenExchangeUri, Oauth2AuthorizationUri, AuthenticationType, Server, PerformInboundEntitlementGrants, HardDeletesEnabled, SyncAgentCompatibilityKey, SyncAgentADContainer, ValidateDomain, TestReferences, ConnectionString. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * + * The value of the secret. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationStatus.java b/src/main/java/com/microsoft/graph/models/SynchronizationStatus.java index d1a715eb8bc..e3ea1ebc83f 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationStatus.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationStatus.java @@ -45,7 +45,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Code. - * + * High-level status code of the synchronization job. Possible values are: NotConfigured, NotRun, Active, Paused, Quarantine. */ @SerializedName(value = "code", alternate = {"Code"}) @Expose @@ -54,7 +54,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Successive Complete Failures. - * + * Number of consecutive times this job failed. */ @SerializedName(value = "countSuccessiveCompleteFailures", alternate = {"CountSuccessiveCompleteFailures"}) @Expose @@ -63,7 +63,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Escrows Pruned. - * + * true if the job's escrows (object-level errors) were pruned during initial synchronization. Escrows can be pruned if during the initial synchronization, you reach the threshold of errors that would normally put the job in quarantine. Instead of going into quarantine, the synchronization process clears the job's errors and continues until the initial synchronization is completed. When the initial synchronization is completed, the job will pause and wait for the customer to clean up the errors. */ @SerializedName(value = "escrowsPruned", alternate = {"EscrowsPruned"}) @Expose @@ -72,7 +72,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Last Execution. - * + * Details of the last execution of the job. */ @SerializedName(value = "lastExecution", alternate = {"LastExecution"}) @Expose @@ -81,7 +81,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Last Successful Execution. - * + * Details of the last execution of this job, which didn't have any errors. */ @SerializedName(value = "lastSuccessfulExecution", alternate = {"LastSuccessfulExecution"}) @Expose @@ -90,7 +90,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Last Successful Execution With Exports. - * + * Details of the last execution of the job, which exported objects into the target directory. */ @SerializedName(value = "lastSuccessfulExecutionWithExports", alternate = {"LastSuccessfulExecutionWithExports"}) @Expose @@ -99,7 +99,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Progress. - * + * Details of the progress of a job toward completion. */ @SerializedName(value = "progress", alternate = {"Progress"}) @Expose @@ -108,7 +108,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Quarantine. - * + * If job is in quarantine, quarantine details. */ @SerializedName(value = "quarantine", alternate = {"Quarantine"}) @Expose @@ -117,7 +117,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Steady State First Achieved Time. - * + * The time when steady state (no more changes to the process) was first achieved. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "steadyStateFirstAchievedTime", alternate = {"SteadyStateFirstAchievedTime"}) @Expose @@ -126,7 +126,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Steady State Last Achieved Time. - * + * The time when steady state (no more changes to the process) was last achieved. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "steadyStateLastAchievedTime", alternate = {"SteadyStateLastAchievedTime"}) @Expose @@ -135,7 +135,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Synchronized Entry Count By Type. - * + * Count of synchronized objects, listed by object type. */ @SerializedName(value = "synchronizedEntryCountByType", alternate = {"SynchronizedEntryCountByType"}) @Expose @@ -144,7 +144,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Troubleshooting Url. - * + * In the event of an error, the URL with the troubleshooting steps for the issue. */ @SerializedName(value = "troubleshootingUrl", alternate = {"TroubleshootingUrl"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationTaskExecution.java b/src/main/java/com/microsoft/graph/models/SynchronizationTaskExecution.java index 4d4a7294201..22a19da0a8c 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationTaskExecution.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationTaskExecution.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Activity Identifier. - * + * Identifier of the job run. */ @SerializedName(value = "activityIdentifier", alternate = {"ActivityIdentifier"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Entitled. - * + * Count of processed entries that were assigned for this application. */ @SerializedName(value = "countEntitled", alternate = {"CountEntitled"}) @Expose @@ -59,7 +59,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Entitled For Provisioning. - * + * Count of processed entries that were assigned for provisioning. */ @SerializedName(value = "countEntitledForProvisioning", alternate = {"CountEntitledForProvisioning"}) @Expose @@ -68,7 +68,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Escrowed. - * + * Count of entries that were escrowed (errors). */ @SerializedName(value = "countEscrowed", alternate = {"CountEscrowed"}) @Expose @@ -77,7 +77,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Escrowed Raw. - * + * Count of entries that were escrowed, including system-generated escrows. */ @SerializedName(value = "countEscrowedRaw", alternate = {"CountEscrowedRaw"}) @Expose @@ -86,7 +86,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Exported. - * + * Count of exported entries. */ @SerializedName(value = "countExported", alternate = {"CountExported"}) @Expose @@ -95,7 +95,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Exports. - * + * Count of entries that were expected to be exported. */ @SerializedName(value = "countExports", alternate = {"CountExports"}) @Expose @@ -104,7 +104,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Imported. - * + * Count of imported entries. */ @SerializedName(value = "countImported", alternate = {"CountImported"}) @Expose @@ -113,7 +113,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Imported Deltas. - * + * Count of imported delta-changes. */ @SerializedName(value = "countImportedDeltas", alternate = {"CountImportedDeltas"}) @Expose @@ -122,7 +122,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Count Imported Reference Deltas. - * + * Count of imported delta-changes pertaining to reference changes. */ @SerializedName(value = "countImportedReferenceDeltas", alternate = {"CountImportedReferenceDeltas"}) @Expose @@ -131,7 +131,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Error. - * + * If an error was encountered, contains a synchronizationError object with details. */ @SerializedName(value = "error", alternate = {"Error"}) @Expose @@ -140,7 +140,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The State. - * + * Code summarizing the result of this run. Possible values are: Succeeded, Failed, EntryLevelErrors. */ @SerializedName(value = "state", alternate = {"State"}) @Expose @@ -149,7 +149,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Time Began. - * + * Time when this job run began. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "timeBegan", alternate = {"TimeBegan"}) @Expose @@ -158,7 +158,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Time Ended. - * + * Time when this job run ended. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "timeEnded", alternate = {"TimeEnded"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SynchronizationTemplate.java b/src/main/java/com/microsoft/graph/models/SynchronizationTemplate.java index 0079dfed7d7..65266cb7244 100644 --- a/src/main/java/com/microsoft/graph/models/SynchronizationTemplate.java +++ b/src/main/java/com/microsoft/graph/models/SynchronizationTemplate.java @@ -30,7 +30,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Application Id. - * + * Identifier of the application this template belongs to. */ @SerializedName(value = "applicationId", alternate = {"ApplicationId"}) @Expose @@ -39,7 +39,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Default. - * + * true if this template is recommended to be the default for the application. */ @SerializedName(value = "default", alternate = {"Default"}) @Expose @@ -48,7 +48,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Description. - * + * Description of the template. */ @SerializedName(value = "description", alternate = {"Description"}) @Expose @@ -57,7 +57,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Discoverable. - * + * true if this template should appear in the collection of templates available for the application instance (service principal). */ @SerializedName(value = "discoverable", alternate = {"Discoverable"}) @Expose @@ -66,7 +66,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Factory Tag. - * + * One of the well-known factory tags supported by the synchronization engine. The factoryTag tells the synchronization engine which implementation to use when processing jobs based on this template. */ @SerializedName(value = "factoryTag", alternate = {"FactoryTag"}) @Expose @@ -75,7 +75,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Metadata. - * + * Additional extension properties. Unless mentioned explicitly, metadata values should not be changed. */ @SerializedName(value = "metadata", alternate = {"Metadata"}) @Expose @@ -84,7 +84,7 @@ public class SynchronizationTemplate extends Entity implements IJsonBackedObject /** * The Schema. - * + * Default synchronization schema for the jobs based on this template. */ @SerializedName(value = "schema", alternate = {"Schema"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java b/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java index 0521694b6ff..64756f9cdcd 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Required Permission Set. - * + * Set of permissions required by the teamsApp. */ @SerializedName(value = "requiredPermissionSet", alternate = {"RequiredPermissionSet"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java b/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java index 5a7c4708cbc..e83e268ae6d 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java @@ -31,7 +31,7 @@ public class TeamsAppDefinition extends Entity implements IJsonBackedObject { /** * The Authorization. - * + * Authorization requirements specified in the Teams app manifest. */ @SerializedName(value = "authorization", alternate = {"Authorization"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java b/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java index 5a6a5d879f2..f3c82b55830 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java @@ -30,7 +30,7 @@ public class TeamsAppInstallation extends Entity implements IJsonBackedObject { /** * The Consented Permission Set. - * + * The set of resource-specific permissions consented to while installing or upgrading the teamsApp. */ @SerializedName(value = "consentedPermissionSet", alternate = {"ConsentedPermissionSet"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java b/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java index 4b03efe0668..749480c7cff 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Resource Specific Permissions. - * + * A collection of resource-specific permissions. */ @SerializedName(value = "resourceSpecificPermissions", alternate = {"ResourceSpecificPermissions"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermission.java b/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermission.java index d91976d7e40..026668e1010 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermission.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermission.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Permission Type. - * + * The type of resource-specific permission. */ @SerializedName(value = "permissionType", alternate = {"PermissionType"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Permission Value. - * + * The name of the resource-specific permission. */ @SerializedName(value = "permissionValue", alternate = {"PermissionValue"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.java index 0ad0e1c9b03..5197110e7ac 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.java @@ -55,7 +55,7 @@ public class UserExperienceAnalyticsAppHealthDeviceModelPerformance extends Enti /** * The Health Status. - * The health state of the user experience analytics model. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. + * The health state of the user experience analytics model. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformance.java index c2d08733033..a174a158f8b 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformance.java @@ -100,7 +100,7 @@ public class UserExperienceAnalyticsAppHealthDevicePerformance extends Entity im /** * The Health Status. - * The health state of the user experience analytics device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. + * The health state of the user experience analytics device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDevicePerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDevicePerformance.java index 7054e8a249a..46043e7a4ac 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDevicePerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDevicePerformance.java @@ -101,7 +101,7 @@ public class UserExperienceAnalyticsDevicePerformance extends Entity implements /** * The Disk Type. - * The user experience analytics device disk type. + * The user experience analytics device disk type. Possible values are: unknown, hdd, ssd, unknownFutureValue. */ @SerializedName(value = "diskType", alternate = {"DiskType"}) @Expose @@ -128,7 +128,7 @@ public class UserExperienceAnalyticsDevicePerformance extends Entity implements /** * The Health Status. - * The health state of the user experience analytics device. + * The health state of the user experience analytics device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java index dd2e6f51fea..b01c6a8bf77 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java @@ -64,7 +64,7 @@ public class UserExperienceAnalyticsDeviceScores extends Entity implements IJson /** * The Health Status. - * The health status of the device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. + * The health status of the device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupHistory.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupHistory.java index 847c77a863a..cd0d6989bb2 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupHistory.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupHistory.java @@ -118,7 +118,7 @@ public class UserExperienceAnalyticsDeviceStartupHistory extends Entity implemen /** * The Restart Category. - * OS restart category. Possible values are: unknown, restartWithUpdate, restartWithoutUpdate, blueScreen, shutdownWithUpdate, shutdownWithoutUpdate, longPowerButtonPress, bootError, update. Unknown by default. Supports: $select, $OrderBy. Read-only. + * OS restart category. Possible values are: unknown, restartWithUpdate, restartWithoutUpdate, blueScreen, shutdownWithUpdate, shutdownWithoutUpdate, longPowerButtonPress, bootError, update. Unknown by default. Supports: $select, $OrderBy. Read-only. Possible values are: unknown, restartWithUpdate, restartWithoutUpdate, blueScreen, shutdownWithUpdate, shutdownWithoutUpdate, longPowerButtonPress, bootError, update, unknownFutureValue. */ @SerializedName(value = "restartCategory", alternate = {"RestartCategory"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsight.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsight.java index 4c419a9422c..75c5f3f49d7 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsight.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsight.java @@ -51,7 +51,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Severity. - * The severity of the user experience analytics insight. Possible values are: none, informational, warning, error. None by default. + * The severity of the user experience analytics insight. Possible values are: none, informational, warning, error. None by default. Possible values are: none, informational, warning, error, unknownFutureValue. */ @SerializedName(value = "severity", alternate = {"Severity"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsModelScores.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsModelScores.java index 689825f77a7..66908779258 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsModelScores.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsModelScores.java @@ -55,7 +55,7 @@ public class UserExperienceAnalyticsModelScores extends Entity implements IJsonB /** * The Health Status. - * The health status of the device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. + * The health status of the device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $filter, $select, $OrderBy. Read-only. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevice.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevice.java index 9518f2ede78..e2b5c5d9641 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevice.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevice.java @@ -128,7 +128,7 @@ public class UserExperienceAnalyticsWorkFromAnywhereDevice extends Entity implem /** * The Health Status. - * The health state of the user experience analytics work from anywhere device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $select, $OrderBy. Read-only. + * The health state of the user experience analytics work from anywhere device. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $select, $OrderBy. Read-only. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose @@ -308,7 +308,7 @@ public class UserExperienceAnalyticsWorkFromAnywhereDevice extends Entity implem /** * The Upgrade Eligibility. - * The windows upgrade eligibility status of device. Possible values are: upgraded, unknown, notCapable, capable. Unknown by default. Supports: $select, $OrderBy. Read-only. + * The windows upgrade eligibility status of device. Possible values are: upgraded, unknown, notCapable, capable. Unknown by default. Supports: $select, $OrderBy. Read-only. Possible values are: upgraded, unknown, notCapable, capable, unknownFutureValue. */ @SerializedName(value = "upgradeEligibility", alternate = {"UpgradeEligibility"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java index 2726a59770a..e23837b0a57 100644 --- a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java @@ -55,7 +55,7 @@ public class UserExperienceAnalyticsWorkFromAnywhereModelPerformance extends Ent /** * The Health Status. - * The health state of the user experience analytics work from anywhere device model. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $select, $OrderBy. Read-only. + * The health state of the user experience analytics work from anywhere device model. Possible values are: unknown, insufficientData, needsAttention, meetingGoals. Unknown by default. Supports: $select, $OrderBy. Read-only. Possible values are: unknown, insufficientData, needsAttention, meetingGoals, unknownFutureValue. */ @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserRegistrationDetails.java b/src/main/java/com/microsoft/graph/models/UserRegistrationDetails.java index 810667764e3..73a10c365aa 100644 --- a/src/main/java/com/microsoft/graph/models/UserRegistrationDetails.java +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationDetails.java @@ -30,7 +30,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Admin. - * + * Indicates whether the user has an admin role in the tenant. This value can be used to check the authentication methods that privileged accounts are registered for and capable of. */ @SerializedName(value = "isAdmin", alternate = {"IsAdmin"}) @Expose @@ -39,7 +39,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Mfa Capable. - * + * Indicates whether the user has registered a strong authentication method for multi-factor authentication. The method must be allowed by the authentication methods policy. Supports $filter (eq). */ @SerializedName(value = "isMfaCapable", alternate = {"IsMfaCapable"}) @Expose @@ -48,7 +48,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Mfa Registered. - * + * Indicates whether the user has registered a strong authentication method for multi-factor authentication. The method may not necessarily be allowed by the authentication methods policy. Supports $filter (eq). */ @SerializedName(value = "isMfaRegistered", alternate = {"IsMfaRegistered"}) @Expose @@ -57,7 +57,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Passwordless Capable. - * + * Indicates whether the user has registered a passwordless strong authentication method (including FIDO2, Windows Hello for Business, and Microsoft Authenticator (Passwordless)) that is allowed by the authentication methods policy. Supports $filter (eq). */ @SerializedName(value = "isPasswordlessCapable", alternate = {"IsPasswordlessCapable"}) @Expose @@ -66,7 +66,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Sspr Capable. - * + * Indicates whether the user has registered the required number of authentication methods for self-service password reset and the user is allowed to perform self-service password reset by policy. Supports $filter (eq). */ @SerializedName(value = "isSsprCapable", alternate = {"IsSsprCapable"}) @Expose @@ -75,7 +75,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Sspr Enabled. - * + * Indicates whether the user is allowed to perform self-service password reset by policy. The user may not necessarily have registered the required number of authentication methods for self-service password reset. Supports $filter (eq). */ @SerializedName(value = "isSsprEnabled", alternate = {"IsSsprEnabled"}) @Expose @@ -84,7 +84,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is Sspr Registered. - * + * Indicates whether the user has registered the required number of authentication methods for self-service password reset. The user may not necessarily be allowed to perform self-service password reset by policy. Supports $filter (eq). */ @SerializedName(value = "isSsprRegistered", alternate = {"IsSsprRegistered"}) @Expose @@ -93,7 +93,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Is System Preferred Authentication Method Enabled. - * + * Indicates whether system preferred authentication method is enabled. If enabled, the system dynamically determines the most secure authentication method among the methods registered by the user. Supports $filter (eq). */ @SerializedName(value = "isSystemPreferredAuthenticationMethodEnabled", alternate = {"IsSystemPreferredAuthenticationMethodEnabled"}) @Expose @@ -102,7 +102,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Last Updated Date Time. - * + * The date and time (UTC) when the record was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ @SerializedName(value = "lastUpdatedDateTime", alternate = {"LastUpdatedDateTime"}) @Expose @@ -111,7 +111,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The Methods Registered. - * + * Collection of authentication methods registered, such as mobilePhone, email, fido2. Supports $filter (any with eq). */ @SerializedName(value = "methodsRegistered", alternate = {"MethodsRegistered"}) @Expose @@ -120,7 +120,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The System Preferred Authentication Methods. - * + * Collection of authentication methods that the system determined to be the most secure authentication methods among the registered methods for second factor authentication. Possible values are: push, oath, voiceMobile, voiceAlternateMobile, voiceOffice, sms, none, unknownFutureValue. Supports $filter (any with eq). */ @SerializedName(value = "systemPreferredAuthenticationMethods", alternate = {"SystemPreferredAuthenticationMethods"}) @Expose @@ -129,7 +129,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The User Display Name. - * + * The user display name, such as Adele Vance. Supports $filter (eq, startsWith) and $orderBy. */ @SerializedName(value = "userDisplayName", alternate = {"UserDisplayName"}) @Expose @@ -138,7 +138,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The User Preferred Method For Secondary Authentication. - * + * The method the user selected as the default second-factor for performing multi-factor authentication. Possible values are: push, oath, voiceMobile, voiceAlternateMobile, voiceOffice, sms, none, unknownFutureValue. This property is used as preferred MFA method when isSystemPreferredAuthenticationMethodEnabled is false. Supports $filter (any with eq). */ @SerializedName(value = "userPreferredMethodForSecondaryAuthentication", alternate = {"UserPreferredMethodForSecondaryAuthentication"}) @Expose @@ -147,7 +147,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The User Principal Name. - * + * The user principal name, such as AdeleV@contoso.com. Supports $filter (eq, startsWith) and $orderBy. */ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) @Expose @@ -156,7 +156,7 @@ public class UserRegistrationDetails extends Entity implements IJsonBackedObject /** * The User Type. - * + * Identifies whether the user is a member or guest in the tenant. The possible values are: member, guest, unknownFutureValue. */ @SerializedName(value = "userType", alternate = {"UserType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureCount.java b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureCount.java index 28414213b36..57a2891fcc6 100644 --- a/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureCount.java +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureCount.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Feature. - * + * Number of users registered or capable for multi-factor authentication, self-service password reset, and passwordless authentication. Possible values are: ssprRegistered, ssprEnabled, ssprCapable, passwordlessCapable, mfaCapable, unknownFutureValue. */ @SerializedName(value = "feature", alternate = {"Feature"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Count. - * + * Number of users. */ @SerializedName(value = "userCount", alternate = {"UserCount"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureSummary.java b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureSummary.java index afed01be981..3463c3a7b29 100644 --- a/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureSummary.java +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureSummary.java @@ -43,7 +43,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Total User Count. - * + * Total number of users accounts, excluding those that are blocked. */ @SerializedName(value = "totalUserCount", alternate = {"TotalUserCount"}) @Expose @@ -52,7 +52,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Registration Feature Counts. - * + * Number of users registered or capable for multi-factor authentication, self-service password reset, and passwordless authentication. */ @SerializedName(value = "userRegistrationFeatureCounts", alternate = {"UserRegistrationFeatureCounts"}) @Expose @@ -61,7 +61,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Roles. - * + * The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue. */ @SerializedName(value = "userRoles", alternate = {"UserRoles"}) @Expose @@ -70,7 +70,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Types. - * + * User type. Possible values are: all, member, guest, unknownFutureValue. */ @SerializedName(value = "userTypes", alternate = {"UserTypes"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserRegistrationMethodCount.java b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodCount.java index 23869ce994a..7e0f08a4235 100644 --- a/src/main/java/com/microsoft/graph/models/UserRegistrationMethodCount.java +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodCount.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Authentication Method. - * + * Name of the authentication method. */ @SerializedName(value = "authenticationMethod", alternate = {"AuthenticationMethod"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Count. - * + * Number of users registered. */ @SerializedName(value = "userCount", alternate = {"UserCount"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserRegistrationMethodSummary.java b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodSummary.java index c878cd689a4..ee1e8c63446 100644 --- a/src/main/java/com/microsoft/graph/models/UserRegistrationMethodSummary.java +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodSummary.java @@ -43,7 +43,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Total User Count. - * + * Total number of users in the tenant. */ @SerializedName(value = "totalUserCount", alternate = {"TotalUserCount"}) @Expose @@ -52,7 +52,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Registration Method Counts. - * + * Number of users registered for each authentication method. */ @SerializedName(value = "userRegistrationMethodCounts", alternate = {"UserRegistrationMethodCounts"}) @Expose @@ -61,7 +61,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Roles. - * + * The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue. */ @SerializedName(value = "userRoles", alternate = {"UserRoles"}) @Expose @@ -70,7 +70,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Types. - * + * User type. Possible values are: all, member, guest, unknownFutureValue. */ @SerializedName(value = "userTypes", alternate = {"UserTypes"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java index dd2b954ed43..37de220926c 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Category. - * Malware category. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. + * Malware category. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. Computed. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java index 4b983b3fd37..aff8e74b24f 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Execution State. - * Malware execution state. Possible values are: unknown, blocked, allowed, running, notRunning. + * Malware execution state. Possible values are: unknown, blocked, allowed, running, notRunning. Defaults to unkonwn. Computed. Possible values are: unknown, blocked, allowed, running, notRunning. */ @SerializedName(value = "executionState", alternate = {"ExecutionState"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java index aba47c07571..5ed48ec94ae 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java @@ -31,7 +31,7 @@ public class WindowsMalwareInformation extends Entity implements IJsonBackedObje /** * The Additional Information Url. - * Information URL to learn more about the malware + * Indicates an informational URL to learn more about the malware */ @SerializedName(value = "additionalInformationUrl", alternate = {"AdditionalInformationUrl"}) @Expose @@ -40,7 +40,7 @@ public class WindowsMalwareInformation extends Entity implements IJsonBackedObje /** * The Category. - * Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. + * Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. default value is invalid. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remote_Control_Software, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose @@ -49,7 +49,7 @@ public class WindowsMalwareInformation extends Entity implements IJsonBackedObje /** * The Display Name. - * Malware name + * Indicates the name of the malware */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -58,7 +58,7 @@ public class WindowsMalwareInformation extends Entity implements IJsonBackedObje /** * The Last Detection Date Time. - * The last time the malware is detected + * Indicates the last time the malware was detected in UTC */ @SerializedName(value = "lastDetectionDateTime", alternate = {"LastDetectionDateTime"}) @Expose @@ -67,7 +67,7 @@ public class WindowsMalwareInformation extends Entity implements IJsonBackedObje /** * The Severity. - * Severity of the malware. Possible values are: unknown, low, moderate, high, severe. + * Severity of the malware. Possible values are: unknown, low, moderate, high, severe. default is unknown. Possible values are: unknown, low, moderate, high, severe. */ @SerializedName(value = "severity", alternate = {"Severity"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareOverview.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareOverview.java index 0650495a5eb..2eac0b7502e 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareOverview.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareOverview.java @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Malware Category Summary. - * Count of devices per malware category + * List of device counts per malware category */ @SerializedName(value = "malwareCategorySummary", alternate = {"MalwareCategorySummary"}) @Expose @@ -64,7 +64,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Malware Execution State Summary. - * Count of devices per malware execution state + * List of device counts per malware execution state */ @SerializedName(value = "malwareExecutionStateSummary", alternate = {"MalwareExecutionStateSummary"}) @Expose @@ -73,7 +73,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Malware Name Summary. - * Count of devices per malware + * List of device counts per malware */ @SerializedName(value = "malwareNameSummary", alternate = {"MalwareNameSummary"}) @Expose @@ -82,7 +82,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Malware Severity Summary. - * Count of active malware per malware severity + * List of active malware counts per malware severity */ @SerializedName(value = "malwareSeveritySummary", alternate = {"MalwareSeveritySummary"}) @Expose @@ -91,7 +91,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Malware State Summary. - * Count of devices per malware state + * List of device counts per malware state */ @SerializedName(value = "malwareStateSummary", alternate = {"MalwareStateSummary"}) @Expose @@ -100,7 +100,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Os Versions Summary. - * Count of devices with malware per windows OS version + * List of device counts with malware per windows OS version */ @SerializedName(value = "osVersionsSummary", alternate = {"OsVersionsSummary"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.java index 85a1de0dfc7..4a22c92fa3e 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.java @@ -67,7 +67,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Severity. - * Malware Threat Severity. Possible values are: unknown, low, moderate, high, severe. + * Malware Threat Severity. computed. Possible values are: unknown, low, moderate, high, severe. Possible values are: unknown, low, moderate, high, severe. */ @SerializedName(value = "severity", alternate = {"Severity"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.java index e7e0e6423de..aa589f0deb6 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.java +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.java @@ -76,7 +76,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The State. - * Malware Threat State. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. + * Malware Threat State. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. Defaults to noStatusCleared. Computed. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. */ @SerializedName(value = "state", alternate = {"State"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java b/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java index ea4321d4bd3..9a5be919696 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java +++ b/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java @@ -40,7 +40,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Device State. - * Computer's state (like clean or pending full scan or pending reboot etc). Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. + * Indicates device's health state. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. */ @SerializedName(value = "deviceState", alternate = {"DeviceState"}) @Expose @@ -58,7 +58,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Full Scan Overdue. - * Full scan overdue or not? + * When TRUE indicates full scan is overdue, when FALSE indicates full scan is not overdue. Defaults to setting on client device. */ @SerializedName(value = "fullScanOverdue", alternate = {"FullScanOverdue"}) @Expose @@ -67,7 +67,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Full Scan Required. - * Full scan required or not? + * When TRUE indicates full scan is required, when FALSE indicates full scan is not required. Defaults to setting on client device. */ @SerializedName(value = "fullScanRequired", alternate = {"FullScanRequired"}) @Expose @@ -76,7 +76,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Is Virtual Machine. - * Indicates whether the device is a virtual machine. + * When TRUE indicates the device is a virtual machine, when FALSE indicates the device is not a virtual machine. Defaults to setting on client device. */ @SerializedName(value = "isVirtualMachine", alternate = {"IsVirtualMachine"}) @Expose @@ -130,7 +130,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Malware Protection Enabled. - * Anti malware is enabled or not + * When TRUE indicates anti malware is enabled when FALSE indicates anti malware is not enabled. */ @SerializedName(value = "malwareProtectionEnabled", alternate = {"MalwareProtectionEnabled"}) @Expose @@ -139,7 +139,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Network Inspection System Enabled. - * Network inspection system enabled or not? + * When TRUE indicates network inspection system enabled, when FALSE indicates network inspection system is not enabled. Defaults to setting on client device. */ @SerializedName(value = "networkInspectionSystemEnabled", alternate = {"NetworkInspectionSystemEnabled"}) @Expose @@ -148,7 +148,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Product Status. - * Product Status of Windows Defender Antivirus. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. + * Product Status of Windows Defender Antivirus. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. */ @SerializedName(value = "productStatus", alternate = {"ProductStatus"}) @Expose @@ -157,7 +157,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Quick Scan Overdue. - * Quick scan overdue or not? + * When TRUE indicates quick scan is overdue, when FALSE indicates quick scan is not overdue. Defaults to setting on client device. */ @SerializedName(value = "quickScanOverdue", alternate = {"QuickScanOverdue"}) @Expose @@ -166,7 +166,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Real Time Protection Enabled. - * Real time protection is enabled or not? + * When TRUE indicates real time protection is enabled, when FALSE indicates real time protection is not enabled. Defaults to setting on client device. */ @SerializedName(value = "realTimeProtectionEnabled", alternate = {"RealTimeProtectionEnabled"}) @Expose @@ -175,7 +175,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Reboot Required. - * Reboot required or not? + * When TRUE indicates reboot is required, when FALSE indicates when TRUE indicates reboot is not required. Defaults to setting on client device. */ @SerializedName(value = "rebootRequired", alternate = {"RebootRequired"}) @Expose @@ -184,7 +184,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Signature Update Overdue. - * Signature out of date or not? + * When TRUE indicates signature is out of date, when FALSE indicates signature is not out of date. Defaults to setting on client device. */ @SerializedName(value = "signatureUpdateOverdue", alternate = {"SignatureUpdateOverdue"}) @Expose @@ -202,7 +202,7 @@ public class WindowsProtectionState extends Entity implements IJsonBackedObject /** * The Tamper Protection Enabled. - * Indicates whether the Windows Defender tamper protection feature is enabled. + * When TRUE indicates the Windows Defender tamper protection feature is enabled, when FALSE indicates the Windows Defender tamper protection feature is not enabled. Defaults to setting on client device. */ @SerializedName(value = "tamperProtectionEnabled", alternate = {"TamperProtectionEnabled"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentPolicyRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentPolicyRequestBuilder.java index 9a4b6291061..ebd47e0e0e3 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentPolicyRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentPolicyRequestBuilder.java @@ -76,6 +76,26 @@ public com.microsoft.graph.requests.AccessPackageWithReferenceRequestBuilder acc public com.microsoft.graph.requests.AccessPackageCatalogWithReferenceRequestBuilder catalog() { return new com.microsoft.graph.requests.AccessPackageCatalogWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("catalog"), getClient(), null); } + /** + * Gets a request builder for the CustomExtensionStageSetting collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequestBuilder customExtensionStageSettings() { + return new com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("customExtensionStageSettings"), getClient(), null); + } + + /** + * Gets a request builder for the CustomExtensionStageSetting item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.CustomExtensionStageSettingRequestBuilder customExtensionStageSettings(@Nonnull final String id) { + return new com.microsoft.graph.requests.CustomExtensionStageSettingRequestBuilder(getRequestUrlWithAdditionalSegment("customExtensionStageSettings") + "/" + id, getClient(), null); + } /** * Gets a request builder for the AccessPackageQuestion collection * diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequest.java index 1a20b9114bd..b15af0dc964 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequest.java @@ -10,6 +10,7 @@ import com.microsoft.graph.models.AccessPackageAssignmentRequest;import com.microsoft.graph.models.EntitlementManagement; import com.microsoft.graph.models.AccessPackageAssignmentRequest; +import com.microsoft.graph.models.CustomExtensionData; import com.microsoft.graph.models.AccessPackageAssignmentRequestFilterByCurrentUserOptions; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequestBuilder.java index 9fe5222c950..8d836d1620a 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestCollectionRequestBuilder.java @@ -10,6 +10,7 @@ import com.microsoft.graph.models.AccessPackageAssignmentRequest;import com.microsoft.graph.models.EntitlementManagement; import com.microsoft.graph.models.AccessPackageAssignmentRequest; +import com.microsoft.graph.models.CustomExtensionData; import com.microsoft.graph.models.AccessPackageAssignmentRequestFilterByCurrentUserOptions; import java.util.Arrays; import java.util.EnumSet; @@ -23,6 +24,7 @@ import com.microsoft.graph.http.BaseCollectionRequestBuilder; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.models.AccessPackageAssignmentRequestResumeParameterSet; import com.microsoft.graph.models.AccessPackageAssignmentRequestFilterByCurrentUserParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequest.java index 7ede00ee1ef..57b444b4776 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequest.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.AccessPackageAssignmentRequest; +import com.microsoft.graph.models.CustomExtensionData; import com.microsoft.graph.models.AccessPackageAssignmentRequestFilterByCurrentUserOptions; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequestBuilder.java index 6037bf48879..ab98566daf5 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestRequestBuilder.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.AccessPackageAssignmentRequest; +import com.microsoft.graph.models.CustomExtensionData; import com.microsoft.graph.models.AccessPackageAssignmentRequestFilterByCurrentUserOptions; import java.util.Arrays; import java.util.EnumSet; @@ -15,6 +16,7 @@ import javax.annotation.Nonnull; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.models.AccessPackageAssignmentRequestResumeParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. @@ -105,4 +107,14 @@ public AccessPackageAssignmentRequestCancelRequestBuilder cancel() { public AccessPackageAssignmentRequestReprocessRequestBuilder reprocess() { return new AccessPackageAssignmentRequestReprocessRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.reprocess"), getClient(), null); } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public AccessPackageAssignmentRequestResumeRequestBuilder resume(@Nonnull final AccessPackageAssignmentRequestResumeParameterSet parameters) { + return new AccessPackageAssignmentRequestResumeRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.resume"), getClient(), null, parameters); + } } diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestResumeRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestResumeRequest.java new file mode 100644 index 00000000000..e5d7d4b0819 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestResumeRequest.java @@ -0,0 +1,56 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageAssignmentRequest; +import com.microsoft.graph.requests.AccessPackageAssignmentRequestResumeRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.AccessPackageAssignmentRequestResumeParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Resume Request. + */ +public class AccessPackageAssignmentRequestResumeRequest extends BaseRequest { + /** + * The request for this AccessPackageAssignmentRequestResume + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageAssignmentRequestResumeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** The body for the method */ + @Nullable + public AccessPackageAssignmentRequestResumeParameterSet body; + /** + * Creates the AccessPackageAssignmentRequestResume + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the AccessPackageAssignmentRequestResume + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, body); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestResumeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestResumeRequestBuilder.java new file mode 100644 index 00000000000..974003b9ace --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestResumeRequestBuilder.java @@ -0,0 +1,74 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.AccessPackageAssignmentRequestResumeRequest; +import com.microsoft.graph.models.AccessPackageAssignmentRequest; +import com.microsoft.graph.models.CustomExtensionData; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.AccessPackageAssignmentRequestResumeParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Resume Request Builder. + */ +public class AccessPackageAssignmentRequestResumeRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this AccessPackageAssignmentRequestResume + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageAssignmentRequestResumeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private AccessPackageAssignmentRequestResumeParameterSet body; + /** + * The request builder for this AccessPackageAssignmentRequestResume + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public AccessPackageAssignmentRequestResumeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final AccessPackageAssignmentRequestResumeParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the AccessPackageAssignmentRequestResumeRequest + * + * @param requestOptions the options for the request + * @return the AccessPackageAssignmentRequestResumeRequest instance + */ + @Nonnull + public AccessPackageAssignmentRequestResumeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the AccessPackageAssignmentRequestResumeRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the AccessPackageAssignmentRequestResumeRequest instance + */ + @Nonnull + public AccessPackageAssignmentRequestResumeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final AccessPackageAssignmentRequestResumeRequest request = new AccessPackageAssignmentRequestResumeRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestWorkflowExtensionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestWorkflowExtensionRequest.java new file mode 100644 index 00000000000..6472378a4cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestWorkflowExtensionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageAssignmentRequestWorkflowExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Workflow Extension Request. + */ +public class AccessPackageAssignmentRequestWorkflowExtensionRequest extends BaseRequest { + + /** + * The request for the AccessPackageAssignmentRequestWorkflowExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageAssignmentRequestWorkflowExtensionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageAssignmentRequestWorkflowExtension.class); + } + + /** + * Gets the AccessPackageAssignmentRequestWorkflowExtension from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageAssignmentRequestWorkflowExtension from the service + * + * @return the AccessPackageAssignmentRequestWorkflowExtension from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentRequestWorkflowExtension get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageAssignmentRequestWorkflowExtension delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageAssignmentRequestWorkflowExtension with a source + * + * @param sourceAccessPackageAssignmentRequestWorkflowExtension the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageAssignmentRequestWorkflowExtension sourceAccessPackageAssignmentRequestWorkflowExtension) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageAssignmentRequestWorkflowExtension); + } + + /** + * Patches this AccessPackageAssignmentRequestWorkflowExtension with a source + * + * @param sourceAccessPackageAssignmentRequestWorkflowExtension the source object with updates + * @return the updated AccessPackageAssignmentRequestWorkflowExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentRequestWorkflowExtension patch(@Nonnull final AccessPackageAssignmentRequestWorkflowExtension sourceAccessPackageAssignmentRequestWorkflowExtension) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageAssignmentRequestWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentRequestWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentRequestWorkflowExtension the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageAssignmentRequestWorkflowExtension newAccessPackageAssignmentRequestWorkflowExtension) { + return sendAsync(HttpMethod.POST, newAccessPackageAssignmentRequestWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentRequestWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentRequestWorkflowExtension the new object to create + * @return the created AccessPackageAssignmentRequestWorkflowExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentRequestWorkflowExtension post(@Nonnull final AccessPackageAssignmentRequestWorkflowExtension newAccessPackageAssignmentRequestWorkflowExtension) throws ClientException { + return send(HttpMethod.POST, newAccessPackageAssignmentRequestWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentRequestWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentRequestWorkflowExtension the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageAssignmentRequestWorkflowExtension newAccessPackageAssignmentRequestWorkflowExtension) { + return sendAsync(HttpMethod.PUT, newAccessPackageAssignmentRequestWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentRequestWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentRequestWorkflowExtension the object to create/update + * @return the created AccessPackageAssignmentRequestWorkflowExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentRequestWorkflowExtension put(@Nonnull final AccessPackageAssignmentRequestWorkflowExtension newAccessPackageAssignmentRequestWorkflowExtension) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageAssignmentRequestWorkflowExtension); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageAssignmentRequestWorkflowExtensionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageAssignmentRequestWorkflowExtensionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestWorkflowExtensionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestWorkflowExtensionRequestBuilder.java new file mode 100644 index 00000000000..25ce9357718 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentRequestWorkflowExtensionRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageAssignmentRequestWorkflowExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Request Workflow Extension Request Builder. + */ +public class AccessPackageAssignmentRequestWorkflowExtensionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageAssignmentRequestWorkflowExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageAssignmentRequestWorkflowExtensionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageAssignmentRequestWorkflowExtensionRequest instance + */ + @Nonnull + public AccessPackageAssignmentRequestWorkflowExtensionRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageAssignmentRequestWorkflowExtensionRequest instance + */ + @Nonnull + public AccessPackageAssignmentRequestWorkflowExtensionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageAssignmentRequestWorkflowExtensionRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentWorkflowExtensionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentWorkflowExtensionRequest.java new file mode 100644 index 00000000000..c485ae1b7ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentWorkflowExtensionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageAssignmentWorkflowExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Workflow Extension Request. + */ +public class AccessPackageAssignmentWorkflowExtensionRequest extends BaseRequest { + + /** + * The request for the AccessPackageAssignmentWorkflowExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageAssignmentWorkflowExtensionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageAssignmentWorkflowExtension.class); + } + + /** + * Gets the AccessPackageAssignmentWorkflowExtension from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageAssignmentWorkflowExtension from the service + * + * @return the AccessPackageAssignmentWorkflowExtension from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentWorkflowExtension get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageAssignmentWorkflowExtension delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageAssignmentWorkflowExtension with a source + * + * @param sourceAccessPackageAssignmentWorkflowExtension the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageAssignmentWorkflowExtension sourceAccessPackageAssignmentWorkflowExtension) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageAssignmentWorkflowExtension); + } + + /** + * Patches this AccessPackageAssignmentWorkflowExtension with a source + * + * @param sourceAccessPackageAssignmentWorkflowExtension the source object with updates + * @return the updated AccessPackageAssignmentWorkflowExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentWorkflowExtension patch(@Nonnull final AccessPackageAssignmentWorkflowExtension sourceAccessPackageAssignmentWorkflowExtension) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageAssignmentWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentWorkflowExtension the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageAssignmentWorkflowExtension newAccessPackageAssignmentWorkflowExtension) { + return sendAsync(HttpMethod.POST, newAccessPackageAssignmentWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentWorkflowExtension the new object to create + * @return the created AccessPackageAssignmentWorkflowExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentWorkflowExtension post(@Nonnull final AccessPackageAssignmentWorkflowExtension newAccessPackageAssignmentWorkflowExtension) throws ClientException { + return send(HttpMethod.POST, newAccessPackageAssignmentWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentWorkflowExtension the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageAssignmentWorkflowExtension newAccessPackageAssignmentWorkflowExtension) { + return sendAsync(HttpMethod.PUT, newAccessPackageAssignmentWorkflowExtension); + } + + /** + * Creates a AccessPackageAssignmentWorkflowExtension with a new object + * + * @param newAccessPackageAssignmentWorkflowExtension the object to create/update + * @return the created AccessPackageAssignmentWorkflowExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageAssignmentWorkflowExtension put(@Nonnull final AccessPackageAssignmentWorkflowExtension newAccessPackageAssignmentWorkflowExtension) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageAssignmentWorkflowExtension); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageAssignmentWorkflowExtensionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageAssignmentWorkflowExtensionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentWorkflowExtensionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentWorkflowExtensionRequestBuilder.java new file mode 100644 index 00000000000..14ba5e3f5df --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageAssignmentWorkflowExtensionRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageAssignmentWorkflowExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Assignment Workflow Extension Request Builder. + */ +public class AccessPackageAssignmentWorkflowExtensionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageAssignmentWorkflowExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageAssignmentWorkflowExtensionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageAssignmentWorkflowExtensionRequest instance + */ + @Nonnull + public AccessPackageAssignmentWorkflowExtensionRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageAssignmentWorkflowExtensionRequest instance + */ + @Nonnull + public AccessPackageAssignmentWorkflowExtensionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageAssignmentWorkflowExtensionRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageCatalogRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageCatalogRequestBuilder.java index 6baefd089ef..dd8f4858ee1 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageCatalogRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageCatalogRequestBuilder.java @@ -76,4 +76,84 @@ public com.microsoft.graph.requests.AccessPackageCollectionWithReferencesRequest public com.microsoft.graph.requests.AccessPackageWithReferenceRequestBuilder accessPackages(@Nonnull final String id) { return new com.microsoft.graph.requests.AccessPackageWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("accessPackages") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the CustomCalloutExtension collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequestBuilder customWorkflowExtensions() { + return new com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("customWorkflowExtensions"), getClient(), null); + } + + /** + * Gets a request builder for the CustomCalloutExtension item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.CustomCalloutExtensionRequestBuilder customWorkflowExtensions(@Nonnull final String id) { + return new com.microsoft.graph.requests.CustomCalloutExtensionRequestBuilder(getRequestUrlWithAdditionalSegment("customWorkflowExtensions") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResourceRole collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder resourceRoles() { + return new com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRoles"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceRole item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder resourceRoles(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRoles") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResource collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder resources() { + return new com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resources"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestBuilder resources(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resources") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResourceScope collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder resourceScopes() { + return new com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resourceScopes"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceScope item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder resourceScopes(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder(getRequestUrlWithAdditionalSegment("resourceScopes") + "/" + id, getClient(), null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageRequestBuilder.java index e4612792b05..f2461d2fba9 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessPackageRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageRequestBuilder.java @@ -148,6 +148,26 @@ public com.microsoft.graph.requests.GroupCollectionRequestBuilder incompatibleGr public com.microsoft.graph.requests.GroupRequestBuilder incompatibleGroups(@Nonnull final String id) { return new com.microsoft.graph.requests.GroupRequestBuilder(getRequestUrlWithAdditionalSegment("incompatibleGroups") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the AccessPackageResourceRoleScope collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder resourceRoleScopes() { + return new com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRoleScopes"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceRoleScope item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleScopeRequestBuilder resourceRoleScopes(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRoleScopeRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRoleScopes") + "/" + id, getClient(), null); + } /** * Gets a builder to execute the method diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionPage.java new file mode 100644 index 00000000000..8563d09418c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResource; +import com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AccessPackageResourceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Collection Page. + */ +public class AccessPackageResourceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AccessPackageResource + * + * @param response the serialized AccessPackageResourceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AccessPackageResourceCollectionPage(@Nonnull final AccessPackageResourceCollectionResponse response, @Nonnull final AccessPackageResourceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AccessPackageResource + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AccessPackageResourceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AccessPackageResourceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionRequest.java new file mode 100644 index 00000000000..bcc232ab73f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import com.microsoft.graph.models.AccessPackageResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.AccessPackageResourceCollectionResponse; +import com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Collection Request. + */ +public class AccessPackageResourceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AccessPackageResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceCollectionResponse.class, AccessPackageResourceCollectionPage.class, AccessPackageResourceCollectionRequestBuilder.class); + } + + /** + * Creates a new AccessPackageResource + * @param newAccessPackageResource the AccessPackageResource to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResource newAccessPackageResource) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAccessPackageResource); + } + + /** + * Creates a new AccessPackageResource + * @param newAccessPackageResource the AccessPackageResource to create + * @return the newly created object + */ + @Nonnull + public AccessPackageResource post(@Nonnull final AccessPackageResource newAccessPackageResource) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAccessPackageResource); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AccessPackageResourceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionRequestBuilder.java new file mode 100644 index 00000000000..43e709d1b77 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import com.microsoft.graph.models.AccessPackageResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Collection Request Builder. + */ +public class AccessPackageResourceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRequestBuilder.class, AccessPackageResourceCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionResponse.java new file mode 100644 index 00000000000..513680519ec --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResource; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Collection Response. + */ +public class AccessPackageResourceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionPage.java new file mode 100644 index 00000000000..052274e24c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Collection Page. + */ +public class AccessPackageResourceEnvironmentCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AccessPackageResourceEnvironment + * + * @param response the serialized AccessPackageResourceEnvironmentCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AccessPackageResourceEnvironmentCollectionPage(@Nonnull final AccessPackageResourceEnvironmentCollectionResponse response, @Nonnull final AccessPackageResourceEnvironmentCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AccessPackageResourceEnvironment + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AccessPackageResourceEnvironmentCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AccessPackageResourceEnvironmentCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionRequest.java new file mode 100644 index 00000000000..43dc7e4e3a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EntitlementManagement; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionResponse; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Collection Request. + */ +public class AccessPackageResourceEnvironmentCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironmentCollectionResponse.class, AccessPackageResourceEnvironmentCollectionPage.class, AccessPackageResourceEnvironmentCollectionRequestBuilder.class); + } + + /** + * Creates a new AccessPackageResourceEnvironment + * @param newAccessPackageResourceEnvironment the AccessPackageResourceEnvironment to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceEnvironment newAccessPackageResourceEnvironment) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceEnvironmentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAccessPackageResourceEnvironment); + } + + /** + * Creates a new AccessPackageResourceEnvironment + * @param newAccessPackageResourceEnvironment the AccessPackageResourceEnvironment to create + * @return the newly created object + */ + @Nonnull + public AccessPackageResourceEnvironment post(@Nonnull final AccessPackageResourceEnvironment newAccessPackageResourceEnvironment) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceEnvironmentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAccessPackageResourceEnvironment); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionRequestBuilder.java new file mode 100644 index 00000000000..fa4ab59680d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EntitlementManagement; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Collection Request Builder. + */ +public class AccessPackageResourceEnvironmentCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EntitlementManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironmentRequestBuilder.class, AccessPackageResourceEnvironmentCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionResponse.java new file mode 100644 index 00000000000..8722de6299d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Collection Response. + */ +public class AccessPackageResourceEnvironmentCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentReferenceRequest.java new file mode 100644 index 00000000000..6639cfbad3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentReferenceRequest.java @@ -0,0 +1,64 @@ +// Template Source: BaseEntityReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonPrimitive; +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Reference Request. + */ +public class AccessPackageResourceEnvironmentReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironment.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentReferenceRequestBuilder.java new file mode 100644 index 00000000000..7419b8df5c2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentReferenceRequestBuilder.java @@ -0,0 +1,37 @@ + +// Template Source: BaseEntityReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Reference Request Builder. + */ +public class AccessPackageResourceEnvironmentReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironmentReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentRequest.java new file mode 100644 index 00000000000..f2540f6f6cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Request. + */ +public class AccessPackageResourceEnvironmentRequest extends BaseRequest { + + /** + * The request for the AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironment.class); + } + + /** + * Gets the AccessPackageResourceEnvironment from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageResourceEnvironment from the service + * + * @return the AccessPackageResourceEnvironment from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceEnvironment get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageResourceEnvironment delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageResourceEnvironment with a source + * + * @param sourceAccessPackageResourceEnvironment the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageResourceEnvironment sourceAccessPackageResourceEnvironment) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageResourceEnvironment); + } + + /** + * Patches this AccessPackageResourceEnvironment with a source + * + * @param sourceAccessPackageResourceEnvironment the source object with updates + * @return the updated AccessPackageResourceEnvironment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceEnvironment patch(@Nonnull final AccessPackageResourceEnvironment sourceAccessPackageResourceEnvironment) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageResourceEnvironment); + } + + /** + * Creates a AccessPackageResourceEnvironment with a new object + * + * @param newAccessPackageResourceEnvironment the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceEnvironment newAccessPackageResourceEnvironment) { + return sendAsync(HttpMethod.POST, newAccessPackageResourceEnvironment); + } + + /** + * Creates a AccessPackageResourceEnvironment with a new object + * + * @param newAccessPackageResourceEnvironment the new object to create + * @return the created AccessPackageResourceEnvironment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceEnvironment post(@Nonnull final AccessPackageResourceEnvironment newAccessPackageResourceEnvironment) throws ClientException { + return send(HttpMethod.POST, newAccessPackageResourceEnvironment); + } + + /** + * Creates a AccessPackageResourceEnvironment with a new object + * + * @param newAccessPackageResourceEnvironment the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageResourceEnvironment newAccessPackageResourceEnvironment) { + return sendAsync(HttpMethod.PUT, newAccessPackageResourceEnvironment); + } + + /** + * Creates a AccessPackageResourceEnvironment with a new object + * + * @param newAccessPackageResourceEnvironment the object to create/update + * @return the created AccessPackageResourceEnvironment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceEnvironment put(@Nonnull final AccessPackageResourceEnvironment newAccessPackageResourceEnvironment) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageResourceEnvironment); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentRequestBuilder.java new file mode 100644 index 00000000000..9d63c235f9c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentRequestBuilder.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment Request Builder. + */ +public class AccessPackageResourceEnvironmentRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceEnvironmentRequest instance + */ + @Nonnull + public AccessPackageResourceEnvironmentRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceEnvironmentRequest instance + */ + @Nonnull + public AccessPackageResourceEnvironmentRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageResourceEnvironmentRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the AccessPackageResource collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder resources() { + return new com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resources"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestBuilder resources(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resources") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentWithReferenceRequest.java new file mode 100644 index 00000000000..4abe6a83ad4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentWithReferenceRequest.java @@ -0,0 +1,63 @@ +// Template Source: BaseEntityWithReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseWithReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.serializer.IJsonBackedObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment With Reference Request. + */ +public class AccessPackageResourceEnvironmentWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironment.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentWithReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceEnvironmentWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..353497cd65b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceEnvironmentWithReferenceRequestBuilder.java @@ -0,0 +1,36 @@ +// Template Source: BaseEntityWithReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceEnvironment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseWithReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Environment With Reference Request Builder. + */ +public class AccessPackageResourceEnvironmentWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the AccessPackageResourceEnvironment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceEnvironmentWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceEnvironmentWithReferenceRequest.class, AccessPackageResourceEnvironmentReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequest.java new file mode 100644 index 00000000000..f915679b9aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request. + */ +public class AccessPackageResourceRequest extends BaseRequest { + + /** + * The request for the AccessPackageResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResource.class); + } + + /** + * Gets the AccessPackageResource from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageResource from the service + * + * @return the AccessPackageResource from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResource get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageResource delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageResource with a source + * + * @param sourceAccessPackageResource the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageResource sourceAccessPackageResource) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageResource); + } + + /** + * Patches this AccessPackageResource with a source + * + * @param sourceAccessPackageResource the source object with updates + * @return the updated AccessPackageResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResource patch(@Nonnull final AccessPackageResource sourceAccessPackageResource) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageResource); + } + + /** + * Creates a AccessPackageResource with a new object + * + * @param newAccessPackageResource the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResource newAccessPackageResource) { + return sendAsync(HttpMethod.POST, newAccessPackageResource); + } + + /** + * Creates a AccessPackageResource with a new object + * + * @param newAccessPackageResource the new object to create + * @return the created AccessPackageResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResource post(@Nonnull final AccessPackageResource newAccessPackageResource) throws ClientException { + return send(HttpMethod.POST, newAccessPackageResource); + } + + /** + * Creates a AccessPackageResource with a new object + * + * @param newAccessPackageResource the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageResource newAccessPackageResource) { + return sendAsync(HttpMethod.PUT, newAccessPackageResource); + } + + /** + * Creates a AccessPackageResource with a new object + * + * @param newAccessPackageResource the object to create/update + * @return the created AccessPackageResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResource put(@Nonnull final AccessPackageResource newAccessPackageResource) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageResource); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestBuilder.java new file mode 100644 index 00000000000..8e81041fb22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestBuilder.java @@ -0,0 +1,109 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Builder. + */ +public class AccessPackageResourceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRequest instance + */ + @Nonnull + public AccessPackageResourceRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRequest instance + */ + @Nonnull + public AccessPackageResourceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageResourceRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for AccessPackageResourceEnvironment + * + * @return the AccessPackageResourceEnvironmentWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceEnvironmentWithReferenceRequestBuilder environment() { + return new com.microsoft.graph.requests.AccessPackageResourceEnvironmentWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("environment"), getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResourceRole collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder roles() { + return new com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("roles"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceRole item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder roles(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder(getRequestUrlWithAdditionalSegment("roles") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResourceScope collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder scopes() { + return new com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("scopes"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceScope item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder scopes(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder(getRequestUrlWithAdditionalSegment("scopes") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionPage.java new file mode 100644 index 00000000000..75b3bb05c79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceRequest; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Collection Page. + */ +public class AccessPackageResourceRequestCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AccessPackageResourceRequest + * + * @param response the serialized AccessPackageResourceRequestCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AccessPackageResourceRequestCollectionPage(@Nonnull final AccessPackageResourceRequestCollectionResponse response, @Nonnull final AccessPackageResourceRequestCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AccessPackageResourceRequest + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AccessPackageResourceRequestCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AccessPackageResourceRequestCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionRequest.java new file mode 100644 index 00000000000..391570a595b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionRequest.java @@ -0,0 +1,174 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; + +import com.microsoft.graph.models.AccessPackageResourceRequest;import com.microsoft.graph.models.EntitlementManagement; +import com.microsoft.graph.models.AccessPackageResourceRequest; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionResponse; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Collection Request. + */ +public class AccessPackageResourceRequestCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AccessPackageResourceRequest + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRequestCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRequestCollectionResponse.class, AccessPackageResourceRequestCollectionPage.class, AccessPackageResourceRequestCollectionRequestBuilder.class); + } + + /** + * Creates a new AccessPackageResourceRequest + * @param newAccessPackageResourceRequest the AccessPackageResourceRequest to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceRequest newAccessPackageResourceRequest) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRequestRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAccessPackageResourceRequest); + } + + /** + * Creates a new AccessPackageResourceRequest + * @param newAccessPackageResourceRequest the AccessPackageResourceRequest to create + * @return the newly created object + */ + @Nonnull + public AccessPackageResourceRequest post(@Nonnull final AccessPackageResourceRequest newAccessPackageResourceRequest) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRequestRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAccessPackageResourceRequest); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionRequestBuilder.java new file mode 100644 index 00000000000..5067c5dfd3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionRequestBuilder.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; + +import com.microsoft.graph.models.AccessPackageResourceRequest;import com.microsoft.graph.models.EntitlementManagement; +import com.microsoft.graph.models.AccessPackageResourceRequest; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRequestRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Collection Request Builder. + */ +public class AccessPackageResourceRequestCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EntitlementManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRequestCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRequestRequestBuilder.class, AccessPackageResourceRequestCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionResponse.java new file mode 100644 index 00000000000..506af41bac7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceRequest; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Collection Response. + */ +public class AccessPackageResourceRequestCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestRequest.java new file mode 100644 index 00000000000..fe5aff26c8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceRequest; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Request. + */ +public class AccessPackageResourceRequestRequest extends BaseRequest { + + /** + * The request for the AccessPackageResourceRequest + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRequestRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRequest.class); + } + + /** + * Gets the AccessPackageResourceRequest from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageResourceRequest from the service + * + * @return the AccessPackageResourceRequest from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRequest get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageResourceRequest delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageResourceRequest with a source + * + * @param sourceAccessPackageResourceRequest the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageResourceRequest sourceAccessPackageResourceRequest) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageResourceRequest); + } + + /** + * Patches this AccessPackageResourceRequest with a source + * + * @param sourceAccessPackageResourceRequest the source object with updates + * @return the updated AccessPackageResourceRequest + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRequest patch(@Nonnull final AccessPackageResourceRequest sourceAccessPackageResourceRequest) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageResourceRequest); + } + + /** + * Creates a AccessPackageResourceRequest with a new object + * + * @param newAccessPackageResourceRequest the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceRequest newAccessPackageResourceRequest) { + return sendAsync(HttpMethod.POST, newAccessPackageResourceRequest); + } + + /** + * Creates a AccessPackageResourceRequest with a new object + * + * @param newAccessPackageResourceRequest the new object to create + * @return the created AccessPackageResourceRequest + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRequest post(@Nonnull final AccessPackageResourceRequest newAccessPackageResourceRequest) throws ClientException { + return send(HttpMethod.POST, newAccessPackageResourceRequest); + } + + /** + * Creates a AccessPackageResourceRequest with a new object + * + * @param newAccessPackageResourceRequest the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageResourceRequest newAccessPackageResourceRequest) { + return sendAsync(HttpMethod.PUT, newAccessPackageResourceRequest); + } + + /** + * Creates a AccessPackageResourceRequest with a new object + * + * @param newAccessPackageResourceRequest the object to create/update + * @return the created AccessPackageResourceRequest + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRequest put(@Nonnull final AccessPackageResourceRequest newAccessPackageResourceRequest) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageResourceRequest); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRequestRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestRequestBuilder.java new file mode 100644 index 00000000000..5029a7175d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRequestRequestBuilder.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceRequest; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Request Request Builder. + */ +public class AccessPackageResourceRequestRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageResourceRequest + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRequestRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRequestRequest instance + */ + @Nonnull + public AccessPackageResourceRequestRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRequestRequest instance + */ + @Nonnull + public AccessPackageResourceRequestRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageResourceRequestRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for AccessPackageCatalog + * + * @return the AccessPackageCatalogRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageCatalogRequestBuilder catalog() { + return new com.microsoft.graph.requests.AccessPackageCatalogRequestBuilder(getRequestUrlWithAdditionalSegment("catalog"), getClient(), null); + } + + /** + * Gets the request builder for AccessPackageResource + * + * @return the AccessPackageResourceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestBuilder resource() { + return new com.microsoft.graph.requests.AccessPackageResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resource"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionPage.java new file mode 100644 index 00000000000..cf4b970d2a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceRole; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Collection Page. + */ +public class AccessPackageResourceRoleCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AccessPackageResourceRole + * + * @param response the serialized AccessPackageResourceRoleCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AccessPackageResourceRoleCollectionPage(@Nonnull final AccessPackageResourceRoleCollectionResponse response, @Nonnull final AccessPackageResourceRoleCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AccessPackageResourceRole + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AccessPackageResourceRoleCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AccessPackageResourceRoleCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionRequest.java new file mode 100644 index 00000000000..9200a29fd37 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageCatalog; +import com.microsoft.graph.models.AccessPackageResourceRole; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionResponse; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Collection Request. + */ +public class AccessPackageResourceRoleCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AccessPackageResourceRole + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRoleCollectionResponse.class, AccessPackageResourceRoleCollectionPage.class, AccessPackageResourceRoleCollectionRequestBuilder.class); + } + + /** + * Creates a new AccessPackageResourceRole + * @param newAccessPackageResourceRole the AccessPackageResourceRole to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceRole newAccessPackageResourceRole) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRoleRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAccessPackageResourceRole); + } + + /** + * Creates a new AccessPackageResourceRole + * @param newAccessPackageResourceRole the AccessPackageResourceRole to create + * @return the newly created object + */ + @Nonnull + public AccessPackageResourceRole post(@Nonnull final AccessPackageResourceRole newAccessPackageResourceRole) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRoleRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAccessPackageResourceRole); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionRequestBuilder.java new file mode 100644 index 00000000000..0f727067f51 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageCatalog; +import com.microsoft.graph.models.AccessPackageResourceRole; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRoleCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Collection Request Builder. + */ +public class AccessPackageResourceRoleCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessPackageCatalog + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRoleRequestBuilder.class, AccessPackageResourceRoleCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionResponse.java new file mode 100644 index 00000000000..c7b28d22b68 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceRole; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Collection Response. + */ +public class AccessPackageResourceRoleCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleRequest.java new file mode 100644 index 00000000000..9aa22831585 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceRole; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Request. + */ +public class AccessPackageResourceRoleRequest extends BaseRequest { + + /** + * The request for the AccessPackageResourceRole + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRole.class); + } + + /** + * Gets the AccessPackageResourceRole from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageResourceRole from the service + * + * @return the AccessPackageResourceRole from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRole get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageResourceRole delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageResourceRole with a source + * + * @param sourceAccessPackageResourceRole the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageResourceRole sourceAccessPackageResourceRole) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageResourceRole); + } + + /** + * Patches this AccessPackageResourceRole with a source + * + * @param sourceAccessPackageResourceRole the source object with updates + * @return the updated AccessPackageResourceRole + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRole patch(@Nonnull final AccessPackageResourceRole sourceAccessPackageResourceRole) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageResourceRole); + } + + /** + * Creates a AccessPackageResourceRole with a new object + * + * @param newAccessPackageResourceRole the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceRole newAccessPackageResourceRole) { + return sendAsync(HttpMethod.POST, newAccessPackageResourceRole); + } + + /** + * Creates a AccessPackageResourceRole with a new object + * + * @param newAccessPackageResourceRole the new object to create + * @return the created AccessPackageResourceRole + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRole post(@Nonnull final AccessPackageResourceRole newAccessPackageResourceRole) throws ClientException { + return send(HttpMethod.POST, newAccessPackageResourceRole); + } + + /** + * Creates a AccessPackageResourceRole with a new object + * + * @param newAccessPackageResourceRole the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageResourceRole newAccessPackageResourceRole) { + return sendAsync(HttpMethod.PUT, newAccessPackageResourceRole); + } + + /** + * Creates a AccessPackageResourceRole with a new object + * + * @param newAccessPackageResourceRole the object to create/update + * @return the created AccessPackageResourceRole + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRole put(@Nonnull final AccessPackageResourceRole newAccessPackageResourceRole) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageResourceRole); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleRequestBuilder.java new file mode 100644 index 00000000000..16876ab1a4b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleRequestBuilder.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceRole; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Request Builder. + */ +public class AccessPackageResourceRoleRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageResourceRole + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRoleRequest instance + */ + @Nonnull + public AccessPackageResourceRoleRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRoleRequest instance + */ + @Nonnull + public AccessPackageResourceRoleRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageResourceRoleRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for AccessPackageResource + * + * @return the AccessPackageResourceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestBuilder resource() { + return new com.microsoft.graph.requests.AccessPackageResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resource"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionPage.java new file mode 100644 index 00000000000..7c94ba28f7e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceRoleScope; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope Collection Page. + */ +public class AccessPackageResourceRoleScopeCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AccessPackageResourceRoleScope + * + * @param response the serialized AccessPackageResourceRoleScopeCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AccessPackageResourceRoleScopeCollectionPage(@Nonnull final AccessPackageResourceRoleScopeCollectionResponse response, @Nonnull final AccessPackageResourceRoleScopeCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AccessPackageResourceRoleScope + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AccessPackageResourceRoleScopeCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AccessPackageResourceRoleScopeCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionRequest.java new file mode 100644 index 00000000000..23b9f9a3d99 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackage; +import com.microsoft.graph.models.AccessPackageResourceRoleScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionResponse; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope Collection Request. + */ +public class AccessPackageResourceRoleScopeCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AccessPackageResourceRoleScope + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleScopeCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRoleScopeCollectionResponse.class, AccessPackageResourceRoleScopeCollectionPage.class, AccessPackageResourceRoleScopeCollectionRequestBuilder.class); + } + + /** + * Creates a new AccessPackageResourceRoleScope + * @param newAccessPackageResourceRoleScope the AccessPackageResourceRoleScope to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceRoleScope newAccessPackageResourceRoleScope) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRoleScopeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAccessPackageResourceRoleScope); + } + + /** + * Creates a new AccessPackageResourceRoleScope + * @param newAccessPackageResourceRoleScope the AccessPackageResourceRoleScope to create + * @return the newly created object + */ + @Nonnull + public AccessPackageResourceRoleScope post(@Nonnull final AccessPackageResourceRoleScope newAccessPackageResourceRoleScope) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceRoleScopeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAccessPackageResourceRoleScope); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionRequestBuilder.java new file mode 100644 index 00000000000..5defd2606c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackage; +import com.microsoft.graph.models.AccessPackageResourceRoleScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope Collection Request Builder. + */ +public class AccessPackageResourceRoleScopeCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessPackage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleScopeCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRoleScopeRequestBuilder.class, AccessPackageResourceRoleScopeCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionResponse.java new file mode 100644 index 00000000000..cae6e0d6719 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceRoleScope; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope Collection Response. + */ +public class AccessPackageResourceRoleScopeCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeRequest.java new file mode 100644 index 00000000000..681996265e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceRoleScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope Request. + */ +public class AccessPackageResourceRoleScopeRequest extends BaseRequest { + + /** + * The request for the AccessPackageResourceRoleScope + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleScopeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceRoleScope.class); + } + + /** + * Gets the AccessPackageResourceRoleScope from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageResourceRoleScope from the service + * + * @return the AccessPackageResourceRoleScope from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRoleScope get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageResourceRoleScope delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageResourceRoleScope with a source + * + * @param sourceAccessPackageResourceRoleScope the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageResourceRoleScope sourceAccessPackageResourceRoleScope) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageResourceRoleScope); + } + + /** + * Patches this AccessPackageResourceRoleScope with a source + * + * @param sourceAccessPackageResourceRoleScope the source object with updates + * @return the updated AccessPackageResourceRoleScope + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRoleScope patch(@Nonnull final AccessPackageResourceRoleScope sourceAccessPackageResourceRoleScope) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageResourceRoleScope); + } + + /** + * Creates a AccessPackageResourceRoleScope with a new object + * + * @param newAccessPackageResourceRoleScope the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceRoleScope newAccessPackageResourceRoleScope) { + return sendAsync(HttpMethod.POST, newAccessPackageResourceRoleScope); + } + + /** + * Creates a AccessPackageResourceRoleScope with a new object + * + * @param newAccessPackageResourceRoleScope the new object to create + * @return the created AccessPackageResourceRoleScope + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRoleScope post(@Nonnull final AccessPackageResourceRoleScope newAccessPackageResourceRoleScope) throws ClientException { + return send(HttpMethod.POST, newAccessPackageResourceRoleScope); + } + + /** + * Creates a AccessPackageResourceRoleScope with a new object + * + * @param newAccessPackageResourceRoleScope the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageResourceRoleScope newAccessPackageResourceRoleScope) { + return sendAsync(HttpMethod.PUT, newAccessPackageResourceRoleScope); + } + + /** + * Creates a AccessPackageResourceRoleScope with a new object + * + * @param newAccessPackageResourceRoleScope the object to create/update + * @return the created AccessPackageResourceRoleScope + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceRoleScope put(@Nonnull final AccessPackageResourceRoleScope newAccessPackageResourceRoleScope) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageResourceRoleScope); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceRoleScopeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeRequestBuilder.java new file mode 100644 index 00000000000..848a6e28abd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceRoleScopeRequestBuilder.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceRoleScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Role Scope Request Builder. + */ +public class AccessPackageResourceRoleScopeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageResourceRoleScope + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceRoleScopeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRoleScopeRequest instance + */ + @Nonnull + public AccessPackageResourceRoleScopeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceRoleScopeRequest instance + */ + @Nonnull + public AccessPackageResourceRoleScopeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageResourceRoleScopeRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for AccessPackageResourceRole + * + * @return the AccessPackageResourceRoleRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder role() { + return new com.microsoft.graph.requests.AccessPackageResourceRoleRequestBuilder(getRequestUrlWithAdditionalSegment("role"), getClient(), null); + } + + /** + * Gets the request builder for AccessPackageResourceScope + * + * @return the AccessPackageResourceScopeRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder scope() { + return new com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder(getRequestUrlWithAdditionalSegment("scope"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionPage.java new file mode 100644 index 00000000000..f132ce7c797 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceScope; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope Collection Page. + */ +public class AccessPackageResourceScopeCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AccessPackageResourceScope + * + * @param response the serialized AccessPackageResourceScopeCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AccessPackageResourceScopeCollectionPage(@Nonnull final AccessPackageResourceScopeCollectionResponse response, @Nonnull final AccessPackageResourceScopeCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AccessPackageResourceScope + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AccessPackageResourceScopeCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AccessPackageResourceScopeCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionRequest.java new file mode 100644 index 00000000000..fa15c3f2fc2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResource; +import com.microsoft.graph.models.AccessPackageResourceScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionResponse; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope Collection Request. + */ +public class AccessPackageResourceScopeCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AccessPackageResourceScope + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceScopeCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceScopeCollectionResponse.class, AccessPackageResourceScopeCollectionPage.class, AccessPackageResourceScopeCollectionRequestBuilder.class); + } + + /** + * Creates a new AccessPackageResourceScope + * @param newAccessPackageResourceScope the AccessPackageResourceScope to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceScope newAccessPackageResourceScope) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceScopeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAccessPackageResourceScope); + } + + /** + * Creates a new AccessPackageResourceScope + * @param newAccessPackageResourceScope the AccessPackageResourceScope to create + * @return the newly created object + */ + @Nonnull + public AccessPackageResourceScope post(@Nonnull final AccessPackageResourceScope newAccessPackageResourceScope) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AccessPackageResourceScopeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAccessPackageResourceScope); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionRequestBuilder.java new file mode 100644 index 00000000000..3f4129ac833 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResource; +import com.microsoft.graph.models.AccessPackageResourceScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceScopeRequestBuilder; +import com.microsoft.graph.requests.AccessPackageResourceScopeCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope Collection Request Builder. + */ +public class AccessPackageResourceScopeCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessPackageResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceScopeCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceScopeRequestBuilder.class, AccessPackageResourceScopeCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionResponse.java new file mode 100644 index 00000000000..97127d477a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.AccessPackageResourceScope; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope Collection Response. + */ +public class AccessPackageResourceScopeCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeRequest.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeRequest.java new file mode 100644 index 00000000000..ca7aed5b1e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope Request. + */ +public class AccessPackageResourceScopeRequest extends BaseRequest { + + /** + * The request for the AccessPackageResourceScope + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceScopeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AccessPackageResourceScope.class); + } + + /** + * Gets the AccessPackageResourceScope from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AccessPackageResourceScope from the service + * + * @return the AccessPackageResourceScope from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceScope get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public AccessPackageResourceScope delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AccessPackageResourceScope with a source + * + * @param sourceAccessPackageResourceScope the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AccessPackageResourceScope sourceAccessPackageResourceScope) { + return sendAsync(HttpMethod.PATCH, sourceAccessPackageResourceScope); + } + + /** + * Patches this AccessPackageResourceScope with a source + * + * @param sourceAccessPackageResourceScope the source object with updates + * @return the updated AccessPackageResourceScope + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceScope patch(@Nonnull final AccessPackageResourceScope sourceAccessPackageResourceScope) throws ClientException { + return send(HttpMethod.PATCH, sourceAccessPackageResourceScope); + } + + /** + * Creates a AccessPackageResourceScope with a new object + * + * @param newAccessPackageResourceScope the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AccessPackageResourceScope newAccessPackageResourceScope) { + return sendAsync(HttpMethod.POST, newAccessPackageResourceScope); + } + + /** + * Creates a AccessPackageResourceScope with a new object + * + * @param newAccessPackageResourceScope the new object to create + * @return the created AccessPackageResourceScope + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceScope post(@Nonnull final AccessPackageResourceScope newAccessPackageResourceScope) throws ClientException { + return send(HttpMethod.POST, newAccessPackageResourceScope); + } + + /** + * Creates a AccessPackageResourceScope with a new object + * + * @param newAccessPackageResourceScope the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AccessPackageResourceScope newAccessPackageResourceScope) { + return sendAsync(HttpMethod.PUT, newAccessPackageResourceScope); + } + + /** + * Creates a AccessPackageResourceScope with a new object + * + * @param newAccessPackageResourceScope the object to create/update + * @return the created AccessPackageResourceScope + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AccessPackageResourceScope put(@Nonnull final AccessPackageResourceScope newAccessPackageResourceScope) throws ClientException { + return send(HttpMethod.PUT, newAccessPackageResourceScope); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AccessPackageResourceScopeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeRequestBuilder.java new file mode 100644 index 00000000000..3161043f258 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AccessPackageResourceScopeRequestBuilder.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageResourceScope; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Package Resource Scope Request Builder. + */ +public class AccessPackageResourceScopeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AccessPackageResourceScope + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AccessPackageResourceScopeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceScopeRequest instance + */ + @Nonnull + public AccessPackageResourceScopeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the AccessPackageResourceScopeRequest instance + */ + @Nonnull + public AccessPackageResourceScopeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AccessPackageResourceScopeRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for AccessPackageResource + * + * @return the AccessPackageResourceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestBuilder resource() { + return new com.microsoft.graph.requests.AccessPackageResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resource"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionPage.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionPage.java new file mode 100644 index 00000000000..d0851d86443 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.CustomCalloutExtension; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension Collection Page. + */ +public class CustomCalloutExtensionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for CustomCalloutExtension + * + * @param response the serialized CustomCalloutExtensionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public CustomCalloutExtensionCollectionPage(@Nonnull final CustomCalloutExtensionCollectionResponse response, @Nonnull final CustomCalloutExtensionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for CustomCalloutExtension + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public CustomCalloutExtensionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final CustomCalloutExtensionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionRequest.java new file mode 100644 index 00000000000..16415f31a2b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageCatalog; +import com.microsoft.graph.models.CustomCalloutExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionResponse; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequestBuilder; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension Collection Request. + */ +public class CustomCalloutExtensionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtensionCollectionResponse.class, CustomCalloutExtensionCollectionPage.class, CustomCalloutExtensionCollectionRequestBuilder.class); + } + + /** + * Creates a new CustomCalloutExtension + * @param newCustomCalloutExtension the CustomCalloutExtension to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CustomCalloutExtension newCustomCalloutExtension) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CustomCalloutExtensionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newCustomCalloutExtension); + } + + /** + * Creates a new CustomCalloutExtension + * @param newCustomCalloutExtension the CustomCalloutExtension to create + * @return the newly created object + */ + @Nonnull + public CustomCalloutExtension post(@Nonnull final CustomCalloutExtension newCustomCalloutExtension) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CustomCalloutExtensionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newCustomCalloutExtension); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionRequestBuilder.java new file mode 100644 index 00000000000..84cede24445 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageCatalog; +import com.microsoft.graph.models.CustomCalloutExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequestBuilder; +import com.microsoft.graph.requests.CustomCalloutExtensionRequestBuilder; +import com.microsoft.graph.requests.CustomCalloutExtensionCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension Collection Request Builder. + */ +public class CustomCalloutExtensionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessPackageCatalog + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtensionRequestBuilder.class, CustomCalloutExtensionCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionResponse.java new file mode 100644 index 00000000000..5b3e1903db0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.CustomCalloutExtension; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension Collection Response. + */ +public class CustomCalloutExtensionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionReferenceRequest.java new file mode 100644 index 00000000000..cd41239f52f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionReferenceRequest.java @@ -0,0 +1,64 @@ +// Template Source: BaseEntityReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CustomCalloutExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonPrimitive; +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension Reference Request. + */ +public class CustomCalloutExtensionReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtension.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionReferenceRequestBuilder.java new file mode 100644 index 00000000000..5bee76785df --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ + +// Template Source: BaseEntityReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CustomCalloutExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension Reference Request Builder. + */ +public class CustomCalloutExtensionReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtensionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionWithReferenceRequest.java new file mode 100644 index 00000000000..80deb5ce7e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionWithReferenceRequest.java @@ -0,0 +1,63 @@ +// Template Source: BaseEntityWithReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CustomCalloutExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseWithReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.serializer.IJsonBackedObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension With Reference Request. + */ +public class CustomCalloutExtensionWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtension.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionWithReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..fcf61ce88f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionWithReferenceRequestBuilder.java @@ -0,0 +1,36 @@ +// Template Source: BaseEntityWithReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CustomCalloutExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseWithReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Callout Extension With Reference Request Builder. + */ +public class CustomCalloutExtensionWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtensionWithReferenceRequest.class, CustomCalloutExtensionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionPage.java b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionPage.java new file mode 100644 index 00000000000..67341fd1b71 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.CustomExtensionStageSetting; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting Collection Page. + */ +public class CustomExtensionStageSettingCollectionPage extends BaseCollectionPage { + + /** + * A collection page for CustomExtensionStageSetting + * + * @param response the serialized CustomExtensionStageSettingCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public CustomExtensionStageSettingCollectionPage(@Nonnull final CustomExtensionStageSettingCollectionResponse response, @Nonnull final CustomExtensionStageSettingCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for CustomExtensionStageSetting + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public CustomExtensionStageSettingCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final CustomExtensionStageSettingCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionRequest.java new file mode 100644 index 00000000000..ca789b6639e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageAssignmentPolicy; +import com.microsoft.graph.models.CustomExtensionStageSetting; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionResponse; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequestBuilder; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting Collection Request. + */ +public class CustomExtensionStageSettingCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of CustomExtensionStageSetting + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomExtensionStageSettingCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomExtensionStageSettingCollectionResponse.class, CustomExtensionStageSettingCollectionPage.class, CustomExtensionStageSettingCollectionRequestBuilder.class); + } + + /** + * Creates a new CustomExtensionStageSetting + * @param newCustomExtensionStageSetting the CustomExtensionStageSetting to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CustomExtensionStageSetting newCustomExtensionStageSetting) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CustomExtensionStageSettingRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newCustomExtensionStageSetting); + } + + /** + * Creates a new CustomExtensionStageSetting + * @param newCustomExtensionStageSetting the CustomExtensionStageSetting to create + * @return the newly created object + */ + @Nonnull + public CustomExtensionStageSetting post(@Nonnull final CustomExtensionStageSetting newCustomExtensionStageSetting) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CustomExtensionStageSettingRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newCustomExtensionStageSetting); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionRequestBuilder.java new file mode 100644 index 00000000000..2ad7a0b0073 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.AccessPackageAssignmentPolicy; +import com.microsoft.graph.models.CustomExtensionStageSetting; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequestBuilder; +import com.microsoft.graph.requests.CustomExtensionStageSettingRequestBuilder; +import com.microsoft.graph.requests.CustomExtensionStageSettingCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting Collection Request Builder. + */ +public class CustomExtensionStageSettingCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessPackageAssignmentPolicy + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomExtensionStageSettingCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomExtensionStageSettingRequestBuilder.class, CustomExtensionStageSettingCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionResponse.java new file mode 100644 index 00000000000..f7720fc3680 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.CustomExtensionStageSetting; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting Collection Response. + */ +public class CustomExtensionStageSettingCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingRequest.java b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingRequest.java new file mode 100644 index 00000000000..9a19ee47215 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CustomExtensionStageSetting; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting Request. + */ +public class CustomExtensionStageSettingRequest extends BaseRequest { + + /** + * The request for the CustomExtensionStageSetting + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomExtensionStageSettingRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomExtensionStageSetting.class); + } + + /** + * Gets the CustomExtensionStageSetting from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the CustomExtensionStageSetting from the service + * + * @return the CustomExtensionStageSetting from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomExtensionStageSetting get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public CustomExtensionStageSetting delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this CustomExtensionStageSetting with a source + * + * @param sourceCustomExtensionStageSetting the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final CustomExtensionStageSetting sourceCustomExtensionStageSetting) { + return sendAsync(HttpMethod.PATCH, sourceCustomExtensionStageSetting); + } + + /** + * Patches this CustomExtensionStageSetting with a source + * + * @param sourceCustomExtensionStageSetting the source object with updates + * @return the updated CustomExtensionStageSetting + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomExtensionStageSetting patch(@Nonnull final CustomExtensionStageSetting sourceCustomExtensionStageSetting) throws ClientException { + return send(HttpMethod.PATCH, sourceCustomExtensionStageSetting); + } + + /** + * Creates a CustomExtensionStageSetting with a new object + * + * @param newCustomExtensionStageSetting the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CustomExtensionStageSetting newCustomExtensionStageSetting) { + return sendAsync(HttpMethod.POST, newCustomExtensionStageSetting); + } + + /** + * Creates a CustomExtensionStageSetting with a new object + * + * @param newCustomExtensionStageSetting the new object to create + * @return the created CustomExtensionStageSetting + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomExtensionStageSetting post(@Nonnull final CustomExtensionStageSetting newCustomExtensionStageSetting) throws ClientException { + return send(HttpMethod.POST, newCustomExtensionStageSetting); + } + + /** + * Creates a CustomExtensionStageSetting with a new object + * + * @param newCustomExtensionStageSetting the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final CustomExtensionStageSetting newCustomExtensionStageSetting) { + return sendAsync(HttpMethod.PUT, newCustomExtensionStageSetting); + } + + /** + * Creates a CustomExtensionStageSetting with a new object + * + * @param newCustomExtensionStageSetting the object to create/update + * @return the created CustomExtensionStageSetting + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomExtensionStageSetting put(@Nonnull final CustomExtensionStageSetting newCustomExtensionStageSetting) throws ClientException { + return send(HttpMethod.PUT, newCustomExtensionStageSetting); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CustomExtensionStageSettingRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingRequestBuilder.java new file mode 100644 index 00000000000..7ebb5a11ed9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomExtensionStageSettingRequestBuilder.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.CustomExtensionStageSetting; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Extension Stage Setting Request Builder. + */ +public class CustomExtensionStageSettingRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CustomExtensionStageSetting + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomExtensionStageSettingRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the CustomExtensionStageSettingRequest instance + */ + @Nonnull + public CustomExtensionStageSettingRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the CustomExtensionStageSettingRequest instance + */ + @Nonnull + public CustomExtensionStageSettingRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.CustomExtensionStageSettingRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for CustomCalloutExtension + * + * @return the CustomCalloutExtensionWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.CustomCalloutExtensionWithReferenceRequestBuilder customExtension() { + return new com.microsoft.graph.requests.CustomCalloutExtensionWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("customExtension"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EntitlementManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EntitlementManagementRequestBuilder.java index fb1a3213854..b84b304c8fe 100644 --- a/src/main/java/com/microsoft/graph/requests/EntitlementManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EntitlementManagementRequestBuilder.java @@ -196,6 +196,86 @@ public com.microsoft.graph.requests.ConnectedOrganizationCollectionRequestBuilde public com.microsoft.graph.requests.ConnectedOrganizationRequestBuilder connectedOrganizations(@Nonnull final String id) { return new com.microsoft.graph.requests.ConnectedOrganizationRequestBuilder(getRequestUrlWithAdditionalSegment("connectedOrganizations") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the AccessPackageResourceEnvironment collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequestBuilder resourceEnvironments() { + return new com.microsoft.graph.requests.AccessPackageResourceEnvironmentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resourceEnvironments"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceEnvironment item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceEnvironmentRequestBuilder resourceEnvironments(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceEnvironmentRequestBuilder(getRequestUrlWithAdditionalSegment("resourceEnvironments") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResourceRequest collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequestBuilder resourceRequests() { + return new com.microsoft.graph.requests.AccessPackageResourceRequestCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRequests"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceRequest item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestRequestBuilder resourceRequests(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRequestRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRequests") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResourceRoleScope collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder resourceRoleScopes() { + return new com.microsoft.graph.requests.AccessPackageResourceRoleScopeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRoleScopes"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResourceRoleScope item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRoleScopeRequestBuilder resourceRoleScopes(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRoleScopeRequestBuilder(getRequestUrlWithAdditionalSegment("resourceRoleScopes") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the AccessPackageResource collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder resources() { + return new com.microsoft.graph.requests.AccessPackageResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resources"), getClient(), null); + } + + /** + * Gets a request builder for the AccessPackageResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AccessPackageResourceRequestBuilder resources(@Nonnull final String id) { + return new com.microsoft.graph.requests.AccessPackageResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resources") + "/" + id, getClient(), null); + } /** * Gets the request builder for EntitlementManagementSettings diff --git a/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java index 3d6769c4578..9f55d49571f 100644 --- a/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/ServicePrincipalRequestBuilder.java @@ -330,6 +330,26 @@ public com.microsoft.graph.requests.AdministrativeUnitCollectionRequestBuilder m public com.microsoft.graph.requests.AdministrativeUnitRequestBuilder memberOfAsAdministrativeUnit(@Nonnull final String id) { return new com.microsoft.graph.requests.AdministrativeUnitRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/" + id + "/microsoft.graph.administrativeUnit", getClient(), null); } + /** + * Gets a request builder for the DirectoryRole collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder memberOfAsDirectoryRole() { + return new com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/microsoft.graph.directoryRole", getClient(), null); + } + + /** + * Gets a request builder for the DirectoryRole item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleRequestBuilder memberOfAsDirectoryRole(@Nonnull final String id) { + return new com.microsoft.graph.requests.DirectoryRoleRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/" + id + "/microsoft.graph.directoryRole", getClient(), null); + } /** * Gets a request builder for the OAuth2PermissionGrant collection * @@ -670,6 +690,26 @@ public com.microsoft.graph.requests.AdministrativeUnitCollectionRequestBuilder t public com.microsoft.graph.requests.AdministrativeUnitRequestBuilder transitiveMemberOfAsAdministrativeUnit(@Nonnull final String id) { return new com.microsoft.graph.requests.AdministrativeUnitRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMemberOf") + "/" + id + "/microsoft.graph.administrativeUnit", getClient(), null); } + /** + * Gets a request builder for the DirectoryRole collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder transitiveMemberOfAsDirectoryRole() { + return new com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMemberOf") + "/microsoft.graph.directoryRole", getClient(), null); + } + + /** + * Gets a request builder for the DirectoryRole item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleRequestBuilder transitiveMemberOfAsDirectoryRole(@Nonnull final String id) { + return new com.microsoft.graph.requests.DirectoryRoleRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMemberOf") + "/" + id + "/microsoft.graph.directoryRole", getClient(), null); + } /** * Gets the request builder for Synchronization diff --git a/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java index b3d56326756..ba315583b4d 100644 --- a/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java @@ -297,6 +297,26 @@ public com.microsoft.graph.requests.AdministrativeUnitCollectionRequestBuilder m public com.microsoft.graph.requests.AdministrativeUnitRequestBuilder memberOfAsAdministrativeUnit(@Nonnull final String id) { return new com.microsoft.graph.requests.AdministrativeUnitRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/" + id + "/microsoft.graph.administrativeUnit", getClient(), null); } + /** + * Gets a request builder for the DirectoryRole collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder memberOfAsDirectoryRole() { + return new com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/microsoft.graph.directoryRole", getClient(), null); + } + + /** + * Gets a request builder for the DirectoryRole item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleRequestBuilder memberOfAsDirectoryRole(@Nonnull final String id) { + return new com.microsoft.graph.requests.DirectoryRoleRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/" + id + "/microsoft.graph.directoryRole", getClient(), null); + } /** * Gets a request builder for the OAuth2PermissionGrant collection * @@ -637,6 +657,26 @@ public com.microsoft.graph.requests.AdministrativeUnitCollectionRequestBuilder t public com.microsoft.graph.requests.AdministrativeUnitRequestBuilder transitiveMemberOfAsAdministrativeUnit(@Nonnull final String id) { return new com.microsoft.graph.requests.AdministrativeUnitRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMemberOf") + "/" + id + "/microsoft.graph.administrativeUnit", getClient(), null); } + /** + * Gets a request builder for the DirectoryRole collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder transitiveMemberOfAsDirectoryRole() { + return new com.microsoft.graph.requests.DirectoryRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMemberOf") + "/microsoft.graph.directoryRole", getClient(), null); + } + + /** + * Gets a request builder for the DirectoryRole item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryRoleRequestBuilder transitiveMemberOfAsDirectoryRole(@Nonnull final String id) { + return new com.microsoft.graph.requests.DirectoryRoleRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMemberOf") + "/" + id + "/microsoft.graph.directoryRole", getClient(), null); + } /** * Gets the request builder for Calendar diff --git a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequest.java index 8fd21b9c7eb..0719d60eaa3 100644 --- a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequest.java @@ -12,6 +12,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequestBuilder.java index 0ef9b8b87bf..4b330c108b1 100644 --- a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetCollectionRequestBuilder.java @@ -12,6 +12,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; @@ -24,6 +26,7 @@ import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.PrimitiveRequestBuilder; import com.microsoft.graph.security.models.EdiscoveryReviewSetAddToReviewSetParameterSet; +import com.microsoft.graph.security.models.EdiscoveryReviewSetExportParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** diff --git a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequest.java index 9bf3c2ca02e..ea4dc1e16c5 100644 --- a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequest.java @@ -9,6 +9,9 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.security.models.EdiscoveryReviewSet; import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; import com.microsoft.graph.security.models.EdiscoveryReviewTag; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequestBuilder.java index cd2e976d42e..2306966bced 100644 --- a/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/security/requests/EdiscoveryReviewSetQueryCollectionRequestBuilder.java @@ -9,6 +9,9 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.security.models.EdiscoveryReviewSet; import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; import com.microsoft.graph.security.models.EdiscoveryReviewTag; import java.util.Arrays; import java.util.EnumSet; @@ -21,6 +24,7 @@ import com.microsoft.graph.http.BaseCollectionRequestBuilder; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQueryExportParameterSet; import com.microsoft.graph.security.models.EdiscoveryReviewSetQueryApplyTagsParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java new file mode 100644 index 00000000000..8eddaee440b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryExportOperation.java @@ -0,0 +1,107 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.security.models.ExportFileMetadata; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import com.microsoft.graph.security.models.EdiscoveryReviewSet; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.CaseOperation; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Export Operation. + */ +public class EdiscoveryExportOperation extends CaseOperation implements IJsonBackedObject { + + + /** + * The Description. + * The description provided for the export. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Export File Metadata. + * + */ + @SerializedName(value = "exportFileMetadata", alternate = {"ExportFileMetadata"}) + @Expose + @Nullable + public java.util.List exportFileMetadata; + + /** + * The Export Options. + * The options provided for the export. For more details, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, tags. + */ + @SerializedName(value = "exportOptions", alternate = {"ExportOptions"}) + @Expose + @Nullable + public EnumSet exportOptions; + + /** + * The Export Structure. + * The options provided that specify the structure of the export. For more details, see reviewSet: export. Possible values are: none, directory, pst. + */ + @SerializedName(value = "exportStructure", alternate = {"ExportStructure"}) + @Expose + @Nullable + public ExportFileStructure exportStructure; + + /** + * The Output Name. + * The name provided for the export. + */ + @SerializedName(value = "outputName", alternate = {"OutputName"}) + @Expose + @Nullable + public String outputName; + + /** + * The Review Set. + * Review set from where documents are exported. + */ + @SerializedName(value = "reviewSet", alternate = {"ReviewSet"}) + @Expose + @Nullable + public EdiscoveryReviewSet reviewSet; + + /** + * The Review Set Query. + * The review set query which is used to filter the documents for export. + */ + @SerializedName(value = "reviewSetQuery", alternate = {"ReviewSetQuery"}) + @Expose + @Nullable + public EdiscoveryReviewSetQuery reviewSetQuery; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryReviewSetExportParameterSet.java b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryReviewSetExportParameterSet.java new file mode 100644 index 00000000000..eccf870230e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryReviewSetExportParameterSet.java @@ -0,0 +1,183 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; + +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Export Parameter Set. + */ +public class EdiscoveryReviewSetExportParameterSet { + /** + * The output Name. + * + */ + @SerializedName(value = "outputName", alternate = {"OutputName"}) + @Expose + @Nullable + public String outputName; + + /** + * The description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The export Options. + * + */ + @SerializedName(value = "exportOptions", alternate = {"ExportOptions"}) + @Expose + @Nullable + public EnumSet exportOptions; + + /** + * The export Structure. + * + */ + @SerializedName(value = "exportStructure", alternate = {"ExportStructure"}) + @Expose + @Nullable + public ExportFileStructure exportStructure; + + + /** + * Instiaciates a new EdiscoveryReviewSetExportParameterSet + */ + public EdiscoveryReviewSetExportParameterSet() {} + /** + * Instiaciates a new EdiscoveryReviewSetExportParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EdiscoveryReviewSetExportParameterSet(@Nonnull final EdiscoveryReviewSetExportParameterSetBuilder builder) { + this.outputName = builder.outputName; + this.description = builder.description; + this.exportOptions = builder.exportOptions; + this.exportStructure = builder.exportStructure; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EdiscoveryReviewSetExportParameterSetBuilder newBuilder() { + return new EdiscoveryReviewSetExportParameterSetBuilder(); + } + /** + * Fluent builder for the EdiscoveryReviewSetExportParameterSet + */ + public static final class EdiscoveryReviewSetExportParameterSetBuilder { + /** + * The outputName parameter value + */ + @Nullable + protected String outputName; + /** + * Sets the OutputName + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetExportParameterSetBuilder withOutputName(@Nullable final String val) { + this.outputName = val; + return this; + } + /** + * The description parameter value + */ + @Nullable + protected String description; + /** + * Sets the Description + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetExportParameterSetBuilder withDescription(@Nullable final String val) { + this.description = val; + return this; + } + /** + * The exportOptions parameter value + */ + @Nullable + protected EnumSet exportOptions; + /** + * Sets the ExportOptions + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetExportParameterSetBuilder withExportOptions(@Nullable final EnumSet val) { + this.exportOptions = val; + return this; + } + /** + * The exportStructure parameter value + */ + @Nullable + protected ExportFileStructure exportStructure; + /** + * Sets the ExportStructure + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetExportParameterSetBuilder withExportStructure(@Nullable final ExportFileStructure val) { + this.exportStructure = val; + return this; + } + /** + * Instanciates a new EdiscoveryReviewSetExportParameterSetBuilder + */ + @Nullable + protected EdiscoveryReviewSetExportParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EdiscoveryReviewSetExportParameterSet build() { + return new EdiscoveryReviewSetExportParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + if(this.outputName != null) { + result.add(new com.microsoft.graph.options.FunctionOption("outputName", outputName)); + } + if(this.description != null) { + result.add(new com.microsoft.graph.options.FunctionOption("description", description)); + } + if(this.exportOptions != null) { + result.add(new com.microsoft.graph.options.FunctionOption("exportOptions", exportOptions)); + } + if(this.exportStructure != null) { + result.add(new com.microsoft.graph.options.FunctionOption("exportStructure", exportStructure)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryReviewSetQueryExportParameterSet.java b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryReviewSetQueryExportParameterSet.java new file mode 100644 index 00000000000..a595b1b5385 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/EdiscoveryReviewSetQueryExportParameterSet.java @@ -0,0 +1,183 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; + +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query Export Parameter Set. + */ +public class EdiscoveryReviewSetQueryExportParameterSet { + /** + * The output Name. + * + */ + @SerializedName(value = "outputName", alternate = {"OutputName"}) + @Expose + @Nullable + public String outputName; + + /** + * The description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The export Options. + * + */ + @SerializedName(value = "exportOptions", alternate = {"ExportOptions"}) + @Expose + @Nullable + public EnumSet exportOptions; + + /** + * The export Structure. + * + */ + @SerializedName(value = "exportStructure", alternate = {"ExportStructure"}) + @Expose + @Nullable + public ExportFileStructure exportStructure; + + + /** + * Instiaciates a new EdiscoveryReviewSetQueryExportParameterSet + */ + public EdiscoveryReviewSetQueryExportParameterSet() {} + /** + * Instiaciates a new EdiscoveryReviewSetQueryExportParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EdiscoveryReviewSetQueryExportParameterSet(@Nonnull final EdiscoveryReviewSetQueryExportParameterSetBuilder builder) { + this.outputName = builder.outputName; + this.description = builder.description; + this.exportOptions = builder.exportOptions; + this.exportStructure = builder.exportStructure; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EdiscoveryReviewSetQueryExportParameterSetBuilder newBuilder() { + return new EdiscoveryReviewSetQueryExportParameterSetBuilder(); + } + /** + * Fluent builder for the EdiscoveryReviewSetQueryExportParameterSet + */ + public static final class EdiscoveryReviewSetQueryExportParameterSetBuilder { + /** + * The outputName parameter value + */ + @Nullable + protected String outputName; + /** + * Sets the OutputName + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetQueryExportParameterSetBuilder withOutputName(@Nullable final String val) { + this.outputName = val; + return this; + } + /** + * The description parameter value + */ + @Nullable + protected String description; + /** + * Sets the Description + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetQueryExportParameterSetBuilder withDescription(@Nullable final String val) { + this.description = val; + return this; + } + /** + * The exportOptions parameter value + */ + @Nullable + protected EnumSet exportOptions; + /** + * Sets the ExportOptions + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetQueryExportParameterSetBuilder withExportOptions(@Nullable final EnumSet val) { + this.exportOptions = val; + return this; + } + /** + * The exportStructure parameter value + */ + @Nullable + protected ExportFileStructure exportStructure; + /** + * Sets the ExportStructure + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EdiscoveryReviewSetQueryExportParameterSetBuilder withExportStructure(@Nullable final ExportFileStructure val) { + this.exportStructure = val; + return this; + } + /** + * Instanciates a new EdiscoveryReviewSetQueryExportParameterSetBuilder + */ + @Nullable + protected EdiscoveryReviewSetQueryExportParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EdiscoveryReviewSetQueryExportParameterSet build() { + return new EdiscoveryReviewSetQueryExportParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + if(this.outputName != null) { + result.add(new com.microsoft.graph.options.FunctionOption("outputName", outputName)); + } + if(this.description != null) { + result.add(new com.microsoft.graph.options.FunctionOption("description", description)); + } + if(this.exportOptions != null) { + result.add(new com.microsoft.graph.options.FunctionOption("exportOptions", exportOptions)); + } + if(this.exportStructure != null) { + result.add(new com.microsoft.graph.options.FunctionOption("exportStructure", exportStructure)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ExportFileMetadata.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ExportFileMetadata.java new file mode 100644 index 00000000000..5baf622b66a --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ExportFileMetadata.java @@ -0,0 +1,77 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Export File Metadata. + */ +public class ExportFileMetadata implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Download Url. + * + */ + @SerializedName(value = "downloadUrl", alternate = {"DownloadUrl"}) + @Expose + @Nullable + public String downloadUrl; + + /** + * The File Name. + * + */ + @SerializedName(value = "fileName", alternate = {"FileName"}) + @Expose + @Nullable + public String fileName; + + /** + * The Size. + * + */ + @SerializedName(value = "size", alternate = {"Size"}) + @Expose + @Nullable + public Long size; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ExportFileStructure.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ExportFileStructure.java new file mode 100644 index 00000000000..04832b62d71 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ExportFileStructure.java @@ -0,0 +1,34 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; + + +/** + * The Enum Export File Structure. +*/ +public enum ExportFileStructure +{ + /** + * none + */ + NONE, + /** + * directory + */ + DIRECTORY, + /** + * pst + */ + PST, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ExportFileStructure values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ExportOptions.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ExportOptions.java new file mode 100644 index 00000000000..8d1e16e6152 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ExportOptions.java @@ -0,0 +1,38 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.models; + + +/** + * The Enum Export Options. +*/ +public enum ExportOptions +{ + /** + * original Files + */ + ORIGINAL_FILES, + /** + * text + */ + TEXT, + /** + * pdf Replacement + */ + PDF_REPLACEMENT, + /** + * tags + */ + TAGS, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ExportOptions values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/Incident.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Incident.java index b01aa0fa43c..987decad3d8 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/Incident.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Incident.java @@ -133,7 +133,7 @@ public class Incident extends Entity implements IJsonBackedObject { /** * The Status. - * The status of the incident. Possible values are: active, resolved, inProgress, redirected, unknownFutureValue. + * The status of the incident. Possible values are: active, resolved, inProgress, redirected, unknownFutureValue, and awaitingAction. */ @SerializedName(value = "status", alternate = {"Status"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryExportOperationRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryExportOperationRequest.java new file mode 100644 index 00000000000..3a8f57f25fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryExportOperationRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.EdiscoveryExportOperation; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Export Operation Request. + */ +public class EdiscoveryExportOperationRequest extends BaseRequest { + + /** + * The request for the EdiscoveryExportOperation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryExportOperationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EdiscoveryExportOperation.class); + } + + /** + * Gets the EdiscoveryExportOperation from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EdiscoveryExportOperation from the service + * + * @return the EdiscoveryExportOperation from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EdiscoveryExportOperation get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EdiscoveryExportOperation delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EdiscoveryExportOperation with a source + * + * @param sourceEdiscoveryExportOperation the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EdiscoveryExportOperation sourceEdiscoveryExportOperation) { + return sendAsync(HttpMethod.PATCH, sourceEdiscoveryExportOperation); + } + + /** + * Patches this EdiscoveryExportOperation with a source + * + * @param sourceEdiscoveryExportOperation the source object with updates + * @return the updated EdiscoveryExportOperation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EdiscoveryExportOperation patch(@Nonnull final EdiscoveryExportOperation sourceEdiscoveryExportOperation) throws ClientException { + return send(HttpMethod.PATCH, sourceEdiscoveryExportOperation); + } + + /** + * Creates a EdiscoveryExportOperation with a new object + * + * @param newEdiscoveryExportOperation the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EdiscoveryExportOperation newEdiscoveryExportOperation) { + return sendAsync(HttpMethod.POST, newEdiscoveryExportOperation); + } + + /** + * Creates a EdiscoveryExportOperation with a new object + * + * @param newEdiscoveryExportOperation the new object to create + * @return the created EdiscoveryExportOperation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EdiscoveryExportOperation post(@Nonnull final EdiscoveryExportOperation newEdiscoveryExportOperation) throws ClientException { + return send(HttpMethod.POST, newEdiscoveryExportOperation); + } + + /** + * Creates a EdiscoveryExportOperation with a new object + * + * @param newEdiscoveryExportOperation the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EdiscoveryExportOperation newEdiscoveryExportOperation) { + return sendAsync(HttpMethod.PUT, newEdiscoveryExportOperation); + } + + /** + * Creates a EdiscoveryExportOperation with a new object + * + * @param newEdiscoveryExportOperation the object to create/update + * @return the created EdiscoveryExportOperation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EdiscoveryExportOperation put(@Nonnull final EdiscoveryExportOperation newEdiscoveryExportOperation) throws ClientException { + return send(HttpMethod.PUT, newEdiscoveryExportOperation); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EdiscoveryExportOperationRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EdiscoveryExportOperationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryExportOperationRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryExportOperationRequestBuilder.java new file mode 100644 index 00000000000..91fb1da62e8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryExportOperationRequestBuilder.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.EdiscoveryExportOperation; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Export Operation Request Builder. + */ +public class EdiscoveryExportOperationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EdiscoveryExportOperation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryExportOperationRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EdiscoveryExportOperationRequest instance + */ + @Nonnull + public EdiscoveryExportOperationRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EdiscoveryExportOperationRequest instance + */ + @Nonnull + public EdiscoveryExportOperationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.EdiscoveryExportOperationRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for EdiscoveryReviewSet + * + * @return the EdiscoveryReviewSetWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.EdiscoveryReviewSetWithReferenceRequestBuilder reviewSet() { + return new com.microsoft.graph.security.requests.EdiscoveryReviewSetWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("reviewSet"), getClient(), null); + } + + /** + * Gets the request builder for EdiscoveryReviewSetQuery + * + * @return the EdiscoveryReviewSetQueryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.EdiscoveryReviewSetQueryWithReferenceRequestBuilder reviewSetQuery() { + return new com.microsoft.graph.security.requests.EdiscoveryReviewSetQueryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("reviewSetQuery"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetExportRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetExportRequest.java new file mode 100644 index 00000000000..9a5ce7ecc70 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetExportRequest.java @@ -0,0 +1,56 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; +import com.microsoft.graph.security.models.EdiscoveryReviewSet; +import com.microsoft.graph.security.requests.EdiscoveryReviewSetExportRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.security.models.EdiscoveryReviewSetExportParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Export Request. + */ +public class EdiscoveryReviewSetExportRequest extends BaseRequest { + /** + * The request for this EdiscoveryReviewSetExport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetExportRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** The body for the method */ + @Nullable + public EdiscoveryReviewSetExportParameterSet body; + /** + * Creates the EdiscoveryReviewSetExport + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the EdiscoveryReviewSetExport + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, body); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetExportRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetExportRequestBuilder.java new file mode 100644 index 00000000000..2a8acdf5120 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetExportRequestBuilder.java @@ -0,0 +1,76 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; +import com.microsoft.graph.security.requests.EdiscoveryReviewSetExportRequest; +import com.microsoft.graph.security.models.EdiscoveryReviewSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.security.models.EdiscoveryReviewSetExportParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Export Request Builder. + */ +public class EdiscoveryReviewSetExportRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EdiscoveryReviewSetExport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetExportRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private EdiscoveryReviewSetExportParameterSet body; + /** + * The request builder for this EdiscoveryReviewSetExport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public EdiscoveryReviewSetExportRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final EdiscoveryReviewSetExportParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the EdiscoveryReviewSetExportRequest + * + * @param requestOptions the options for the request + * @return the EdiscoveryReviewSetExportRequest instance + */ + @Nonnull + public EdiscoveryReviewSetExportRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EdiscoveryReviewSetExportRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EdiscoveryReviewSetExportRequest instance + */ + @Nonnull + public EdiscoveryReviewSetExportRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EdiscoveryReviewSetExportRequest request = new EdiscoveryReviewSetExportRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryExportRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryExportRequest.java new file mode 100644 index 00000000000..3d6c3a3d8ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryExportRequest.java @@ -0,0 +1,56 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.requests.EdiscoveryReviewSetQueryExportRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQueryExportParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query Export Request. + */ +public class EdiscoveryReviewSetQueryExportRequest extends BaseRequest { + /** + * The request for this EdiscoveryReviewSetQueryExport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetQueryExportRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** The body for the method */ + @Nullable + public EdiscoveryReviewSetQueryExportParameterSet body; + /** + * Creates the EdiscoveryReviewSetQueryExport + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the EdiscoveryReviewSetQueryExport + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, body); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryExportRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryExportRequestBuilder.java new file mode 100644 index 00000000000..1deab561ff1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryExportRequestBuilder.java @@ -0,0 +1,76 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; +import com.microsoft.graph.security.requests.EdiscoveryReviewSetQueryExportRequest; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQueryExportParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query Export Request Builder. + */ +public class EdiscoveryReviewSetQueryExportRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EdiscoveryReviewSetQueryExport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetQueryExportRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private EdiscoveryReviewSetQueryExportParameterSet body; + /** + * The request builder for this EdiscoveryReviewSetQueryExport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public EdiscoveryReviewSetQueryExportRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final EdiscoveryReviewSetQueryExportParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the EdiscoveryReviewSetQueryExportRequest + * + * @param requestOptions the options for the request + * @return the EdiscoveryReviewSetQueryExportRequest instance + */ + @Nonnull + public EdiscoveryReviewSetQueryExportRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EdiscoveryReviewSetQueryExportRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EdiscoveryReviewSetQueryExportRequest instance + */ + @Nonnull + public EdiscoveryReviewSetQueryExportRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EdiscoveryReviewSetQueryExportRequest request = new EdiscoveryReviewSetQueryExportRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryReferenceRequest.java new file mode 100644 index 00000000000..943c3489745 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryReferenceRequest.java @@ -0,0 +1,68 @@ +// Template Source: BaseEntityReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.microsoft.graph.security.models.EdiscoveryReviewTag; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonPrimitive; +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query Reference Request. + */ +public class EdiscoveryReviewSetQueryReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the EdiscoveryReviewSetQuery + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetQueryReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EdiscoveryReviewSetQuery.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EdiscoveryReviewSetQueryReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EdiscoveryReviewSetQueryReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryReferenceRequestBuilder.java new file mode 100644 index 00000000000..fff2c6d9fc0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryReferenceRequestBuilder.java @@ -0,0 +1,41 @@ + +// Template Source: BaseEntityReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.microsoft.graph.security.models.EdiscoveryReviewTag; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query Reference Request Builder. + */ +public class EdiscoveryReviewSetQueryReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the EdiscoveryReviewSetQuery + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetQueryReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EdiscoveryReviewSetQueryReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequest.java index fecf0db4a18..e12f681f251 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequest.java @@ -8,6 +8,9 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; import com.microsoft.graph.security.models.EdiscoveryReviewTag; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequestBuilder.java index e2c48f264e8..ef2dbd25224 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryRequestBuilder.java @@ -8,6 +8,9 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; import com.microsoft.graph.security.models.EdiscoveryReviewTag; import java.util.Arrays; import java.util.EnumSet; @@ -15,6 +18,7 @@ import javax.annotation.Nonnull; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQueryExportParameterSet; import com.microsoft.graph.security.models.EdiscoveryReviewSetQueryApplyTagsParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. @@ -59,6 +63,16 @@ public EdiscoveryReviewSetQueryRequest buildRequest(@Nonnull final java.util.Lis + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public EdiscoveryReviewSetQueryExportRequestBuilder export(@Nonnull final EdiscoveryReviewSetQueryExportParameterSet parameters) { + return new EdiscoveryReviewSetQueryExportRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.security.export"), getClient(), null, parameters); + } + /** * Gets a builder to execute the method * @return the request builder diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryWithReferenceRequest.java new file mode 100644 index 00000000000..a491b0255d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryWithReferenceRequest.java @@ -0,0 +1,67 @@ +// Template Source: BaseEntityWithReferenceRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.microsoft.graph.security.models.EdiscoveryReviewTag; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseWithReferenceRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.serializer.IJsonBackedObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query With Reference Request. + */ +public class EdiscoveryReviewSetQueryWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the EdiscoveryReviewSetQuery + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetQueryWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EdiscoveryReviewSetQuery.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EdiscoveryReviewSetQueryWithReferenceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EdiscoveryReviewSetQueryWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..691e7996b5e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetQueryWithReferenceRequestBuilder.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityWithReferenceRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.EdiscoveryReviewSetQuery; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; +import java.util.EnumSet; +import com.microsoft.graph.security.models.EdiscoveryReviewTag; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseWithReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Ediscovery Review Set Query With Reference Request Builder. + */ +public class EdiscoveryReviewSetQueryWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the EdiscoveryReviewSetQuery + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EdiscoveryReviewSetQueryWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EdiscoveryReviewSetQueryWithReferenceRequest.class, EdiscoveryReviewSetQueryReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequest.java index 6affc517033..8d3fe6a7560 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequest.java @@ -11,6 +11,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequestBuilder.java index 41c2735c6f7..76ca4a1d43d 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetReferenceRequestBuilder.java @@ -12,6 +12,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequest.java index 580c40f253a..ba910fb383b 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequest.java @@ -11,6 +11,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequestBuilder.java index f88eeaad2d1..ec47540adde 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetRequestBuilder.java @@ -11,6 +11,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; @@ -18,6 +20,7 @@ import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; import com.microsoft.graph.security.models.EdiscoveryReviewSetAddToReviewSetParameterSet; +import com.microsoft.graph.security.models.EdiscoveryReviewSetExportParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. @@ -90,4 +93,14 @@ public com.microsoft.graph.security.requests.EdiscoveryReviewSetQueryRequestBuil public EdiscoveryReviewSetAddToReviewSetRequestBuilder addToReviewSet(@Nonnull final EdiscoveryReviewSetAddToReviewSetParameterSet parameters) { return new EdiscoveryReviewSetAddToReviewSetRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.security.addToReviewSet"), getClient(), null, parameters); } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public EdiscoveryReviewSetExportRequestBuilder export(@Nonnull final EdiscoveryReviewSetExportParameterSet parameters) { + return new EdiscoveryReviewSetExportRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.security.export"), getClient(), null, parameters); + } } diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequest.java index 065a5c71a5f..18c0d8f50c8 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequest.java @@ -11,6 +11,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequestBuilder.java index 6495ab2db60..9b9f07c26d5 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/EdiscoveryReviewSetWithReferenceRequestBuilder.java @@ -11,6 +11,8 @@ import com.microsoft.graph.security.models.EdiscoverySearch; import com.microsoft.graph.security.models.AdditionalDataOptions; import java.util.EnumSet; +import com.microsoft.graph.security.models.ExportOptions; +import com.microsoft.graph.security.models.ExportFileStructure; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable;