diff --git a/.github/workflows/api-level-lint.yml b/.github/workflows/api-level-lint.yml index dbe1032f52d..85a6b4e92b1 100644 --- a/.github/workflows/api-level-lint.yml +++ b/.github/workflows/api-level-lint.yml @@ -18,8 +18,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: 18 + distribution: 'temurin' + java-version: 20 - name: Setup Android SDK uses: android-actions/setup-android@v2.0.10 - name: Add execution right to the script diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1bef91defea..3b8c859aa55 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,46 +1,86 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# name: "CodeQL" on: - workflow_dispatch: push: - branches: [dev, feature/6.0] + branches: [ "dev", "feature/6.0" ] pull_request: # The branches below must be a subset of the branches above - branches: [dev, feature/6.0] + branches: [ "dev", "feature/6.0" ] schedule: - cron: '0 1 * * 4' + workflow_dispatch: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'java' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - # Override language selection by uncommenting this and choosing your languages - with: - languages: java - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 20 + distribution: 'temurin' + cache: gradle + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + # - name: Autobuild + # uses: github/codeql-action/autobuild@v2 + + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ce009c3bfb..9159270e41a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.63.0] - 2023-07-07 + +### Added + +- AccessReviewRecommendationInsightSetting model. +- AppLog derived types and requests. +- AssignmentType model. +- AuthenticationMethod derived types and requests. +- AzureAdPopTokenAuthentication model. +- CourseStatus model. +- CustomExtension model, derived types, and requests. +- DeletedItemContainer model and requests. +- DeviceLog derived types and requests. +- DeviceManagement derived types and requests. +- DeviceProtectionOverview model. +- DriveItemSensitivity derived types and requests. +- EmailSettings model. +- EmployeeExperienceUser model and requests. +- FeatureType model. +- GovernanceInsight model and requests. +- GroupPeerOutlierRecommendationInsightSettings model. +- IncludedUser models. +- Learning derived types and requests. +- LogicAppTriggerEndpointConfiguration model. +- MacOSMicrosoftDefenderApp model and requests. +- MalwareStateForWindowsDevice model and requests. +- MembershipOutlierInsight model and requests. +- MobileAppTroubleshootingEvent model and requests. +- TeamsApp derived types and requests. +- UserRegistration derived types and requests. +- UserExperienceAnalytics derived types and requests. +- The IdentityGovernance namespace was added, this includes models and requests. +- The Security namespace was updated, this includes models and requests. + ## [5.62.0] - 2023-06-23 ### Changed diff --git a/README.md b/README.md index 89f03bc7bda..a5a3f5a21da 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.62.0' + implementation 'com.microsoft.graph:microsoft-graph:5.63.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.62.0 + 5.63.0 @@ -193,5 +193,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index 9cc56db1da0..712ad701b8a 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 = 62 +mavenMinorVersion = 63 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -116,5 +116,6 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionPage.java new file mode 100644 index 00000000000..4771c7b3c6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtension; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionResponse; +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 Task Extension Collection Page. + */ +public class CustomTaskExtensionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for CustomTaskExtension + * + * @param response the serialized CustomTaskExtensionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public CustomTaskExtensionCollectionPage(@Nonnull final CustomTaskExtensionCollectionResponse response, @Nonnull final CustomTaskExtensionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for CustomTaskExtension + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public CustomTaskExtensionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final CustomTaskExtensionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionRequest.java new file mode 100644 index 00000000000..1c3b7bf119d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtension; +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.identitygovernance.requests.CustomTaskExtensionCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Custom Task Extension Collection Request. + */ +public class CustomTaskExtensionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of CustomTaskExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomTaskExtensionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomTaskExtensionCollectionResponse.class, CustomTaskExtensionCollectionPage.class, CustomTaskExtensionCollectionRequestBuilder.class); + } + + /** + * Creates a new CustomTaskExtension + * @param newCustomTaskExtension the CustomTaskExtension to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CustomTaskExtension newCustomTaskExtension) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CustomTaskExtensionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newCustomTaskExtension); + } + + /** + * Creates a new CustomTaskExtension + * @param newCustomTaskExtension the CustomTaskExtension to create + * @return the newly created object + */ + @Nonnull + public CustomTaskExtension post(@Nonnull final CustomTaskExtension newCustomTaskExtension) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new CustomTaskExtensionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newCustomTaskExtension); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public CustomTaskExtensionCollectionRequest 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 CustomTaskExtensionCollectionRequest 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 CustomTaskExtensionCollectionRequest 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 CustomTaskExtensionCollectionRequest 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 CustomTaskExtensionCollectionRequest 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 CustomTaskExtensionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public CustomTaskExtensionCollectionRequest 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 CustomTaskExtensionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public CustomTaskExtensionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionRequestBuilder.java new file mode 100644 index 00000000000..bfd9be6ab51 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtension; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequest; +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 Task Extension Collection Request Builder. + */ +public class CustomTaskExtensionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of LifecycleWorkflowsContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomTaskExtensionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomTaskExtensionRequestBuilder.class, CustomTaskExtensionCollectionRequest.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/identitygovernance/requests/CustomTaskExtensionCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionResponse.java new file mode 100644 index 00000000000..3665b6b0a75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/CustomTaskExtensionCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtension; + +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 Task Extension Collection Response. + */ +public class CustomTaskExtensionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionPage.java new file mode 100644 index 00000000000..4f86924fecb --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.requests.RunCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.RunCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Run Collection Page. + */ +public class RunCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Run + * + * @param response the serialized RunCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public RunCollectionPage(@Nonnull final RunCollectionResponse response, @Nonnull final RunCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Run + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public RunCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final RunCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionRequest.java new file mode 100644 index 00000000000..4e49ae71bc6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.RunSummary; +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.identitygovernance.requests.RunCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.RunCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.RunCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Run Collection Request. + */ +public class RunCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Run + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RunCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RunCollectionResponse.class, RunCollectionPage.class, RunCollectionRequestBuilder.class); + } + + /** + * Creates a new Run + * @param newRun the Run to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Run newRun) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new RunRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newRun); + } + + /** + * Creates a new Run + * @param newRun the Run to create + * @return the newly created object + */ + @Nonnull + public Run post(@Nonnull final Run newRun) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new RunRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newRun); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public RunCollectionRequest 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 RunCollectionRequest 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 RunCollectionRequest 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 RunCollectionRequest 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 RunCollectionRequest 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 RunCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public RunCollectionRequest 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 RunCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public RunCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionRequestBuilder.java new file mode 100644 index 00000000000..29dd430e109 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionRequestBuilder.java @@ -0,0 +1,64 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.RunSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.RunCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.RunRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.RunCollectionRequest; +import com.microsoft.graph.identitygovernance.requests.RunSummaryRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.identitygovernance.models.RunSummaryParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Run Collection Request Builder. + */ +public class RunCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RunCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RunRequestBuilder.class, RunCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public RunSummaryRequestBuilder summary(@Nonnull final RunSummaryParameterSet parameters) { + return new RunSummaryRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.summary"), getClient(), null, parameters); + } + + /** + * 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/identitygovernance/requests/RunCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionResponse.java new file mode 100644 index 00000000000..2534213f98f --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/RunCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Run; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Run Collection Response. + */ +public class RunCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionPage.java new file mode 100644 index 00000000000..3a2f8fd6472 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Task; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Collection Page. + */ +public class TaskCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Task + * + * @param response the serialized TaskCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TaskCollectionPage(@Nonnull final TaskCollectionResponse response, @Nonnull final TaskCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Task + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TaskCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TaskCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionRequest.java new file mode 100644 index 00000000000..b5e6a49111b --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +import com.microsoft.graph.identitygovernance.models.Task; +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.identitygovernance.requests.TaskCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Collection Request. + */ +public class TaskCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskCollectionResponse.class, TaskCollectionPage.class, TaskCollectionRequestBuilder.class); + } + + /** + * Creates a new Task + * @param newTask the Task to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Task newTask) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTask); + } + + /** + * Creates a new Task + * @param newTask the Task to create + * @return the newly created object + */ + @Nonnull + public Task post(@Nonnull final Task newTask) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTask); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TaskCollectionRequest 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 TaskCollectionRequest 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 TaskCollectionRequest 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 TaskCollectionRequest 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 TaskCollectionRequest 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 TaskCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TaskCollectionRequest 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 TaskCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TaskCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionRequestBuilder.java new file mode 100644 index 00000000000..b4eb10ace27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +import com.microsoft.graph.identitygovernance.models.Task; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionRequest; +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 Task Collection Request Builder. + */ +public class TaskCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of WorkflowTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskRequestBuilder.class, TaskCollectionRequest.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/identitygovernance/requests/TaskCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionResponse.java new file mode 100644 index 00000000000..ddebb4be55d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Task; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Collection Response. + */ +public class TaskCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionPage.java new file mode 100644 index 00000000000..d8c52ba4ac2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Definition Collection Page. + */ +public class TaskDefinitionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for TaskDefinition + * + * @param response the serialized TaskDefinitionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TaskDefinitionCollectionPage(@Nonnull final TaskDefinitionCollectionResponse response, @Nonnull final TaskDefinitionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for TaskDefinition + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TaskDefinitionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TaskDefinitionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionRequest.java new file mode 100644 index 00000000000..8ada4f0783d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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.identitygovernance.requests.TaskDefinitionCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Definition Collection Request. + */ +public class TaskDefinitionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinitionCollectionResponse.class, TaskDefinitionCollectionPage.class, TaskDefinitionCollectionRequestBuilder.class); + } + + /** + * Creates a new TaskDefinition + * @param newTaskDefinition the TaskDefinition to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TaskDefinition newTaskDefinition) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskDefinitionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTaskDefinition); + } + + /** + * Creates a new TaskDefinition + * @param newTaskDefinition the TaskDefinition to create + * @return the newly created object + */ + @Nonnull + public TaskDefinition post(@Nonnull final TaskDefinition newTaskDefinition) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskDefinitionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTaskDefinition); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TaskDefinitionCollectionRequest 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 TaskDefinitionCollectionRequest 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 TaskDefinitionCollectionRequest 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 TaskDefinitionCollectionRequest 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 TaskDefinitionCollectionRequest 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 TaskDefinitionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TaskDefinitionCollectionRequest 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 TaskDefinitionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TaskDefinitionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionRequestBuilder.java new file mode 100644 index 00000000000..e4761bb6614 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequest; +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 Task Definition Collection Request Builder. + */ +public class TaskDefinitionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of LifecycleWorkflowsContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinitionRequestBuilder.class, TaskDefinitionCollectionRequest.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/identitygovernance/requests/TaskDefinitionCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionResponse.java new file mode 100644 index 00000000000..dfe00109c57 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskDefinitionCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Definition Collection Response. + */ +public class TaskDefinitionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionPage.java new file mode 100644 index 00000000000..e104509420d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Processing Result Collection Page. + */ +public class TaskProcessingResultCollectionPage extends BaseCollectionPage { + + /** + * A collection page for TaskProcessingResult + * + * @param response the serialized TaskProcessingResultCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TaskProcessingResultCollectionPage(@Nonnull final TaskProcessingResultCollectionResponse response, @Nonnull final TaskProcessingResultCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for TaskProcessingResult + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TaskProcessingResultCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TaskProcessingResultCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionRequest.java new file mode 100644 index 00000000000..277d921a31d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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.identitygovernance.requests.TaskProcessingResultCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Processing Result Collection Request. + */ +public class TaskProcessingResultCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResultCollectionResponse.class, TaskProcessingResultCollectionPage.class, TaskProcessingResultCollectionRequestBuilder.class); + } + + /** + * Creates a new TaskProcessingResult + * @param newTaskProcessingResult the TaskProcessingResult to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TaskProcessingResult newTaskProcessingResult) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskProcessingResultRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTaskProcessingResult); + } + + /** + * Creates a new TaskProcessingResult + * @param newTaskProcessingResult the TaskProcessingResult to create + * @return the newly created object + */ + @Nonnull + public TaskProcessingResult post(@Nonnull final TaskProcessingResult newTaskProcessingResult) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskProcessingResultRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTaskProcessingResult); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TaskProcessingResultCollectionRequest 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 TaskProcessingResultCollectionRequest 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 TaskProcessingResultCollectionRequest 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 TaskProcessingResultCollectionRequest 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 TaskProcessingResultCollectionRequest 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 TaskProcessingResultCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TaskProcessingResultCollectionRequest 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 TaskProcessingResultCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TaskProcessingResultCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionRequestBuilder.java new file mode 100644 index 00000000000..a4c9950740c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionRequestBuilder.java @@ -0,0 +1,53 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResultResumeParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Processing Result Collection Request Builder. + */ +public class TaskProcessingResultCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of TaskReport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResultRequestBuilder.class, TaskProcessingResultCollectionRequest.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/identitygovernance/requests/TaskProcessingResultCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionResponse.java new file mode 100644 index 00000000000..2d567811a68 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskProcessingResultCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Processing Result Collection Response. + */ +public class TaskProcessingResultCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionPage.java new file mode 100644 index 00000000000..f055f0bb996 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Report Collection Page. + */ +public class TaskReportCollectionPage extends BaseCollectionPage { + + /** + * A collection page for TaskReport + * + * @param response the serialized TaskReportCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public TaskReportCollectionPage(@Nonnull final TaskReportCollectionResponse response, @Nonnull final TaskReportCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for TaskReport + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public TaskReportCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final TaskReportCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionRequest.java new file mode 100644 index 00000000000..1dc1b6122df --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +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.identitygovernance.requests.TaskReportCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Report Collection Request. + */ +public class TaskReportCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of TaskReport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReportCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskReportCollectionResponse.class, TaskReportCollectionPage.class, TaskReportCollectionRequestBuilder.class); + } + + /** + * Creates a new TaskReport + * @param newTaskReport the TaskReport to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TaskReport newTaskReport) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskReportRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newTaskReport); + } + + /** + * Creates a new TaskReport + * @param newTaskReport the TaskReport to create + * @return the newly created object + */ + @Nonnull + public TaskReport post(@Nonnull final TaskReport newTaskReport) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new TaskReportRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newTaskReport); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TaskReportCollectionRequest 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 TaskReportCollectionRequest 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 TaskReportCollectionRequest 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 TaskReportCollectionRequest 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 TaskReportCollectionRequest 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 TaskReportCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public TaskReportCollectionRequest 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 TaskReportCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public TaskReportCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionRequestBuilder.java new file mode 100644 index 00000000000..f67dd40eb87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionRequestBuilder.java @@ -0,0 +1,64 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskReportRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequest; +import com.microsoft.graph.identitygovernance.requests.TaskReportSummaryRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.identitygovernance.models.TaskReportSummaryParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Report Collection Request Builder. + */ +public class TaskReportCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReportCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskReportRequestBuilder.class, TaskReportCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public TaskReportSummaryRequestBuilder summary(@Nonnull final TaskReportSummaryParameterSet parameters) { + return new TaskReportSummaryRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.summary"), getClient(), null, parameters); + } + + /** + * 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/identitygovernance/requests/TaskReportCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionResponse.java new file mode 100644 index 00000000000..c28591b8a8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/TaskReportCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskReport; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Report Collection Response. + */ +public class TaskReportCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionPage.java new file mode 100644 index 00000000000..db911a824fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection Page. + */ +public class UserProcessingResultCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserProcessingResult + * + * @param response the serialized UserProcessingResultCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserProcessingResultCollectionPage(@Nonnull final UserProcessingResultCollectionResponse response, @Nonnull final UserProcessingResultCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserProcessingResult + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserProcessingResultCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserProcessingResultCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionReferenceRequest.java new file mode 100644 index 00000000000..9b79e58d641 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionReferenceRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequest; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultReferenceRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequest; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection Reference Request. + */ +public class UserProcessingResultCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultCollectionResponse.class, UserProcessingResultCollectionWithReferencesPage.class, UserProcessingResultCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionReferenceRequest 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 UserProcessingResultCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionReferenceRequest 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 UserProcessingResultCollectionReferenceRequest 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 UserProcessingResultCollectionReferenceRequest 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 UserProcessingResultCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..3efeadb5cbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionReferenceRequestBuilder.java @@ -0,0 +1,38 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection Reference Request Builder. + */ +public class UserProcessingResultCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultReferenceRequestBuilder.class, UserProcessingResultCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionRequest.java new file mode 100644 index 00000000000..393f4310c31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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.identitygovernance.requests.UserProcessingResultCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection Request. + */ +public class UserProcessingResultCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultCollectionResponse.class, UserProcessingResultCollectionPage.class, UserProcessingResultCollectionRequestBuilder.class); + } + + /** + * Creates a new UserProcessingResult + * @param newUserProcessingResult the UserProcessingResult to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserProcessingResult newUserProcessingResult) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserProcessingResultRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserProcessingResult); + } + + /** + * Creates a new UserProcessingResult + * @param newUserProcessingResult the UserProcessingResult to create + * @return the newly created object + */ + @Nonnull + public UserProcessingResult post(@Nonnull final UserProcessingResult newUserProcessingResult) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserProcessingResultRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserProcessingResult); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionRequest 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 UserProcessingResultCollectionRequest 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 UserProcessingResultCollectionRequest 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 UserProcessingResultCollectionRequest 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 UserProcessingResultCollectionRequest 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 UserProcessingResultCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionRequest 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 UserProcessingResultCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionRequestBuilder.java new file mode 100644 index 00000000000..32170500ca5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionRequestBuilder.java @@ -0,0 +1,64 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequest; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultSummaryRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.identitygovernance.models.UserProcessingResultSummaryParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection Request Builder. + */ +public class UserProcessingResultCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Run + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultRequestBuilder.class, UserProcessingResultCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public UserProcessingResultSummaryRequestBuilder summary(@Nonnull final UserProcessingResultSummaryParameterSet parameters) { + return new UserProcessingResultSummaryRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.summary"), getClient(), null, parameters); + } + + /** + * 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/identitygovernance/requests/UserProcessingResultCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionResponse.java new file mode 100644 index 00000000000..98a85bb63d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection Response. + */ +public class UserProcessingResultCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesPage.java new file mode 100644 index 00000000000..e6af0173fb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesPage.java @@ -0,0 +1,53 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesPage; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionResponse; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection With References Page. + */ +public class UserProcessingResultCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for UserProcessingResult + * + * @param response the serialized UserProcessingResultCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserProcessingResultCollectionWithReferencesPage(@Nonnull final UserProcessingResultCollectionResponse response, @Nullable final UserProcessingResultCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for UserProcessingResult + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserProcessingResultCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final UserProcessingResultCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..741abd91df8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesRequest.java @@ -0,0 +1,129 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequest; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultReferenceRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequest; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequest; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection With References Request. + */ +public class UserProcessingResultCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultCollectionResponse.class, UserProcessingResultCollectionWithReferencesPage.class, UserProcessingResultCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionWithReferencesRequest 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 UserProcessingResultCollectionWithReferencesRequest 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 UserProcessingResultCollectionWithReferencesRequest 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 UserProcessingResultCollectionWithReferencesRequest 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 UserProcessingResultCollectionWithReferencesRequest 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 UserProcessingResultCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserProcessingResultCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..2b181e6e93a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/UserProcessingResultCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,38 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Collection With References Request Builder. + */ +public class UserProcessingResultCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultReferenceRequestBuilder.class, UserProcessingResultCollectionReferenceRequest.class, UserProcessingResultCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionPage.java new file mode 100644 index 00000000000..39742687fb7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Collection Page. + */ +public class WorkflowCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Workflow + * + * @param response the serialized WorkflowCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkflowCollectionPage(@Nonnull final WorkflowCollectionResponse response, @Nonnull final WorkflowCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Workflow + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WorkflowCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WorkflowCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionRequest.java new file mode 100644 index 00000000000..c33163d865a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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.identitygovernance.requests.WorkflowCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Collection Request. + */ +public class WorkflowCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowCollectionResponse.class, WorkflowCollectionPage.class, WorkflowCollectionRequestBuilder.class); + } + + /** + * Creates a new Workflow + * @param newWorkflow the Workflow to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Workflow newWorkflow) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkflowRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWorkflow); + } + + /** + * Creates a new Workflow + * @param newWorkflow the Workflow to create + * @return the newly created object + */ + @Nonnull + public Workflow post(@Nonnull final Workflow newWorkflow) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkflowRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWorkflow); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WorkflowCollectionRequest 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 WorkflowCollectionRequest 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 WorkflowCollectionRequest 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 WorkflowCollectionRequest 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 WorkflowCollectionRequest 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 WorkflowCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WorkflowCollectionRequest 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 WorkflowCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WorkflowCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionRequestBuilder.java new file mode 100644 index 00000000000..332d58d7cf5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionRequestBuilder.java @@ -0,0 +1,54 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.identitygovernance.models.WorkflowActivateParameterSet; +import com.microsoft.graph.identitygovernance.models.WorkflowCreateNewVersionParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Collection Request Builder. + */ +public class WorkflowCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of LifecycleWorkflowsContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowRequestBuilder.class, WorkflowCollectionRequest.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/identitygovernance/requests/WorkflowCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionResponse.java new file mode 100644 index 00000000000..dfa4edf2181 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Workflow; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Collection Response. + */ +public class WorkflowCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionPage.java new file mode 100644 index 00000000000..5cde3edffad --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Template Collection Page. + */ +public class WorkflowTemplateCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WorkflowTemplate + * + * @param response the serialized WorkflowTemplateCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkflowTemplateCollectionPage(@Nonnull final WorkflowTemplateCollectionResponse response, @Nonnull final WorkflowTemplateCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WorkflowTemplate + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WorkflowTemplateCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WorkflowTemplateCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionRequest.java new file mode 100644 index 00000000000..3aee4787c3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +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.identitygovernance.requests.WorkflowTemplateCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Template Collection Request. + */ +public class WorkflowTemplateCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WorkflowTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowTemplateCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowTemplateCollectionResponse.class, WorkflowTemplateCollectionPage.class, WorkflowTemplateCollectionRequestBuilder.class); + } + + /** + * Creates a new WorkflowTemplate + * @param newWorkflowTemplate the WorkflowTemplate to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkflowTemplate newWorkflowTemplate) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkflowTemplateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWorkflowTemplate); + } + + /** + * Creates a new WorkflowTemplate + * @param newWorkflowTemplate the WorkflowTemplate to create + * @return the newly created object + */ + @Nonnull + public WorkflowTemplate post(@Nonnull final WorkflowTemplate newWorkflowTemplate) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkflowTemplateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWorkflowTemplate); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WorkflowTemplateCollectionRequest 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 WorkflowTemplateCollectionRequest 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 WorkflowTemplateCollectionRequest 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 WorkflowTemplateCollectionRequest 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 WorkflowTemplateCollectionRequest 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 WorkflowTemplateCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WorkflowTemplateCollectionRequest 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 WorkflowTemplateCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WorkflowTemplateCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionRequestBuilder.java new file mode 100644 index 00000000000..81542309fa1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequest; +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 Workflow Template Collection Request Builder. + */ +public class WorkflowTemplateCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of LifecycleWorkflowsContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowTemplateCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowTemplateRequestBuilder.class, WorkflowTemplateCollectionRequest.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/identitygovernance/requests/WorkflowTemplateCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionResponse.java new file mode 100644 index 00000000000..97245bcca79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowTemplateCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Template Collection Response. + */ +public class WorkflowTemplateCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionPage.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionPage.java new file mode 100644 index 00000000000..79b4a4c0c23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionPage.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.WorkflowVersion; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Version Collection Page. + */ +public class WorkflowVersionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WorkflowVersion + * + * @param response the serialized WorkflowVersionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkflowVersionCollectionPage(@Nonnull final WorkflowVersionCollectionResponse response, @Nonnull final WorkflowVersionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WorkflowVersion + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WorkflowVersionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WorkflowVersionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionRequest.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionRequest.java new file mode 100644 index 00000000000..5d2cd0d0248 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.WorkflowVersion; +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.identitygovernance.requests.WorkflowVersionCollectionResponse; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Version Collection Request. + */ +public class WorkflowVersionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WorkflowVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowVersionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowVersionCollectionResponse.class, WorkflowVersionCollectionPage.class, WorkflowVersionCollectionRequestBuilder.class); + } + + /** + * Creates a new WorkflowVersion + * @param newWorkflowVersion the WorkflowVersion to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkflowVersion newWorkflowVersion) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkflowVersionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWorkflowVersion); + } + + /** + * Creates a new WorkflowVersion + * @param newWorkflowVersion the WorkflowVersion to create + * @return the newly created object + */ + @Nonnull + public WorkflowVersion post(@Nonnull final WorkflowVersion newWorkflowVersion) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkflowVersionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWorkflowVersion); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WorkflowVersionCollectionRequest 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 WorkflowVersionCollectionRequest 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 WorkflowVersionCollectionRequest 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 WorkflowVersionCollectionRequest 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 WorkflowVersionCollectionRequest 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 WorkflowVersionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WorkflowVersionCollectionRequest 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 WorkflowVersionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WorkflowVersionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionRequestBuilder.java new file mode 100644 index 00000000000..c4f1c1868a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.models.WorkflowVersion; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionRequestBuilder; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequest; +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 Workflow Version Collection Request Builder. + */ +public class WorkflowVersionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowVersionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowVersionRequestBuilder.class, WorkflowVersionCollectionRequest.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/identitygovernance/requests/WorkflowVersionCollectionResponse.java b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionResponse.java new file mode 100644 index 00000000000..99c363d9d0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernance/requests/WorkflowVersionCollectionResponse.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.WorkflowVersion; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Version Collection Response. + */ +public class WorkflowVersionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java new file mode 100644 index 00000000000..ba727863925 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtension.java @@ -0,0 +1,85 @@ +// 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.identitygovernance.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.User; +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 Custom Task Extension. + */ +public class CustomTaskExtension extends CustomCalloutExtension implements IJsonBackedObject { + + + /** + * The Callback Configuration. + * The callback configuration for a custom task extension. + */ + @SerializedName(value = "callbackConfiguration", alternate = {"CallbackConfiguration"}) + @Expose + @Nullable + public CustomExtensionCallbackConfiguration callbackConfiguration; + + /** + * The Created Date Time. + * When the custom task extension was created.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Last Modified Date Time. + * When the custom extension was last modified.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Created By. + * The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public User createdBy; + + /** + * The Last Modified By. + * The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public User lastModifiedBy; + + + /** + * 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/identitygovernancenamespace/models/CustomTaskExtensionCallbackConfiguration.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionCallbackConfiguration.java new file mode 100644 index 00000000000..04a900edb8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionCallbackConfiguration.java @@ -0,0 +1,47 @@ +// 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.identitygovernance.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.CustomExtensionCallbackConfiguration; +import com.microsoft.graph.requests.ApplicationCollectionPage; + + +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 Task Extension Callback Configuration. + */ +public class CustomTaskExtensionCallbackConfiguration extends CustomExtensionCallbackConfiguration implements IJsonBackedObject { + + + /** + * The Authorized Apps. + * + */ + @Nullable + public com.microsoft.graph.requests.ApplicationCollectionPage authorizedApps; + + + /** + * 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/identitygovernancenamespace/models/CustomTaskExtensionCallbackData.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionCallbackData.java new file mode 100644 index 00000000000..f19fc496f72 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionCallbackData.java @@ -0,0 +1,48 @@ +// 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.identitygovernance.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.identitygovernance.models.CustomTaskExtensionOperationStatus; +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 Custom Task Extension Callback Data. + */ +public class CustomTaskExtensionCallbackData extends CustomExtensionData implements IJsonBackedObject { + + + /** + * The Operation Status. + * Operation status that's provided by the Azure Logic App indicating whenever the Azure Logic App has run successfully or not. Supported values: completed, failed, unknownFutureValue. + */ + @SerializedName(value = "operationStatus", alternate = {"OperationStatus"}) + @Expose + @Nullable + public CustomTaskExtensionOperationStatus operationStatus; + + + /** + * 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/identitygovernancenamespace/models/CustomTaskExtensionCalloutData.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionCalloutData.java new file mode 100644 index 00000000000..b4e41c0d221 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionCalloutData.java @@ -0,0 +1,78 @@ +// 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.identitygovernance.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.User; +import com.microsoft.graph.identitygovernance.models.Task; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.Workflow; +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 Custom Task Extension Callout Data. + */ +public class CustomTaskExtensionCalloutData extends CustomExtensionData implements IJsonBackedObject { + + + /** + * The Subject. + * + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public User subject; + + /** + * The Task. + * + */ + @SerializedName(value = "task", alternate = {"Task"}) + @Expose + @Nullable + public Task task; + + /** + * The Task Processingresult. + * + */ + @SerializedName(value = "taskProcessingresult", alternate = {"TaskProcessingresult"}) + @Expose + @Nullable + public TaskProcessingResult taskProcessingresult; + + /** + * The Workflow. + * + */ + @SerializedName(value = "workflow", alternate = {"Workflow"}) + @Expose + @Nullable + public Workflow workflow; + + + /** + * 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/identitygovernancenamespace/models/CustomTaskExtensionOperationStatus.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionOperationStatus.java new file mode 100644 index 00000000000..9b3c13c2e7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/CustomTaskExtensionOperationStatus.java @@ -0,0 +1,30 @@ +// 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.identitygovernance.models; + + +/** + * The Enum Custom Task Extension Operation Status. +*/ +public enum CustomTaskExtensionOperationStatus +{ + /** + * completed + */ + COMPLETED, + /** + * failed + */ + FAILED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For CustomTaskExtensionOperationStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleManagementSettings.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleManagementSettings.java new file mode 100644 index 00000000000..5dc8f237bdb --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleManagementSettings.java @@ -0,0 +1,57 @@ +// 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.identitygovernance.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.EmailSettings; +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 Lifecycle Management Settings. + */ +public class LifecycleManagementSettings extends Entity implements IJsonBackedObject { + + + /** + * The Email Settings. + * Defines the settings for emails sent out from email-specific tasks within workflows. Accepts 2 parameterssenderDomain- Defines the domain of who is sending the email. useCompanyBranding- A boolean value that defines if company branding is to be used with the email. + */ + @SerializedName(value = "emailSettings", alternate = {"EmailSettings"}) + @Expose + @Nullable + public EmailSettings emailSettings; + + /** + * The Workflow Schedule Interval In Hours. + * The interval in hours at which all workflows running in the tenant should be scheduled for execution. This interval has a minimum value of 1 and a maximum value of 24. The default value is 3 hours. + */ + @SerializedName(value = "workflowScheduleIntervalInHours", alternate = {"WorkflowScheduleIntervalInHours"}) + @Expose + @Nullable + public Integer workflowScheduleIntervalInHours; + + + /** + * 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/identitygovernancenamespace/models/LifecycleTaskCategory.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleTaskCategory.java new file mode 100644 index 00000000000..0b2ddf17abb --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleTaskCategory.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.identitygovernance.models; + + +/** + * The Enum Lifecycle Task Category. +*/ +public enum LifecycleTaskCategory +{ + /** + * joiner + */ + JOINER, + /** + * leaver + */ + LEAVER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * mover + */ + MOVER, + /** + * For LifecycleTaskCategory values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowCategory.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowCategory.java new file mode 100644 index 00000000000..ca7cdd868fa --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowCategory.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.identitygovernance.models; + + +/** + * The Enum Lifecycle Workflow Category. +*/ +public enum LifecycleWorkflowCategory +{ + /** + * joiner + */ + JOINER, + /** + * leaver + */ + LEAVER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * mover + */ + MOVER, + /** + * For LifecycleWorkflowCategory values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowProcessingStatus.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowProcessingStatus.java new file mode 100644 index 00000000000..bd319c1c135 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowProcessingStatus.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.identitygovernance.models; + + +/** + * The Enum Lifecycle Workflow Processing Status. +*/ +public enum LifecycleWorkflowProcessingStatus +{ + /** + * queued + */ + QUEUED, + /** + * in Progress + */ + IN_PROGRESS, + /** + * completed + */ + COMPLETED, + /** + * completed With Errors + */ + COMPLETED_WITH_ERRORS, + /** + * canceled + */ + CANCELED, + /** + * failed + */ + FAILED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For LifecycleWorkflowProcessingStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowsContainer.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowsContainer.java new file mode 100644 index 00000000000..c2158dc4457 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/LifecycleWorkflowsContainer.java @@ -0,0 +1,115 @@ +// 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.identitygovernance.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.DeletedItemContainer; +import com.microsoft.graph.identitygovernance.models.LifecycleManagementSettings; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionPage; +import com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionPage; +import com.microsoft.graph.identitygovernance.requests.WorkflowCollectionPage; +import com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionPage; + + +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 Lifecycle Workflows Container. + */ +public class LifecycleWorkflowsContainer extends Entity implements IJsonBackedObject { + + + /** + * The Custom Task Extensions. + * The customTaskExtension instance. + */ + @SerializedName(value = "customTaskExtensions", alternate = {"CustomTaskExtensions"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionPage customTaskExtensions; + + /** + * The Deleted Items. + * Deleted workflows in your lifecycle workflows instance. + */ + @SerializedName(value = "deletedItems", alternate = {"DeletedItems"}) + @Expose + @Nullable + public DeletedItemContainer deletedItems; + + /** + * The Settings. + * The settings of the lifecycle workflows instance. + */ + @SerializedName(value = "settings", alternate = {"Settings"}) + @Expose + @Nullable + public LifecycleManagementSettings settings; + + /** + * The Task Definitions. + * The definition of tasks within the lifecycle workflows instance. + */ + @SerializedName(value = "taskDefinitions", alternate = {"TaskDefinitions"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionPage taskDefinitions; + + /** + * The Workflows. + * The workflows in the lifecycle workflows instance. + */ + @SerializedName(value = "workflows", alternate = {"Workflows"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.WorkflowCollectionPage workflows; + + /** + * The Workflow Templates. + * The workflow templates in the lifecycle workflow instance. + */ + @SerializedName(value = "workflowTemplates", alternate = {"WorkflowTemplates"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionPage workflowTemplates; + + + /** + * 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("customTaskExtensions")) { + customTaskExtensions = serializer.deserializeObject(json.get("customTaskExtensions"), com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionPage.class); + } + + if (json.has("taskDefinitions")) { + taskDefinitions = serializer.deserializeObject(json.get("taskDefinitions"), com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionPage.class); + } + + if (json.has("workflows")) { + workflows = serializer.deserializeObject(json.get("workflows"), com.microsoft.graph.identitygovernance.requests.WorkflowCollectionPage.class); + } + + if (json.has("workflowTemplates")) { + workflowTemplates = serializer.deserializeObject(json.get("workflowTemplates"), com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/OnDemandExecutionOnly.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/OnDemandExecutionOnly.java new file mode 100644 index 00000000000..19821edb168 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/OnDemandExecutionOnly.java @@ -0,0 +1,38 @@ +// 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.identitygovernance.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.identitygovernance.models.WorkflowExecutionConditions; + + +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 On Demand Execution Only. + */ +public class OnDemandExecutionOnly extends WorkflowExecutionConditions implements IJsonBackedObject { + + + + /** + * 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/identitygovernancenamespace/models/Parameter.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Parameter.java new file mode 100644 index 00000000000..6af96ddb373 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Parameter.java @@ -0,0 +1,79 @@ +// 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.identitygovernance.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.identitygovernance.models.ValueType; + + +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 Parameter. + */ +public class Parameter 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 Name. + * The name of the parameter. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Values. + * The values of the parameter. + */ + @SerializedName(value = "values", alternate = {"Values"}) + @Expose + @Nullable + public java.util.List values; + + /** + * The Value Type. + * The value type of the parameter. The possible values are: enum, string, int, bool, unknownFutureValue. + */ + @SerializedName(value = "valueType", alternate = {"ValueType"}) + @Expose + @Nullable + public ValueType valueType; + + + /** + * 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/identitygovernancenamespace/models/RuleBasedSubjectSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RuleBasedSubjectSet.java new file mode 100644 index 00000000000..a36bc2722b5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RuleBasedSubjectSet.java @@ -0,0 +1,47 @@ +// 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.identitygovernance.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.SubjectSet; + + +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 Rule Based Subject Set. + */ +public class RuleBasedSubjectSet extends SubjectSet implements IJsonBackedObject { + + + /** + * The Rule. + * The rule for the subject set. Lifecycle Workflows supports a rich set of user properties for configuring the rules using $filter query expressions. For more information, see supported user and query parameters. + */ + @SerializedName(value = "rule", alternate = {"Rule"}) + @Expose + @Nullable + public String rule; + + + /** + * 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/identitygovernancenamespace/models/Run.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Run.java new file mode 100644 index 00000000000..9f2a8638782 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Run.java @@ -0,0 +1,177 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleWorkflowProcessingStatus; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionType; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage; + + +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 Run. + */ +public class Run extends Entity implements IJsonBackedObject { + + + /** + * The Completed Date Time. + * The date time that the run completed. Value is null if the workflow hasn't completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Failed Tasks Count. + * The number of tasks that failed in the run execution. + */ + @SerializedName(value = "failedTasksCount", alternate = {"FailedTasksCount"}) + @Expose + @Nullable + public Integer failedTasksCount; + + /** + * The Failed Users Count. + * The number of users that failed in the run execution. + */ + @SerializedName(value = "failedUsersCount", alternate = {"FailedUsersCount"}) + @Expose + @Nullable + public Integer failedUsersCount; + + /** + * The Last Updated Date Time. + * The datetime that the run was last updated.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "lastUpdatedDateTime", alternate = {"LastUpdatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdatedDateTime; + + /** + * The Processing Status. + * The run execution status. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "processingStatus", alternate = {"ProcessingStatus"}) + @Expose + @Nullable + public LifecycleWorkflowProcessingStatus processingStatus; + + /** + * The Scheduled Date Time. + * The date time that the run is scheduled to be executed for a workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "scheduledDateTime", alternate = {"ScheduledDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime scheduledDateTime; + + /** + * The Started Date Time. + * The date time that the run execution started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startedDateTime; + + /** + * The Successful Users Count. + * The number of successfully completed users in the run. + */ + @SerializedName(value = "successfulUsersCount", alternate = {"SuccessfulUsersCount"}) + @Expose + @Nullable + public Integer successfulUsersCount; + + /** + * The Total Tasks Count. + * + */ + @SerializedName(value = "totalTasksCount", alternate = {"TotalTasksCount"}) + @Expose + @Nullable + public Integer totalTasksCount; + + /** + * The Total Unprocessed Tasks Count. + * The total number of unprocessed tasks in the run execution. + */ + @SerializedName(value = "totalUnprocessedTasksCount", alternate = {"TotalUnprocessedTasksCount"}) + @Expose + @Nullable + public Integer totalUnprocessedTasksCount; + + /** + * The Total Users Count. + * The total number of users in the workflow execution. + */ + @SerializedName(value = "totalUsersCount", alternate = {"TotalUsersCount"}) + @Expose + @Nullable + public Integer totalUsersCount; + + /** + * The Workflow Execution Type. + * The execution type of the workflows associated with the run. The possible values are: scheduled, onDemand, unknownFutureValue.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "workflowExecutionType", alternate = {"WorkflowExecutionType"}) + @Expose + @Nullable + public WorkflowExecutionType workflowExecutionType; + + /** + * The Task Processing Results. + * The related taskProcessingResults. + */ + @SerializedName(value = "taskProcessingResults", alternate = {"TaskProcessingResults"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage taskProcessingResults; + + /** + * The User Processing Results. + * The associated individual user execution. + */ + @SerializedName(value = "userProcessingResults", alternate = {"UserProcessingResults"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage userProcessingResults; + + + /** + * 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("taskProcessingResults")) { + taskProcessingResults = serializer.deserializeObject(json.get("taskProcessingResults"), com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage.class); + } + + if (json.has("userProcessingResults")) { + userProcessingResults = serializer.deserializeObject(json.get("userProcessingResults"), com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RunSummary.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RunSummary.java new file mode 100644 index 00000000000..6c50998b928 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RunSummary.java @@ -0,0 +1,104 @@ +// 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.identitygovernance.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 Run Summary. + */ +public class RunSummary 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 Failed Runs. + * The number of failed workflow runs. + */ + @SerializedName(value = "failedRuns", alternate = {"FailedRuns"}) + @Expose + @Nullable + public Integer failedRuns; + + /** + * The Failed Tasks. + * The number of failed tasks of a workflow. + */ + @SerializedName(value = "failedTasks", alternate = {"FailedTasks"}) + @Expose + @Nullable + public Integer failedTasks; + + /** + * The Successful Runs. + * The number of successful workflow runs. + */ + @SerializedName(value = "successfulRuns", alternate = {"SuccessfulRuns"}) + @Expose + @Nullable + public Integer successfulRuns; + + /** + * The Total Runs. + * The total number of runs for a workflow. + */ + @SerializedName(value = "totalRuns", alternate = {"TotalRuns"}) + @Expose + @Nullable + public Integer totalRuns; + + /** + * The Total Tasks. + * The total number of tasks processed by a workflow. + */ + @SerializedName(value = "totalTasks", alternate = {"TotalTasks"}) + @Expose + @Nullable + public Integer totalTasks; + + /** + * The Total Users. + * The total number of users processed by a workflow. + */ + @SerializedName(value = "totalUsers", alternate = {"TotalUsers"}) + @Expose + @Nullable + public Integer totalUsers; + + + /** + * 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/identitygovernancenamespace/models/RunSummaryParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RunSummaryParameterSet.java new file mode 100644 index 00000000000..fdfd2c38c39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/RunSummaryParameterSet.java @@ -0,0 +1,125 @@ +// 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.identitygovernance.models; + +import com.microsoft.graph.identitygovernance.models.RunSummary; +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 Run Summary Parameter Set. + */ +public class RunSummaryParameterSet { + /** + * The start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startDateTime; + + /** + * The end Date Time. + * + */ + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime endDateTime; + + + /** + * Instiaciates a new RunSummaryParameterSet + */ + public RunSummaryParameterSet() {} + /** + * Instiaciates a new RunSummaryParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected RunSummaryParameterSet(@Nonnull final RunSummaryParameterSetBuilder builder) { + this.startDateTime = builder.startDateTime; + this.endDateTime = builder.endDateTime; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static RunSummaryParameterSetBuilder newBuilder() { + return new RunSummaryParameterSetBuilder(); + } + /** + * Fluent builder for the RunSummaryParameterSet + */ + public static final class RunSummaryParameterSetBuilder { + /** + * The startDateTime parameter value + */ + @Nullable + protected java.time.OffsetDateTime startDateTime; + /** + * Sets the StartDateTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public RunSummaryParameterSetBuilder withStartDateTime(@Nullable final java.time.OffsetDateTime val) { + this.startDateTime = val; + return this; + } + /** + * The endDateTime parameter value + */ + @Nullable + protected java.time.OffsetDateTime endDateTime; + /** + * Sets the EndDateTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public RunSummaryParameterSetBuilder withEndDateTime(@Nullable final java.time.OffsetDateTime val) { + this.endDateTime = val; + return this; + } + /** + * Instanciates a new RunSummaryParameterSetBuilder + */ + @Nullable + protected RunSummaryParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public RunSummaryParameterSet build() { + return new RunSummaryParameterSet(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.startDateTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("startDateTime", startDateTime)); + } + if(this.endDateTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("endDateTime", endDateTime)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Task.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Task.java new file mode 100644 index 00000000000..0a31179af6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Task.java @@ -0,0 +1,127 @@ +// 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.identitygovernance.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.KeyValuePair; +import com.microsoft.graph.identitygovernance.models.LifecycleTaskCategory; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage; + + +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 Task. + */ +public class Task extends Entity implements IJsonBackedObject { + + + /** + * The Arguments. + * Arguments included within the task. For guidance to configure this property, see Configure the arguments for built-in Lifecycle Workflow tasks. Required. + */ + @SerializedName(value = "arguments", alternate = {"Arguments"}) + @Expose + @Nullable + public java.util.List arguments; + + /** + * The Category. + * The category of the task. The possible values are: joiner, leaver, unknownFutureValue. This property is multi-valued and the same task can apply to both joiner and leaver categories.Supports $filter(eq, ne). + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public EnumSet category; + + /** + * The Continue On Error. + * A boolean value that specifies whether, if this task fails, the workflow will stop, and subsequent tasks will not run. Optional. + */ + @SerializedName(value = "continueOnError", alternate = {"ContinueOnError"}) + @Expose + @Nullable + public Boolean continueOnError; + + /** + * The Description. + * A string that describes the purpose of the task for administrative use. Optional. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * A unique string that identifies the task. Required.Supports $filter(eq, ne) and orderBy. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Execution Sequence. + * An integer that states in what order the task will run in a workflow.Supports $orderby. + */ + @SerializedName(value = "executionSequence", alternate = {"ExecutionSequence"}) + @Expose + @Nullable + public Integer executionSequence; + + /** + * The Is Enabled. + * A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. + */ + @SerializedName(value = "isEnabled", alternate = {"IsEnabled"}) + @Expose + @Nullable + public Boolean isEnabled; + + /** + * The Task Definition Id. + * A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks. Required.Supports $filter(eq, ne). + */ + @SerializedName(value = "taskDefinitionId", alternate = {"TaskDefinitionId"}) + @Expose + @Nullable + public String taskDefinitionId; + + /** + * The Task Processing Results. + * The result of processing the task. + */ + @SerializedName(value = "taskProcessingResults", alternate = {"TaskProcessingResults"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage taskProcessingResults; + + + /** + * 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("taskProcessingResults")) { + taskProcessingResults = serializer.deserializeObject(json.get("taskProcessingResults"), com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskDefinition.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskDefinition.java new file mode 100644 index 00000000000..c824b83c3e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskDefinition.java @@ -0,0 +1,95 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleTaskCategory; +import com.microsoft.graph.identitygovernance.models.Parameter; +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 Task Definition. + */ +public class TaskDefinition extends Entity implements IJsonBackedObject { + + + /** + * The Category. + * The category of the HR function that the tasks created using this definition can be used with. The possible values are: joiner, mover, leaver, unknownFutureValue. This is a multi-valued enumeration whose allowed combinations are joiner, joiner,leaver, or leaver.Supports $filter(eq, ne, has) and $orderby. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public EnumSet category; + + /** + * The Continue On Error. + * + */ + @SerializedName(value = "continueOnError", alternate = {"ContinueOnError"}) + @Expose + @Nullable + public Boolean continueOnError; + + /** + * The Description. + * The description of the taskDefinition. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * The display name of the taskDefinition.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Parameters. + * The parameters that must be supplied when creating a workflow task object.Supports $filter(any). + */ + @SerializedName(value = "parameters", alternate = {"Parameters"}) + @Expose + @Nullable + public java.util.List parameters; + + /** + * The Version. + * The version number of the taskDefinition. New records are pushed when we add support for new parameters.Supports $filter(ge, gt, le, lt, eq, ne) and $orderby. + */ + @SerializedName(value = "version", alternate = {"Version"}) + @Expose + @Nullable + public Integer version; + + + /** + * 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/identitygovernancenamespace/models/TaskProcessingResult.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskProcessingResult.java new file mode 100644 index 00000000000..e29a6a279f3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskProcessingResult.java @@ -0,0 +1,104 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleWorkflowProcessingStatus; +import com.microsoft.graph.models.User; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task Processing Result. + */ +public class TaskProcessingResult extends Entity implements IJsonBackedObject { + + + /** + * The Completed Date Time. + * The date time when taskProcessingResult execution ended. Value is null if task execution is still in progress.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Created Date Time. + * The date time when the taskProcessingResult was created.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Failure Reason. + * Describes why the taskProcessingResult has failed. + */ + @SerializedName(value = "failureReason", alternate = {"FailureReason"}) + @Expose + @Nullable + public String failureReason; + + /** + * The Processing Status. + * Describes the execution status of the taskProcessingResult. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "processingStatus", alternate = {"ProcessingStatus"}) + @Expose + @Nullable + public LifecycleWorkflowProcessingStatus processingStatus; + + /** + * The Started Date Time. + * The date time when taskProcessingResult execution started. Value is null if task execution has not yet started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startedDateTime; + + /** + * The Subject. + * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public User subject; + + /** + * The Task. + * The related workflow task + */ + @SerializedName(value = "task", alternate = {"Task"}) + @Expose + @Nullable + public Task task; + + + /** + * 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/identitygovernancenamespace/models/TaskProcessingResultResumeParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskProcessingResultResumeParameterSet.java new file mode 100644 index 00000000000..8c1bcc13b78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskProcessingResultResumeParameterSet.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.identitygovernance.models; + +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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 Task Processing Result Resume Parameter Set. + */ +public class TaskProcessingResultResumeParameterSet { + /** + * 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 CustomTaskExtensionCallbackData data; + + + /** + * Instiaciates a new TaskProcessingResultResumeParameterSet + */ + public TaskProcessingResultResumeParameterSet() {} + /** + * Instiaciates a new TaskProcessingResultResumeParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected TaskProcessingResultResumeParameterSet(@Nonnull final TaskProcessingResultResumeParameterSetBuilder 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 TaskProcessingResultResumeParameterSetBuilder newBuilder() { + return new TaskProcessingResultResumeParameterSetBuilder(); + } + /** + * Fluent builder for the TaskProcessingResultResumeParameterSet + */ + public static final class TaskProcessingResultResumeParameterSetBuilder { + /** + * 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 TaskProcessingResultResumeParameterSetBuilder 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 TaskProcessingResultResumeParameterSetBuilder withType(@Nullable final String val) { + this.type = val; + return this; + } + /** + * The data parameter value + */ + @Nullable + protected CustomTaskExtensionCallbackData data; + /** + * Sets the Data + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public TaskProcessingResultResumeParameterSetBuilder withData(@Nullable final CustomTaskExtensionCallbackData val) { + this.data = val; + return this; + } + /** + * Instanciates a new TaskProcessingResultResumeParameterSetBuilder + */ + @Nullable + protected TaskProcessingResultResumeParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public TaskProcessingResultResumeParameterSet build() { + return new TaskProcessingResultResumeParameterSet(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/identitygovernancenamespace/models/TaskReport.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReport.java new file mode 100644 index 00000000000..6b558039de2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReport.java @@ -0,0 +1,155 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleWorkflowProcessingStatus; +import com.microsoft.graph.identitygovernance.models.Task; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage; + + +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 Task Report. + */ +public class TaskReport extends Entity implements IJsonBackedObject { + + + /** + * The Completed Date Time. + * The date time that the associated run completed. Value is null if the run has not completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Failed Users Count. + * The number of users in the run execution for which the associated task failed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "failedUsersCount", alternate = {"FailedUsersCount"}) + @Expose + @Nullable + public Integer failedUsersCount; + + /** + * The Last Updated Date Time. + * The date and time that the task report was last updated. + */ + @SerializedName(value = "lastUpdatedDateTime", alternate = {"LastUpdatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdatedDateTime; + + /** + * The Processing Status. + * The processing status of the associated task based on the taskProcessingResults. The possible values are based on the number of queued, inProgress, completed, completedWithErrors, canceled, failed, and unknownFutureValue.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "processingStatus", alternate = {"ProcessingStatus"}) + @Expose + @Nullable + public LifecycleWorkflowProcessingStatus processingStatus; + + /** + * The Run Id. + * The unique identifier of the associated run. + */ + @SerializedName(value = "runId", alternate = {"RunId"}) + @Expose + @Nullable + public String runId; + + /** + * The Started Date Time. + * The date time that the associated run started. Value is null if the run has not started. + */ + @SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startedDateTime; + + /** + * The Successful Users Count. + * The number of users in the run execution for which the associated task succeeded.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "successfulUsersCount", alternate = {"SuccessfulUsersCount"}) + @Expose + @Nullable + public Integer successfulUsersCount; + + /** + * The Total Users Count. + * The total number of users in the run execution for which the associated task was scheduled to execute.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "totalUsersCount", alternate = {"TotalUsersCount"}) + @Expose + @Nullable + public Integer totalUsersCount; + + /** + * The Unprocessed Users Count. + * The number of users in the run execution for which the associated task is queued, in progress, or canceled.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "unprocessedUsersCount", alternate = {"UnprocessedUsersCount"}) + @Expose + @Nullable + public Integer unprocessedUsersCount; + + /** + * The Task. + * The related lifecycle workflow task.Supports $filter(eq, ne) and $expand. + */ + @SerializedName(value = "task", alternate = {"Task"}) + @Expose + @Nullable + public Task task; + + /** + * The Task Definition. + * The taskDefinition associated with the related lifecycle workflow task.Supports $filter(eq, ne) and $expand. + */ + @SerializedName(value = "taskDefinition", alternate = {"TaskDefinition"}) + @Expose + @Nullable + public TaskDefinition taskDefinition; + + /** + * The Task Processing Results. + * The related lifecycle workflow taskProcessingResults. + */ + @SerializedName(value = "taskProcessingResults", alternate = {"TaskProcessingResults"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage taskProcessingResults; + + + /** + * 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("taskProcessingResults")) { + taskProcessingResults = serializer.deserializeObject(json.get("taskProcessingResults"), com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReportSummary.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReportSummary.java new file mode 100644 index 00000000000..bc39a2fc231 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReportSummary.java @@ -0,0 +1,86 @@ +// 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.identitygovernance.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 Task Report Summary. + */ +public class TaskReportSummary 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 Failed Tasks. + * The number of failed tasks in a report. + */ + @SerializedName(value = "failedTasks", alternate = {"FailedTasks"}) + @Expose + @Nullable + public Integer failedTasks; + + /** + * The Successful Tasks. + * The total number of successful tasks in a report. + */ + @SerializedName(value = "successfulTasks", alternate = {"SuccessfulTasks"}) + @Expose + @Nullable + public Integer successfulTasks; + + /** + * The Total Tasks. + * The total number of tasks in a report. + */ + @SerializedName(value = "totalTasks", alternate = {"TotalTasks"}) + @Expose + @Nullable + public Integer totalTasks; + + /** + * The Unprocessed Tasks. + * The number of unprocessed tasks in a report. + */ + @SerializedName(value = "unprocessedTasks", alternate = {"UnprocessedTasks"}) + @Expose + @Nullable + public Integer unprocessedTasks; + + + /** + * 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/identitygovernancenamespace/models/TaskReportSummaryParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReportSummaryParameterSet.java new file mode 100644 index 00000000000..2619a00f14f --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TaskReportSummaryParameterSet.java @@ -0,0 +1,125 @@ +// 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.identitygovernance.models; + +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +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 Task Report Summary Parameter Set. + */ +public class TaskReportSummaryParameterSet { + /** + * The start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startDateTime; + + /** + * The end Date Time. + * + */ + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime endDateTime; + + + /** + * Instiaciates a new TaskReportSummaryParameterSet + */ + public TaskReportSummaryParameterSet() {} + /** + * Instiaciates a new TaskReportSummaryParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected TaskReportSummaryParameterSet(@Nonnull final TaskReportSummaryParameterSetBuilder builder) { + this.startDateTime = builder.startDateTime; + this.endDateTime = builder.endDateTime; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static TaskReportSummaryParameterSetBuilder newBuilder() { + return new TaskReportSummaryParameterSetBuilder(); + } + /** + * Fluent builder for the TaskReportSummaryParameterSet + */ + public static final class TaskReportSummaryParameterSetBuilder { + /** + * The startDateTime parameter value + */ + @Nullable + protected java.time.OffsetDateTime startDateTime; + /** + * Sets the StartDateTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public TaskReportSummaryParameterSetBuilder withStartDateTime(@Nullable final java.time.OffsetDateTime val) { + this.startDateTime = val; + return this; + } + /** + * The endDateTime parameter value + */ + @Nullable + protected java.time.OffsetDateTime endDateTime; + /** + * Sets the EndDateTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public TaskReportSummaryParameterSetBuilder withEndDateTime(@Nullable final java.time.OffsetDateTime val) { + this.endDateTime = val; + return this; + } + /** + * Instanciates a new TaskReportSummaryParameterSetBuilder + */ + @Nullable + protected TaskReportSummaryParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public TaskReportSummaryParameterSet build() { + return new TaskReportSummaryParameterSet(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.startDateTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("startDateTime", startDateTime)); + } + if(this.endDateTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("endDateTime", endDateTime)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TimeBasedAttributeTrigger.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TimeBasedAttributeTrigger.java new file mode 100644 index 00000000000..ee47fea0f97 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TimeBasedAttributeTrigger.java @@ -0,0 +1,57 @@ +// 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.identitygovernance.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.identitygovernance.models.WorkflowTriggerTimeBasedAttribute; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionTrigger; + + +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 Time Based Attribute Trigger. + */ +public class TimeBasedAttributeTrigger extends WorkflowExecutionTrigger implements IJsonBackedObject { + + + /** + * The Offset In Days. + * How many days before or after the time-based attribute specified the workflow should trigger. For example, if the attribute is employeeHireDate and offsetInDays is -1, then the workflow should trigger one day before the employee hire date. The value can range between -180 and 180 days. + */ + @SerializedName(value = "offsetInDays", alternate = {"OffsetInDays"}) + @Expose + @Nullable + public Integer offsetInDays; + + /** + * The Time Based Attribute. + * Determines which time-based identity property to reference. The possible values are: employeeHireDate, employeeLeaveDateTime, createdDateTime, unknownFutureValue. + */ + @SerializedName(value = "timeBasedAttribute", alternate = {"TimeBasedAttribute"}) + @Expose + @Nullable + public WorkflowTriggerTimeBasedAttribute timeBasedAttribute; + + + /** + * 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/identitygovernancenamespace/models/TriggerAndScopeBasedConditions.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TriggerAndScopeBasedConditions.java new file mode 100644 index 00000000000..19fa5d23b1f --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/TriggerAndScopeBasedConditions.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.identitygovernance.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.SubjectSet; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionTrigger; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionConditions; + + +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 Trigger And Scope Based Conditions. + */ +public class TriggerAndScopeBasedConditions extends WorkflowExecutionConditions implements IJsonBackedObject { + + + /** + * The Scope. + * Defines who the workflow runs for. + */ + @SerializedName(value = "scope", alternate = {"Scope"}) + @Expose + @Nullable + public SubjectSet scope; + + /** + * The Trigger. + * What triggers a workflow to run. + */ + @SerializedName(value = "trigger", alternate = {"Trigger"}) + @Expose + @Nullable + public WorkflowExecutionTrigger trigger; + + + /** + * 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/identitygovernancenamespace/models/UserProcessingResult.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserProcessingResult.java new file mode 100644 index 00000000000..8cea1bee1b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserProcessingResult.java @@ -0,0 +1,146 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleWorkflowProcessingStatus; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionType; +import com.microsoft.graph.models.User; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage; + + +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 User Processing Result. + */ +public class UserProcessingResult extends Entity implements IJsonBackedObject { + + + /** + * The Completed Date Time. + * The date time that the workflow execution for a user completed. Value is null if the workflow hasn't completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Failed Tasks Count. + * The number of tasks that failed in the workflow execution. + */ + @SerializedName(value = "failedTasksCount", alternate = {"FailedTasksCount"}) + @Expose + @Nullable + public Integer failedTasksCount; + + /** + * The Processing Status. + * The workflow execution status. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "processingStatus", alternate = {"ProcessingStatus"}) + @Expose + @Nullable + public LifecycleWorkflowProcessingStatus processingStatus; + + /** + * The Scheduled Date Time. + * The date time that the workflow is scheduled to be executed for a user.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "scheduledDateTime", alternate = {"ScheduledDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime scheduledDateTime; + + /** + * The Started Date Time. + * The date time that the workflow execution started. Value is null if the workflow execution has not started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startedDateTime; + + /** + * The Total Tasks Count. + * The total number of tasks that in the workflow execution. + */ + @SerializedName(value = "totalTasksCount", alternate = {"TotalTasksCount"}) + @Expose + @Nullable + public Integer totalTasksCount; + + /** + * The Total Unprocessed Tasks Count. + * The total number of unprocessed tasks for the workflow. + */ + @SerializedName(value = "totalUnprocessedTasksCount", alternate = {"TotalUnprocessedTasksCount"}) + @Expose + @Nullable + public Integer totalUnprocessedTasksCount; + + /** + * The Workflow Execution Type. + * Describes the execution type of the workflow. The possible values are: scheduled, onDemand, unknownFutureValue.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "workflowExecutionType", alternate = {"WorkflowExecutionType"}) + @Expose + @Nullable + public WorkflowExecutionType workflowExecutionType; + + /** + * The Workflow Version. + * The version of the workflow that was executed. + */ + @SerializedName(value = "workflowVersion", alternate = {"WorkflowVersion"}) + @Expose + @Nullable + public Integer workflowVersion; + + /** + * The Subject. + * The unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public User subject; + + /** + * The Task Processing Results. + * The associated individual task execution. + */ + @SerializedName(value = "taskProcessingResults", alternate = {"TaskProcessingResults"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage taskProcessingResults; + + + /** + * 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("taskProcessingResults")) { + taskProcessingResults = serializer.deserializeObject(json.get("taskProcessingResults"), com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserProcessingResultSummaryParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserProcessingResultSummaryParameterSet.java new file mode 100644 index 00000000000..7c4e775b157 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserProcessingResultSummaryParameterSet.java @@ -0,0 +1,125 @@ +// 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.identitygovernance.models; + +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result Summary Parameter Set. + */ +public class UserProcessingResultSummaryParameterSet { + /** + * The start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startDateTime; + + /** + * The end Date Time. + * + */ + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime endDateTime; + + + /** + * Instiaciates a new UserProcessingResultSummaryParameterSet + */ + public UserProcessingResultSummaryParameterSet() {} + /** + * Instiaciates a new UserProcessingResultSummaryParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected UserProcessingResultSummaryParameterSet(@Nonnull final UserProcessingResultSummaryParameterSetBuilder builder) { + this.startDateTime = builder.startDateTime; + this.endDateTime = builder.endDateTime; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static UserProcessingResultSummaryParameterSetBuilder newBuilder() { + return new UserProcessingResultSummaryParameterSetBuilder(); + } + /** + * Fluent builder for the UserProcessingResultSummaryParameterSet + */ + public static final class UserProcessingResultSummaryParameterSetBuilder { + /** + * The startDateTime parameter value + */ + @Nullable + protected java.time.OffsetDateTime startDateTime; + /** + * Sets the StartDateTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public UserProcessingResultSummaryParameterSetBuilder withStartDateTime(@Nullable final java.time.OffsetDateTime val) { + this.startDateTime = val; + return this; + } + /** + * The endDateTime parameter value + */ + @Nullable + protected java.time.OffsetDateTime endDateTime; + /** + * Sets the EndDateTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public UserProcessingResultSummaryParameterSetBuilder withEndDateTime(@Nullable final java.time.OffsetDateTime val) { + this.endDateTime = val; + return this; + } + /** + * Instanciates a new UserProcessingResultSummaryParameterSetBuilder + */ + @Nullable + protected UserProcessingResultSummaryParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public UserProcessingResultSummaryParameterSet build() { + return new UserProcessingResultSummaryParameterSet(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.startDateTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("startDateTime", startDateTime)); + } + if(this.endDateTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("endDateTime", endDateTime)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserSummary.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserSummary.java new file mode 100644 index 00000000000..65d7a00406d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UserSummary.java @@ -0,0 +1,95 @@ +// 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.identitygovernance.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 User Summary. + */ +public class UserSummary 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 Failed Tasks. + * The number of failed tasks for users in a user summary. + */ + @SerializedName(value = "failedTasks", alternate = {"FailedTasks"}) + @Expose + @Nullable + public Integer failedTasks; + + /** + * The Failed Users. + * The number of failed users in a user summary. + */ + @SerializedName(value = "failedUsers", alternate = {"FailedUsers"}) + @Expose + @Nullable + public Integer failedUsers; + + /** + * The Successful Users. + * The number of successful users in a user summary. + */ + @SerializedName(value = "successfulUsers", alternate = {"SuccessfulUsers"}) + @Expose + @Nullable + public Integer successfulUsers; + + /** + * The Total Tasks. + * The total tasks of users in a user summary. + */ + @SerializedName(value = "totalTasks", alternate = {"TotalTasks"}) + @Expose + @Nullable + public Integer totalTasks; + + /** + * The Total Users. + * The total number of users in a user summary + */ + @SerializedName(value = "totalUsers", alternate = {"TotalUsers"}) + @Expose + @Nullable + public Integer totalUsers; + + + /** + * 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/identitygovernancenamespace/models/UsersProcessingSummary.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UsersProcessingSummary.java new file mode 100644 index 00000000000..be573d8721a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/UsersProcessingSummary.java @@ -0,0 +1,95 @@ +// 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.identitygovernance.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 Users Processing Summary. + */ +public class UsersProcessingSummary 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 Failed Tasks. + * + */ + @SerializedName(value = "failedTasks", alternate = {"FailedTasks"}) + @Expose + @Nullable + public Integer failedTasks; + + /** + * The Failed Users. + * + */ + @SerializedName(value = "failedUsers", alternate = {"FailedUsers"}) + @Expose + @Nullable + public Integer failedUsers; + + /** + * The Successful Users. + * + */ + @SerializedName(value = "successfulUsers", alternate = {"SuccessfulUsers"}) + @Expose + @Nullable + public Integer successfulUsers; + + /** + * The Total Tasks. + * + */ + @SerializedName(value = "totalTasks", alternate = {"TotalTasks"}) + @Expose + @Nullable + public Integer totalTasks; + + /** + * The Total Users. + * + */ + @SerializedName(value = "totalUsers", alternate = {"TotalUsers"}) + @Expose + @Nullable + public Integer totalUsers; + + + /** + * 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/identitygovernancenamespace/models/ValueType.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/ValueType.java new file mode 100644 index 00000000000..09230efa34d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/ValueType.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.identitygovernance.models; + + +/** + * The Enum Value Type. +*/ +public enum ValueType +{ + /** + * enum + */ + ENUM, + /** + * string + */ + STRING, + /** + * int + */ + INT, + /** + * bool + */ + BOOL, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ValueType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Workflow.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Workflow.java new file mode 100644 index 00000000000..51d9c6426f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/Workflow.java @@ -0,0 +1,141 @@ +// 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.identitygovernance.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.identitygovernance.models.WorkflowBase; +import com.microsoft.graph.identitygovernance.requests.RunCollectionPage; +import com.microsoft.graph.identitygovernance.requests.TaskReportCollectionPage; +import com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionPage; + + +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 Workflow. + */ +public class Workflow extends WorkflowBase implements IJsonBackedObject { + + + /** + * The Deleted Date Time. + * When the workflow was deleted.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "deletedDateTime", alternate = {"DeletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime deletedDateTime; + + /** + * The Id. + * Identifier used for individually addressing a specific workflow.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "id", alternate = {"Id"}) + @Expose + @Nullable + public String id; + + /** + * The Next Schedule Run Date Time. + * The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderBy. + */ + @SerializedName(value = "nextScheduleRunDateTime", alternate = {"NextScheduleRunDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime nextScheduleRunDateTime; + + /** + * The Version. + * The current version number of the workflow. Value is 1 when the workflow is first created.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "version", alternate = {"Version"}) + @Expose + @Nullable + public Integer version; + + /** + * The Execution Scope. + * The unique identifier of the Azure AD identity that last modified the workflow object. + */ + @Nullable + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage executionScope; + + /** + * The Runs. + * Workflow runs. + */ + @SerializedName(value = "runs", alternate = {"Runs"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.RunCollectionPage runs; + + /** + * The Task Reports. + * Represents the aggregation of task execution data for tasks within a workflow object. + */ + @SerializedName(value = "taskReports", alternate = {"TaskReports"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskReportCollectionPage taskReports; + + /** + * The User Processing Results. + * Per-user workflow execution results. + */ + @SerializedName(value = "userProcessingResults", alternate = {"UserProcessingResults"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage userProcessingResults; + + /** + * The Versions. + * The workflow versions that are available. + */ + @SerializedName(value = "versions", alternate = {"Versions"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionPage versions; + + + /** + * 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("executionScope")) { + executionScope = serializer.deserializeObject(json.get("executionScope"), com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage.class); + } + + if (json.has("runs")) { + runs = serializer.deserializeObject(json.get("runs"), com.microsoft.graph.identitygovernance.requests.RunCollectionPage.class); + } + + if (json.has("taskReports")) { + taskReports = serializer.deserializeObject(json.get("taskReports"), com.microsoft.graph.identitygovernance.requests.TaskReportCollectionPage.class); + } + + if (json.has("userProcessingResults")) { + userProcessingResults = serializer.deserializeObject(json.get("userProcessingResults"), com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionPage.class); + } + + if (json.has("versions")) { + versions = serializer.deserializeObject(json.get("versions"), com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowActivateParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowActivateParameterSet.java new file mode 100644 index 00000000000..62ac55f1140 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowActivateParameterSet.java @@ -0,0 +1,97 @@ +// 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.identitygovernance.models; + +import com.microsoft.graph.models.User; +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 Workflow Activate Parameter Set. + */ +public class WorkflowActivateParameterSet { + /** + * The subjects. + * + */ + @SerializedName(value = "subjects", alternate = {"Subjects"}) + @Expose + @Nullable + public java.util.List subjects; + + + /** + * Instiaciates a new WorkflowActivateParameterSet + */ + public WorkflowActivateParameterSet() {} + /** + * Instiaciates a new WorkflowActivateParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkflowActivateParameterSet(@Nonnull final WorkflowActivateParameterSetBuilder builder) { + this.subjects = builder.subjects; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkflowActivateParameterSetBuilder newBuilder() { + return new WorkflowActivateParameterSetBuilder(); + } + /** + * Fluent builder for the WorkflowActivateParameterSet + */ + public static final class WorkflowActivateParameterSetBuilder { + /** + * The subjects parameter value + */ + @Nullable + protected java.util.List subjects; + /** + * Sets the Subjects + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public WorkflowActivateParameterSetBuilder withSubjects(@Nullable final java.util.List val) { + this.subjects = val; + return this; + } + /** + * Instanciates a new WorkflowActivateParameterSetBuilder + */ + @Nullable + protected WorkflowActivateParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkflowActivateParameterSet build() { + return new WorkflowActivateParameterSet(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.subjects != null) { + result.add(new com.microsoft.graph.options.FunctionOption("subjects", subjects)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowBase.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowBase.java new file mode 100644 index 00000000000..9ca6338ad15 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowBase.java @@ -0,0 +1,158 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleWorkflowCategory; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionConditions; +import com.microsoft.graph.models.User; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionPage; + + +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 Workflow Base. + */ +public class WorkflowBase 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 Category. + * The category of the workflow. The possible values are: joiner, leaver, unknownFutureValue. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public LifecycleWorkflowCategory category; + + /** + * The Created Date Time. + * When a workflow was created. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * A string that describes the purpose of the workflow. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * A string to identify the workflow. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Execution Conditions. + * Defines when and for who the workflow will run. + */ + @SerializedName(value = "executionConditions", alternate = {"ExecutionConditions"}) + @Expose + @Nullable + public WorkflowExecutionConditions executionConditions; + + /** + * The Is Enabled. + * Whether the workflow is enabled or disabled. If this setting is true, the workflow can be run on demand or on schedule when isSchedulingEnabled is true. + */ + @SerializedName(value = "isEnabled", alternate = {"IsEnabled"}) + @Expose + @Nullable + public Boolean isEnabled; + + /** + * The Is Scheduling Enabled. + * If true, the Lifecycle Workflow engine executes the workflow based on the schedule defined by tenant settings. Cannot be true for a disabled workflow (where isEnabled is false). + */ + @SerializedName(value = "isSchedulingEnabled", alternate = {"IsSchedulingEnabled"}) + @Expose + @Nullable + public Boolean isSchedulingEnabled; + + /** + * The Last Modified Date Time. + * When the workflow was last modified. + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Created By. + * The user who created the workflow. + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public User createdBy; + + /** + * The Last Modified By. + * The unique identifier of the AAD identity that last modified the workflow. + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public User lastModifiedBy; + + /** + * The Tasks. + * The tasks in the workflow. + */ + @SerializedName(value = "tasks", alternate = {"Tasks"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskCollectionPage tasks; + + + /** + * 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("tasks")) { + tasks = serializer.deserializeObject(json.get("tasks"), com.microsoft.graph.identitygovernance.requests.TaskCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowCreateNewVersionParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowCreateNewVersionParameterSet.java new file mode 100644 index 00000000000..02736d48ca4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowCreateNewVersionParameterSet.java @@ -0,0 +1,97 @@ +// 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.identitygovernance.models; + +import com.microsoft.graph.identitygovernance.models.Workflow; +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 Workflow Create New Version Parameter Set. + */ +public class WorkflowCreateNewVersionParameterSet { + /** + * The workflow. + * + */ + @SerializedName(value = "workflow", alternate = {"Workflow"}) + @Expose + @Nullable + public Workflow workflow; + + + /** + * Instiaciates a new WorkflowCreateNewVersionParameterSet + */ + public WorkflowCreateNewVersionParameterSet() {} + /** + * Instiaciates a new WorkflowCreateNewVersionParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkflowCreateNewVersionParameterSet(@Nonnull final WorkflowCreateNewVersionParameterSetBuilder builder) { + this.workflow = builder.workflow; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkflowCreateNewVersionParameterSetBuilder newBuilder() { + return new WorkflowCreateNewVersionParameterSetBuilder(); + } + /** + * Fluent builder for the WorkflowCreateNewVersionParameterSet + */ + public static final class WorkflowCreateNewVersionParameterSetBuilder { + /** + * The workflow parameter value + */ + @Nullable + protected Workflow workflow; + /** + * Sets the Workflow + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public WorkflowCreateNewVersionParameterSetBuilder withWorkflow(@Nullable final Workflow val) { + this.workflow = val; + return this; + } + /** + * Instanciates a new WorkflowCreateNewVersionParameterSetBuilder + */ + @Nullable + protected WorkflowCreateNewVersionParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkflowCreateNewVersionParameterSet build() { + return new WorkflowCreateNewVersionParameterSet(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.workflow != null) { + result.add(new com.microsoft.graph.options.FunctionOption("workflow", workflow)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionConditions.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionConditions.java new file mode 100644 index 00000000000..15ac4460bc2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionConditions.java @@ -0,0 +1,50 @@ +// 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.identitygovernance.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 Workflow Execution Conditions. + */ +public class WorkflowExecutionConditions 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; + } + + + /** + * 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/identitygovernancenamespace/models/WorkflowExecutionTrigger.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionTrigger.java new file mode 100644 index 00000000000..82650d10cfb --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionTrigger.java @@ -0,0 +1,50 @@ +// 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.identitygovernance.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 Workflow Execution Trigger. + */ +public class WorkflowExecutionTrigger 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; + } + + + /** + * 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/identitygovernancenamespace/models/WorkflowExecutionType.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionType.java new file mode 100644 index 00000000000..0eb35b3415a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowExecutionType.java @@ -0,0 +1,30 @@ +// 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.identitygovernance.models; + + +/** + * The Enum Workflow Execution Type. +*/ +public enum WorkflowExecutionType +{ + /** + * scheduled + */ + SCHEDULED, + /** + * on Demand + */ + ON_DEMAND, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For WorkflowExecutionType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowRestoreParameterSet.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowRestoreParameterSet.java new file mode 100644 index 00000000000..8e92dd25e3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowRestoreParameterSet.java @@ -0,0 +1,69 @@ +// 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.identitygovernance.models; + +import com.microsoft.graph.identitygovernance.models.Workflow; +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 Workflow Restore Parameter Set. + */ +public class WorkflowRestoreParameterSet { + + /** + * Instiaciates a new WorkflowRestoreParameterSet + */ + public WorkflowRestoreParameterSet() {} + /** + * Instiaciates a new WorkflowRestoreParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected WorkflowRestoreParameterSet(@Nonnull final WorkflowRestoreParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static WorkflowRestoreParameterSetBuilder newBuilder() { + return new WorkflowRestoreParameterSetBuilder(); + } + /** + * Fluent builder for the WorkflowRestoreParameterSet + */ + public static final class WorkflowRestoreParameterSetBuilder { + /** + * Instanciates a new WorkflowRestoreParameterSetBuilder + */ + @Nullable + protected WorkflowRestoreParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public WorkflowRestoreParameterSet build() { + return new WorkflowRestoreParameterSet(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<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowTemplate.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowTemplate.java new file mode 100644 index 00000000000..800cd6b313e --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowTemplate.java @@ -0,0 +1,91 @@ +// 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.identitygovernance.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.identitygovernance.models.LifecycleWorkflowCategory; +import com.microsoft.graph.identitygovernance.models.WorkflowExecutionConditions; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.identitygovernance.requests.TaskCollectionPage; + + +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 Workflow Template. + */ +public class WorkflowTemplate extends Entity implements IJsonBackedObject { + + + /** + * The Category. + * The category of the workflow template. The possible values are: joiner, mover, leaver,unknownFutureValue.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public LifecycleWorkflowCategory category; + + /** + * The Description. + * The description of the workflowTemplate. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * The display name of the workflowTemplate.Supports $filter(eq, ne) and $orderby. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Execution Conditions. + * Conditions describing when to execute the workflow and the criteria to identify in-scope subject set. + */ + @SerializedName(value = "executionConditions", alternate = {"ExecutionConditions"}) + @Expose + @Nullable + public WorkflowExecutionConditions executionConditions; + + /** + * The Tasks. + * Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default. + */ + @SerializedName(value = "tasks", alternate = {"Tasks"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.TaskCollectionPage tasks; + + + /** + * 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("tasks")) { + tasks = serializer.deserializeObject(json.get("tasks"), com.microsoft.graph.identitygovernance.requests.TaskCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowTriggerTimeBasedAttribute.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowTriggerTimeBasedAttribute.java new file mode 100644 index 00000000000..f2c44515e2a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowTriggerTimeBasedAttribute.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.identitygovernance.models; + + +/** + * The Enum Workflow Trigger Time Based Attribute. +*/ +public enum WorkflowTriggerTimeBasedAttribute +{ + /** + * employee Hire Date + */ + EMPLOYEE_HIRE_DATE, + /** + * employee Leave Date Time + */ + EMPLOYEE_LEAVE_DATE_TIME, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * created Date Time + */ + CREATED_DATE_TIME, + /** + * For WorkflowTriggerTimeBasedAttribute values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowVersion.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowVersion.java new file mode 100644 index 00000000000..79548261d31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/models/WorkflowVersion.java @@ -0,0 +1,47 @@ +// 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.identitygovernance.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.identitygovernance.models.WorkflowBase; + + +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 Workflow Version. + */ +public class WorkflowVersion extends WorkflowBase implements IJsonBackedObject { + + + /** + * The Version Number. + * The version of the workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. + */ + @SerializedName(value = "versionNumber", alternate = {"VersionNumber"}) + @Expose + @Nullable + public Integer versionNumber; + + + /** + * 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/identitygovernancenamespace/requests/CustomTaskExtensionRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/CustomTaskExtensionRequest.java new file mode 100644 index 00000000000..bf14b996801 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/CustomTaskExtensionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtension; +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 Task Extension Request. + */ +public class CustomTaskExtensionRequest extends BaseRequest { + + /** + * The request for the CustomTaskExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomTaskExtensionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomTaskExtension.class); + } + + /** + * Gets the CustomTaskExtension from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the CustomTaskExtension from the service + * + * @return the CustomTaskExtension from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomTaskExtension 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 CustomTaskExtension delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this CustomTaskExtension with a source + * + * @param sourceCustomTaskExtension the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final CustomTaskExtension sourceCustomTaskExtension) { + return sendAsync(HttpMethod.PATCH, sourceCustomTaskExtension); + } + + /** + * Patches this CustomTaskExtension with a source + * + * @param sourceCustomTaskExtension the source object with updates + * @return the updated CustomTaskExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomTaskExtension patch(@Nonnull final CustomTaskExtension sourceCustomTaskExtension) throws ClientException { + return send(HttpMethod.PATCH, sourceCustomTaskExtension); + } + + /** + * Creates a CustomTaskExtension with a new object + * + * @param newCustomTaskExtension the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CustomTaskExtension newCustomTaskExtension) { + return sendAsync(HttpMethod.POST, newCustomTaskExtension); + } + + /** + * Creates a CustomTaskExtension with a new object + * + * @param newCustomTaskExtension the new object to create + * @return the created CustomTaskExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomTaskExtension post(@Nonnull final CustomTaskExtension newCustomTaskExtension) throws ClientException { + return send(HttpMethod.POST, newCustomTaskExtension); + } + + /** + * Creates a CustomTaskExtension with a new object + * + * @param newCustomTaskExtension the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final CustomTaskExtension newCustomTaskExtension) { + return sendAsync(HttpMethod.PUT, newCustomTaskExtension); + } + + /** + * Creates a CustomTaskExtension with a new object + * + * @param newCustomTaskExtension the object to create/update + * @return the created CustomTaskExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomTaskExtension put(@Nonnull final CustomTaskExtension newCustomTaskExtension) throws ClientException { + return send(HttpMethod.PUT, newCustomTaskExtension); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomTaskExtensionRequest 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 CustomTaskExtensionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/CustomTaskExtensionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/CustomTaskExtensionRequestBuilder.java new file mode 100644 index 00000000000..2d8b35475f4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/CustomTaskExtensionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtension; +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 Task Extension Request Builder. + */ +public class CustomTaskExtensionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CustomTaskExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomTaskExtensionRequestBuilder(@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 CustomTaskExtensionRequest instance + */ + @Nonnull + public CustomTaskExtensionRequest 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 CustomTaskExtensionRequest instance + */ + @Nonnull + public CustomTaskExtensionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder createdBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("createdBy"), getClient(), null); + } + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder lastModifiedBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("lastModifiedBy"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleManagementSettingsRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleManagementSettingsRequest.java new file mode 100644 index 00000000000..4854d03fe32 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleManagementSettingsRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleManagementSettings; +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 Lifecycle Management Settings Request. + */ +public class LifecycleManagementSettingsRequest extends BaseRequest { + + /** + * The request for the LifecycleManagementSettings + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LifecycleManagementSettingsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LifecycleManagementSettings.class); + } + + /** + * Gets the LifecycleManagementSettings from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LifecycleManagementSettings from the service + * + * @return the LifecycleManagementSettings from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleManagementSettings 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 LifecycleManagementSettings delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LifecycleManagementSettings with a source + * + * @param sourceLifecycleManagementSettings the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LifecycleManagementSettings sourceLifecycleManagementSettings) { + return sendAsync(HttpMethod.PATCH, sourceLifecycleManagementSettings); + } + + /** + * Patches this LifecycleManagementSettings with a source + * + * @param sourceLifecycleManagementSettings the source object with updates + * @return the updated LifecycleManagementSettings + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleManagementSettings patch(@Nonnull final LifecycleManagementSettings sourceLifecycleManagementSettings) throws ClientException { + return send(HttpMethod.PATCH, sourceLifecycleManagementSettings); + } + + /** + * Creates a LifecycleManagementSettings with a new object + * + * @param newLifecycleManagementSettings the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LifecycleManagementSettings newLifecycleManagementSettings) { + return sendAsync(HttpMethod.POST, newLifecycleManagementSettings); + } + + /** + * Creates a LifecycleManagementSettings with a new object + * + * @param newLifecycleManagementSettings the new object to create + * @return the created LifecycleManagementSettings + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleManagementSettings post(@Nonnull final LifecycleManagementSettings newLifecycleManagementSettings) throws ClientException { + return send(HttpMethod.POST, newLifecycleManagementSettings); + } + + /** + * Creates a LifecycleManagementSettings with a new object + * + * @param newLifecycleManagementSettings the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LifecycleManagementSettings newLifecycleManagementSettings) { + return sendAsync(HttpMethod.PUT, newLifecycleManagementSettings); + } + + /** + * Creates a LifecycleManagementSettings with a new object + * + * @param newLifecycleManagementSettings the object to create/update + * @return the created LifecycleManagementSettings + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleManagementSettings put(@Nonnull final LifecycleManagementSettings newLifecycleManagementSettings) throws ClientException { + return send(HttpMethod.PUT, newLifecycleManagementSettings); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LifecycleManagementSettingsRequest 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 LifecycleManagementSettingsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleManagementSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleManagementSettingsRequestBuilder.java new file mode 100644 index 00000000000..7a24281149d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleManagementSettingsRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleManagementSettings; +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 Lifecycle Management Settings Request Builder. + */ +public class LifecycleManagementSettingsRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LifecycleManagementSettings + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LifecycleManagementSettingsRequestBuilder(@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 LifecycleManagementSettingsRequest instance + */ + @Nonnull + public LifecycleManagementSettingsRequest 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 LifecycleManagementSettingsRequest instance + */ + @Nonnull + public LifecycleManagementSettingsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.LifecycleManagementSettingsRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequest.java new file mode 100644 index 00000000000..f44a73689b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +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 Lifecycle Workflows Container Request. + */ +public class LifecycleWorkflowsContainerRequest extends BaseRequest { + + /** + * The request for the LifecycleWorkflowsContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LifecycleWorkflowsContainerRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LifecycleWorkflowsContainer.class); + } + + /** + * Gets the LifecycleWorkflowsContainer from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LifecycleWorkflowsContainer from the service + * + * @return the LifecycleWorkflowsContainer from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleWorkflowsContainer 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 LifecycleWorkflowsContainer delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LifecycleWorkflowsContainer with a source + * + * @param sourceLifecycleWorkflowsContainer the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LifecycleWorkflowsContainer sourceLifecycleWorkflowsContainer) { + return sendAsync(HttpMethod.PATCH, sourceLifecycleWorkflowsContainer); + } + + /** + * Patches this LifecycleWorkflowsContainer with a source + * + * @param sourceLifecycleWorkflowsContainer the source object with updates + * @return the updated LifecycleWorkflowsContainer + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleWorkflowsContainer patch(@Nonnull final LifecycleWorkflowsContainer sourceLifecycleWorkflowsContainer) throws ClientException { + return send(HttpMethod.PATCH, sourceLifecycleWorkflowsContainer); + } + + /** + * Creates a LifecycleWorkflowsContainer with a new object + * + * @param newLifecycleWorkflowsContainer the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LifecycleWorkflowsContainer newLifecycleWorkflowsContainer) { + return sendAsync(HttpMethod.POST, newLifecycleWorkflowsContainer); + } + + /** + * Creates a LifecycleWorkflowsContainer with a new object + * + * @param newLifecycleWorkflowsContainer the new object to create + * @return the created LifecycleWorkflowsContainer + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleWorkflowsContainer post(@Nonnull final LifecycleWorkflowsContainer newLifecycleWorkflowsContainer) throws ClientException { + return send(HttpMethod.POST, newLifecycleWorkflowsContainer); + } + + /** + * Creates a LifecycleWorkflowsContainer with a new object + * + * @param newLifecycleWorkflowsContainer the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LifecycleWorkflowsContainer newLifecycleWorkflowsContainer) { + return sendAsync(HttpMethod.PUT, newLifecycleWorkflowsContainer); + } + + /** + * Creates a LifecycleWorkflowsContainer with a new object + * + * @param newLifecycleWorkflowsContainer the object to create/update + * @return the created LifecycleWorkflowsContainer + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LifecycleWorkflowsContainer put(@Nonnull final LifecycleWorkflowsContainer newLifecycleWorkflowsContainer) throws ClientException { + return send(HttpMethod.PUT, newLifecycleWorkflowsContainer); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LifecycleWorkflowsContainerRequest 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 LifecycleWorkflowsContainerRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequestBuilder.java new file mode 100644 index 00000000000..11d3332ea5d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/LifecycleWorkflowsContainerRequestBuilder.java @@ -0,0 +1,159 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; +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 Lifecycle Workflows Container Request Builder. + */ +public class LifecycleWorkflowsContainerRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LifecycleWorkflowsContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LifecycleWorkflowsContainerRequestBuilder(@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 LifecycleWorkflowsContainerRequest instance + */ + @Nonnull + public LifecycleWorkflowsContainerRequest 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 LifecycleWorkflowsContainerRequest instance + */ + @Nonnull + public LifecycleWorkflowsContainerRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.LifecycleWorkflowsContainerRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the CustomTaskExtension collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequestBuilder customTaskExtensions() { + return new com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("customTaskExtensions"), getClient(), null); + } + + /** + * Gets a request builder for the CustomTaskExtension item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionRequestBuilder customTaskExtensions(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.CustomTaskExtensionRequestBuilder(getRequestUrlWithAdditionalSegment("customTaskExtensions") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for DeletedItemContainer + * + * @return the DeletedItemContainerRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.DeletedItemContainerRequestBuilder deletedItems() { + return new com.microsoft.graph.requests.DeletedItemContainerRequestBuilder(getRequestUrlWithAdditionalSegment("deletedItems"), getClient(), null); + } + + /** + * Gets the request builder for LifecycleManagementSettings + * + * @return the LifecycleManagementSettingsRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.LifecycleManagementSettingsRequestBuilder settings() { + return new com.microsoft.graph.identitygovernance.requests.LifecycleManagementSettingsRequestBuilder(getRequestUrlWithAdditionalSegment("settings"), getClient(), null); + } + /** + * Gets a request builder for the TaskDefinition collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequestBuilder taskDefinitions() { + return new com.microsoft.graph.identitygovernance.requests.TaskDefinitionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("taskDefinitions"), getClient(), null); + } + + /** + * Gets a request builder for the TaskDefinition item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskDefinitionRequestBuilder taskDefinitions(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskDefinitionRequestBuilder(getRequestUrlWithAdditionalSegment("taskDefinitions") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the Workflow collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder workflows() { + return new com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("workflows"), getClient(), null); + } + + /** + * Gets a request builder for the Workflow item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowRequestBuilder workflows(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowRequestBuilder(getRequestUrlWithAdditionalSegment("workflows") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the WorkflowTemplate collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequestBuilder workflowTemplates() { + return new com.microsoft.graph.identitygovernance.requests.WorkflowTemplateCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("workflowTemplates"), getClient(), null); + } + + /** + * Gets a request builder for the WorkflowTemplate item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowTemplateRequestBuilder workflowTemplates(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowTemplateRequestBuilder(getRequestUrlWithAdditionalSegment("workflowTemplates") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunRequest.java new file mode 100644 index 00000000000..0fd400aee7d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunRequest.java @@ -0,0 +1,174 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.RunSummary; +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 Run Request. + */ +public class RunRequest extends BaseRequest { + + /** + * The request for the Run + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RunRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Run.class); + } + + /** + * Gets the Run from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Run from the service + * + * @return the Run from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Run 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 Run delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Run with a source + * + * @param sourceRun the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Run sourceRun) { + return sendAsync(HttpMethod.PATCH, sourceRun); + } + + /** + * Patches this Run with a source + * + * @param sourceRun the source object with updates + * @return the updated Run + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Run patch(@Nonnull final Run sourceRun) throws ClientException { + return send(HttpMethod.PATCH, sourceRun); + } + + /** + * Creates a Run with a new object + * + * @param newRun the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Run newRun) { + return sendAsync(HttpMethod.POST, newRun); + } + + /** + * Creates a Run with a new object + * + * @param newRun the new object to create + * @return the created Run + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Run post(@Nonnull final Run newRun) throws ClientException { + return send(HttpMethod.POST, newRun); + } + + /** + * Creates a Run with a new object + * + * @param newRun the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Run newRun) { + return sendAsync(HttpMethod.PUT, newRun); + } + + /** + * Creates a Run with a new object + * + * @param newRun the object to create/update + * @return the created Run + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Run put(@Nonnull final Run newRun) throws ClientException { + return send(HttpMethod.PUT, newRun); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public RunRequest 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 RunRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunRequestBuilder.java new file mode 100644 index 00000000000..69bbf0ef958 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunRequestBuilder.java @@ -0,0 +1,100 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.RunSummary; +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 Run Request Builder. + */ +public class RunRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Run + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RunRequestBuilder(@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 RunRequest instance + */ + @Nonnull + public RunRequest 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 RunRequest instance + */ + @Nonnull + public RunRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.RunRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the TaskProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder taskProcessingResults() { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults"), getClient(), null); + } + + /** + * Gets a request builder for the TaskProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder taskProcessingResults(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder userProcessingResults() { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userProcessingResults"), getClient(), null); + } + + /** + * Gets a request builder for the UserProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultRequestBuilder userProcessingResults(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultRequestBuilder(getRequestUrlWithAdditionalSegment("userProcessingResults") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunSummaryRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunSummaryRequest.java new file mode 100644 index 00000000000..110a8cefc1c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunSummaryRequest.java @@ -0,0 +1,81 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.RunSummary; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.requests.RunSummaryRequest; + +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.identitygovernance.models.RunSummaryParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Run Summary Request. + */ +public class RunSummaryRequest extends BaseRequest { + /** + * The request for this RunSummary + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RunSummaryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RunSummary.class); + } + + /** + * Gets the RunSummary + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the RunSummary + * + * @return the RunSummary + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public RunSummary get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public RunSummaryRequest 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 RunSummaryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunSummaryRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunSummaryRequestBuilder.java new file mode 100644 index 00000000000..8cda66f7f80 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/RunSummaryRequestBuilder.java @@ -0,0 +1,77 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.RunSummaryRequest; +import com.microsoft.graph.identitygovernance.models.Run; +import com.microsoft.graph.identitygovernance.models.RunSummary; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.identitygovernance.models.RunSummaryParameterSet; +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 Run Summary Request Builder. + */ +public class RunSummaryRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this RunSummary + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RunSummaryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this RunSummary + * + * @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 RunSummaryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final RunSummaryParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the RunSummaryRequest + * + * @param requestOptions the options for the request + * @return the RunSummaryRequest instance + */ + @Nonnull + public RunSummaryRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the RunSummaryRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the RunSummaryRequest instance + */ + @Nonnull + public RunSummaryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final RunSummaryRequest request = new RunSummaryRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionReferenceRequest.java new file mode 100644 index 00000000000..eb9790f0768 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionReferenceRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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 Task Definition Reference Request. + */ +public class TaskDefinitionReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinition.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskDefinitionReferenceRequest 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 TaskDefinitionReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionReferenceRequestBuilder.java new file mode 100644 index 00000000000..61575f2222d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionReferenceRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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 Task Definition Reference Request Builder. + */ +public class TaskDefinitionReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinitionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionRequest.java new file mode 100644 index 00000000000..b6fa409a664 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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 Task Definition Request. + */ +public class TaskDefinitionRequest extends BaseRequest { + + /** + * The request for the TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinition.class); + } + + /** + * Gets the TaskDefinition from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TaskDefinition from the service + * + * @return the TaskDefinition from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskDefinition 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 TaskDefinition delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this TaskDefinition with a source + * + * @param sourceTaskDefinition the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final TaskDefinition sourceTaskDefinition) { + return sendAsync(HttpMethod.PATCH, sourceTaskDefinition); + } + + /** + * Patches this TaskDefinition with a source + * + * @param sourceTaskDefinition the source object with updates + * @return the updated TaskDefinition + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskDefinition patch(@Nonnull final TaskDefinition sourceTaskDefinition) throws ClientException { + return send(HttpMethod.PATCH, sourceTaskDefinition); + } + + /** + * Creates a TaskDefinition with a new object + * + * @param newTaskDefinition the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TaskDefinition newTaskDefinition) { + return sendAsync(HttpMethod.POST, newTaskDefinition); + } + + /** + * Creates a TaskDefinition with a new object + * + * @param newTaskDefinition the new object to create + * @return the created TaskDefinition + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskDefinition post(@Nonnull final TaskDefinition newTaskDefinition) throws ClientException { + return send(HttpMethod.POST, newTaskDefinition); + } + + /** + * Creates a TaskDefinition with a new object + * + * @param newTaskDefinition the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final TaskDefinition newTaskDefinition) { + return sendAsync(HttpMethod.PUT, newTaskDefinition); + } + + /** + * Creates a TaskDefinition with a new object + * + * @param newTaskDefinition the object to create/update + * @return the created TaskDefinition + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskDefinition put(@Nonnull final TaskDefinition newTaskDefinition) throws ClientException { + return send(HttpMethod.PUT, newTaskDefinition); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskDefinitionRequest 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 TaskDefinitionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionRequestBuilder.java new file mode 100644 index 00000000000..7dc9761c9cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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 Task Definition Request Builder. + */ +public class TaskDefinitionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionRequestBuilder(@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 TaskDefinitionRequest instance + */ + @Nonnull + public TaskDefinitionRequest 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 TaskDefinitionRequest instance + */ + @Nonnull + public TaskDefinitionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.TaskDefinitionRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequest.java new file mode 100644 index 00000000000..b5593726c35 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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 Task Definition With Reference Request. + */ +public class TaskDefinitionWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinition.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskDefinitionWithReferenceRequest 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 TaskDefinitionWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..d628cef6614 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskDefinitionWithReferenceRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskDefinition; +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 Task Definition With Reference Request Builder. + */ +public class TaskDefinitionWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the TaskDefinition + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskDefinitionWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskDefinitionWithReferenceRequest.class, TaskDefinitionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequest.java new file mode 100644 index 00000000000..2b46899ccdb --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequest.java @@ -0,0 +1,65 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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 Task Processing Result Reference Request. + */ +public class TaskProcessingResultReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResult.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskProcessingResultReferenceRequest 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 TaskProcessingResultReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequestBuilder.java new file mode 100644 index 00000000000..a9a45af4961 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultReferenceRequestBuilder.java @@ -0,0 +1,38 @@ + +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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 Task Processing Result Reference Request Builder. + */ +public class TaskProcessingResultReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResultReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultRequest.java new file mode 100644 index 00000000000..0db5855f9b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultRequest.java @@ -0,0 +1,174 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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 Task Processing Result Request. + */ +public class TaskProcessingResultRequest extends BaseRequest { + + /** + * The request for the TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResult.class); + } + + /** + * Gets the TaskProcessingResult from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TaskProcessingResult from the service + * + * @return the TaskProcessingResult from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskProcessingResult 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 TaskProcessingResult delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this TaskProcessingResult with a source + * + * @param sourceTaskProcessingResult the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final TaskProcessingResult sourceTaskProcessingResult) { + return sendAsync(HttpMethod.PATCH, sourceTaskProcessingResult); + } + + /** + * Patches this TaskProcessingResult with a source + * + * @param sourceTaskProcessingResult the source object with updates + * @return the updated TaskProcessingResult + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskProcessingResult patch(@Nonnull final TaskProcessingResult sourceTaskProcessingResult) throws ClientException { + return send(HttpMethod.PATCH, sourceTaskProcessingResult); + } + + /** + * Creates a TaskProcessingResult with a new object + * + * @param newTaskProcessingResult the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TaskProcessingResult newTaskProcessingResult) { + return sendAsync(HttpMethod.POST, newTaskProcessingResult); + } + + /** + * Creates a TaskProcessingResult with a new object + * + * @param newTaskProcessingResult the new object to create + * @return the created TaskProcessingResult + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskProcessingResult post(@Nonnull final TaskProcessingResult newTaskProcessingResult) throws ClientException { + return send(HttpMethod.POST, newTaskProcessingResult); + } + + /** + * Creates a TaskProcessingResult with a new object + * + * @param newTaskProcessingResult the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final TaskProcessingResult newTaskProcessingResult) { + return sendAsync(HttpMethod.PUT, newTaskProcessingResult); + } + + /** + * Creates a TaskProcessingResult with a new object + * + * @param newTaskProcessingResult the object to create/update + * @return the created TaskProcessingResult + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskProcessingResult put(@Nonnull final TaskProcessingResult newTaskProcessingResult) throws ClientException { + return send(HttpMethod.PUT, newTaskProcessingResult); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskProcessingResultRequest 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 TaskProcessingResultRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultRequestBuilder.java new file mode 100644 index 00000000000..712ed43f4d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultRequestBuilder.java @@ -0,0 +1,91 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResultResumeParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Processing Result Request Builder. + */ +public class TaskProcessingResultRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultRequestBuilder(@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 TaskProcessingResultRequest instance + */ + @Nonnull + public TaskProcessingResultRequest 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 TaskProcessingResultRequest instance + */ + @Nonnull + public TaskProcessingResultRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder subject() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("subject"), getClient(), null); + } + + /** + * Gets the request builder for Task + * + * @return the TaskWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskWithReferenceRequestBuilder task() { + return new com.microsoft.graph.identitygovernance.requests.TaskWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("task"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public TaskProcessingResultResumeRequestBuilder resume(@Nonnull final TaskProcessingResultResumeParameterSet parameters) { + return new TaskProcessingResultResumeRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.resume"), getClient(), null, parameters); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultResumeRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultResumeRequest.java new file mode 100644 index 00000000000..747e30ba639 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultResumeRequest.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultResumeRequest; + +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.identitygovernance.models.TaskProcessingResultResumeParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Processing Result Resume Request. + */ +public class TaskProcessingResultResumeRequest extends BaseRequest { + /** + * The request for this TaskProcessingResultResume + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultResumeRequest(@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 TaskProcessingResultResumeParameterSet body; + /** + * Creates the TaskProcessingResultResume + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the TaskProcessingResultResume + * + * @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/identitygovernancenamespace/requests/TaskProcessingResultResumeRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultResumeRequestBuilder.java new file mode 100644 index 00000000000..83b1c7cde6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultResumeRequestBuilder.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultResumeRequest; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResultResumeParameterSet; +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 Task Processing Result Resume Request Builder. + */ +public class TaskProcessingResultResumeRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this TaskProcessingResultResume + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultResumeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private TaskProcessingResultResumeParameterSet body; + /** + * The request builder for this TaskProcessingResultResume + * + * @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 TaskProcessingResultResumeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final TaskProcessingResultResumeParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the TaskProcessingResultResumeRequest + * + * @param requestOptions the options for the request + * @return the TaskProcessingResultResumeRequest instance + */ + @Nonnull + public TaskProcessingResultResumeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the TaskProcessingResultResumeRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the TaskProcessingResultResumeRequest instance + */ + @Nonnull + public TaskProcessingResultResumeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final TaskProcessingResultResumeRequest request = new TaskProcessingResultResumeRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequest.java new file mode 100644 index 00000000000..990d7e12e37 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequest.java @@ -0,0 +1,64 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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 Task Processing Result With Reference Request. + */ +public class TaskProcessingResultWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResult.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskProcessingResultWithReferenceRequest 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 TaskProcessingResultWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..3fb375a19e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskProcessingResultWithReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskProcessingResult; +import com.microsoft.graph.identitygovernance.models.CustomTaskExtensionCallbackData; +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 Task Processing Result With Reference Request Builder. + */ +public class TaskProcessingResultWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the TaskProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskProcessingResultWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskProcessingResultWithReferenceRequest.class, TaskProcessingResultReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReferenceRequest.java new file mode 100644 index 00000000000..c4711aa3c72 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReferenceRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task Reference Request. + */ +public class TaskReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Task.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskReferenceRequest 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 TaskReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReferenceRequestBuilder.java new file mode 100644 index 00000000000..90158725ff3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReferenceRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task Reference Request Builder. + */ +public class TaskReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportRequest.java new file mode 100644 index 00000000000..d327d266569 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportRequest.java @@ -0,0 +1,174 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +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 Task Report Request. + */ +public class TaskReportRequest extends BaseRequest { + + /** + * The request for the TaskReport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReportRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskReport.class); + } + + /** + * Gets the TaskReport from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TaskReport from the service + * + * @return the TaskReport from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskReport 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 TaskReport delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this TaskReport with a source + * + * @param sourceTaskReport the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final TaskReport sourceTaskReport) { + return sendAsync(HttpMethod.PATCH, sourceTaskReport); + } + + /** + * Patches this TaskReport with a source + * + * @param sourceTaskReport the source object with updates + * @return the updated TaskReport + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskReport patch(@Nonnull final TaskReport sourceTaskReport) throws ClientException { + return send(HttpMethod.PATCH, sourceTaskReport); + } + + /** + * Creates a TaskReport with a new object + * + * @param newTaskReport the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final TaskReport newTaskReport) { + return sendAsync(HttpMethod.POST, newTaskReport); + } + + /** + * Creates a TaskReport with a new object + * + * @param newTaskReport the new object to create + * @return the created TaskReport + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskReport post(@Nonnull final TaskReport newTaskReport) throws ClientException { + return send(HttpMethod.POST, newTaskReport); + } + + /** + * Creates a TaskReport with a new object + * + * @param newTaskReport the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final TaskReport newTaskReport) { + return sendAsync(HttpMethod.PUT, newTaskReport); + } + + /** + * Creates a TaskReport with a new object + * + * @param newTaskReport the object to create/update + * @return the created TaskReport + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public TaskReport put(@Nonnull final TaskReport newTaskReport) throws ClientException { + return send(HttpMethod.PUT, newTaskReport); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskReportRequest 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 TaskReportRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportRequestBuilder.java new file mode 100644 index 00000000000..6ee64ac6050 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportRequestBuilder.java @@ -0,0 +1,100 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +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 Task Report Request Builder. + */ +public class TaskReportRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the TaskReport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReportRequestBuilder(@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 TaskReportRequest instance + */ + @Nonnull + public TaskReportRequest 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 TaskReportRequest instance + */ + @Nonnull + public TaskReportRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.TaskReportRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Task + * + * @return the TaskWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskWithReferenceRequestBuilder task() { + return new com.microsoft.graph.identitygovernance.requests.TaskWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("task"), getClient(), null); + } + + /** + * Gets the request builder for TaskDefinition + * + * @return the TaskDefinitionWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskDefinitionWithReferenceRequestBuilder taskDefinition() { + return new com.microsoft.graph.identitygovernance.requests.TaskDefinitionWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("taskDefinition"), getClient(), null); + } + /** + * Gets a request builder for the TaskProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder taskProcessingResults() { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults"), getClient(), null); + } + + /** + * Gets a request builder for the TaskProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder taskProcessingResults(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportSummaryRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportSummaryRequest.java new file mode 100644 index 00000000000..57d357c8411 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportSummaryRequest.java @@ -0,0 +1,81 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.requests.TaskReportSummaryRequest; + +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.identitygovernance.models.TaskReportSummaryParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Task Report Summary Request. + */ +public class TaskReportSummaryRequest extends BaseRequest { + /** + * The request for this TaskReportSummary + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReportSummaryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskReportSummary.class); + } + + /** + * Gets the TaskReportSummary + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TaskReportSummary + * + * @return the TaskReportSummary + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public TaskReportSummary get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskReportSummaryRequest 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 TaskReportSummaryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportSummaryRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportSummaryRequestBuilder.java new file mode 100644 index 00000000000..63a4a87eac6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskReportSummaryRequestBuilder.java @@ -0,0 +1,77 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.TaskReportSummaryRequest; +import com.microsoft.graph.identitygovernance.models.TaskReport; +import com.microsoft.graph.identitygovernance.models.TaskReportSummary; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.identitygovernance.models.TaskReportSummaryParameterSet; +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 Task Report Summary Request Builder. + */ +public class TaskReportSummaryRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this TaskReportSummary + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskReportSummaryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this TaskReportSummary + * + * @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 TaskReportSummaryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final TaskReportSummaryParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the TaskReportSummaryRequest + * + * @param requestOptions the options for the request + * @return the TaskReportSummaryRequest instance + */ + @Nonnull + public TaskReportSummaryRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the TaskReportSummaryRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the TaskReportSummaryRequest instance + */ + @Nonnull + public TaskReportSummaryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final TaskReportSummaryRequest request = new TaskReportSummaryRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskRequest.java new file mode 100644 index 00000000000..65319d6f3ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task Request. + */ +public class TaskRequest extends BaseRequest { + + /** + * The request for the Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Task.class); + } + + /** + * Gets the Task from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Task from the service + * + * @return the Task from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Task 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 Task delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Task with a source + * + * @param sourceTask the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Task sourceTask) { + return sendAsync(HttpMethod.PATCH, sourceTask); + } + + /** + * Patches this Task with a source + * + * @param sourceTask the source object with updates + * @return the updated Task + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Task patch(@Nonnull final Task sourceTask) throws ClientException { + return send(HttpMethod.PATCH, sourceTask); + } + + /** + * Creates a Task with a new object + * + * @param newTask the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Task newTask) { + return sendAsync(HttpMethod.POST, newTask); + } + + /** + * Creates a Task with a new object + * + * @param newTask the new object to create + * @return the created Task + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Task post(@Nonnull final Task newTask) throws ClientException { + return send(HttpMethod.POST, newTask); + } + + /** + * Creates a Task with a new object + * + * @param newTask the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Task newTask) { + return sendAsync(HttpMethod.PUT, newTask); + } + + /** + * Creates a Task with a new object + * + * @param newTask the object to create/update + * @return the created Task + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Task put(@Nonnull final Task newTask) throws ClientException { + return send(HttpMethod.PUT, newTask); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskRequest 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 TaskRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskRequestBuilder.java new file mode 100644 index 00000000000..ae43db9122c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task Request Builder. + */ +public class TaskRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskRequestBuilder(@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 TaskRequest instance + */ + @Nonnull + public TaskRequest 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 TaskRequest instance + */ + @Nonnull + public TaskRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.TaskRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the TaskProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder taskProcessingResults() { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults"), getClient(), null); + } + + /** + * Gets a request builder for the TaskProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder taskProcessingResults(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskWithReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskWithReferenceRequest.java new file mode 100644 index 00000000000..d99ebc24a1c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskWithReferenceRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task With Reference Request. + */ +public class TaskWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Task.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TaskWithReferenceRequest 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 TaskWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..15b257dce2c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/TaskWithReferenceRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Task; +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 Task With Reference Request Builder. + */ +public class TaskWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Task + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TaskWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TaskWithReferenceRequest.class, TaskReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultReferenceRequest.java new file mode 100644 index 00000000000..ddadb4dc6bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultReferenceRequest.java @@ -0,0 +1,91 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result Reference Request. + */ +public class UserProcessingResultReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResult.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultReferenceRequest 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 UserProcessingResultReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the UserProcessingResult + * + * @param srcUserProcessingResult the UserProcessingResult reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserProcessingResult srcUserProcessingResult) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/identityGovernance/lifecycleWorkflows/{id}/deletedItems/{id}/workflows/{id}/executionScope/" + srcUserProcessingResult.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the UserProcessingResult + * + * @param srcUserProcessingResult the UserProcessingResult reference to PUT + * @return the UserProcessingResult + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public UserProcessingResult put(@Nonnull final UserProcessingResult srcUserProcessingResult) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/identityGovernance/lifecycleWorkflows/{id}/deletedItems/{id}/workflows/{id}/executionScope/" + srcUserProcessingResult.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultReferenceRequestBuilder.java new file mode 100644 index 00000000000..86b62161522 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultReferenceRequestBuilder.java @@ -0,0 +1,38 @@ + +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result Reference Request Builder. + */ +public class UserProcessingResultReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultRequest.java new file mode 100644 index 00000000000..6b56d0bd5f1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultRequest.java @@ -0,0 +1,174 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result Request. + */ +public class UserProcessingResultRequest extends BaseRequest { + + /** + * The request for the UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResult.class); + } + + /** + * Gets the UserProcessingResult from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserProcessingResult from the service + * + * @return the UserProcessingResult from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserProcessingResult 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 UserProcessingResult delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserProcessingResult with a source + * + * @param sourceUserProcessingResult the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserProcessingResult sourceUserProcessingResult) { + return sendAsync(HttpMethod.PATCH, sourceUserProcessingResult); + } + + /** + * Patches this UserProcessingResult with a source + * + * @param sourceUserProcessingResult the source object with updates + * @return the updated UserProcessingResult + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserProcessingResult patch(@Nonnull final UserProcessingResult sourceUserProcessingResult) throws ClientException { + return send(HttpMethod.PATCH, sourceUserProcessingResult); + } + + /** + * Creates a UserProcessingResult with a new object + * + * @param newUserProcessingResult the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserProcessingResult newUserProcessingResult) { + return sendAsync(HttpMethod.POST, newUserProcessingResult); + } + + /** + * Creates a UserProcessingResult with a new object + * + * @param newUserProcessingResult the new object to create + * @return the created UserProcessingResult + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserProcessingResult post(@Nonnull final UserProcessingResult newUserProcessingResult) throws ClientException { + return send(HttpMethod.POST, newUserProcessingResult); + } + + /** + * Creates a UserProcessingResult with a new object + * + * @param newUserProcessingResult the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserProcessingResult newUserProcessingResult) { + return sendAsync(HttpMethod.PUT, newUserProcessingResult); + } + + /** + * Creates a UserProcessingResult with a new object + * + * @param newUserProcessingResult the object to create/update + * @return the created UserProcessingResult + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserProcessingResult put(@Nonnull final UserProcessingResult newUserProcessingResult) throws ClientException { + return send(HttpMethod.PUT, newUserProcessingResult); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultRequest 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 UserProcessingResultRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultRequestBuilder.java new file mode 100644 index 00000000000..f6c60ddecf0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultRequestBuilder.java @@ -0,0 +1,90 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result Request Builder. + */ +public class UserProcessingResultRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultRequestBuilder(@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 UserProcessingResultRequest instance + */ + @Nonnull + public UserProcessingResultRequest 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 UserProcessingResultRequest instance + */ + @Nonnull + public UserProcessingResultRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder subject() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("subject"), getClient(), null); + } + /** + * Gets a request builder for the TaskProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder taskProcessingResults() { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults"), getClient(), null); + } + + /** + * Gets a request builder for the TaskProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder taskProcessingResults(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskProcessingResultRequestBuilder(getRequestUrlWithAdditionalSegment("taskProcessingResults") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultSummaryRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultSummaryRequest.java new file mode 100644 index 00000000000..c03ceec1253 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultSummaryRequest.java @@ -0,0 +1,81 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultSummaryRequest; + +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.identitygovernance.models.UserProcessingResultSummaryParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Processing Result Summary Request. + */ +public class UserProcessingResultSummaryRequest extends BaseRequest { + /** + * The request for this UserProcessingResultSummary + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultSummaryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserSummary.class); + } + + /** + * Gets the UserSummary + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserSummary + * + * @return the UserSummary + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public UserSummary get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultSummaryRequest 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 UserProcessingResultSummaryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultSummaryRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultSummaryRequestBuilder.java new file mode 100644 index 00000000000..b8df7f8fa1a --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultSummaryRequestBuilder.java @@ -0,0 +1,77 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.UserProcessingResultSummaryRequest; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.identitygovernance.models.UserProcessingResultSummaryParameterSet; +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 User Processing Result Summary Request Builder. + */ +public class UserProcessingResultSummaryRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this UserProcessingResultSummary + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultSummaryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this UserProcessingResultSummary + * + * @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 UserProcessingResultSummaryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final UserProcessingResultSummaryParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the UserProcessingResultSummaryRequest + * + * @param requestOptions the options for the request + * @return the UserProcessingResultSummaryRequest instance + */ + @Nonnull + public UserProcessingResultSummaryRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the UserProcessingResultSummaryRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the UserProcessingResultSummaryRequest instance + */ + @Nonnull + public UserProcessingResultSummaryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final UserProcessingResultSummaryRequest request = new UserProcessingResultSummaryRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultWithReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultWithReferenceRequest.java new file mode 100644 index 00000000000..4ef3af4f028 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultWithReferenceRequest.java @@ -0,0 +1,64 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result With Reference Request. + */ +public class UserProcessingResultWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResult.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserProcessingResultWithReferenceRequest 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 UserProcessingResultWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..8f55af9afbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/UserProcessingResultWithReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.UserProcessingResult; +import com.microsoft.graph.identitygovernance.models.UserSummary; +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 User Processing Result With Reference Request Builder. + */ +public class UserProcessingResultWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the UserProcessingResult + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserProcessingResultWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserProcessingResultWithReferenceRequest.class, UserProcessingResultReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowActivateRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowActivateRequest.java new file mode 100644 index 00000000000..f6b0c0cab4c --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowActivateRequest.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.requests.WorkflowActivateRequest; + +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.identitygovernance.models.WorkflowActivateParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Activate Request. + */ +public class WorkflowActivateRequest extends BaseRequest { + /** + * The request for this WorkflowActivate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowActivateRequest(@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 WorkflowActivateParameterSet body; + /** + * Creates the WorkflowActivate + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the WorkflowActivate + * + * @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/identitygovernancenamespace/requests/WorkflowActivateRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowActivateRequestBuilder.java new file mode 100644 index 00000000000..be0405728bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowActivateRequestBuilder.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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.WorkflowActivateRequest; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.identitygovernance.models.WorkflowActivateParameterSet; +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 Workflow Activate Request Builder. + */ +public class WorkflowActivateRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this WorkflowActivate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowActivateRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private WorkflowActivateParameterSet body; + /** + * The request builder for this WorkflowActivate + * + * @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 WorkflowActivateRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final WorkflowActivateParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the WorkflowActivateRequest + * + * @param requestOptions the options for the request + * @return the WorkflowActivateRequest instance + */ + @Nonnull + public WorkflowActivateRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkflowActivateRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkflowActivateRequest instance + */ + @Nonnull + public WorkflowActivateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkflowActivateRequest request = new WorkflowActivateRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowBaseRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowBaseRequest.java new file mode 100644 index 00000000000..6b5e4737020 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowBaseRequest.java @@ -0,0 +1,77 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowBase; +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 Workflow Base Request. + */ +public class WorkflowBaseRequest extends BaseRequest { + + /** + * The request for the WorkflowBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public WorkflowBaseRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the WorkflowBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowBaseRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowBase.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowBaseRequest 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 WorkflowBaseRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowBaseRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowBaseRequestBuilder.java new file mode 100644 index 00000000000..675550b2918 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowBaseRequestBuilder.java @@ -0,0 +1,99 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowBase; +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 Workflow Base Request Builder. + */ +public class WorkflowBaseRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WorkflowBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowBaseRequestBuilder(@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 WorkflowBaseRequest instance + */ + @Nonnull + public WorkflowBaseRequest 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 WorkflowBaseRequest instance + */ + @Nonnull + public WorkflowBaseRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowBaseRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder createdBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("createdBy"), getClient(), null); + } + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder lastModifiedBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("lastModifiedBy"), getClient(), null); + } + /** + * Gets a request builder for the Task collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder tasks() { + return new com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("tasks"), getClient(), null); + } + + /** + * Gets a request builder for the Task item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder tasks(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder(getRequestUrlWithAdditionalSegment("tasks") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequest.java new file mode 100644 index 00000000000..16732760cd2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequest.java @@ -0,0 +1,81 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.requests.WorkflowCreateNewVersionRequest; + +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.identitygovernance.models.WorkflowCreateNewVersionParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Create New Version Request. + */ +public class WorkflowCreateNewVersionRequest extends BaseRequest { + /** + * The request for this WorkflowCreateNewVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowCreateNewVersionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Workflow.class); + } + + /** The body for the method */ + @Nullable + public WorkflowCreateNewVersionParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Workflow post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowCreateNewVersionRequest 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 WorkflowCreateNewVersionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequestBuilder.java new file mode 100644 index 00000000000..2751d44881b --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowCreateNewVersionRequestBuilder.java @@ -0,0 +1,73 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.WorkflowCreateNewVersionRequest; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.identitygovernance.models.WorkflowCreateNewVersionParameterSet; +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 Workflow Create New Version Request Builder. + */ +public class WorkflowCreateNewVersionRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this WorkflowCreateNewVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowCreateNewVersionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private WorkflowCreateNewVersionParameterSet body; + /** + * The request builder for this WorkflowCreateNewVersion + * + * @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 WorkflowCreateNewVersionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final WorkflowCreateNewVersionParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the WorkflowCreateNewVersionRequest + * + * @param requestOptions the options for the request + * @return the WorkflowCreateNewVersionRequest instance + */ + @Nonnull + public WorkflowCreateNewVersionRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkflowCreateNewVersionRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkflowCreateNewVersionRequest instance + */ + @Nonnull + public WorkflowCreateNewVersionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkflowCreateNewVersionRequest request = new WorkflowCreateNewVersionRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowReferenceRequest.java new file mode 100644 index 00000000000..19de8814bf5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowReferenceRequest.java @@ -0,0 +1,65 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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 Workflow Reference Request. + */ +public class WorkflowReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Workflow.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowReferenceRequest 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 WorkflowReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowReferenceRequestBuilder.java new file mode 100644 index 00000000000..317c2e6ccbc --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowReferenceRequestBuilder.java @@ -0,0 +1,38 @@ + +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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 Workflow Reference Request Builder. + */ +public class WorkflowReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRequest.java new file mode 100644 index 00000000000..195375dffe8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRequest.java @@ -0,0 +1,174 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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 Workflow Request. + */ +public class WorkflowRequest extends BaseRequest { + + /** + * The request for the Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Workflow.class); + } + + /** + * Gets the Workflow from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Workflow from the service + * + * @return the Workflow from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Workflow 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 Workflow delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Workflow with a source + * + * @param sourceWorkflow the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Workflow sourceWorkflow) { + return sendAsync(HttpMethod.PATCH, sourceWorkflow); + } + + /** + * Patches this Workflow with a source + * + * @param sourceWorkflow the source object with updates + * @return the updated Workflow + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Workflow patch(@Nonnull final Workflow sourceWorkflow) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkflow); + } + + /** + * Creates a Workflow with a new object + * + * @param newWorkflow the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Workflow newWorkflow) { + return sendAsync(HttpMethod.POST, newWorkflow); + } + + /** + * Creates a Workflow with a new object + * + * @param newWorkflow the new object to create + * @return the created Workflow + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Workflow post(@Nonnull final Workflow newWorkflow) throws ClientException { + return send(HttpMethod.POST, newWorkflow); + } + + /** + * Creates a Workflow with a new object + * + * @param newWorkflow the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Workflow newWorkflow) { + return sendAsync(HttpMethod.PUT, newWorkflow); + } + + /** + * Creates a Workflow with a new object + * + * @param newWorkflow the object to create/update + * @return the created Workflow + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Workflow put(@Nonnull final Workflow newWorkflow) throws ClientException { + return send(HttpMethod.PUT, newWorkflow); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowRequest 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 WorkflowRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRequestBuilder.java new file mode 100644 index 00000000000..3c746dc57fa --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRequestBuilder.java @@ -0,0 +1,231 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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; +import com.microsoft.graph.identitygovernance.models.WorkflowActivateParameterSet; +import com.microsoft.graph.identitygovernance.models.WorkflowCreateNewVersionParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Request Builder. + */ +public class WorkflowRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowRequestBuilder(@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 WorkflowRequest instance + */ + @Nonnull + public WorkflowRequest 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 WorkflowRequest instance + */ + @Nonnull + public WorkflowRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder createdBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("createdBy"), getClient(), null); + } + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder lastModifiedBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("lastModifiedBy"), getClient(), null); + } + /** + * Gets a request builder for the Task collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder tasks() { + return new com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("tasks"), getClient(), null); + } + + /** + * Gets a request builder for the Task item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder tasks(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder(getRequestUrlWithAdditionalSegment("tasks") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequestBuilder executionScope() { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("executionScope"), getClient(), null); + } + + /** + * Gets a request builder for the UserProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequestBuilder executionScope(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("executionScope") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the Run collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.RunCollectionRequestBuilder runs() { + return new com.microsoft.graph.identitygovernance.requests.RunCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("runs"), getClient(), null); + } + + /** + * Gets a request builder for the Run item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.RunRequestBuilder runs(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.RunRequestBuilder(getRequestUrlWithAdditionalSegment("runs") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the TaskReport collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequestBuilder taskReports() { + return new com.microsoft.graph.identitygovernance.requests.TaskReportCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("taskReports"), getClient(), null); + } + + /** + * Gets a request builder for the TaskReport item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskReportRequestBuilder taskReports(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskReportRequestBuilder(getRequestUrlWithAdditionalSegment("taskReports") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserProcessingResult collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder userProcessingResults() { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userProcessingResults"), getClient(), null); + } + + /** + * Gets a request builder for the UserProcessingResult item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.UserProcessingResultRequestBuilder userProcessingResults(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.UserProcessingResultRequestBuilder(getRequestUrlWithAdditionalSegment("userProcessingResults") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the WorkflowVersion collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequestBuilder versions() { + return new com.microsoft.graph.identitygovernance.requests.WorkflowVersionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("versions"), getClient(), null); + } + + /** + * Gets a request builder for the WorkflowVersion item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowVersionRequestBuilder versions(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowVersionRequestBuilder(getRequestUrlWithAdditionalSegment("versions") + "/" + id, getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public WorkflowActivateRequestBuilder activate(@Nonnull final WorkflowActivateParameterSet parameters) { + return new WorkflowActivateRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.activate"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public WorkflowCreateNewVersionRequestBuilder createNewVersion(@Nonnull final WorkflowCreateNewVersionParameterSet parameters) { + return new WorkflowCreateNewVersionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.createNewVersion"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public WorkflowRestoreRequestBuilder restore() { + return new WorkflowRestoreRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.identityGovernance.restore"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRestoreRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRestoreRequest.java new file mode 100644 index 00000000000..c01bcb05277 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRestoreRequest.java @@ -0,0 +1,77 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.identitygovernance.requests.WorkflowRestoreRequest; + +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; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workflow Restore Request. + */ +public class WorkflowRestoreRequest extends BaseRequest { + /** + * The request for this WorkflowRestore + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowRestoreRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Workflow.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Workflow post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowRestoreRequest 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 WorkflowRestoreRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRestoreRequestBuilder.java new file mode 100644 index 00000000000..651db7ffd1f --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowRestoreRequestBuilder.java @@ -0,0 +1,58 @@ +// 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.identitygovernance.requests; +import com.microsoft.graph.identitygovernance.requests.WorkflowRestoreRequest; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.http.BaseActionRequestBuilder; +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 Workflow Restore Request Builder. + */ +public class WorkflowRestoreRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this WorkflowRestore + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowRestoreRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the WorkflowRestoreRequest + * + * @param requestOptions the options for the request + * @return the WorkflowRestoreRequest instance + */ + @Nonnull + public WorkflowRestoreRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the WorkflowRestoreRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the WorkflowRestoreRequest instance + */ + @Nonnull + public WorkflowRestoreRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final WorkflowRestoreRequest request = new WorkflowRestoreRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowTemplateRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowTemplateRequest.java new file mode 100644 index 00000000000..17ddec960c4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowTemplateRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +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 Workflow Template Request. + */ +public class WorkflowTemplateRequest extends BaseRequest { + + /** + * The request for the WorkflowTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowTemplateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowTemplate.class); + } + + /** + * Gets the WorkflowTemplate from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WorkflowTemplate from the service + * + * @return the WorkflowTemplate from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowTemplate 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 WorkflowTemplate delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WorkflowTemplate with a source + * + * @param sourceWorkflowTemplate the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WorkflowTemplate sourceWorkflowTemplate) { + return sendAsync(HttpMethod.PATCH, sourceWorkflowTemplate); + } + + /** + * Patches this WorkflowTemplate with a source + * + * @param sourceWorkflowTemplate the source object with updates + * @return the updated WorkflowTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowTemplate patch(@Nonnull final WorkflowTemplate sourceWorkflowTemplate) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkflowTemplate); + } + + /** + * Creates a WorkflowTemplate with a new object + * + * @param newWorkflowTemplate the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkflowTemplate newWorkflowTemplate) { + return sendAsync(HttpMethod.POST, newWorkflowTemplate); + } + + /** + * Creates a WorkflowTemplate with a new object + * + * @param newWorkflowTemplate the new object to create + * @return the created WorkflowTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowTemplate post(@Nonnull final WorkflowTemplate newWorkflowTemplate) throws ClientException { + return send(HttpMethod.POST, newWorkflowTemplate); + } + + /** + * Creates a WorkflowTemplate with a new object + * + * @param newWorkflowTemplate the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WorkflowTemplate newWorkflowTemplate) { + return sendAsync(HttpMethod.PUT, newWorkflowTemplate); + } + + /** + * Creates a WorkflowTemplate with a new object + * + * @param newWorkflowTemplate the object to create/update + * @return the created WorkflowTemplate + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowTemplate put(@Nonnull final WorkflowTemplate newWorkflowTemplate) throws ClientException { + return send(HttpMethod.PUT, newWorkflowTemplate); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowTemplateRequest 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 WorkflowTemplateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowTemplateRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowTemplateRequestBuilder.java new file mode 100644 index 00000000000..ac0f1c83bbc --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowTemplateRequestBuilder.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowTemplate; +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 Workflow Template Request Builder. + */ +public class WorkflowTemplateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WorkflowTemplate + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowTemplateRequestBuilder(@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 WorkflowTemplateRequest instance + */ + @Nonnull + public WorkflowTemplateRequest 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 WorkflowTemplateRequest instance + */ + @Nonnull + public WorkflowTemplateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowTemplateRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the Task collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder tasks() { + return new com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("tasks"), getClient(), null); + } + + /** + * Gets a request builder for the Task item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder tasks(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder(getRequestUrlWithAdditionalSegment("tasks") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowVersionRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowVersionRequest.java new file mode 100644 index 00000000000..be3dbf04766 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowVersionRequest.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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowVersion; +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 Workflow Version Request. + */ +public class WorkflowVersionRequest extends BaseRequest { + + /** + * The request for the WorkflowVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowVersionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowVersion.class); + } + + /** + * Gets the WorkflowVersion from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WorkflowVersion from the service + * + * @return the WorkflowVersion from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowVersion 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 WorkflowVersion delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WorkflowVersion with a source + * + * @param sourceWorkflowVersion the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WorkflowVersion sourceWorkflowVersion) { + return sendAsync(HttpMethod.PATCH, sourceWorkflowVersion); + } + + /** + * Patches this WorkflowVersion with a source + * + * @param sourceWorkflowVersion the source object with updates + * @return the updated WorkflowVersion + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowVersion patch(@Nonnull final WorkflowVersion sourceWorkflowVersion) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkflowVersion); + } + + /** + * Creates a WorkflowVersion with a new object + * + * @param newWorkflowVersion the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WorkflowVersion newWorkflowVersion) { + return sendAsync(HttpMethod.POST, newWorkflowVersion); + } + + /** + * Creates a WorkflowVersion with a new object + * + * @param newWorkflowVersion the new object to create + * @return the created WorkflowVersion + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowVersion post(@Nonnull final WorkflowVersion newWorkflowVersion) throws ClientException { + return send(HttpMethod.POST, newWorkflowVersion); + } + + /** + * Creates a WorkflowVersion with a new object + * + * @param newWorkflowVersion the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WorkflowVersion newWorkflowVersion) { + return sendAsync(HttpMethod.PUT, newWorkflowVersion); + } + + /** + * Creates a WorkflowVersion with a new object + * + * @param newWorkflowVersion the object to create/update + * @return the created WorkflowVersion + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WorkflowVersion put(@Nonnull final WorkflowVersion newWorkflowVersion) throws ClientException { + return send(HttpMethod.PUT, newWorkflowVersion); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowVersionRequest 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 WorkflowVersionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowVersionRequestBuilder.java new file mode 100644 index 00000000000..7e34c114d43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowVersionRequestBuilder.java @@ -0,0 +1,99 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.WorkflowVersion; +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 Workflow Version Request Builder. + */ +public class WorkflowVersionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WorkflowVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowVersionRequestBuilder(@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 WorkflowVersionRequest instance + */ + @Nonnull + public WorkflowVersionRequest 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 WorkflowVersionRequest instance + */ + @Nonnull + public WorkflowVersionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowVersionRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder createdBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("createdBy"), getClient(), null); + } + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder lastModifiedBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("lastModifiedBy"), getClient(), null); + } + /** + * Gets a request builder for the Task collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder tasks() { + return new com.microsoft.graph.identitygovernance.requests.TaskCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("tasks"), getClient(), null); + } + + /** + * Gets a request builder for the Task item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder tasks(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.TaskRequestBuilder(getRequestUrlWithAdditionalSegment("tasks") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowWithReferenceRequest.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowWithReferenceRequest.java new file mode 100644 index 00000000000..1bbef69d4d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowWithReferenceRequest.java @@ -0,0 +1,64 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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 Workflow With Reference Request. + */ +public class WorkflowWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Workflow.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WorkflowWithReferenceRequest 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 WorkflowWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..73e0f74cb2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/identitygovernancenamespace/requests/WorkflowWithReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// 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.identitygovernance.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.identitygovernance.models.Workflow; +import com.microsoft.graph.models.User; +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 Workflow With Reference Request Builder. + */ +public class WorkflowWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Workflow + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkflowWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkflowWithReferenceRequest.class, WorkflowReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 4cca924bbb3..d90327e858c 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.62.0"; + public static final String VERSION_NAME = "5.63.0"; } @@ -93,5 +93,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/AccessPackageAutomaticRequestSettings.java b/src/main/java/com/microsoft/graph/models/AccessPackageAutomaticRequestSettings.java index 1ca20a90b0d..695f23637e5 100644 --- a/src/main/java/com/microsoft/graph/models/AccessPackageAutomaticRequestSettings.java +++ b/src/main/java/com/microsoft/graph/models/AccessPackageAutomaticRequestSettings.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Grace Period Before Access Removal. - * + * The duration for which access must be retained before the target's access is revoked once they leave the allowed target scope. */ @SerializedName(value = "gracePeriodBeforeAccessRemoval", alternate = {"GracePeriodBeforeAccessRemoval"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Remove Access When Target Leaves Allowed Targets. - * + * Indicates whether automatic assignment must be removed for targets who move out of the allowed target scope. */ @SerializedName(value = "removeAccessWhenTargetLeavesAllowedTargets", alternate = {"RemoveAccessWhenTargetLeavesAllowedTargets"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AccessReviewInstanceDecisionItem.java b/src/main/java/com/microsoft/graph/models/AccessReviewInstanceDecisionItem.java index dad4f8696c2..9b256939eb5 100644 --- a/src/main/java/com/microsoft/graph/models/AccessReviewInstanceDecisionItem.java +++ b/src/main/java/com/microsoft/graph/models/AccessReviewInstanceDecisionItem.java @@ -8,10 +8,12 @@ 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.UserIdentity; import com.microsoft.graph.models.Identity; import com.microsoft.graph.models.AccessReviewInstanceDecisionItemResource; import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.GovernanceInsightCollectionPage; import com.google.gson.JsonObject; @@ -145,6 +147,15 @@ public class AccessReviewInstanceDecisionItem extends Entity implements IJsonBac @Nullable public java.time.OffsetDateTime reviewedDateTime; + /** + * The Insights. + * Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + */ + @SerializedName(value = "insights", alternate = {"Insights"}) + @Expose + @Nullable + public com.microsoft.graph.requests.GovernanceInsightCollectionPage insights; + /** * Sets the raw JSON object @@ -154,5 +165,9 @@ public class AccessReviewInstanceDecisionItem extends Entity implements IJsonBac */ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + if (json.has("insights")) { + insights = serializer.deserializeObject(json.get("insights"), com.microsoft.graph.requests.GovernanceInsightCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/AccessReviewRecommendationInsightSetting.java b/src/main/java/com/microsoft/graph/models/AccessReviewRecommendationInsightSetting.java new file mode 100644 index 00000000000..56d0c261d21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AccessReviewRecommendationInsightSetting.java @@ -0,0 +1,50 @@ +// 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.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 Review Recommendation Insight Setting. + */ +public class AccessReviewRecommendationInsightSetting 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; + } + + + /** + * 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/AccessReviewScheduleSettings.java b/src/main/java/com/microsoft/graph/models/AccessReviewScheduleSettings.java index a8f48c59152..69952497bdf 100644 --- a/src/main/java/com/microsoft/graph/models/AccessReviewScheduleSettings.java +++ b/src/main/java/com/microsoft/graph/models/AccessReviewScheduleSettings.java @@ -10,6 +10,7 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.AccessReviewApplyAction; +import com.microsoft.graph.models.AccessReviewRecommendationInsightSetting; import com.microsoft.graph.models.PatternedRecurrence; @@ -112,6 +113,24 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public Boolean mailNotificationsEnabled; + /** + * The Recommendation Insight Settings. + * Optional. Describes the types of insights that aid reviewers to make access review decisions. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationInsightSettings setting will be used instead of the value of this property. + */ + @SerializedName(value = "recommendationInsightSettings", alternate = {"RecommendationInsightSettings"}) + @Expose + @Nullable + public java.util.List recommendationInsightSettings; + + /** + * The Recommendation Look Back Duration. + * Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. + */ + @SerializedName(value = "recommendationLookBackDuration", alternate = {"RecommendationLookBackDuration"}) + @Expose + @Nullable + public javax.xml.datatype.Duration recommendationLookBackDuration; + /** * The Recommendations Enabled. * Indicates whether decision recommendations are enabled or disabled. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationsEnabled setting will be used instead of the value of this property. diff --git a/src/main/java/com/microsoft/graph/models/AccessReviewStageSettings.java b/src/main/java/com/microsoft/graph/models/AccessReviewStageSettings.java index 2fa680a7e73..56432464404 100644 --- a/src/main/java/com/microsoft/graph/models/AccessReviewStageSettings.java +++ b/src/main/java/com/microsoft/graph/models/AccessReviewStageSettings.java @@ -10,6 +10,7 @@ import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.AccessReviewReviewerScope; +import com.microsoft.graph.models.AccessReviewRecommendationInsightSetting; import com.google.gson.JsonObject; @@ -75,6 +76,15 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public java.util.List fallbackReviewers; + /** + * The Recommendation Insight Settings. + * + */ + @SerializedName(value = "recommendationInsightSettings", alternate = {"RecommendationInsightSettings"}) + @Expose + @Nullable + public java.util.List recommendationInsightSettings; + /** * The Recommendations Enabled. * Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property will override override the corresponding setting on the accessReviewScheduleDefinition object. diff --git a/src/main/java/com/microsoft/graph/models/AlternativeSecurityId.java b/src/main/java/com/microsoft/graph/models/AlternativeSecurityId.java index 27b7c0de7fc..41a3d81f6eb 100644 --- a/src/main/java/com/microsoft/graph/models/AlternativeSecurityId.java +++ b/src/main/java/com/microsoft/graph/models/AlternativeSecurityId.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Identity Provider. - * For internal use only + * For internal use only. */ @SerializedName(value = "identityProvider", alternate = {"IdentityProvider"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * For internal use only + * For internal use only. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * For internal use only + * For internal use only. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/AppLogCollectionDownloadDetails.java b/src/main/java/com/microsoft/graph/models/AppLogCollectionDownloadDetails.java new file mode 100644 index 00000000000..4f13913a491 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AppLogCollectionDownloadDetails.java @@ -0,0 +1,78 @@ +// 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.AppLogDecryptionAlgorithm; + + +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 App Log Collection Download Details. + */ +public class AppLogCollectionDownloadDetails 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 App Log Decryption Algorithm. + * Decryption algorithm for Content. Default is ASE256. Possible values are: aes256, unknownFutureValue. + */ + @SerializedName(value = "appLogDecryptionAlgorithm", alternate = {"AppLogDecryptionAlgorithm"}) + @Expose + @Nullable + public AppLogDecryptionAlgorithm appLogDecryptionAlgorithm; + + /** + * The Decryption Key. + * Decryption key that used to decrypt the log. + */ + @SerializedName(value = "decryptionKey", alternate = {"DecryptionKey"}) + @Expose + @Nullable + public String decryptionKey; + + /** + * The Download Url. + * Download SAS (Shared Access Signature) Url for completed app log request. + */ + @SerializedName(value = "downloadUrl", alternate = {"DownloadUrl"}) + @Expose + @Nullable + public String downloadUrl; + + + /** + * 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/AppLogCollectionRequest.java b/src/main/java/com/microsoft/graph/models/AppLogCollectionRequest.java new file mode 100644 index 00000000000..a90c343a6de --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AppLogCollectionRequest.java @@ -0,0 +1,76 @@ +// 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.AppLogUploadState; +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 App Log Collection Request. + */ +public class AppLogCollectionRequest extends Entity implements IJsonBackedObject { + + + /** + * The Completed Date Time. + * Time at which the upload log request reached a completed state if not completed yet NULL will be returned. + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Custom Log Folders. + * List of log folders. + */ + @SerializedName(value = "customLogFolders", alternate = {"CustomLogFolders"}) + @Expose + @Nullable + public java.util.List customLogFolders; + + /** + * The Error Message. + * Indicates error message if any during the upload process. + */ + @SerializedName(value = "errorMessage", alternate = {"ErrorMessage"}) + @Expose + @Nullable + public String errorMessage; + + /** + * The Status. + * 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 + @Nullable + public AppLogUploadState 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/AppLogCollectionRequestCreateDownloadUrlParameterSet.java b/src/main/java/com/microsoft/graph/models/AppLogCollectionRequestCreateDownloadUrlParameterSet.java new file mode 100644 index 00000000000..1ce6799bb1b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AppLogCollectionRequestCreateDownloadUrlParameterSet.java @@ -0,0 +1,69 @@ +// 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.AppLogCollectionDownloadDetails; +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 App Log Collection Request Create Download Url Parameter Set. + */ +public class AppLogCollectionRequestCreateDownloadUrlParameterSet { + + /** + * Instiaciates a new AppLogCollectionRequestCreateDownloadUrlParameterSet + */ + public AppLogCollectionRequestCreateDownloadUrlParameterSet() {} + /** + * Instiaciates a new AppLogCollectionRequestCreateDownloadUrlParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected AppLogCollectionRequestCreateDownloadUrlParameterSet(@Nonnull final AppLogCollectionRequestCreateDownloadUrlParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static AppLogCollectionRequestCreateDownloadUrlParameterSetBuilder newBuilder() { + return new AppLogCollectionRequestCreateDownloadUrlParameterSetBuilder(); + } + /** + * Fluent builder for the AppLogCollectionRequestCreateDownloadUrlParameterSet + */ + public static final class AppLogCollectionRequestCreateDownloadUrlParameterSetBuilder { + /** + * Instanciates a new AppLogCollectionRequestCreateDownloadUrlParameterSetBuilder + */ + @Nullable + protected AppLogCollectionRequestCreateDownloadUrlParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public AppLogCollectionRequestCreateDownloadUrlParameterSet build() { + return new AppLogCollectionRequestCreateDownloadUrlParameterSet(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<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/AppLogDecryptionAlgorithm.java b/src/main/java/com/microsoft/graph/models/AppLogDecryptionAlgorithm.java new file mode 100644 index 00000000000..303d8235b4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AppLogDecryptionAlgorithm.java @@ -0,0 +1,26 @@ +// 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 App Log Decryption Algorithm. +*/ +public enum AppLogDecryptionAlgorithm +{ + /** + * aes256 + */ + AES256, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AppLogDecryptionAlgorithm values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AppLogUploadState.java b/src/main/java/com/microsoft/graph/models/AppLogUploadState.java new file mode 100644 index 00000000000..730d7ffba05 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AppLogUploadState.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.models; + + +/** + * The Enum App Log Upload State. +*/ +public enum AppLogUploadState +{ + /** + * pending + */ + PENDING, + /** + * completed + */ + COMPLETED, + /** + * failed + */ + FAILED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AppLogUploadState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AssignmentType.java b/src/main/java/com/microsoft/graph/models/AssignmentType.java new file mode 100644 index 00000000000..971315c4d08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AssignmentType.java @@ -0,0 +1,30 @@ +// 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 Assignment Type. +*/ +public enum AssignmentType +{ + /** + * required + */ + REQUIRED, + /** + * recommended + */ + RECOMMENDED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AssignmentType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AuthenticationMethodFeature.java b/src/main/java/com/microsoft/graph/models/AuthenticationMethodFeature.java new file mode 100644 index 00000000000..34f63b82c4e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AuthenticationMethodFeature.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 Authentication Method Feature. +*/ +public enum AuthenticationMethodFeature +{ + /** + * sspr Registered + */ + SSPR_REGISTERED, + /** + * sspr Enabled + */ + SSPR_ENABLED, + /** + * sspr Capable + */ + SSPR_CAPABLE, + /** + * passwordless Capable + */ + PASSWORDLESS_CAPABLE, + /** + * mfa Capable + */ + MFA_CAPABLE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AuthenticationMethodFeature values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java new file mode 100644 index 00000000000..a19d60ead0a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRoot.java @@ -0,0 +1,53 @@ +// 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.UserRegistrationDetailsCollectionPage; + + +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 Authentication Methods Root. + */ +public class AuthenticationMethodsRoot extends Entity implements IJsonBackedObject { + + + /** + * The User Registration Details. + * + */ + @SerializedName(value = "userRegistrationDetails", alternate = {"UserRegistrationDetails"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserRegistrationDetailsCollectionPage userRegistrationDetails; + + + /** + * 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("userRegistrationDetails")) { + userRegistrationDetails = serializer.deserializeObject(json.get("userRegistrationDetails"), com.microsoft.graph.requests.UserRegistrationDetailsCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet.java b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet.java new file mode 100644 index 00000000000..988f40d9a85 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet.java @@ -0,0 +1,127 @@ +// 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.UserRegistrationFeatureSummary; +import com.microsoft.graph.models.IncludedUserTypes; +import com.microsoft.graph.models.IncludedUserRoles; +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 Authentication Methods Root Users Registered By Feature Parameter Set. + */ +public class AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet { + /** + * The included User Types. + * + */ + @SerializedName(value = "includedUserTypes", alternate = {"IncludedUserTypes"}) + @Expose + @Nullable + public IncludedUserTypes includedUserTypes; + + /** + * The included User Roles. + * + */ + @SerializedName(value = "includedUserRoles", alternate = {"IncludedUserRoles"}) + @Expose + @Nullable + public IncludedUserRoles includedUserRoles; + + + /** + * Instiaciates a new AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet + */ + public AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet() {} + /** + * Instiaciates a new AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet(@Nonnull final AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder builder) { + this.includedUserTypes = builder.includedUserTypes; + this.includedUserRoles = builder.includedUserRoles; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder newBuilder() { + return new AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder(); + } + /** + * Fluent builder for the AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet + */ + public static final class AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder { + /** + * The includedUserTypes parameter value + */ + @Nullable + protected IncludedUserTypes includedUserTypes; + /** + * Sets the IncludedUserTypes + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder withIncludedUserTypes(@Nullable final IncludedUserTypes val) { + this.includedUserTypes = val; + return this; + } + /** + * The includedUserRoles parameter value + */ + @Nullable + protected IncludedUserRoles includedUserRoles; + /** + * Sets the IncludedUserRoles + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder withIncludedUserRoles(@Nullable final IncludedUserRoles val) { + this.includedUserRoles = val; + return this; + } + /** + * Instanciates a new AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder + */ + @Nullable + protected AuthenticationMethodsRootUsersRegisteredByFeatureParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet build() { + return new AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet(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.includedUserTypes != null) { + result.add(new com.microsoft.graph.options.FunctionOption("includedUserTypes", includedUserTypes)); + } + if(this.includedUserRoles != null) { + result.add(new com.microsoft.graph.options.FunctionOption("includedUserRoles", includedUserRoles)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRootUsersRegisteredByMethodParameterSet.java b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRootUsersRegisteredByMethodParameterSet.java new file mode 100644 index 00000000000..6063e64bc18 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AuthenticationMethodsRootUsersRegisteredByMethodParameterSet.java @@ -0,0 +1,127 @@ +// 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.UserRegistrationMethodSummary; +import com.microsoft.graph.models.IncludedUserTypes; +import com.microsoft.graph.models.IncludedUserRoles; +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 Authentication Methods Root Users Registered By Method Parameter Set. + */ +public class AuthenticationMethodsRootUsersRegisteredByMethodParameterSet { + /** + * The included User Types. + * + */ + @SerializedName(value = "includedUserTypes", alternate = {"IncludedUserTypes"}) + @Expose + @Nullable + public IncludedUserTypes includedUserTypes; + + /** + * The included User Roles. + * + */ + @SerializedName(value = "includedUserRoles", alternate = {"IncludedUserRoles"}) + @Expose + @Nullable + public IncludedUserRoles includedUserRoles; + + + /** + * Instiaciates a new AuthenticationMethodsRootUsersRegisteredByMethodParameterSet + */ + public AuthenticationMethodsRootUsersRegisteredByMethodParameterSet() {} + /** + * Instiaciates a new AuthenticationMethodsRootUsersRegisteredByMethodParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected AuthenticationMethodsRootUsersRegisteredByMethodParameterSet(@Nonnull final AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder builder) { + this.includedUserTypes = builder.includedUserTypes; + this.includedUserRoles = builder.includedUserRoles; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder newBuilder() { + return new AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder(); + } + /** + * Fluent builder for the AuthenticationMethodsRootUsersRegisteredByMethodParameterSet + */ + public static final class AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder { + /** + * The includedUserTypes parameter value + */ + @Nullable + protected IncludedUserTypes includedUserTypes; + /** + * Sets the IncludedUserTypes + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder withIncludedUserTypes(@Nullable final IncludedUserTypes val) { + this.includedUserTypes = val; + return this; + } + /** + * The includedUserRoles parameter value + */ + @Nullable + protected IncludedUserRoles includedUserRoles; + /** + * Sets the IncludedUserRoles + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder withIncludedUserRoles(@Nullable final IncludedUserRoles val) { + this.includedUserRoles = val; + return this; + } + /** + * Instanciates a new AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder + */ + @Nullable + protected AuthenticationMethodsRootUsersRegisteredByMethodParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodParameterSet build() { + return new AuthenticationMethodsRootUsersRegisteredByMethodParameterSet(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.includedUserTypes != null) { + result.add(new com.microsoft.graph.options.FunctionOption("includedUserTypes", includedUserTypes)); + } + if(this.includedUserRoles != null) { + result.add(new com.microsoft.graph.options.FunctionOption("includedUserRoles", includedUserRoles)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/AzureAdPopTokenAuthentication.java b/src/main/java/com/microsoft/graph/models/AzureAdPopTokenAuthentication.java new file mode 100644 index 00000000000..f0a24231c21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AzureAdPopTokenAuthentication.java @@ -0,0 +1,38 @@ +// 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.CustomExtensionAuthenticationConfiguration; + + +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 Azure Ad Pop Token Authentication. + */ +public class AzureAdPopTokenAuthentication extends CustomExtensionAuthenticationConfiguration implements IJsonBackedObject { + + + + /** + * 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/CalculatedColumn.java b/src/main/java/com/microsoft/graph/models/CalculatedColumn.java index 4b353b2ca29..332f4995fd1 100644 --- a/src/main/java/com/microsoft/graph/models/CalculatedColumn.java +++ b/src/main/java/com/microsoft/graph/models/CalculatedColumn.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Format. - * For dateTime output types, the format of the value. Must be one of dateOnly or dateTime. + * For dateTime output types, the format of the value. Possible values are: dateOnly or dateTime. */ @SerializedName(value = "format", alternate = {"Format"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Output Type. - * The output type used to format values in this column. Must be one of boolean, currency, dateTime, number, or text. + * The output type used to format values in this column. Possible values are: boolean, currency, dateTime, number, or text. */ @SerializedName(value = "outputType", alternate = {"OutputType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ChangeNotificationCollection.java b/src/main/java/com/microsoft/graph/models/ChangeNotificationCollection.java index a63ce486b27..c0a914bcc1a 100644 --- a/src/main/java/com/microsoft/graph/models/ChangeNotificationCollection.java +++ b/src/main/java/com/microsoft/graph/models/ChangeNotificationCollection.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Validation Tokens. - * Contains an array of JWT tokens generated by Microsoft Graph for the application to validate the origin of the notifications. Microsoft Graph generates a single token for each distinct app and tenant pair for an item if it exists in the value array. Keep in mind that notifications can contain a mix of items for various apps and tenants that subscribed using the same notification URL. Only provided for change notifications with resource data. Optional. + * Contains an array of JSON web tokens (JWT) generated by Microsoft Graph for the application to validate the origin of the notifications. Microsoft Graph generates a single token for each distinct app and tenant pair for an item if it exists in the value array. Keep in mind that notifications can contain a mix of items for various apps and tenants that subscribed using the same notification URL. Only provided for change notifications with resource data. Optional. */ @SerializedName(value = "validationTokens", alternate = {"ValidationTokens"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ContentTypeInfo.java b/src/main/java/com/microsoft/graph/models/ContentTypeInfo.java index 7f50c32b897..66ba7a1bc11 100644 --- a/src/main/java/com/microsoft/graph/models/ContentTypeInfo.java +++ b/src/main/java/com/microsoft/graph/models/ContentTypeInfo.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Id. - * The id of the content type. + * The ID of the content type. */ @SerializedName(value = "id", alternate = {"Id"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ContentTypeOrder.java b/src/main/java/com/microsoft/graph/models/ContentTypeOrder.java index 06f233099c8..884f79eab3b 100644 --- a/src/main/java/com/microsoft/graph/models/ContentTypeOrder.java +++ b/src/main/java/com/microsoft/graph/models/ContentTypeOrder.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Default. - * Whether this is the default Content Type + * Indicates whether this is the default content type */ @SerializedName(value = "default", alternate = {"Default"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Position. - * Specifies the position in which the Content Type appears in the selection UI. + * Specifies the position in which the content type appears in the selection UI. */ @SerializedName(value = "position", alternate = {"Position"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/CourseStatus.java b/src/main/java/com/microsoft/graph/models/CourseStatus.java new file mode 100644 index 00000000000..23b7b285964 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CourseStatus.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.models; + + +/** + * The Enum Course Status. +*/ +public enum CourseStatus +{ + /** + * not Started + */ + NOT_STARTED, + /** + * in Progress + */ + IN_PROGRESS, + /** + * completed + */ + COMPLETED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For CourseStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java b/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java new file mode 100644 index 00000000000..bd4fe08bd34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomCalloutExtension.java @@ -0,0 +1,86 @@ +// 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.CustomExtensionAuthenticationConfiguration; +import com.microsoft.graph.models.CustomExtensionClientConfiguration; +import com.microsoft.graph.models.CustomExtensionEndpointConfiguration; +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 Callout Extension. + */ +public class CustomCalloutExtension extends Entity implements IJsonBackedObject { + + + /** + * The Authentication Configuration. + * Configuration for securing the API call to the logic app. For example, using OAuth client credentials flow. + */ + @SerializedName(value = "authenticationConfiguration", alternate = {"AuthenticationConfiguration"}) + @Expose + @Nullable + public CustomExtensionAuthenticationConfiguration authenticationConfiguration; + + /** + * The Client Configuration. + * HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. + */ + @SerializedName(value = "clientConfiguration", alternate = {"ClientConfiguration"}) + @Expose + @Nullable + public CustomExtensionClientConfiguration clientConfiguration; + + /** + * The Description. + * Description for the customCalloutExtension object. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Display Name. + * Display name for the customCalloutExtension object. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Endpoint Configuration. + * The type and details for configuring the endpoint to call the logic app's workflow. + */ + @SerializedName(value = "endpointConfiguration", alternate = {"EndpointConfiguration"}) + @Expose + @Nullable + public CustomExtensionEndpointConfiguration endpointConfiguration; + + + /** + * 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/CustomExtensionAuthenticationConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionAuthenticationConfiguration.java new file mode 100644 index 00000000000..454f52c7975 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionAuthenticationConfiguration.java @@ -0,0 +1,50 @@ +// 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.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 Authentication Configuration. + */ +public class CustomExtensionAuthenticationConfiguration 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; + } + + + /** + * 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/CustomExtensionCallbackConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionCallbackConfiguration.java new file mode 100644 index 00000000000..3dfbda368dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionCallbackConfiguration.java @@ -0,0 +1,59 @@ +// 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.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 Callback Configuration. + */ +public class CustomExtensionCallbackConfiguration 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 Timeout Duration. + * The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. + */ + @SerializedName(value = "timeoutDuration", alternate = {"TimeoutDuration"}) + @Expose + @Nullable + public javax.xml.datatype.Duration timeoutDuration; + + + /** + * 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/CustomExtensionCalloutRequest.java b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutRequest.java new file mode 100644 index 00000000000..f7ec07c2535 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutRequest.java @@ -0,0 +1,78 @@ +// 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.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 Custom Extension Callout Request. + */ +public class CustomExtensionCalloutRequest 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 Data. + * Contains the data that will be provided to the external system. + */ + @SerializedName(value = "data", alternate = {"Data"}) + @Expose + @Nullable + public CustomExtensionData data; + + /** + * The Source. + * Identifies the source system or event context related to the callout request. + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public String source; + + /** + * The Type. + * Describes the type of event related to the callout request. + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public String type; + + + /** + * 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/CustomExtensionCalloutResponse.java b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutResponse.java new file mode 100644 index 00000000000..8e0c0416098 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionCalloutResponse.java @@ -0,0 +1,78 @@ +// 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.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 Custom Extension Callout Response. + */ +public class CustomExtensionCalloutResponse 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 Data. + * Contains the data the external system provides to the custom extension endpoint. + */ + @SerializedName(value = "data", alternate = {"Data"}) + @Expose + @Nullable + public CustomExtensionData data; + + /** + * The Source. + * Identifies the external system or event context related to the response. + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public String source; + + /** + * The Type. + * Describes the type of event related to the response. + */ + @SerializedName(value = "type", alternate = {"Type"}) + @Expose + @Nullable + public String type; + + + /** + * 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/CustomExtensionClientConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java new file mode 100644 index 00000000000..35926196f66 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionClientConfiguration.java @@ -0,0 +1,59 @@ +// 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.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 Client Configuration. + */ +public class CustomExtensionClientConfiguration 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 Timeout In Milliseconds. + * The max duration in milliseconds that Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. + */ + @SerializedName(value = "timeoutInMilliseconds", alternate = {"TimeoutInMilliseconds"}) + @Expose + @Nullable + public Integer timeoutInMilliseconds; + + + /** + * 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/CustomExtensionData.java b/src/main/java/com/microsoft/graph/models/CustomExtensionData.java new file mode 100644 index 00000000000..6641cc144b5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionData.java @@ -0,0 +1,50 @@ +// 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.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 Data. + */ +public class CustomExtensionData 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; + } + + + /** + * 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/CustomExtensionEndpointConfiguration.java b/src/main/java/com/microsoft/graph/models/CustomExtensionEndpointConfiguration.java new file mode 100644 index 00000000000..55aeaa7d2aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/CustomExtensionEndpointConfiguration.java @@ -0,0 +1,50 @@ +// 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.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 Endpoint Configuration. + */ +public class CustomExtensionEndpointConfiguration 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; + } + + + /** + * 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/DefaultColumnValue.java b/src/main/java/com/microsoft/graph/models/DefaultColumnValue.java index 42f401a962b..0efe28da605 100644 --- a/src/main/java/com/microsoft/graph/models/DefaultColumnValue.java +++ b/src/main/java/com/microsoft/graph/models/DefaultColumnValue.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Formula. - * The formula used to compute the default value for this column. + * The formula used to compute the default value for the column. */ @SerializedName(value = "formula", alternate = {"Formula"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * The direct value to use as the default value for this column. + * The direct value to use as the default value for the column. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DeletedItemContainer.java b/src/main/java/com/microsoft/graph/models/DeletedItemContainer.java new file mode 100644 index 00000000000..70a0334cc9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeletedItemContainer.java @@ -0,0 +1,53 @@ +// 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.identitygovernance.requests.WorkflowCollectionPage; + + +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 Deleted Item Container. + */ +public class DeletedItemContainer extends Entity implements IJsonBackedObject { + + + /** + * The Workflows. + * Deleted workflows that end up in the deletedItemsContainer. + */ + @SerializedName(value = "workflows", alternate = {"Workflows"}) + @Expose + @Nullable + public com.microsoft.graph.identitygovernance.requests.WorkflowCollectionPage workflows; + + + /** + * 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("workflows")) { + workflows = serializer.deserializeObject(json.get("workflows"), com.microsoft.graph.identitygovernance.requests.WorkflowCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java b/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java index 378b2f38139..ab2b9c3906d 100644 --- a/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java +++ b/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java @@ -56,6 +56,10 @@ public enum DetectedAppPlatformType */ ANDROID_DEDICATED_AND_FULLY_MANAGED, /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** * For DetectedAppPlatformType values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java new file mode 100644 index 00000000000..9497fb0470e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponse.java @@ -0,0 +1,111 @@ +// 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.AppLogUploadState; +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 Device Log Collection Response. + */ +public class DeviceLogCollectionResponse extends Entity implements IJsonBackedObject { + + + /** + * The Enrolled By User. + * The User Principal Name (UPN) of the user that enrolled the device. + */ + @SerializedName(value = "enrolledByUser", alternate = {"EnrolledByUser"}) + @Expose + @Nullable + public String enrolledByUser; + + /** + * The Expiration Date Time UTC. + * The DateTime of the expiration of the logs. + */ + @SerializedName(value = "expirationDateTimeUTC", alternate = {"ExpirationDateTimeUTC"}) + @Expose + @Nullable + public java.time.OffsetDateTime expirationDateTimeUTC; + + /** + * The Initiated By User Principal Name. + * The UPN for who initiated the request. + */ + @SerializedName(value = "initiatedByUserPrincipalName", alternate = {"InitiatedByUserPrincipalName"}) + @Expose + @Nullable + public String initiatedByUserPrincipalName; + + /** + * The Managed Device Id. + * Indicates Intune device unique identifier. + */ + @SerializedName(value = "managedDeviceId", alternate = {"ManagedDeviceId"}) + @Expose + @Nullable + public java.util.UUID managedDeviceId; + + /** + * The Received Date Time UTC. + * The DateTime the request was received. + */ + @SerializedName(value = "receivedDateTimeUTC", alternate = {"ReceivedDateTimeUTC"}) + @Expose + @Nullable + public java.time.OffsetDateTime receivedDateTimeUTC; + + /** + * The Requested Date Time UTC. + * The DateTime of the request. + */ + @SerializedName(value = "requestedDateTimeUTC", alternate = {"RequestedDateTimeUTC"}) + @Expose + @Nullable + public java.time.OffsetDateTime requestedDateTimeUTC; + + /** + * The Size In KB. + * The size of the logs in KB. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "sizeInKB", alternate = {"SizeInKB"}) + @Expose + @Nullable + public Double sizeInKB; + + /** + * The Status. + * Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public AppLogUploadState 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/DeviceLogCollectionResponseCreateDownloadUrlParameterSet.java b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponseCreateDownloadUrlParameterSet.java new file mode 100644 index 00000000000..bdf6997b221 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionResponseCreateDownloadUrlParameterSet.java @@ -0,0 +1,69 @@ +// 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.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 Device Log Collection Response Create Download Url Parameter Set. + */ +public class DeviceLogCollectionResponseCreateDownloadUrlParameterSet { + + /** + * Instiaciates a new DeviceLogCollectionResponseCreateDownloadUrlParameterSet + */ + public DeviceLogCollectionResponseCreateDownloadUrlParameterSet() {} + /** + * Instiaciates a new DeviceLogCollectionResponseCreateDownloadUrlParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected DeviceLogCollectionResponseCreateDownloadUrlParameterSet(@Nonnull final DeviceLogCollectionResponseCreateDownloadUrlParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static DeviceLogCollectionResponseCreateDownloadUrlParameterSetBuilder newBuilder() { + return new DeviceLogCollectionResponseCreateDownloadUrlParameterSetBuilder(); + } + /** + * Fluent builder for the DeviceLogCollectionResponseCreateDownloadUrlParameterSet + */ + public static final class DeviceLogCollectionResponseCreateDownloadUrlParameterSetBuilder { + /** + * Instanciates a new DeviceLogCollectionResponseCreateDownloadUrlParameterSetBuilder + */ + @Nullable + protected DeviceLogCollectionResponseCreateDownloadUrlParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public DeviceLogCollectionResponseCreateDownloadUrlParameterSet build() { + return new DeviceLogCollectionResponseCreateDownloadUrlParameterSet(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<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/DeviceLogCollectionTemplateType.java b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionTemplateType.java new file mode 100644 index 00000000000..de5ec425126 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceLogCollectionTemplateType.java @@ -0,0 +1,26 @@ +// 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 Device Log Collection Template Type. +*/ +public enum DeviceLogCollectionTemplateType +{ + /** + * predefined + */ + PREDEFINED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For DeviceLogCollectionTemplateType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagement.java b/src/main/java/com/microsoft/graph/models/DeviceManagement.java index f8ba55f7063..783d0cb2ec0 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagement.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagement.java @@ -11,13 +11,19 @@ import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.DeviceManagementSettings; import com.microsoft.graph.models.IntuneBrand; +import com.microsoft.graph.models.DeviceProtectionOverview; import com.microsoft.graph.models.DeviceManagementSubscriptionState; +import com.microsoft.graph.models.UserExperienceAnalyticsSettings; +import com.microsoft.graph.models.WindowsMalwareOverview; import com.microsoft.graph.models.DeviceCompliancePolicyDeviceStateSummary; import com.microsoft.graph.models.DeviceConfigurationDeviceStateSummary; import com.microsoft.graph.models.SoftwareUpdateStatusSummary; import com.microsoft.graph.models.OnPremisesConditionalAccessSettings; import com.microsoft.graph.models.ApplePushNotificationCertificate; import com.microsoft.graph.models.ManagedDeviceOverview; +import com.microsoft.graph.models.UserExperienceAnalyticsCategory; +import com.microsoft.graph.models.UserExperienceAnalyticsOverview; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric; import com.microsoft.graph.models.DeviceManagementReports; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.TermsAndConditionsCollectionPage; @@ -34,6 +40,26 @@ import com.microsoft.graph.requests.MobileThreatDefenseConnectorCollectionPage; import com.microsoft.graph.requests.DetectedAppCollectionPage; import com.microsoft.graph.requests.ManagedDeviceCollectionPage; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage; +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionPage; import com.microsoft.graph.requests.ImportedWindowsAutopilotDeviceIdentityCollectionPage; import com.microsoft.graph.requests.WindowsAutopilotDeviceIdentityCollectionPage; import com.microsoft.graph.requests.NotificationMessageTemplateCollectionPage; @@ -88,6 +114,15 @@ public class DeviceManagement extends Entity implements IJsonBackedObject { @Nullable public IntuneBrand intuneBrand; + /** + * The Device Protection Overview. + * Device protection overview. + */ + @SerializedName(value = "deviceProtectionOverview", alternate = {"DeviceProtectionOverview"}) + @Expose + @Nullable + public DeviceProtectionOverview deviceProtectionOverview; + /** * The Subscription State. * Tenant mobile device management subscription state. Possible values are: pending, active, warning, disabled, deleted, blocked, lockedOut. @@ -97,6 +132,24 @@ public class DeviceManagement extends Entity implements IJsonBackedObject { @Nullable public DeviceManagementSubscriptionState subscriptionState; + /** + * The User Experience Analytics Settings. + * User experience analytics device settings + */ + @SerializedName(value = "userExperienceAnalyticsSettings", alternate = {"UserExperienceAnalyticsSettings"}) + @Expose + @Nullable + public UserExperienceAnalyticsSettings userExperienceAnalyticsSettings; + + /** + * The Windows Malware Overview. + * Malware overview for windows devices. + */ + @SerializedName(value = "windowsMalwareOverview", alternate = {"WindowsMalwareOverview"}) + @Expose + @Nullable + public WindowsMalwareOverview windowsMalwareOverview; + /** * The Terms And Conditions. * The terms and conditions associated with device management of the company. @@ -277,6 +330,222 @@ public class DeviceManagement extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.ManagedDeviceCollectionPage managedDevices; + /** + * The Mobile App Troubleshooting Events. + * The collection property of MobileAppTroubleshootingEvent. + */ + @SerializedName(value = "mobileAppTroubleshootingEvents", alternate = {"MobileAppTroubleshootingEvents"}) + @Expose + @Nullable + public com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionPage mobileAppTroubleshootingEvents; + + /** + * The User Experience Analytics App Health Application Performance. + * User experience analytics appHealth Application Performance + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthApplicationPerformance", alternate = {"UserExperienceAnalyticsAppHealthApplicationPerformance"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage userExperienceAnalyticsAppHealthApplicationPerformance; + + /** + * The User Experience Analytics App Health Application Performance By App Version Details. + * User experience analytics appHealth Application Performance by App Version details + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails", alternate = {"UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails; + + /** + * The User Experience Analytics App Health Application Performance By App Version Device Id. + * User experience analytics appHealth Application Performance by App Version Device Id + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId", alternate = {"UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId; + + /** + * The User Experience Analytics App Health Application Performance By OSVersion. + * User experience analytics appHealth Application Performance by OS Version + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion", alternate = {"UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion; + + /** + * The User Experience Analytics App Health Device Model Performance. + * User experience analytics appHealth Model Performance + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthDeviceModelPerformance", alternate = {"UserExperienceAnalyticsAppHealthDeviceModelPerformance"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage userExperienceAnalyticsAppHealthDeviceModelPerformance; + + /** + * The User Experience Analytics App Health Device Performance. + * User experience analytics appHealth Device Performance + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthDevicePerformance", alternate = {"UserExperienceAnalyticsAppHealthDevicePerformance"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage userExperienceAnalyticsAppHealthDevicePerformance; + + /** + * The User Experience Analytics App Health Device Performance Details. + * User experience analytics device performance details + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthDevicePerformanceDetails", alternate = {"UserExperienceAnalyticsAppHealthDevicePerformanceDetails"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage userExperienceAnalyticsAppHealthDevicePerformanceDetails; + + /** + * The User Experience Analytics App Health OSVersion Performance. + * User experience analytics appHealth OS version Performance + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthOSVersionPerformance", alternate = {"UserExperienceAnalyticsAppHealthOSVersionPerformance"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage userExperienceAnalyticsAppHealthOSVersionPerformance; + + /** + * The User Experience Analytics App Health Overview. + * User experience analytics appHealth overview + */ + @SerializedName(value = "userExperienceAnalyticsAppHealthOverview", alternate = {"UserExperienceAnalyticsAppHealthOverview"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory userExperienceAnalyticsAppHealthOverview; + + /** + * The User Experience Analytics Baselines. + * User experience analytics baselines + */ + @SerializedName(value = "userExperienceAnalyticsBaselines", alternate = {"UserExperienceAnalyticsBaselines"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionPage userExperienceAnalyticsBaselines; + + /** + * The User Experience Analytics Categories. + * User experience analytics categories + */ + @SerializedName(value = "userExperienceAnalyticsCategories", alternate = {"UserExperienceAnalyticsCategories"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionPage userExperienceAnalyticsCategories; + + /** + * The User Experience Analytics Device Performance. + * User experience analytics device performance + */ + @SerializedName(value = "userExperienceAnalyticsDevicePerformance", alternate = {"UserExperienceAnalyticsDevicePerformance"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionPage userExperienceAnalyticsDevicePerformance; + + /** + * The User Experience Analytics Device Scores. + * User experience analytics device scores + */ + @SerializedName(value = "userExperienceAnalyticsDeviceScores", alternate = {"UserExperienceAnalyticsDeviceScores"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionPage userExperienceAnalyticsDeviceScores; + + /** + * The User Experience Analytics Device Startup History. + * User experience analytics device Startup History + */ + @SerializedName(value = "userExperienceAnalyticsDeviceStartupHistory", alternate = {"UserExperienceAnalyticsDeviceStartupHistory"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionPage userExperienceAnalyticsDeviceStartupHistory; + + /** + * The User Experience Analytics Device Startup Processes. + * User experience analytics device Startup Processes + */ + @SerializedName(value = "userExperienceAnalyticsDeviceStartupProcesses", alternate = {"UserExperienceAnalyticsDeviceStartupProcesses"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionPage userExperienceAnalyticsDeviceStartupProcesses; + + /** + * The User Experience Analytics Metric History. + * User experience analytics metric history + */ + @SerializedName(value = "userExperienceAnalyticsMetricHistory", alternate = {"UserExperienceAnalyticsMetricHistory"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionPage userExperienceAnalyticsMetricHistory; + + /** + * The User Experience Analytics Model Scores. + * User experience analytics model scores + */ + @SerializedName(value = "userExperienceAnalyticsModelScores", alternate = {"UserExperienceAnalyticsModelScores"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionPage userExperienceAnalyticsModelScores; + + /** + * The User Experience Analytics Overview. + * User experience analytics overview + */ + @SerializedName(value = "userExperienceAnalyticsOverview", alternate = {"UserExperienceAnalyticsOverview"}) + @Expose + @Nullable + public UserExperienceAnalyticsOverview userExperienceAnalyticsOverview; + + /** + * The User Experience Analytics Score History. + * User experience analytics device Startup Score History + */ + @SerializedName(value = "userExperienceAnalyticsScoreHistory", alternate = {"UserExperienceAnalyticsScoreHistory"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionPage userExperienceAnalyticsScoreHistory; + + /** + * The User Experience Analytics Work From Anywhere Hardware Readiness Metric. + * User experience analytics work from anywhere hardware readiness metrics. + */ + @SerializedName(value = "userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric", alternate = {"UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric"}) + @Expose + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric; + + /** + * The User Experience Analytics Work From Anywhere Metrics. + * User experience analytics work from anywhere metrics. + */ + @SerializedName(value = "userExperienceAnalyticsWorkFromAnywhereMetrics", alternate = {"UserExperienceAnalyticsWorkFromAnywhereMetrics"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage userExperienceAnalyticsWorkFromAnywhereMetrics; + + /** + * The User Experience Analytics Work From Anywhere Model Performance. + * The user experience analytics work from anywhere model performance + */ + @SerializedName(value = "userExperienceAnalyticsWorkFromAnywhereModelPerformance", alternate = {"UserExperienceAnalyticsWorkFromAnywhereModelPerformance"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage userExperienceAnalyticsWorkFromAnywhereModelPerformance; + + /** + * The Windows Malware Information. + * The list of affected malware in the tenant. + */ + @SerializedName(value = "windowsMalwareInformation", alternate = {"WindowsMalwareInformation"}) + @Expose + @Nullable + public com.microsoft.graph.requests.WindowsMalwareInformationCollectionPage windowsMalwareInformation; + /** * The Imported Windows Autopilot Device Identities. * Collection of imported Windows autopilot devices. @@ -451,6 +720,90 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J managedDevices = serializer.deserializeObject(json.get("managedDevices"), com.microsoft.graph.requests.ManagedDeviceCollectionPage.class); } + if (json.has("mobileAppTroubleshootingEvents")) { + mobileAppTroubleshootingEvents = serializer.deserializeObject(json.get("mobileAppTroubleshootingEvents"), com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthApplicationPerformance")) { + userExperienceAnalyticsAppHealthApplicationPerformance = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthApplicationPerformance"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails")) { + userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId")) { + userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion")) { + userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthDeviceModelPerformance")) { + userExperienceAnalyticsAppHealthDeviceModelPerformance = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthDeviceModelPerformance"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthDevicePerformance")) { + userExperienceAnalyticsAppHealthDevicePerformance = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthDevicePerformance"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthDevicePerformanceDetails")) { + userExperienceAnalyticsAppHealthDevicePerformanceDetails = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthDevicePerformanceDetails"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsAppHealthOSVersionPerformance")) { + userExperienceAnalyticsAppHealthOSVersionPerformance = serializer.deserializeObject(json.get("userExperienceAnalyticsAppHealthOSVersionPerformance"), com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsBaselines")) { + userExperienceAnalyticsBaselines = serializer.deserializeObject(json.get("userExperienceAnalyticsBaselines"), com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsCategories")) { + userExperienceAnalyticsCategories = serializer.deserializeObject(json.get("userExperienceAnalyticsCategories"), com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsDevicePerformance")) { + userExperienceAnalyticsDevicePerformance = serializer.deserializeObject(json.get("userExperienceAnalyticsDevicePerformance"), com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsDeviceScores")) { + userExperienceAnalyticsDeviceScores = serializer.deserializeObject(json.get("userExperienceAnalyticsDeviceScores"), com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsDeviceStartupHistory")) { + userExperienceAnalyticsDeviceStartupHistory = serializer.deserializeObject(json.get("userExperienceAnalyticsDeviceStartupHistory"), com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsDeviceStartupProcesses")) { + userExperienceAnalyticsDeviceStartupProcesses = serializer.deserializeObject(json.get("userExperienceAnalyticsDeviceStartupProcesses"), com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsMetricHistory")) { + userExperienceAnalyticsMetricHistory = serializer.deserializeObject(json.get("userExperienceAnalyticsMetricHistory"), com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsModelScores")) { + userExperienceAnalyticsModelScores = serializer.deserializeObject(json.get("userExperienceAnalyticsModelScores"), com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsScoreHistory")) { + userExperienceAnalyticsScoreHistory = serializer.deserializeObject(json.get("userExperienceAnalyticsScoreHistory"), com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsWorkFromAnywhereMetrics")) { + userExperienceAnalyticsWorkFromAnywhereMetrics = serializer.deserializeObject(json.get("userExperienceAnalyticsWorkFromAnywhereMetrics"), com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage.class); + } + + if (json.has("userExperienceAnalyticsWorkFromAnywhereModelPerformance")) { + userExperienceAnalyticsWorkFromAnywhereModelPerformance = serializer.deserializeObject(json.get("userExperienceAnalyticsWorkFromAnywhereModelPerformance"), com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage.class); + } + + if (json.has("windowsMalwareInformation")) { + windowsMalwareInformation = serializer.deserializeObject(json.get("windowsMalwareInformation"), com.microsoft.graph.requests.WindowsMalwareInformationCollectionPage.class); + } + if (json.has("importedWindowsAutopilotDeviceIdentities")) { importedWindowsAutopilotDeviceIdentities = serializer.deserializeObject(json.get("importedWindowsAutopilotDeviceIdentities"), com.microsoft.graph.requests.ImportedWindowsAutopilotDeviceIdentityCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet.java b/src/main/java/com/microsoft/graph/models/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet.java new file mode 100644 index 00000000000..78a64f1be79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet.java @@ -0,0 +1,69 @@ +// 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.UserExperienceAnalyticsWorkFromAnywhereDevicesSummary; +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 Device Management User Experience Analytics Summarize Work From Anywhere Devices Parameter Set. + */ +public class DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet { + + /** + * Instiaciates a new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet + */ + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet() {} + /** + * Instiaciates a new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet(@Nonnull final DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSetBuilder newBuilder() { + return new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSetBuilder(); + } + /** + * Fluent builder for the DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet + */ + public static final class DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSetBuilder { + /** + * Instanciates a new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSetBuilder + */ + @Nullable + protected DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet build() { + return new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesParameterSet(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<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java b/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java new file mode 100644 index 00000000000..8f3bc232384 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DeviceProtectionOverview.java @@ -0,0 +1,149 @@ +// 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.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 Device Protection Overview. + */ +public class DeviceProtectionOverview 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 Clean Device Count. + * Clean device count. + */ + @SerializedName(value = "cleanDeviceCount", alternate = {"CleanDeviceCount"}) + @Expose + @Nullable + public Integer cleanDeviceCount; + + /** + * The Critical Failures Device Count. + * Critical failures device count. + */ + @SerializedName(value = "criticalFailuresDeviceCount", alternate = {"CriticalFailuresDeviceCount"}) + @Expose + @Nullable + public Integer criticalFailuresDeviceCount; + + /** + * The Inactive Threat Agent Device Count. + * Device with inactive threat agent count + */ + @SerializedName(value = "inactiveThreatAgentDeviceCount", alternate = {"InactiveThreatAgentDeviceCount"}) + @Expose + @Nullable + public Integer inactiveThreatAgentDeviceCount; + + /** + * The Pending Full Scan Device Count. + * Pending full scan device count. + */ + @SerializedName(value = "pendingFullScanDeviceCount", alternate = {"PendingFullScanDeviceCount"}) + @Expose + @Nullable + public Integer pendingFullScanDeviceCount; + + /** + * The Pending Manual Steps Device Count. + * Pending manual steps device count. + */ + @SerializedName(value = "pendingManualStepsDeviceCount", alternate = {"PendingManualStepsDeviceCount"}) + @Expose + @Nullable + public Integer pendingManualStepsDeviceCount; + + /** + * The Pending Offline Scan Device Count. + * Pending offline scan device count. + */ + @SerializedName(value = "pendingOfflineScanDeviceCount", alternate = {"PendingOfflineScanDeviceCount"}) + @Expose + @Nullable + public Integer pendingOfflineScanDeviceCount; + + /** + * The Pending Quick Scan Device Count. + * Pending quick scan device count. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "pendingQuickScanDeviceCount", alternate = {"PendingQuickScanDeviceCount"}) + @Expose + @Nullable + public Integer pendingQuickScanDeviceCount; + + /** + * The Pending Restart Device Count. + * Pending restart device count. + */ + @SerializedName(value = "pendingRestartDeviceCount", alternate = {"PendingRestartDeviceCount"}) + @Expose + @Nullable + public Integer pendingRestartDeviceCount; + + /** + * The Pending Signature Update Device Count. + * Device with old signature count. + */ + @SerializedName(value = "pendingSignatureUpdateDeviceCount", alternate = {"PendingSignatureUpdateDeviceCount"}) + @Expose + @Nullable + public Integer pendingSignatureUpdateDeviceCount; + + /** + * The Total Reported Device Count. + * Total device count. + */ + @SerializedName(value = "totalReportedDeviceCount", alternate = {"TotalReportedDeviceCount"}) + @Expose + @Nullable + public Integer totalReportedDeviceCount; + + /** + * The Unknown State Threat Agent Device Count. + * Device with threat agent state as unknown count. + */ + @SerializedName(value = "unknownStateThreatAgentDeviceCount", alternate = {"UnknownStateThreatAgentDeviceCount"}) + @Expose + @Nullable + public Integer unknownStateThreatAgentDeviceCount; + + + /** + * 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/DriveItemAssignSensitivityLabelParameterSet.java b/src/main/java/com/microsoft/graph/models/DriveItemAssignSensitivityLabelParameterSet.java new file mode 100644 index 00000000000..b4c9e7b20d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DriveItemAssignSensitivityLabelParameterSet.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.SensitivityLabelAssignmentMethod; +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 Drive Item Assign Sensitivity Label Parameter Set. + */ +public class DriveItemAssignSensitivityLabelParameterSet { + /** + * The sensitivity Label Id. + * + */ + @SerializedName(value = "sensitivityLabelId", alternate = {"SensitivityLabelId"}) + @Expose + @Nullable + public String sensitivityLabelId; + + /** + * The assignment Method. + * + */ + @SerializedName(value = "assignmentMethod", alternate = {"AssignmentMethod"}) + @Expose + @Nullable + public SensitivityLabelAssignmentMethod assignmentMethod; + + /** + * The justification Text. + * + */ + @SerializedName(value = "justificationText", alternate = {"JustificationText"}) + @Expose + @Nullable + public String justificationText; + + + /** + * Instiaciates a new DriveItemAssignSensitivityLabelParameterSet + */ + public DriveItemAssignSensitivityLabelParameterSet() {} + /** + * Instiaciates a new DriveItemAssignSensitivityLabelParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected DriveItemAssignSensitivityLabelParameterSet(@Nonnull final DriveItemAssignSensitivityLabelParameterSetBuilder builder) { + this.sensitivityLabelId = builder.sensitivityLabelId; + this.assignmentMethod = builder.assignmentMethod; + this.justificationText = builder.justificationText; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static DriveItemAssignSensitivityLabelParameterSetBuilder newBuilder() { + return new DriveItemAssignSensitivityLabelParameterSetBuilder(); + } + /** + * Fluent builder for the DriveItemAssignSensitivityLabelParameterSet + */ + public static final class DriveItemAssignSensitivityLabelParameterSetBuilder { + /** + * The sensitivityLabelId parameter value + */ + @Nullable + protected String sensitivityLabelId; + /** + * Sets the SensitivityLabelId + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public DriveItemAssignSensitivityLabelParameterSetBuilder withSensitivityLabelId(@Nullable final String val) { + this.sensitivityLabelId = val; + return this; + } + /** + * The assignmentMethod parameter value + */ + @Nullable + protected SensitivityLabelAssignmentMethod assignmentMethod; + /** + * Sets the AssignmentMethod + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public DriveItemAssignSensitivityLabelParameterSetBuilder withAssignmentMethod(@Nullable final SensitivityLabelAssignmentMethod val) { + this.assignmentMethod = val; + return this; + } + /** + * The justificationText parameter value + */ + @Nullable + protected String justificationText; + /** + * Sets the JustificationText + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public DriveItemAssignSensitivityLabelParameterSetBuilder withJustificationText(@Nullable final String val) { + this.justificationText = val; + return this; + } + /** + * Instanciates a new DriveItemAssignSensitivityLabelParameterSetBuilder + */ + @Nullable + protected DriveItemAssignSensitivityLabelParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public DriveItemAssignSensitivityLabelParameterSet build() { + return new DriveItemAssignSensitivityLabelParameterSet(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.sensitivityLabelId != null) { + result.add(new com.microsoft.graph.options.FunctionOption("sensitivityLabelId", sensitivityLabelId)); + } + if(this.assignmentMethod != null) { + result.add(new com.microsoft.graph.options.FunctionOption("assignmentMethod", assignmentMethod)); + } + if(this.justificationText != null) { + result.add(new com.microsoft.graph.options.FunctionOption("justificationText", justificationText)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/DriveItemExtractSensitivityLabelsParameterSet.java b/src/main/java/com/microsoft/graph/models/DriveItemExtractSensitivityLabelsParameterSet.java new file mode 100644 index 00000000000..7f29505e469 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DriveItemExtractSensitivityLabelsParameterSet.java @@ -0,0 +1,69 @@ +// 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.ExtractSensitivityLabelsResult; +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 Drive Item Extract Sensitivity Labels Parameter Set. + */ +public class DriveItemExtractSensitivityLabelsParameterSet { + + /** + * Instiaciates a new DriveItemExtractSensitivityLabelsParameterSet + */ + public DriveItemExtractSensitivityLabelsParameterSet() {} + /** + * Instiaciates a new DriveItemExtractSensitivityLabelsParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected DriveItemExtractSensitivityLabelsParameterSet(@Nonnull final DriveItemExtractSensitivityLabelsParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static DriveItemExtractSensitivityLabelsParameterSetBuilder newBuilder() { + return new DriveItemExtractSensitivityLabelsParameterSetBuilder(); + } + /** + * Fluent builder for the DriveItemExtractSensitivityLabelsParameterSet + */ + public static final class DriveItemExtractSensitivityLabelsParameterSetBuilder { + /** + * Instanciates a new DriveItemExtractSensitivityLabelsParameterSetBuilder + */ + @Nullable + protected DriveItemExtractSensitivityLabelsParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public DriveItemExtractSensitivityLabelsParameterSet build() { + return new DriveItemExtractSensitivityLabelsParameterSet(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<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EmailSettings.java b/src/main/java/com/microsoft/graph/models/EmailSettings.java new file mode 100644 index 00000000000..71277d0472d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EmailSettings.java @@ -0,0 +1,68 @@ +// 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.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 Email Settings. + */ +public class EmailSettings 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 Sender Domain. + * Specifies the domain that should be used when sending email notifications. This domain must be verified in order to be used. We recommend that you use a domain that has the appropriate DNS records to facilitate email validation, like SPF, DKIM, DMARC, and MX, because this then complies with the RFC compliance for sending and receiving email. For details, see Learn more about Exchange Online Email Routing. + */ + @SerializedName(value = "senderDomain", alternate = {"SenderDomain"}) + @Expose + @Nullable + public String senderDomain; + + /** + * The Use Company Branding. + * Specifies if the organization’s banner logo should be included in email notifications. The banner logo will replace the Microsoft logo at the top of the email notification. If true the banner logo will be taken from the tenant’s branding settings. This value can only be set to true if the organizationalBranding bannerLogo property is set. + */ + @SerializedName(value = "useCompanyBranding", alternate = {"UseCompanyBranding"}) + @Expose + @Nullable + public Boolean useCompanyBranding; + + + /** + * 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/EmployeeExperience.java b/src/main/java/com/microsoft/graph/models/EmployeeExperience.java index c2ebeda73e4..aadeac65a51 100644 --- a/src/main/java/com/microsoft/graph/models/EmployeeExperience.java +++ b/src/main/java/com/microsoft/graph/models/EmployeeExperience.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.requests.LearningCourseActivityCollectionPage; import com.microsoft.graph.requests.LearningProviderCollectionPage; @@ -39,6 +40,15 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } + /** + * The Learning Course Activities. + * + */ + @SerializedName(value = "learningCourseActivities", alternate = {"LearningCourseActivities"}) + @Expose + @Nullable + public com.microsoft.graph.requests.LearningCourseActivityCollectionPage learningCourseActivities; + /** * The Learning Providers. * A collection of learning providers. @@ -58,6 +68,10 @@ public final AdditionalDataManager additionalDataManager() { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("learningCourseActivities")) { + learningCourseActivities = serializer.deserializeObject(json.get("learningCourseActivities"), com.microsoft.graph.requests.LearningCourseActivityCollectionPage.class); + } + if (json.has("learningProviders")) { learningProviders = serializer.deserializeObject(json.get("learningProviders"), com.microsoft.graph.requests.LearningProviderCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/EmployeeExperienceUser.java b/src/main/java/com/microsoft/graph/models/EmployeeExperienceUser.java new file mode 100644 index 00000000000..aa92fb780a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EmployeeExperienceUser.java @@ -0,0 +1,51 @@ +// 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.LearningCourseActivityCollectionPage; + + +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 Employee Experience User. + */ +public class EmployeeExperienceUser extends Entity implements IJsonBackedObject { + + + /** + * The Learning Course Activities. + * + */ + @Nullable + public com.microsoft.graph.requests.LearningCourseActivityCollectionPage learningCourseActivities; + + + /** + * 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("learningCourseActivities")) { + learningCourseActivities = serializer.deserializeObject(json.get("learningCourseActivities"), com.microsoft.graph.requests.LearningCourseActivityCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/ExtractSensitivityLabelsResult.java b/src/main/java/com/microsoft/graph/models/ExtractSensitivityLabelsResult.java new file mode 100644 index 00000000000..9103705428b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ExtractSensitivityLabelsResult.java @@ -0,0 +1,61 @@ +// 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.SensitivityLabelAssignment; + + +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 Extract Sensitivity Labels Result. + */ +public class ExtractSensitivityLabelsResult 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 Labels. + * List of sensitivity labels assigned to a file. + */ + @SerializedName(value = "labels", alternate = {"Labels"}) + @Expose + @Nullable + public java.util.List labels; + + + /** + * 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/FeatureType.java b/src/main/java/com/microsoft/graph/models/FeatureType.java new file mode 100644 index 00000000000..a76f0215a04 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/FeatureType.java @@ -0,0 +1,30 @@ +// 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 Feature Type. +*/ +public enum FeatureType +{ + /** + * registration + */ + REGISTRATION, + /** + * reset + */ + RESET, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For FeatureType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/GovernanceInsight.java b/src/main/java/com/microsoft/graph/models/GovernanceInsight.java new file mode 100644 index 00000000000..b5d19e0bdd9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/GovernanceInsight.java @@ -0,0 +1,47 @@ +// 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.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 Governance Insight. + */ +public class GovernanceInsight extends Entity implements IJsonBackedObject { + + + /** + * The Insight Created Date Time. + * Indicates when the insight was created. + */ + @SerializedName(value = "insightCreatedDateTime", alternate = {"InsightCreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime insightCreatedDateTime; + + + /** + * 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/GroupPeerOutlierRecommendationInsightSettings.java b/src/main/java/com/microsoft/graph/models/GroupPeerOutlierRecommendationInsightSettings.java new file mode 100644 index 00000000000..f5617b28cde --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/GroupPeerOutlierRecommendationInsightSettings.java @@ -0,0 +1,38 @@ +// 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.AccessReviewRecommendationInsightSetting; + + +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 Group Peer Outlier Recommendation Insight Settings. + */ +public class GroupPeerOutlierRecommendationInsightSettings extends AccessReviewRecommendationInsightSetting implements IJsonBackedObject { + + + + /** + * 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/IdentityGovernance.java b/src/main/java/com/microsoft/graph/models/IdentityGovernance.java index 4923f66e5cb..d48862760df 100644 --- a/src/main/java/com/microsoft/graph/models/IdentityGovernance.java +++ b/src/main/java/com/microsoft/graph/models/IdentityGovernance.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.identitygovernance.models.LifecycleWorkflowsContainer; import com.microsoft.graph.models.AccessReviewSet; import com.microsoft.graph.models.AppConsentApprovalRoute; import com.microsoft.graph.models.TermsOfUseContainer; @@ -41,6 +42,15 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } + /** + * The Lifecycle Workflows. + * + */ + @SerializedName(value = "lifecycleWorkflows", alternate = {"LifecycleWorkflows"}) + @Expose + @Nullable + public LifecycleWorkflowsContainer lifecycleWorkflows; + /** * The Access Reviews. * diff --git a/src/main/java/com/microsoft/graph/models/IncludedUserRoles.java b/src/main/java/com/microsoft/graph/models/IncludedUserRoles.java new file mode 100644 index 00000000000..13bdcc5c38c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/IncludedUserRoles.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.models; + + +/** + * The Enum Included User Roles. +*/ +public enum IncludedUserRoles +{ + /** + * all + */ + ALL, + /** + * privileged Admin + */ + PRIVILEGED_ADMIN, + /** + * admin + */ + ADMIN, + /** + * user + */ + USER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For IncludedUserRoles values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/IncludedUserTypes.java b/src/main/java/com/microsoft/graph/models/IncludedUserTypes.java new file mode 100644 index 00000000000..a29c6e4bf29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/IncludedUserTypes.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.models; + + +/** + * The Enum Included User Types. +*/ +public enum IncludedUserTypes +{ + /** + * all + */ + ALL, + /** + * member + */ + MEMBER, + /** + * guest + */ + GUEST, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For IncludedUserTypes values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/InsightValueDouble.java b/src/main/java/com/microsoft/graph/models/InsightValueDouble.java new file mode 100644 index 00000000000..b04f79a1113 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/InsightValueDouble.java @@ -0,0 +1,47 @@ +// 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.UserExperienceAnalyticsInsightValue; + + +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 Insight Value Double. + */ +public class InsightValueDouble extends UserExperienceAnalyticsInsightValue implements IJsonBackedObject { + + + /** + * The Value. + * The double value of the user experience analytics insight. + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public Double value; + + + /** + * 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/InsightValueInt.java b/src/main/java/com/microsoft/graph/models/InsightValueInt.java new file mode 100644 index 00000000000..eb089dc46f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/InsightValueInt.java @@ -0,0 +1,47 @@ +// 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.UserExperienceAnalyticsInsightValue; + + +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 Insight Value Int. + */ +public class InsightValueInt extends UserExperienceAnalyticsInsightValue implements IJsonBackedObject { + + + /** + * The Value. + * The int value of the user experience analytics insight. + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public Integer value; + + + /** + * 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/IosStoreAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java index df3392cc83c..000cda7ebae 100644 --- a/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/models/IosStoreAppAssignmentSettings.java @@ -25,6 +25,24 @@ public class IosStoreAppAssignmentSettings extends MobileAppAssignmentSettings implements IJsonBackedObject { + /** + * The Is Removable. + * When TRUE, indicates that the app can be uninstalled by the user. When FALSE, indicates that the app cannot be uninstalled by the user. By default, this property is set to null which internally is treated as TRUE. + */ + @SerializedName(value = "isRemovable", alternate = {"IsRemovable"}) + @Expose + @Nullable + public Boolean isRemovable; + + /** + * The Uninstall On Device Removal. + * When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. By default, property is set to null which internally is treated as TRUE. + */ + @SerializedName(value = "uninstallOnDeviceRemoval", alternate = {"UninstallOnDeviceRemoval"}) + @Expose + @Nullable + public Boolean uninstallOnDeviceRemoval; + /** * The Vpn Configuration Id. * The VPN Configuration Id to apply for this app. diff --git a/src/main/java/com/microsoft/graph/models/LearningAssignment.java b/src/main/java/com/microsoft/graph/models/LearningAssignment.java new file mode 100644 index 00000000000..fd80943c7d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LearningAssignment.java @@ -0,0 +1,86 @@ +// 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.AssignmentType; +import com.microsoft.graph.models.DateTimeTimeZone; +import com.microsoft.graph.models.ItemBody; +import com.microsoft.graph.models.LearningCourseActivity; + + +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 Learning Assignment. + */ +public class LearningAssignment extends LearningCourseActivity implements IJsonBackedObject { + + + /** + * The Assigned Date Time. + * Assigned date for the course activity. Optional. + */ + @SerializedName(value = "assignedDateTime", alternate = {"AssignedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime assignedDateTime; + + /** + * The Assigner User Id. + * The user ID of the assigner. Optional. + */ + @SerializedName(value = "assignerUserId", alternate = {"AssignerUserId"}) + @Expose + @Nullable + public String assignerUserId; + + /** + * The Assignment Type. + * The assignment type for the course activity. Possible values are: required, recommended, unknownFutureValue. Required. + */ + @SerializedName(value = "assignmentType", alternate = {"AssignmentType"}) + @Expose + @Nullable + public AssignmentType assignmentType; + + /** + * The Due Date Time. + * Due date for the course activity. Optional. + */ + @SerializedName(value = "dueDateTime", alternate = {"DueDateTime"}) + @Expose + @Nullable + public DateTimeTimeZone dueDateTime; + + /** + * The Notes. + * Notes for the course activity. Optional. + */ + @SerializedName(value = "notes", alternate = {"Notes"}) + @Expose + @Nullable + public ItemBody notes; + + + /** + * 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/LearningCourseActivity.java b/src/main/java/com/microsoft/graph/models/LearningCourseActivity.java new file mode 100644 index 00000000000..b047395b0e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LearningCourseActivity.java @@ -0,0 +1,102 @@ +// 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.CourseStatus; +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 Learning Course Activity. + */ +public class LearningCourseActivity extends Entity implements IJsonBackedObject { + + + /** + * The Completed Date Time. + * Date and time when the assignment was completed. Optional. + */ + @SerializedName(value = "completedDateTime", alternate = {"CompletedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime completedDateTime; + + /** + * The Completion Percentage. + * The percentage completion value of the course activity. Optional. + */ + @SerializedName(value = "completionPercentage", alternate = {"CompletionPercentage"}) + @Expose + @Nullable + public Integer completionPercentage; + + /** + * The Externalcourse Activity Id. + * A course activity ID generated by the provider. Optional. + */ + @SerializedName(value = "externalcourseActivityId", alternate = {"ExternalcourseActivityId"}) + @Expose + @Nullable + public String externalcourseActivityId; + + /** + * The Learner User Id. + * The user ID of the learner to whom the activity is assigned. Required. + */ + @SerializedName(value = "learnerUserId", alternate = {"LearnerUserId"}) + @Expose + @Nullable + public String learnerUserId; + + /** + * The Learning Content Id. + * The ID of the learning content created in Viva Learning. Required. + */ + @SerializedName(value = "learningContentId", alternate = {"LearningContentId"}) + @Expose + @Nullable + public String learningContentId; + + /** + * The Learning Provider Id. + * The registration ID of the provider. Required. + */ + @SerializedName(value = "learningProviderId", alternate = {"LearningProviderId"}) + @Expose + @Nullable + public String learningProviderId; + + /** + * The Status. + * The status of the course activity. Possible values are: notStarted, inProgress, completed. Required. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public CourseStatus 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/LearningProvider.java b/src/main/java/com/microsoft/graph/models/LearningProvider.java index 57ca089512e..bcc02686838 100644 --- a/src/main/java/com/microsoft/graph/models/LearningProvider.java +++ b/src/main/java/com/microsoft/graph/models/LearningProvider.java @@ -11,6 +11,7 @@ import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.LearningContentCollectionPage; +import com.microsoft.graph.requests.LearningCourseActivityCollectionPage; import com.google.gson.JsonObject; @@ -99,6 +100,15 @@ public class LearningProvider extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.LearningContentCollectionPage learningContents; + /** + * The Learning Course Activities. + * + */ + @SerializedName(value = "learningCourseActivities", alternate = {"LearningCourseActivities"}) + @Expose + @Nullable + public com.microsoft.graph.requests.LearningCourseActivityCollectionPage learningCourseActivities; + /** * Sets the raw JSON object @@ -112,5 +122,9 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J if (json.has("learningContents")) { learningContents = serializer.deserializeObject(json.get("learningContents"), com.microsoft.graph.requests.LearningContentCollectionPage.class); } + + if (json.has("learningCourseActivities")) { + learningCourseActivities = serializer.deserializeObject(json.get("learningCourseActivities"), com.microsoft.graph.requests.LearningCourseActivityCollectionPage.class); + } } } diff --git a/src/main/java/com/microsoft/graph/models/LearningSelfInitiatedCourse.java b/src/main/java/com/microsoft/graph/models/LearningSelfInitiatedCourse.java new file mode 100644 index 00000000000..486c417844c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LearningSelfInitiatedCourse.java @@ -0,0 +1,47 @@ +// 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.LearningCourseActivity; + + +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 Learning Self Initiated Course. + */ +public class LearningSelfInitiatedCourse extends LearningCourseActivity implements IJsonBackedObject { + + + /** + * The Started Date Time. + * The date time value on which the self-initiated course was started by the learner. Optional. + */ + @SerializedName(value = "startedDateTime", alternate = {"StartedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startedDateTime; + + + /** + * 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/LogicAppTriggerEndpointConfiguration.java b/src/main/java/com/microsoft/graph/models/LogicAppTriggerEndpointConfiguration.java new file mode 100644 index 00000000000..ab9c272f574 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/LogicAppTriggerEndpointConfiguration.java @@ -0,0 +1,74 @@ +// 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.CustomExtensionEndpointConfiguration; + + +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 Logic App Trigger Endpoint Configuration. + */ +public class LogicAppTriggerEndpointConfiguration extends CustomExtensionEndpointConfiguration implements IJsonBackedObject { + + + /** + * The Logic App Workflow Name. + * The name of the logic app. + */ + @SerializedName(value = "logicAppWorkflowName", alternate = {"LogicAppWorkflowName"}) + @Expose + @Nullable + public String logicAppWorkflowName; + + /** + * The Resource Group Name. + * The Azure resource group name for the logic app. + */ + @SerializedName(value = "resourceGroupName", alternate = {"ResourceGroupName"}) + @Expose + @Nullable + public String resourceGroupName; + + /** + * The Subscription Id. + * Identifier of the Azure subscription for the logic app. + */ + @SerializedName(value = "subscriptionId", alternate = {"SubscriptionId"}) + @Expose + @Nullable + public String subscriptionId; + + /** + * The Url. + * The URL to the logic app endpoint that will be triggered. Only required for app-only token scenarios where app is creating a customCalloutExtension without a signed-in user. + */ + @SerializedName(value = "url", alternate = {"Url"}) + @Expose + @Nullable + public String url; + + + /** + * 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/MacOSMicrosoftDefenderApp.java b/src/main/java/com/microsoft/graph/models/MacOSMicrosoftDefenderApp.java new file mode 100644 index 00000000000..cccabca2540 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MacOSMicrosoftDefenderApp.java @@ -0,0 +1,38 @@ +// 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.MobileApp; + + +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 Mac OSMicrosoft Defender App. + */ +public class MacOSMicrosoftDefenderApp extends MobileApp implements IJsonBackedObject { + + + + /** + * 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/MalwareStateForWindowsDevice.java b/src/main/java/com/microsoft/graph/models/MalwareStateForWindowsDevice.java new file mode 100644 index 00000000000..e4c07f330a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MalwareStateForWindowsDevice.java @@ -0,0 +1,94 @@ +// 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.WindowsMalwareExecutionState; +import com.microsoft.graph.models.WindowsMalwareThreatState; +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 Malware State For Windows Device. + */ +public class MalwareStateForWindowsDevice extends Entity implements IJsonBackedObject { + + + /** + * The Detection Count. + * Number of times the malware is detected + */ + @SerializedName(value = "detectionCount", alternate = {"DetectionCount"}) + @Expose + @Nullable + public Integer detectionCount; + + /** + * The Device Name. + * Device name + */ + @SerializedName(value = "deviceName", alternate = {"DeviceName"}) + @Expose + @Nullable + public String deviceName; + + /** + * The Execution State. + * Execution status of the malware like blocked/executing etc. Possible values are: unknown, blocked, allowed, running, notRunning. + */ + @SerializedName(value = "executionState", alternate = {"ExecutionState"}) + @Expose + @Nullable + public WindowsMalwareExecutionState executionState; + + /** + * The Initial Detection Date Time. + * Initial detection datetime of the malware + */ + @SerializedName(value = "initialDetectionDateTime", alternate = {"InitialDetectionDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime initialDetectionDateTime; + + /** + * The Last State Change Date Time. + * The last time this particular threat was changed + */ + @SerializedName(value = "lastStateChangeDateTime", alternate = {"LastStateChangeDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastStateChangeDateTime; + + /** + * 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. + */ + @SerializedName(value = "threatState", alternate = {"ThreatState"}) + @Expose + @Nullable + public WindowsMalwareThreatState threatState; + + + /** + * 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/ManagedDevice.java b/src/main/java/com/microsoft/graph/models/ManagedDevice.java index 171dfc87784..cf208307dac 100644 --- a/src/main/java/com/microsoft/graph/models/ManagedDevice.java +++ b/src/main/java/com/microsoft/graph/models/ManagedDevice.java @@ -21,9 +21,11 @@ import com.microsoft.graph.models.ManagementAgentType; import com.microsoft.graph.models.ManagedDevicePartnerReportedHealthState; import com.microsoft.graph.models.DeviceCategory; +import com.microsoft.graph.models.WindowsProtectionState; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.DeviceCompliancePolicyStateCollectionPage; import com.microsoft.graph.requests.DeviceConfigurationStateCollectionPage; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionPage; import com.microsoft.graph.requests.UserCollectionPage; @@ -545,6 +547,15 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { @Nullable public DeviceCategory deviceCategory; + /** + * The Log Collection Requests. + * List of log collection requests + */ + @SerializedName(value = "logCollectionRequests", alternate = {"LogCollectionRequests"}) + @Expose + @Nullable + public com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionPage logCollectionRequests; + /** * The Users. * The primary users associated with the managed device. @@ -552,6 +563,15 @@ public class ManagedDevice extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.UserCollectionPage users; + /** + * The Windows Protection State. + * The device protection status. This property is read-only. + */ + @SerializedName(value = "windowsProtectionState", alternate = {"WindowsProtectionState"}) + @Expose + @Nullable + public WindowsProtectionState windowsProtectionState; + /** * Sets the raw JSON object @@ -570,6 +590,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J deviceConfigurationStates = serializer.deserializeObject(json.get("deviceConfigurationStates"), com.microsoft.graph.requests.DeviceConfigurationStateCollectionPage.class); } + if (json.has("logCollectionRequests")) { + logCollectionRequests = serializer.deserializeObject(json.get("logCollectionRequests"), com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionPage.class); + } + if (json.has("users")) { users = serializer.deserializeObject(json.get("users"), com.microsoft.graph.requests.UserCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/MembershipOutlierInsight.java b/src/main/java/com/microsoft/graph/models/MembershipOutlierInsight.java new file mode 100644 index 00000000000..b25d99af832 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MembershipOutlierInsight.java @@ -0,0 +1,105 @@ +// 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.OutlierContainerType; +import com.microsoft.graph.models.OutlierMemberType; +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.User; +import com.microsoft.graph.models.GovernanceInsight; + + +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 Membership Outlier Insight. + */ +public class MembershipOutlierInsight extends GovernanceInsight implements IJsonBackedObject { + + + /** + * The Container Id. + * Indicates the identifier of the container, for example, a group ID. + */ + @SerializedName(value = "containerId", alternate = {"ContainerId"}) + @Expose + @Nullable + public String containerId; + + /** + * The Member Id. + * Indicates the identifier of the user. + */ + @SerializedName(value = "memberId", alternate = {"MemberId"}) + @Expose + @Nullable + public String memberId; + + /** + * The Outlier Container Type. + * Indicates the type of container. The possible values are: group, unknownFutureValue. + */ + @SerializedName(value = "outlierContainerType", alternate = {"OutlierContainerType"}) + @Expose + @Nullable + public OutlierContainerType outlierContainerType; + + /** + * The Outlier Member Type. + * Indicates the type of outlier member. The possible values are: user, unknownFutureValue. + */ + @SerializedName(value = "outlierMemberType", alternate = {"OutlierMemberType"}) + @Expose + @Nullable + public OutlierMemberType outlierMemberType; + + /** + * The Container. + * Navigation link to the container directory object. For example, to a group. + */ + @SerializedName(value = "container", alternate = {"Container"}) + @Expose + @Nullable + public DirectoryObject container; + + /** + * The Last Modified By. + * Navigation link to a member object who modified the record. For example, to a user. + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public User lastModifiedBy; + + /** + * The Member. + * Navigation link to a member object. For example, to a user. + */ + @SerializedName(value = "member", alternate = {"Member"}) + @Expose + @Nullable + public DirectoryObject member; + + + /** + * 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/MobileAppTroubleshootingEvent.java b/src/main/java/com/microsoft/graph/models/MobileAppTroubleshootingEvent.java new file mode 100644 index 00000000000..d087256c62c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MobileAppTroubleshootingEvent.java @@ -0,0 +1,53 @@ +// 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.AppLogCollectionRequestCollectionPage; + + +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 Mobile App Troubleshooting Event. + */ +public class MobileAppTroubleshootingEvent extends Entity implements IJsonBackedObject { + + + /** + * The App Log Collection Requests. + * Indicates collection of App Log Upload Request. + */ + @SerializedName(value = "appLogCollectionRequests", alternate = {"AppLogCollectionRequests"}) + @Expose + @Nullable + public com.microsoft.graph.requests.AppLogCollectionRequestCollectionPage appLogCollectionRequests; + + + /** + * 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("appLogCollectionRequests")) { + appLogCollectionRequests = serializer.deserializeObject(json.get("appLogCollectionRequests"), com.microsoft.graph.requests.AppLogCollectionRequestCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/ObliterationBehavior.java b/src/main/java/com/microsoft/graph/models/ObliterationBehavior.java new file mode 100644 index 00000000000..b693aec71ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ObliterationBehavior.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.models; + + +/** + * The Enum Obliteration Behavior. +*/ +public enum ObliterationBehavior +{ + /** + * default + */ + DEFAULT, + /** + * do Not Obliterate + */ + DO_NOT_OBLITERATE, + /** + * obliterate With Warning + */ + OBLITERATE_WITH_WARNING, + /** + * always + */ + ALWAYS, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ObliterationBehavior values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/OperatingSystemUpgradeEligibility.java b/src/main/java/com/microsoft/graph/models/OperatingSystemUpgradeEligibility.java new file mode 100644 index 00000000000..88d201bfbd5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OperatingSystemUpgradeEligibility.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.models; + + +/** + * The Enum Operating System Upgrade Eligibility. +*/ +public enum OperatingSystemUpgradeEligibility +{ + /** + * upgraded + */ + UPGRADED, + /** + * unknown + */ + UNKNOWN, + /** + * not Capable + */ + NOT_CAPABLE, + /** + * capable + */ + CAPABLE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For OperatingSystemUpgradeEligibility values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/Organization.java b/src/main/java/com/microsoft/graph/models/Organization.java index dcb8a25e22b..3265298b899 100644 --- a/src/main/java/com/microsoft/graph/models/Organization.java +++ b/src/main/java/com/microsoft/graph/models/Organization.java @@ -181,7 +181,7 @@ public class Organization extends DirectoryObject implements IJsonBackedObject { /** * The Security Compliance Notification Mails. - * + * Not nullable. */ @SerializedName(value = "securityComplianceNotificationMails", alternate = {"SecurityComplianceNotificationMails"}) @Expose @@ -190,7 +190,7 @@ public class Organization extends DirectoryObject implements IJsonBackedObject { /** * The Security Compliance Notification Phones. - * + * Not nullable. */ @SerializedName(value = "securityComplianceNotificationPhones", alternate = {"SecurityComplianceNotificationPhones"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/OsVersionCount.java b/src/main/java/com/microsoft/graph/models/OsVersionCount.java new file mode 100644 index 00000000000..a8552ff3bd5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OsVersionCount.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.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 Os Version Count. + */ +public class OsVersionCount 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 Device Count. + * Count of devices with malware for the OS version + */ + @SerializedName(value = "deviceCount", alternate = {"DeviceCount"}) + @Expose + @Nullable + public Integer deviceCount; + + /** + * The Last Update Date Time. + * The Timestamp of the last update for the device count in UTC + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + /** + * The Os Version. + * OS version + */ + @SerializedName(value = "osVersion", alternate = {"OsVersion"}) + @Expose + @Nullable + public String osVersion; + + + /** + * 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/OutlierContainerType.java b/src/main/java/com/microsoft/graph/models/OutlierContainerType.java new file mode 100644 index 00000000000..e7a8fabc82e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OutlierContainerType.java @@ -0,0 +1,26 @@ +// 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 Outlier Container Type. +*/ +public enum OutlierContainerType +{ + /** + * group + */ + GROUP, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For OutlierContainerType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/OutlierMemberType.java b/src/main/java/com/microsoft/graph/models/OutlierMemberType.java new file mode 100644 index 00000000000..e5e484d1b8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OutlierMemberType.java @@ -0,0 +1,26 @@ +// 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 Outlier Member Type. +*/ +public enum OutlierMemberType +{ + /** + * user + */ + USER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For OutlierMemberType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/PrintUsage.java b/src/main/java/com/microsoft/graph/models/PrintUsage.java index 77f00a75d04..3ee6adab071 100644 --- a/src/main/java/com/microsoft/graph/models/PrintUsage.java +++ b/src/main/java/com/microsoft/graph/models/PrintUsage.java @@ -25,6 +25,24 @@ public class PrintUsage extends Entity implements IJsonBackedObject { + /** + * The Black And White Page Count. + * + */ + @SerializedName(value = "blackAndWhitePageCount", alternate = {"BlackAndWhitePageCount"}) + @Expose + @Nullable + public Long blackAndWhitePageCount; + + /** + * The Color Page Count. + * + */ + @SerializedName(value = "colorPageCount", alternate = {"ColorPageCount"}) + @Expose + @Nullable + public Long colorPageCount; + /** * The Completed Black And White Job Count. * @@ -43,6 +61,24 @@ public class PrintUsage extends Entity implements IJsonBackedObject { @Nullable public Long completedColorJobCount; + /** + * The Completed Job Count. + * + */ + @SerializedName(value = "completedJobCount", alternate = {"CompletedJobCount"}) + @Expose + @Nullable + public Long completedJobCount; + + /** + * The Double Sided Sheet Count. + * + */ + @SerializedName(value = "doubleSidedSheetCount", alternate = {"DoubleSidedSheetCount"}) + @Expose + @Nullable + public Long doubleSidedSheetCount; + /** * The Incomplete Job Count. * @@ -52,6 +88,33 @@ public class PrintUsage extends Entity implements IJsonBackedObject { @Nullable public Long incompleteJobCount; + /** + * The Media Sheet Count. + * + */ + @SerializedName(value = "mediaSheetCount", alternate = {"MediaSheetCount"}) + @Expose + @Nullable + public Long mediaSheetCount; + + /** + * The Page Count. + * + */ + @SerializedName(value = "pageCount", alternate = {"PageCount"}) + @Expose + @Nullable + public Long pageCount; + + /** + * The Single Sided Sheet Count. + * + */ + @SerializedName(value = "singleSidedSheetCount", alternate = {"SingleSidedSheetCount"}) + @Expose + @Nullable + public Long singleSidedSheetCount; + /** * The Usage Date. * diff --git a/src/main/java/com/microsoft/graph/models/PrinterShare.java b/src/main/java/com/microsoft/graph/models/PrinterShare.java index dc2b1a57c21..1ee29f89040 100644 --- a/src/main/java/com/microsoft/graph/models/PrinterShare.java +++ b/src/main/java/com/microsoft/graph/models/PrinterShare.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.PrinterShareViewpoint; import com.microsoft.graph.models.Printer; import com.microsoft.graph.models.PrinterBase; import com.microsoft.graph.requests.GroupCollectionPage; @@ -47,6 +48,15 @@ public class PrinterShare extends PrinterBase implements IJsonBackedObject { @Nullable public java.time.OffsetDateTime createdDateTime; + /** + * The View Point. + * Additional data for a printer share as viewed by the signed-in user. + */ + @SerializedName(value = "viewPoint", alternate = {"ViewPoint"}) + @Expose + @Nullable + public PrinterShareViewpoint viewPoint; + /** * The Allowed Groups. * The groups whose users have access to print using the printer. diff --git a/src/main/java/com/microsoft/graph/models/PrinterShareViewpoint.java b/src/main/java/com/microsoft/graph/models/PrinterShareViewpoint.java new file mode 100644 index 00000000000..a66b81f7d4b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PrinterShareViewpoint.java @@ -0,0 +1,59 @@ +// 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.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 Printer Share Viewpoint. + */ +public class PrinterShareViewpoint 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 Last Used Date Time. + * Date and time when the printer was last used by the signed-in user. 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 = "lastUsedDateTime", alternate = {"LastUsedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUsedDateTime; + + + /** + * 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/ReportRoot.java b/src/main/java/com/microsoft/graph/models/ReportRoot.java index 144f9ef522d..27db37beaba 100644 --- a/src/main/java/com/microsoft/graph/models/ReportRoot.java +++ b/src/main/java/com/microsoft/graph/models/ReportRoot.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.AuthenticationMethodsRoot; import com.microsoft.graph.models.SecurityReportsRoot; @@ -39,6 +40,15 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } + /** + * The Authentication Methods. + * + */ + @SerializedName(value = "authenticationMethods", alternate = {"AuthenticationMethods"}) + @Expose + @Nullable + public AuthenticationMethodsRoot authenticationMethods; + /** * The Daily Print Usage By Printer. * diff --git a/src/main/java/com/microsoft/graph/models/Schedule.java b/src/main/java/com/microsoft/graph/models/Schedule.java index a10c28606c3..b57f78b9160 100644 --- a/src/main/java/com/microsoft/graph/models/Schedule.java +++ b/src/main/java/com/microsoft/graph/models/Schedule.java @@ -128,7 +128,7 @@ public class Schedule extends Entity implements IJsonBackedObject { /** * The Offer Shift Requests. - * + * The offer requests for shifts in the schedule. */ @SerializedName(value = "offerShiftRequests", alternate = {"OfferShiftRequests"}) @Expose @@ -173,7 +173,7 @@ public class Schedule extends Entity implements IJsonBackedObject { /** * The Swap Shifts Change Requests. - * + * The swap requests for shifts in the schedule. */ @SerializedName(value = "swapShiftsChangeRequests", alternate = {"SwapShiftsChangeRequests"}) @Expose @@ -191,7 +191,7 @@ public class Schedule extends Entity implements IJsonBackedObject { /** * The Time Off Requests. - * + * The time off requests in the schedule. */ @SerializedName(value = "timeOffRequests", alternate = {"TimeOffRequests"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SearchHit.java b/src/main/java/com/microsoft/graph/models/SearchHit.java index 7e1bedc4339..9fb7065890f 100644 --- a/src/main/java/com/microsoft/graph/models/SearchHit.java +++ b/src/main/java/com/microsoft/graph/models/SearchHit.java @@ -58,7 +58,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Collapsed. - * Indicates whether the current result is collapsed when the collapseProperties property is used. + * Indicates whether the current result is collapsed when the collapseProperties property in the searchRequest is used. */ @SerializedName(value = "isCollapsed", alternate = {"IsCollapsed"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/SearchRequest.java b/src/main/java/com/microsoft/graph/models/SearchRequest.java index cfe252b50e6..a3b43e6e688 100644 --- a/src/main/java/com/microsoft/graph/models/SearchRequest.java +++ b/src/main/java/com/microsoft/graph/models/SearchRequest.java @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Aggregation Filters. - * + * Contains one or more filters to obtain search results aggregated and filtered to a specific value of a field. Optional.Build this filter based on a prior search that aggregates by the same field. From the response of the prior search, identify the searchBucket that filters results to the specific value of the field, use the string in its aggregationFilterToken property, and build an aggregation filter string in the format '{field}:/'{aggregationFilterToken}/''. If multiple values for the same field need to be provided, use the strings in its aggregationFilterToken property and build an aggregation filter string in the format '{field}:or(/'{aggregationFilterToken1}/',/'{aggregationFilterToken2}/')'. For example, searching and aggregating drive items by file type returns a searchBucket for the file type docx in the response. You can conveniently use the aggregationFilterToken returned for this searchBucket in a subsequent search query and filter matches down to drive items of the docx file type. Example 1 and example 2 show the actual requests and responses. */ @SerializedName(value = "aggregationFilters", alternate = {"AggregationFilters"}) @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Aggregations. - * + * Specifies aggregations (also known as refiners) to be returned alongside search results. Optional. */ @SerializedName(value = "aggregations", alternate = {"Aggregations"}) @Expose @@ -66,7 +66,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Collapse Properties. - * + * Contains the ordered collection of fields and limit to collapse results. Optional. */ @SerializedName(value = "collapseProperties", alternate = {"CollapseProperties"}) @Expose @@ -75,7 +75,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Content Sources. - * + * Contains the connection to be targeted. */ @SerializedName(value = "contentSources", alternate = {"ContentSources"}) @Expose @@ -84,7 +84,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Enable Top Results. - * + * This triggers hybrid sort for messages : the first 3 messages are the most relevant. This property is only applicable to entityType=message. Optional. */ @SerializedName(value = "enableTopResults", alternate = {"EnableTopResults"}) @Expose @@ -93,7 +93,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Entity Types. - * + * One or more types of resources expected in the response. Possible values are: event, message, driveItem, externalItem, site, list, listItem, drive, chatMessage, person, acronym, bookmark. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum:chatMessage, person, acronym, bookmark. See known limitations for those combinations of two or more entity types that are supported in the same search request. Required. */ @SerializedName(value = "entityTypes", alternate = {"EntityTypes"}) @Expose @@ -102,7 +102,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Fields. - * + * Contains the fields to be returned for each resource object specified in entityTypes, allowing customization of the fields returned by default; otherwise, including additional fields such as custom managed properties from SharePoint and OneDrive, or custom fields in externalItem from the content that Microsoft Graph connectors bring in. The fields property can use the semantic labels applied to properties. For example, if a property is labeled as title, you can retrieve it using the following syntax: label_title. Optional. */ @SerializedName(value = "fields", alternate = {"Fields"}) @Expose @@ -111,7 +111,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The From. - * + * Specifies the offset for the search results. Offset 0 returns the very first result. Optional. */ @SerializedName(value = "from", alternate = {"From"}) @Expose @@ -120,7 +120,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Query. - * + * Contains the query terms. Required. */ @SerializedName(value = "query", alternate = {"Query"}) @Expose @@ -129,7 +129,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Query Alteration Options. - * + * Query alteration options formatted in a JSON blob that contains two optional flags related to spelling correction. Optional. */ @SerializedName(value = "queryAlterationOptions", alternate = {"QueryAlterationOptions"}) @Expose @@ -138,7 +138,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Region. - * + * The geographic location for the search. Required for searches that use application permissions. For details, see Get the region value. */ @SerializedName(value = "region", alternate = {"Region"}) @Expose @@ -147,7 +147,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Result Template Options. - * + * Provides the search result template options to render search results from connectors. */ @SerializedName(value = "resultTemplateOptions", alternate = {"ResultTemplateOptions"}) @Expose @@ -156,7 +156,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Share Point One Drive Options. - * + * Indicates the kind of contents to be searched when a search is performed using application permissions. Optional. */ @SerializedName(value = "sharePointOneDriveOptions", alternate = {"SharePointOneDriveOptions"}) @Expose @@ -165,7 +165,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Size. - * + * The size of the page to be retrieved. The maximum value is 500. Optional. */ @SerializedName(value = "size", alternate = {"Size"}) @Expose @@ -174,7 +174,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Sort Properties. - * + * Contains the ordered collection of fields and direction to sort results. There can be at most 5 sort properties in the collection. Optional. */ @SerializedName(value = "sortProperties", alternate = {"SortProperties"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Security.java b/src/main/java/com/microsoft/graph/models/Security.java index 556974f57c9..41992567083 100644 --- a/src/main/java/com/microsoft/graph/models/Security.java +++ b/src/main/java/com/microsoft/graph/models/Security.java @@ -13,6 +13,7 @@ import com.microsoft.graph.models.AttackSimulationRoot; import com.microsoft.graph.security.models.TriggersRoot; import com.microsoft.graph.security.models.TriggerTypesRoot; +import com.microsoft.graph.security.models.ThreatIntelligence; import com.microsoft.graph.models.Entity; import com.microsoft.graph.security.requests.IncidentCollectionPage; import com.microsoft.graph.requests.SecureScoreControlProfileCollectionPage; @@ -114,6 +115,15 @@ public class Security extends Entity implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.SecureScoreCollectionPage secureScores; + /** + * The Threat Intelligence. + * + */ + @SerializedName(value = "threatIntelligence", alternate = {"ThreatIntelligence"}) + @Expose + @Nullable + public ThreatIntelligence threatIntelligence; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/SensitivityLabelAssignment.java b/src/main/java/com/microsoft/graph/models/SensitivityLabelAssignment.java new file mode 100644 index 00000000000..2c2af0f03d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SensitivityLabelAssignment.java @@ -0,0 +1,78 @@ +// 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.SensitivityLabelAssignmentMethod; + + +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 Sensitivity Label Assignment. + */ +public class SensitivityLabelAssignment 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 Assignment Method. + * Indicates whether the label assignment is done automatically, as a standard, or a privileged operation. The possible values are: standard, privileged, auto, unknownFutureValue. + */ + @SerializedName(value = "assignmentMethod", alternate = {"AssignmentMethod"}) + @Expose + @Nullable + public SensitivityLabelAssignmentMethod assignmentMethod; + + /** + * The Sensitivity Label Id. + * The unique identifier for the sensitivity label assigned to the file. + */ + @SerializedName(value = "sensitivityLabelId", alternate = {"SensitivityLabelId"}) + @Expose + @Nullable + public String sensitivityLabelId; + + /** + * The Tenant Id. + * The unique identifier for the tenant that hosts the file when this label is applied. + */ + @SerializedName(value = "tenantId", alternate = {"TenantId"}) + @Expose + @Nullable + public String tenantId; + + + /** + * 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/SensitivityLabelAssignmentMethod.java b/src/main/java/com/microsoft/graph/models/SensitivityLabelAssignmentMethod.java new file mode 100644 index 00000000000..4d7919e1923 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SensitivityLabelAssignmentMethod.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.models; + + +/** + * The Enum Sensitivity Label Assignment Method. +*/ +public enum SensitivityLabelAssignmentMethod +{ + /** + * standard + */ + STANDARD, + /** + * privileged + */ + PRIVILEGED, + /** + * auto + */ + AUTO, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For SensitivityLabelAssignmentMethod values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/SignInUserType.java b/src/main/java/com/microsoft/graph/models/SignInUserType.java new file mode 100644 index 00000000000..b9a61efc074 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/SignInUserType.java @@ -0,0 +1,30 @@ +// 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 Sign In User Type. +*/ +public enum SignInUserType +{ + /** + * member + */ + MEMBER, + /** + * guest + */ + GUEST, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For SignInUserType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java b/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java new file mode 100644 index 00000000000..0521694b6ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TeamsAppAuthorization.java @@ -0,0 +1,60 @@ +// 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.TeamsAppPermissionSet; + + +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 Teams App Authorization. + */ +public class TeamsAppAuthorization 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 Required Permission Set. + * + */ + @SerializedName(value = "requiredPermissionSet", alternate = {"RequiredPermissionSet"}) + @Expose + @Nullable + public TeamsAppPermissionSet requiredPermissionSet; + + + /** + * 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/TeamsAppDefinition.java b/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java index 2314540f8aa..5a7c4708cbc 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppDefinition.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.models.TeamsAppAuthorization; import com.microsoft.graph.models.IdentitySet; import com.microsoft.graph.models.TeamsAppPublishingState; import com.microsoft.graph.models.TeamworkBot; @@ -28,6 +29,15 @@ public class TeamsAppDefinition extends Entity implements IJsonBackedObject { + /** + * The Authorization. + * + */ + @SerializedName(value = "authorization", alternate = {"Authorization"}) + @Expose + @Nullable + public TeamsAppAuthorization authorization; + /** * The Created By. * diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java b/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java index 1ee2709d0d5..5a6a5d879f2 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppInstallation.java @@ -8,6 +8,7 @@ import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; +import com.microsoft.graph.models.TeamsAppPermissionSet; import com.microsoft.graph.models.TeamsApp; import com.microsoft.graph.models.TeamsAppDefinition; import com.microsoft.graph.models.Entity; @@ -27,6 +28,15 @@ public class TeamsAppInstallation extends Entity implements IJsonBackedObject { + /** + * The Consented Permission Set. + * + */ + @SerializedName(value = "consentedPermissionSet", alternate = {"ConsentedPermissionSet"}) + @Expose + @Nullable + public TeamsAppPermissionSet consentedPermissionSet; + /** * The Teams App. * The app that is installed. diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppInstallationUpgradeParameterSet.java b/src/main/java/com/microsoft/graph/models/TeamsAppInstallationUpgradeParameterSet.java index afc28095627..8657af9ae6f 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAppInstallationUpgradeParameterSet.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAppInstallationUpgradeParameterSet.java @@ -5,7 +5,7 @@ package com.microsoft.graph.models; - +import com.microsoft.graph.models.TeamsAppPermissionSet; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import javax.annotation.Nonnull; @@ -20,6 +20,15 @@ * The class for the Teams App Installation Upgrade Parameter Set. */ public class TeamsAppInstallationUpgradeParameterSet { + /** + * The consented Permission Set. + * + */ + @SerializedName(value = "consentedPermissionSet", alternate = {"ConsentedPermissionSet"}) + @Expose + @Nullable + public TeamsAppPermissionSet consentedPermissionSet; + /** * Instiaciates a new TeamsAppInstallationUpgradeParameterSet @@ -30,6 +39,7 @@ public TeamsAppInstallationUpgradeParameterSet() {} * @param builder builder bearing the parameters to initialize from */ protected TeamsAppInstallationUpgradeParameterSet(@Nonnull final TeamsAppInstallationUpgradeParameterSetBuilder builder) { + this.consentedPermissionSet = builder.consentedPermissionSet; } /** * Gets a new builder for the body @@ -43,6 +53,21 @@ public static TeamsAppInstallationUpgradeParameterSetBuilder newBuilder() { * Fluent builder for the TeamsAppInstallationUpgradeParameterSet */ public static final class TeamsAppInstallationUpgradeParameterSetBuilder { + /** + * The consentedPermissionSet parameter value + */ + @Nullable + protected TeamsAppPermissionSet consentedPermissionSet; + /** + * Sets the ConsentedPermissionSet + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public TeamsAppInstallationUpgradeParameterSetBuilder withConsentedPermissionSet(@Nullable final TeamsAppPermissionSet val) { + this.consentedPermissionSet = val; + return this; + } /** * Instanciates a new TeamsAppInstallationUpgradeParameterSetBuilder */ @@ -64,6 +89,9 @@ public TeamsAppInstallationUpgradeParameterSet build() { @Nonnull public java.util.List getFunctionOptions() { final ArrayList result = new ArrayList<>(); + if(this.consentedPermissionSet != null) { + result.add(new com.microsoft.graph.options.FunctionOption("consentedPermissionSet", consentedPermissionSet)); + } return result; } } diff --git a/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java b/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java new file mode 100644 index 00000000000..4b03efe0668 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TeamsAppPermissionSet.java @@ -0,0 +1,61 @@ +// 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.TeamsAppResourceSpecificPermission; + + +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 Teams App Permission Set. + */ +public class TeamsAppPermissionSet 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 Resource Specific Permissions. + * + */ + @SerializedName(value = "resourceSpecificPermissions", alternate = {"ResourceSpecificPermissions"}) + @Expose + @Nullable + public java.util.List resourceSpecificPermissions; + + + /** + * 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/TeamsAppResourceSpecificPermission.java b/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermission.java new file mode 100644 index 00000000000..d91976d7e40 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermission.java @@ -0,0 +1,69 @@ +// 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.TeamsAppResourceSpecificPermissionType; + + +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 Teams App Resource Specific Permission. + */ +public class TeamsAppResourceSpecificPermission 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 Permission Type. + * + */ + @SerializedName(value = "permissionType", alternate = {"PermissionType"}) + @Expose + @Nullable + public TeamsAppResourceSpecificPermissionType permissionType; + + /** + * The Permission Value. + * + */ + @SerializedName(value = "permissionValue", alternate = {"PermissionValue"}) + @Expose + @Nullable + public String permissionValue; + + + /** + * 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/TeamsAppResourceSpecificPermissionType.java b/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermissionType.java new file mode 100644 index 00000000000..bf02bb4fa9c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TeamsAppResourceSpecificPermissionType.java @@ -0,0 +1,30 @@ +// 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 Teams App Resource Specific Permission Type. +*/ +public enum TeamsAppResourceSpecificPermissionType +{ + /** + * delegated + */ + DELEGATED, + /** + * application + */ + APPLICATION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For TeamsAppResourceSpecificPermissionType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/User.java b/src/main/java/com/microsoft/graph/models/User.java index 0e309e1eacc..5cea1ee6d25 100644 --- a/src/main/java/com/microsoft/graph/models/User.java +++ b/src/main/java/com/microsoft/graph/models/User.java @@ -21,6 +21,7 @@ import com.microsoft.graph.models.PasswordProfile; import com.microsoft.graph.models.ProvisionedPlan; import com.microsoft.graph.models.MailboxSettings; +import com.microsoft.graph.models.UserPrint; import com.microsoft.graph.models.DirectoryObject; import com.microsoft.graph.models.Calendar; import com.microsoft.graph.models.InferenceClassification; @@ -35,6 +36,7 @@ import com.microsoft.graph.models.Authentication; import com.microsoft.graph.models.UserTeamwork; import com.microsoft.graph.models.Todo; +import com.microsoft.graph.models.EmployeeExperienceUser; import com.microsoft.graph.requests.LicenseDetailsCollectionPage; import com.microsoft.graph.requests.OAuth2PermissionGrantCollectionPage; import com.microsoft.graph.requests.ScopedRoleMembershipCollectionPage; @@ -646,6 +648,15 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Nullable public Integer deviceEnrollmentLimit; + /** + * The Print. + * + */ + @SerializedName(value = "print", alternate = {"Print"}) + @Expose + @Nullable + public UserPrint print; + /** * The About Me. * A freeform text entry field for the user to describe themselves. Returned only on $select. @@ -1067,7 +1078,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Online Meetings. - * + * Information about a meeting, including the URL used to join a meeting, the attendees' list, and the description. */ @SerializedName(value = "onlineMeetings", alternate = {"OnlineMeetings"}) @Expose @@ -1112,7 +1123,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Teamwork. - * + * A container for Microsoft Teams features available for the user. Read-only. Nullable. */ @SerializedName(value = "teamwork", alternate = {"Teamwork"}) @Expose @@ -1128,6 +1139,15 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Nullable public Todo todo; + /** + * The Employee Experience. + * + */ + @SerializedName(value = "employeeExperience", alternate = {"EmployeeExperience"}) + @Expose + @Nullable + public EmployeeExperienceUser employeeExperience; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/UserDefaultAuthenticationMethod.java b/src/main/java/com/microsoft/graph/models/UserDefaultAuthenticationMethod.java new file mode 100644 index 00000000000..ff936408048 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserDefaultAuthenticationMethod.java @@ -0,0 +1,50 @@ +// 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 User Default Authentication Method. +*/ +public enum UserDefaultAuthenticationMethod +{ + /** + * push + */ + PUSH, + /** + * oath + */ + OATH, + /** + * voice Mobile + */ + VOICE_MOBILE, + /** + * voice Alternate Mobile + */ + VOICE_ALTERNATE_MOBILE, + /** + * voice Office + */ + VOICE_OFFICE, + /** + * sms + */ + SMS, + /** + * none + */ + NONE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For UserDefaultAuthenticationMethod values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.java new file mode 100644 index 00000000000..fe91bc3c467 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.java @@ -0,0 +1,110 @@ +// 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.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 User Experience Analytics App Health App Performance By App Version Details. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails extends Entity implements IJsonBackedObject { + + + /** + * The App Crash Count. + * The number of crashes for the app. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appCrashCount", alternate = {"AppCrashCount"}) + @Expose + @Nullable + public Integer appCrashCount; + + /** + * The App Display Name. + * The friendly name of the application. + */ + @SerializedName(value = "appDisplayName", alternate = {"AppDisplayName"}) + @Expose + @Nullable + public String appDisplayName; + + /** + * The App Name. + * The name of the application. + */ + @SerializedName(value = "appName", alternate = {"AppName"}) + @Expose + @Nullable + public String appName; + + /** + * The App Publisher. + * The publisher of the application. + */ + @SerializedName(value = "appPublisher", alternate = {"AppPublisher"}) + @Expose + @Nullable + public String appPublisher; + + /** + * The App Version. + * The version of the application. + */ + @SerializedName(value = "appVersion", alternate = {"AppVersion"}) + @Expose + @Nullable + public String appVersion; + + /** + * The Device Count With Crashes. + * The total number of devices that have reported one or more application crashes for this application and version. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "deviceCountWithCrashes", alternate = {"DeviceCountWithCrashes"}) + @Expose + @Nullable + public Integer deviceCountWithCrashes; + + /** + * The Is Latest Used Version. + * When TRUE, indicates the version of application is the latest version for that application that is in use. When FALSE, indicates the version is not the latest version. FALSE by default. Supports: $select, $OrderBy. + */ + @SerializedName(value = "isLatestUsedVersion", alternate = {"IsLatestUsedVersion"}) + @Expose + @Nullable + public Boolean isLatestUsedVersion; + + /** + * The Is Most Used Version. + * When TRUE, indicates the version of application is the most used version for that application. When FALSE, indicates the version is not the most used version. FALSE by default. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "isMostUsedVersion", alternate = {"IsMostUsedVersion"}) + @Expose + @Nullable + public Boolean isMostUsedVersion; + + + /** + * 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/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.java new file mode 100644 index 00000000000..afb8b412956 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.java @@ -0,0 +1,110 @@ +// 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.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 User Experience Analytics App Health App Performance By App Version Device Id. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId extends Entity implements IJsonBackedObject { + + + /** + * The App Crash Count. + * The number of crashes for the app. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appCrashCount", alternate = {"AppCrashCount"}) + @Expose + @Nullable + public Integer appCrashCount; + + /** + * The App Display Name. + * The friendly name of the application. + */ + @SerializedName(value = "appDisplayName", alternate = {"AppDisplayName"}) + @Expose + @Nullable + public String appDisplayName; + + /** + * The App Name. + * The name of the application. + */ + @SerializedName(value = "appName", alternate = {"AppName"}) + @Expose + @Nullable + public String appName; + + /** + * The App Publisher. + * The publisher of the application. + */ + @SerializedName(value = "appPublisher", alternate = {"AppPublisher"}) + @Expose + @Nullable + public String appPublisher; + + /** + * The App Version. + * The version of the application. + */ + @SerializedName(value = "appVersion", alternate = {"AppVersion"}) + @Expose + @Nullable + public String appVersion; + + /** + * The Device Display Name. + * The name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceDisplayName", alternate = {"DeviceDisplayName"}) + @Expose + @Nullable + public String deviceDisplayName; + + /** + * The Device Id. + * The Intune device id of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Processed Date Time. + * The date and time when the statistics were last computed. The value cannot be modified and is automatically populated when the statistics are computed. 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, 2022 would look like this: '2022-01-01T00:00:00Z'. Returned by default. Read-only. + */ + @SerializedName(value = "processedDateTime", alternate = {"ProcessedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime processedDateTime; + + + /** + * 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/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.java new file mode 100644 index 00000000000..56d790922e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.java @@ -0,0 +1,119 @@ +// 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.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 User Experience Analytics App Health App Performance By OSVersion. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion extends Entity implements IJsonBackedObject { + + + /** + * The Active Device Count. + * The number of devices where the application has been active. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "activeDeviceCount", alternate = {"ActiveDeviceCount"}) + @Expose + @Nullable + public Integer activeDeviceCount; + + /** + * The App Crash Count. + * The number of crashes for the application. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appCrashCount", alternate = {"AppCrashCount"}) + @Expose + @Nullable + public Integer appCrashCount; + + /** + * The App Display Name. + * The friendly name of the application. Possible values are: Outlook, Excel. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appDisplayName", alternate = {"AppDisplayName"}) + @Expose + @Nullable + public String appDisplayName; + + /** + * The App Name. + * The name of the application. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appName", alternate = {"AppName"}) + @Expose + @Nullable + public String appName; + + /** + * The App Publisher. + * The publisher of the application. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appPublisher", alternate = {"AppPublisher"}) + @Expose + @Nullable + public String appPublisher; + + /** + * The App Usage Duration. + * The total usage time of the application in minutes. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appUsageDuration", alternate = {"AppUsageDuration"}) + @Expose + @Nullable + public Integer appUsageDuration; + + /** + * The Mean Time To Failure In Minutes. + * The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "meanTimeToFailureInMinutes", alternate = {"MeanTimeToFailureInMinutes"}) + @Expose + @Nullable + public Integer meanTimeToFailureInMinutes; + + /** + * The Os Build Number. + * The OS build number of the application. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osBuildNumber", alternate = {"OsBuildNumber"}) + @Expose + @Nullable + public String osBuildNumber; + + /** + * The Os Version. + * The OS version of the application. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osVersion", alternate = {"OsVersion"}) + @Expose + @Nullable + public String osVersion; + + + /** + * 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/UserExperienceAnalyticsAppHealthApplicationPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthApplicationPerformance.java new file mode 100644 index 00000000000..91b33f0f227 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthApplicationPerformance.java @@ -0,0 +1,119 @@ +// 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.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 User Experience Analytics App Health Application Performance. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformance extends Entity implements IJsonBackedObject { + + + /** + * The Active Device Count. + * The health score of the application. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "activeDeviceCount", alternate = {"ActiveDeviceCount"}) + @Expose + @Nullable + public Integer activeDeviceCount; + + /** + * The App Crash Count. + * The number of crashes for the application. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appCrashCount", alternate = {"AppCrashCount"}) + @Expose + @Nullable + public Integer appCrashCount; + + /** + * The App Display Name. + * The friendly name of the application. Possible values are: Outlook, Excel. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appDisplayName", alternate = {"AppDisplayName"}) + @Expose + @Nullable + public String appDisplayName; + + /** + * The App Hang Count. + * The number of hangs for the application. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appHangCount", alternate = {"AppHangCount"}) + @Expose + @Nullable + public Integer appHangCount; + + /** + * The App Health Score. + * The health score of the application. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "appHealthScore", alternate = {"AppHealthScore"}) + @Expose + @Nullable + public Double appHealthScore; + + /** + * The App Name. + * The name of the application. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appName", alternate = {"AppName"}) + @Expose + @Nullable + public String appName; + + /** + * The App Publisher. + * The publisher of the application. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appPublisher", alternate = {"AppPublisher"}) + @Expose + @Nullable + public String appPublisher; + + /** + * The App Usage Duration. + * The total usage time of the application in minutes. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appUsageDuration", alternate = {"AppUsageDuration"}) + @Expose + @Nullable + public Integer appUsageDuration; + + /** + * The Mean Time To Failure In Minutes. + * The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "meanTimeToFailureInMinutes", alternate = {"MeanTimeToFailureInMinutes"}) + @Expose + @Nullable + public Integer meanTimeToFailureInMinutes; + + + /** + * 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/UserExperienceAnalyticsAppHealthDeviceModelPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.java new file mode 100644 index 00000000000..0ad0e1c9b03 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.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.UserExperienceAnalyticsHealthState; +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 User Experience Analytics App Health Device Model Performance. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformance extends Entity implements IJsonBackedObject { + + + /** + * The Active Device Count. + * The number of active devices for the model. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "activeDeviceCount", alternate = {"ActiveDeviceCount"}) + @Expose + @Nullable + public Integer activeDeviceCount; + + /** + * The Device Manufacturer. + * The manufacturer name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceManufacturer", alternate = {"DeviceManufacturer"}) + @Expose + @Nullable + public String deviceManufacturer; + + /** + * The Device Model. + * The model name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceModel", alternate = {"DeviceModel"}) + @Expose + @Nullable + public String deviceModel; + + /** + * 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. + */ + @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState healthStatus; + + /** + * The Mean Time To Failure In Minutes. + * The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "meanTimeToFailureInMinutes", alternate = {"MeanTimeToFailureInMinutes"}) + @Expose + @Nullable + public Integer meanTimeToFailureInMinutes; + + /** + * The Model App Health Score. + * The application health score of the device model. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "modelAppHealthScore", alternate = {"ModelAppHealthScore"}) + @Expose + @Nullable + public Double modelAppHealthScore; + + + /** + * 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/UserExperienceAnalyticsAppHealthDevicePerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformance.java new file mode 100644 index 00000000000..c2d08733033 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformance.java @@ -0,0 +1,138 @@ +// 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.UserExperienceAnalyticsHealthState; +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 User Experience Analytics App Health Device Performance. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformance extends Entity implements IJsonBackedObject { + + + /** + * The App Crash Count. + * The number of application crashes for the device. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appCrashCount", alternate = {"AppCrashCount"}) + @Expose + @Nullable + public Integer appCrashCount; + + /** + * The App Hang Count. + * The number of application hangs for the device. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "appHangCount", alternate = {"AppHangCount"}) + @Expose + @Nullable + public Integer appHangCount; + + /** + * The Crashed App Count. + * The number of distinct application crashes for the device. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "crashedAppCount", alternate = {"CrashedAppCount"}) + @Expose + @Nullable + public Integer crashedAppCount; + + /** + * The Device App Health Score. + * The application health score of the device. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "deviceAppHealthScore", alternate = {"DeviceAppHealthScore"}) + @Expose + @Nullable + public Double deviceAppHealthScore; + + /** + * The Device Display Name. + * The name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceDisplayName", alternate = {"DeviceDisplayName"}) + @Expose + @Nullable + public String deviceDisplayName; + + /** + * The Device Id. + * The Intune device id of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Device Manufacturer. + * The manufacturer name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceManufacturer", alternate = {"DeviceManufacturer"}) + @Expose + @Nullable + public String deviceManufacturer; + + /** + * The Device Model. + * The model name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceModel", alternate = {"DeviceModel"}) + @Expose + @Nullable + public String deviceModel; + + /** + * 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. + */ + @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState healthStatus; + + /** + * The Mean Time To Failure In Minutes. + * The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "meanTimeToFailureInMinutes", alternate = {"MeanTimeToFailureInMinutes"}) + @Expose + @Nullable + public Integer meanTimeToFailureInMinutes; + + /** + * The Processed Date Time. + * The date and time when the statistics were last computed. The value cannot be modified and is automatically populated when the statistics are computed. 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, 2022 would look like this: '2022-01-01T00:00:00Z'. Returned by default. Read-only. + */ + @SerializedName(value = "processedDateTime", alternate = {"ProcessedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime processedDateTime; + + + /** + * 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/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.java new file mode 100644 index 00000000000..e29f0a33813 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.java @@ -0,0 +1,101 @@ +// 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.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 User Experience Analytics App Health Device Performance Details. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetails extends Entity implements IJsonBackedObject { + + + /** + * The App Display Name. + * The friendly name of the application for which the event occurred. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appDisplayName", alternate = {"AppDisplayName"}) + @Expose + @Nullable + public String appDisplayName; + + /** + * The App Publisher. + * The publisher of the application. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appPublisher", alternate = {"AppPublisher"}) + @Expose + @Nullable + public String appPublisher; + + /** + * The App Version. + * The version of the application. Possible values are: 1.0.0.1, 75.65.23.9. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "appVersion", alternate = {"AppVersion"}) + @Expose + @Nullable + public String appVersion; + + /** + * The Device Display Name. + * The name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceDisplayName", alternate = {"DeviceDisplayName"}) + @Expose + @Nullable + public String deviceDisplayName; + + /** + * The Device Id. + * The Intune device id of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Event Date Time. + * The time the event occurred. The value cannot be modified and is automatically populated when the statistics are computed. 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, 2022 would look like this: '2022-01-01T00:00:00Z'. Returned by default. Read-only. + */ + @SerializedName(value = "eventDateTime", alternate = {"EventDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime eventDateTime; + + /** + * The Event Type. + * The type of the event. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "eventType", alternate = {"EventType"}) + @Expose + @Nullable + public String eventType; + + + /** + * 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/UserExperienceAnalyticsAppHealthOSVersionPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthOSVersionPerformance.java new file mode 100644 index 00000000000..f8b92e7191d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAppHealthOSVersionPerformance.java @@ -0,0 +1,83 @@ +// 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.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 User Experience Analytics App Health OSVersion Performance. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformance extends Entity implements IJsonBackedObject { + + + /** + * The Active Device Count. + * The number of active devices for the OS version. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "activeDeviceCount", alternate = {"ActiveDeviceCount"}) + @Expose + @Nullable + public Integer activeDeviceCount; + + /** + * The Mean Time To Failure In Minutes. + * The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "meanTimeToFailureInMinutes", alternate = {"MeanTimeToFailureInMinutes"}) + @Expose + @Nullable + public Integer meanTimeToFailureInMinutes; + + /** + * The Os Build Number. + * The OS build number installed on the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osBuildNumber", alternate = {"OsBuildNumber"}) + @Expose + @Nullable + public String osBuildNumber; + + /** + * The Os Version. + * The OS version installed on the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osVersion", alternate = {"OsVersion"}) + @Expose + @Nullable + public String osVersion; + + /** + * The Os Version App Health Score. + * The application health score of the OS version. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "osVersionAppHealthScore", alternate = {"OsVersionAppHealthScore"}) + @Expose + @Nullable + public Double osVersionAppHealthScore; + + + /** + * 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/UserExperienceAnalyticsAutopilotDevicesSummary.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAutopilotDevicesSummary.java new file mode 100644 index 00000000000..9882aeea614 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsAutopilotDevicesSummary.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.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 User Experience Analytics Autopilot Devices Summary. + */ +public class UserExperienceAnalyticsAutopilotDevicesSummary 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 Devices Not Autopilot Registered. + * The count of intune devices that are not autopilot registerd. Read-only. + */ + @SerializedName(value = "devicesNotAutopilotRegistered", alternate = {"DevicesNotAutopilotRegistered"}) + @Expose + @Nullable + public Integer devicesNotAutopilotRegistered; + + /** + * The Devices Without Autopilot Profile Assigned. + * The count of intune devices not autopilot profile assigned. Read-only. + */ + @SerializedName(value = "devicesWithoutAutopilotProfileAssigned", alternate = {"DevicesWithoutAutopilotProfileAssigned"}) + @Expose + @Nullable + public Integer devicesWithoutAutopilotProfileAssigned; + + /** + * The Total Windows10Devices Without Tenant Attached. + * The count of windows 10 devices that are Intune and co-managed. Read-only. + */ + @SerializedName(value = "totalWindows10DevicesWithoutTenantAttached", alternate = {"TotalWindows10DevicesWithoutTenantAttached"}) + @Expose + @Nullable + public Integer totalWindows10DevicesWithoutTenantAttached; + + + /** + * 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/UserExperienceAnalyticsBaseline.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBaseline.java new file mode 100644 index 00000000000..e17bfdb728f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsBaseline.java @@ -0,0 +1,129 @@ +// 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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Baseline. + */ +public class UserExperienceAnalyticsBaseline extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * The date the custom baseline was created. The value cannot be modified and is automatically populated when the baseline is created. 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 would look like this: '2014-01-01T00:00:00Z'. Returned by default. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Display Name. + * The name of the baseline. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Is Built In. + * When TRUE, indicates the current baseline is the commercial median baseline. When FALSE, indicates it is a custom baseline. FALSE by default. + */ + @SerializedName(value = "isBuiltIn", alternate = {"IsBuiltIn"}) + @Expose + @Nullable + public Boolean isBuiltIn; + + /** + * The App Health Metrics. + * The scores and insights for the application health metrics. + */ + @SerializedName(value = "appHealthMetrics", alternate = {"AppHealthMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory appHealthMetrics; + + /** + * The Battery Health Metrics. + * The scores and insights for the battery health metrics. + */ + @SerializedName(value = "batteryHealthMetrics", alternate = {"BatteryHealthMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory batteryHealthMetrics; + + /** + * The Best Practices Metrics. + * The scores and insights for the best practices metrics. + */ + @SerializedName(value = "bestPracticesMetrics", alternate = {"BestPracticesMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory bestPracticesMetrics; + + /** + * The Device Boot Performance Metrics. + * The scores and insights for the device boot performance metrics. + */ + @SerializedName(value = "deviceBootPerformanceMetrics", alternate = {"DeviceBootPerformanceMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory deviceBootPerformanceMetrics; + + /** + * The Reboot Analytics Metrics. + * The scores and insights for the reboot analytics metrics. + */ + @SerializedName(value = "rebootAnalyticsMetrics", alternate = {"RebootAnalyticsMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory rebootAnalyticsMetrics; + + /** + * The Resource Performance Metrics. + * The scores and insights for the resource performance metrics. + */ + @SerializedName(value = "resourcePerformanceMetrics", alternate = {"ResourcePerformanceMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory resourcePerformanceMetrics; + + /** + * The Work From Anywhere Metrics. + * The scores and insights for the work from anywhere metrics. + */ + @SerializedName(value = "workFromAnywhereMetrics", alternate = {"WorkFromAnywhereMetrics"}) + @Expose + @Nullable + public UserExperienceAnalyticsCategory workFromAnywhereMetrics; + + + /** + * 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/UserExperienceAnalyticsCategory.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCategory.java new file mode 100644 index 00000000000..26ba80d97f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCategory.java @@ -0,0 +1,63 @@ +// 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.UserExperienceAnalyticsInsight; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionPage; + + +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 User Experience Analytics Category. + */ +public class UserExperienceAnalyticsCategory extends Entity implements IJsonBackedObject { + + + /** + * The Insights. + * The insights for the category. Read-only. + */ + @SerializedName(value = "insights", alternate = {"Insights"}) + @Expose + @Nullable + public java.util.List insights; + + /** + * The Metric Values. + * The metric values for the user experience analytics category. Read-only. + */ + @SerializedName(value = "metricValues", alternate = {"MetricValues"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionPage metricValues; + + + /** + * 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("metricValues")) { + metricValues = serializer.deserializeObject(json.get("metricValues"), com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCloudIdentityDevicesSummary.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCloudIdentityDevicesSummary.java new file mode 100644 index 00000000000..2e5e030232c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCloudIdentityDevicesSummary.java @@ -0,0 +1,59 @@ +// 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.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 User Experience Analytics Cloud Identity Devices Summary. + */ +public class UserExperienceAnalyticsCloudIdentityDevicesSummary 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 Device Without Cloud Identity Count. + * The count of devices that are not cloud identity. Read-only. + */ + @SerializedName(value = "deviceWithoutCloudIdentityCount", alternate = {"DeviceWithoutCloudIdentityCount"}) + @Expose + @Nullable + public Integer deviceWithoutCloudIdentityCount; + + + /** + * 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/UserExperienceAnalyticsCloudManagementDevicesSummary.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCloudManagementDevicesSummary.java new file mode 100644 index 00000000000..a0d98e58293 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsCloudManagementDevicesSummary.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.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 User Experience Analytics Cloud Management Devices Summary. + */ +public class UserExperienceAnalyticsCloudManagementDevicesSummary 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 Co Managed Device Count. + * Total number of co-managed devices. Read-only. + */ + @SerializedName(value = "coManagedDeviceCount", alternate = {"CoManagedDeviceCount"}) + @Expose + @Nullable + public Integer coManagedDeviceCount; + + /** + * The Intune Device Count. + * The count of intune devices that are not autopilot registerd. Read-only. + */ + @SerializedName(value = "intuneDeviceCount", alternate = {"IntuneDeviceCount"}) + @Expose + @Nullable + public Integer intuneDeviceCount; + + /** + * The Tenant Attach Device Count. + * Total count of tenant attach devices. Read-only. + */ + @SerializedName(value = "tenantAttachDeviceCount", alternate = {"TenantAttachDeviceCount"}) + @Expose + @Nullable + public Integer tenantAttachDeviceCount; + + + /** + * 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/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet.java new file mode 100644 index 00000000000..46a88fcf104 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet.java @@ -0,0 +1,98 @@ +// 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.UserExperienceAnalyticsSummarizedBy; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +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 User Experience Analytics Device Performance Summarize Device Performance Devices Parameter Set. + */ +public class UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet { + /** + * The summarize By. + * + */ + @SerializedName(value = "summarizeBy", alternate = {"SummarizeBy"}) + @Expose + @Nullable + public UserExperienceAnalyticsSummarizedBy summarizeBy; + + + /** + * Instiaciates a new UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet + */ + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet() {} + /** + * Instiaciates a new UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet(@Nonnull final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder builder) { + this.summarizeBy = builder.summarizeBy; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder newBuilder() { + return new UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder(); + } + /** + * Fluent builder for the UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet + */ + public static final class UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder { + /** + * The summarizeBy parameter value + */ + @Nullable + protected UserExperienceAnalyticsSummarizedBy summarizeBy; + /** + * Sets the SummarizeBy + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder withSummarizeBy(@Nullable final UserExperienceAnalyticsSummarizedBy val) { + this.summarizeBy = val; + return this; + } + /** + * Instanciates a new UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder + */ + @Nullable + protected UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet build() { + return new UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet(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.summarizeBy != null) { + result.add(new com.microsoft.graph.options.FunctionOption("summarizeBy", summarizeBy)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java new file mode 100644 index 00000000000..dd2e6f51fea --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceScores.java @@ -0,0 +1,120 @@ +// 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.UserExperienceAnalyticsHealthState; +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 User Experience Analytics Device Scores. + */ +public class UserExperienceAnalyticsDeviceScores extends Entity implements IJsonBackedObject { + + + /** + * The App Reliability Score. + * Indicates a score calculated from application health data to indicate when a device is having problems running one or more applications. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "appReliabilityScore", alternate = {"AppReliabilityScore"}) + @Expose + @Nullable + public Double appReliabilityScore; + + /** + * The Battery Health Score. + * Indicates a calulated score indicating the health of the device's battery. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "batteryHealthScore", alternate = {"BatteryHealthScore"}) + @Expose + @Nullable + public Double batteryHealthScore; + + /** + * The Device Name. + * The name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceName", alternate = {"DeviceName"}) + @Expose + @Nullable + public String deviceName; + + /** + * The Endpoint Analytics Score. + * Indicates a weighted average of the various scores. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "endpointAnalyticsScore", alternate = {"EndpointAnalyticsScore"}) + @Expose + @Nullable + public Double endpointAnalyticsScore; + + /** + * 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. + */ + @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState healthStatus; + + /** + * The Manufacturer. + * The manufacturer name of the device. Examples: Microsoft Corporation, HP, Lenovo. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "manufacturer", alternate = {"Manufacturer"}) + @Expose + @Nullable + public String manufacturer; + + /** + * The Model. + * The model name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "model", alternate = {"Model"}) + @Expose + @Nullable + public String model; + + /** + * The Startup Performance Score. + * Indicates a weighted average of boot score and logon score used for measuring startup performance. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "startupPerformanceScore", alternate = {"StartupPerformanceScore"}) + @Expose + @Nullable + public Double startupPerformanceScore; + + /** + * The Work From Anywhere Score. + * Indicates a weighted score of the work from anywhere on a device level. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "workFromAnywhereScore", alternate = {"WorkFromAnywhereScore"}) + @Expose + @Nullable + public Double workFromAnywhereScore; + + + /** + * 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/UserExperienceAnalyticsDeviceStartupHistory.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupHistory.java new file mode 100644 index 00000000000..847c77a863a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupHistory.java @@ -0,0 +1,183 @@ +// 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.UserExperienceAnalyticsOperatingSystemRestartCategory; +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 User Experience Analytics Device Startup History. + */ +public class UserExperienceAnalyticsDeviceStartupHistory extends Entity implements IJsonBackedObject { + + + /** + * The Core Boot Time In Ms. + * The device core boot time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "coreBootTimeInMs", alternate = {"CoreBootTimeInMs"}) + @Expose + @Nullable + public Integer coreBootTimeInMs; + + /** + * The Core Login Time In Ms. + * The device core login time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "coreLoginTimeInMs", alternate = {"CoreLoginTimeInMs"}) + @Expose + @Nullable + public Integer coreLoginTimeInMs; + + /** + * The Device Id. + * The Intune device id of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Feature Update Boot Time In Ms. + * The impact of device feature updates on boot time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "featureUpdateBootTimeInMs", alternate = {"FeatureUpdateBootTimeInMs"}) + @Expose + @Nullable + public Integer featureUpdateBootTimeInMs; + + /** + * The Group Policy Boot Time In Ms. + * The impact of device group policy client on boot time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "groupPolicyBootTimeInMs", alternate = {"GroupPolicyBootTimeInMs"}) + @Expose + @Nullable + public Integer groupPolicyBootTimeInMs; + + /** + * The Group Policy Login Time In Ms. + * The impact of device group policy client on login time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "groupPolicyLoginTimeInMs", alternate = {"GroupPolicyLoginTimeInMs"}) + @Expose + @Nullable + public Integer groupPolicyLoginTimeInMs; + + /** + * The Is Feature Update. + * When TRUE, indicates the device boot record is associated with feature updates. When FALSE, indicates the device boot record is not associated with feature updates. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "isFeatureUpdate", alternate = {"IsFeatureUpdate"}) + @Expose + @Nullable + public Boolean isFeatureUpdate; + + /** + * The Is First Login. + * When TRUE, indicates the device login is the first login after a reboot. When FALSE, indicates the device login is not the first login after a reboot. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "isFirstLogin", alternate = {"IsFirstLogin"}) + @Expose + @Nullable + public Boolean isFirstLogin; + + /** + * The Operating System Version. + * The user experience analytics device boot record's operating system version. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "operatingSystemVersion", alternate = {"OperatingSystemVersion"}) + @Expose + @Nullable + public String operatingSystemVersion; + + /** + * The Responsive Desktop Time In Ms. + * The time for desktop to become responsive during login process in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "responsiveDesktopTimeInMs", alternate = {"ResponsiveDesktopTimeInMs"}) + @Expose + @Nullable + public Integer responsiveDesktopTimeInMs; + + /** + * 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. + */ + @SerializedName(value = "restartCategory", alternate = {"RestartCategory"}) + @Expose + @Nullable + public UserExperienceAnalyticsOperatingSystemRestartCategory restartCategory; + + /** + * The Restart Fault Bucket. + * OS restart fault bucket. The fault bucket is used to find additional information about a system crash. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "restartFaultBucket", alternate = {"RestartFaultBucket"}) + @Expose + @Nullable + public String restartFaultBucket; + + /** + * The Restart Stop Code. + * OS restart stop code. This shows the bug check code which can be used to look up the blue screen reason. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "restartStopCode", alternate = {"RestartStopCode"}) + @Expose + @Nullable + public String restartStopCode; + + /** + * The Start Time. + * The device boot start time. The value cannot be modified and is automatically populated when the device performs a reboot. 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, 2022 would look like this: '2022-01-01T00:00:00Z'. Returned by default. Read-only. + */ + @SerializedName(value = "startTime", alternate = {"StartTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startTime; + + /** + * The Total Boot Time In Ms. + * The device total boot time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "totalBootTimeInMs", alternate = {"TotalBootTimeInMs"}) + @Expose + @Nullable + public Integer totalBootTimeInMs; + + /** + * The Total Login Time In Ms. + * The device total login time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "totalLoginTimeInMs", alternate = {"TotalLoginTimeInMs"}) + @Expose + @Nullable + public Integer totalLoginTimeInMs; + + + /** + * 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/UserExperienceAnalyticsDeviceStartupProcess.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupProcess.java new file mode 100644 index 00000000000..9f49a15257b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsDeviceStartupProcess.java @@ -0,0 +1,83 @@ +// 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.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 User Experience Analytics Device Startup Process. + */ +public class UserExperienceAnalyticsDeviceStartupProcess extends Entity implements IJsonBackedObject { + + + /** + * The Managed Device Id. + * The Intune device id of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "managedDeviceId", alternate = {"ManagedDeviceId"}) + @Expose + @Nullable + public String managedDeviceId; + + /** + * The Process Name. + * The name of the process. Examples: outlook, excel. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "processName", alternate = {"ProcessName"}) + @Expose + @Nullable + public String processName; + + /** + * The Product Name. + * The product name of the process. Examples: Microsoft Outlook, Microsoft Excel. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "productName", alternate = {"ProductName"}) + @Expose + @Nullable + public String productName; + + /** + * The Publisher. + * The publisher of the process. Examples: Microsoft Corporation, Contoso Corp. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "publisher", alternate = {"Publisher"}) + @Expose + @Nullable + public String publisher; + + /** + * The Startup Impact In Ms. + * The impact of startup process on device boot time in milliseconds. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "startupImpactInMs", alternate = {"StartupImpactInMs"}) + @Expose + @Nullable + public Integer startupImpactInMs; + + + /** + * 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/UserExperienceAnalyticsInsight.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsight.java new file mode 100644 index 00000000000..4c419a9422c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsight.java @@ -0,0 +1,89 @@ +// 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.UserExperienceAnalyticsInsightSeverity; +import com.microsoft.graph.models.UserExperienceAnalyticsInsightValue; + + +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 User Experience Analytics Insight. + */ +public class UserExperienceAnalyticsInsight 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 Insight Id. + * The unique identifier of the user experience analytics insight. + */ + @SerializedName(value = "insightId", alternate = {"InsightId"}) + @Expose + @Nullable + public String insightId; + + /** + * The Severity. + * The severity of the user experience analytics insight. Possible values are: none, informational, warning, error. None by default. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public UserExperienceAnalyticsInsightSeverity severity; + + /** + * The User Experience Analytics Metric Id. + * The unique identifier of the user experience analytics metric. + */ + @SerializedName(value = "userExperienceAnalyticsMetricId", alternate = {"UserExperienceAnalyticsMetricId"}) + @Expose + @Nullable + public String userExperienceAnalyticsMetricId; + + /** + * The Values. + * The value of the user experience analytics insight. + */ + @SerializedName(value = "values", alternate = {"Values"}) + @Expose + @Nullable + public java.util.List values; + + + /** + * 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/UserExperienceAnalyticsInsightSeverity.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsightSeverity.java new file mode 100644 index 00000000000..d71759f670d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsightSeverity.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.models; + + +/** + * The Enum User Experience Analytics Insight Severity. +*/ +public enum UserExperienceAnalyticsInsightSeverity +{ + /** + * none + */ + NONE, + /** + * informational + */ + INFORMATIONAL, + /** + * warning + */ + WARNING, + /** + * error + */ + ERROR, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For UserExperienceAnalyticsInsightSeverity values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsightValue.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsightValue.java new file mode 100644 index 00000000000..96d847f6dbf --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsInsightValue.java @@ -0,0 +1,50 @@ +// 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.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 User Experience Analytics Insight Value. + */ +public class UserExperienceAnalyticsInsightValue 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; + } + + + /** + * 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/UserExperienceAnalyticsMetric.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsMetric.java new file mode 100644 index 00000000000..4740d6e7553 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsMetric.java @@ -0,0 +1,56 @@ +// 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.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 User Experience Analytics Metric. + */ +public class UserExperienceAnalyticsMetric extends Entity implements IJsonBackedObject { + + + /** + * The Unit. + * The unit of the user experience analytics metric. Examples: none, percentage, count, seconds, score. + */ + @SerializedName(value = "unit", alternate = {"Unit"}) + @Expose + @Nullable + public String unit; + + /** + * The Value. + * The value of the user experience analytics metric. + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public Double value; + + + /** + * 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/UserExperienceAnalyticsMetricHistory.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsMetricHistory.java new file mode 100644 index 00000000000..c29e9fc9840 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsMetricHistory.java @@ -0,0 +1,65 @@ +// 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.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 User Experience Analytics Metric History. + */ +public class UserExperienceAnalyticsMetricHistory extends Entity implements IJsonBackedObject { + + + /** + * The Device Id. + * The Intune device id of the device. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Metric Date Time. + * The metric date time. The value cannot be modified and is automatically populated when the metric is created. 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 would look like this: '2014-01-01T00:00:00Z'. Returned by default. + */ + @SerializedName(value = "metricDateTime", alternate = {"MetricDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime metricDateTime; + + /** + * The Metric Type. + * The user experience analytics metric type. + */ + @SerializedName(value = "metricType", alternate = {"MetricType"}) + @Expose + @Nullable + public String metricType; + + + /** + * 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/UserExperienceAnalyticsModelScores.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsModelScores.java new file mode 100644 index 00000000000..689825f77a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsModelScores.java @@ -0,0 +1,120 @@ +// 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.UserExperienceAnalyticsHealthState; +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 User Experience Analytics Model Scores. + */ +public class UserExperienceAnalyticsModelScores extends Entity implements IJsonBackedObject { + + + /** + * The App Reliability Score. + * Indicates a score calculated from application health data to indicate when a device is having problems running one or more applications. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "appReliabilityScore", alternate = {"AppReliabilityScore"}) + @Expose + @Nullable + public Double appReliabilityScore; + + /** + * The Battery Health Score. + * Indicates a calulated score indicating the health of the device's battery. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "batteryHealthScore", alternate = {"BatteryHealthScore"}) + @Expose + @Nullable + public Double batteryHealthScore; + + /** + * The Endpoint Analytics Score. + * Indicates a weighted average of the various scores. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "endpointAnalyticsScore", alternate = {"EndpointAnalyticsScore"}) + @Expose + @Nullable + public Double endpointAnalyticsScore; + + /** + * 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. + */ + @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState healthStatus; + + /** + * The Manufacturer. + * The manufacturer name of the device. Examples: Microsoft Corporation, HP, Lenovo. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "manufacturer", alternate = {"Manufacturer"}) + @Expose + @Nullable + public String manufacturer; + + /** + * The Model. + * The model name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "model", alternate = {"Model"}) + @Expose + @Nullable + public String model; + + /** + * The Model Device Count. + * Indicates unique devices count of given model in a consolidated report. Supports: $select, $OrderBy. Read-only. Valid values -9.22337203685478E+18 to 9.22337203685478E+18 + */ + @SerializedName(value = "modelDeviceCount", alternate = {"ModelDeviceCount"}) + @Expose + @Nullable + public Long modelDeviceCount; + + /** + * The Startup Performance Score. + * Indicates a weighted average of boot score and logon score used for measuring startup performance. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "startupPerformanceScore", alternate = {"StartupPerformanceScore"}) + @Expose + @Nullable + public Double startupPerformanceScore; + + /** + * The Work From Anywhere Score. + * Indicates a weighted score of the work from anywhere on a device level. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "workFromAnywhereScore", alternate = {"WorkFromAnywhereScore"}) + @Expose + @Nullable + public Double workFromAnywhereScore; + + + /** + * 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/UserExperienceAnalyticsOperatingSystemRestartCategory.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsOperatingSystemRestartCategory.java new file mode 100644 index 00000000000..3efa1285351 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsOperatingSystemRestartCategory.java @@ -0,0 +1,58 @@ +// 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 User Experience Analytics Operating System Restart Category. +*/ +public enum UserExperienceAnalyticsOperatingSystemRestartCategory +{ + /** + * unknown + */ + UNKNOWN, + /** + * restart With Update + */ + RESTART_WITH_UPDATE, + /** + * restart Without Update + */ + RESTART_WITHOUT_UPDATE, + /** + * blue Screen + */ + BLUE_SCREEN, + /** + * shutdown With Update + */ + SHUTDOWN_WITH_UPDATE, + /** + * shutdown Without Update + */ + SHUTDOWN_WITHOUT_UPDATE, + /** + * long Power Button Press + */ + LONG_POWER_BUTTON_PRESS, + /** + * boot Error + */ + BOOT_ERROR, + /** + * update + */ + UPDATE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For UserExperienceAnalyticsOperatingSystemRestartCategory values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsOverview.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsOverview.java new file mode 100644 index 00000000000..2559c0501c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsOverview.java @@ -0,0 +1,49 @@ +// 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.UserExperienceAnalyticsInsight; +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 User Experience Analytics Overview. + */ +public class UserExperienceAnalyticsOverview extends Entity implements IJsonBackedObject { + + + /** + * The Insights. + * The user experience analytics insights. Read-only. + */ + @SerializedName(value = "insights", alternate = {"Insights"}) + @Expose + @Nullable + public java.util.List insights; + + + /** + * 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/UserExperienceAnalyticsScoreHistory.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsScoreHistory.java new file mode 100644 index 00000000000..d9784eb783a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsScoreHistory.java @@ -0,0 +1,47 @@ +// 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.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 User Experience Analytics Score History. + */ +public class UserExperienceAnalyticsScoreHistory extends Entity implements IJsonBackedObject { + + + /** + * The Startup Date Time. + * The device startup date time. The value cannot be modified and is automatically populated. 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 would look like this: '2014-01-01T00:00:00Z'. Returned by default. + */ + @SerializedName(value = "startupDateTime", alternate = {"StartupDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startupDateTime; + + + /** + * 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/UserExperienceAnalyticsSettings.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsSettings.java new file mode 100644 index 00000000000..5a202afd00a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsSettings.java @@ -0,0 +1,59 @@ +// 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.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 User Experience Analytics Settings. + */ +public class UserExperienceAnalyticsSettings 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 Configuration Manager Data Connector Configured. + * When TRUE, indicates Tenant attach is configured properly and System Center Configuration Manager (SCCM) tenant attached devices will show up in endpoint analytics reporting. When FALSE, indicates Tenant attach is not configured. FALSE by default. + */ + @SerializedName(value = "configurationManagerDataConnectorConfigured", alternate = {"ConfigurationManagerDataConnectorConfigured"}) + @Expose + @Nullable + public Boolean configurationManagerDataConnectorConfigured; + + + /** + * 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/UserExperienceAnalyticsSummarizedBy.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsSummarizedBy.java new file mode 100644 index 00000000000..183f930c588 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsSummarizedBy.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 User Experience Analytics Summarized By. +*/ +public enum UserExperienceAnalyticsSummarizedBy +{ + /** + * none + */ + NONE, + /** + * model + */ + MODEL, + /** + * all Regressions + */ + ALL_REGRESSIONS, + /** + * model Regression + */ + MODEL_REGRESSION, + /** + * manufacturer Regression + */ + MANUFACTURER_REGRESSION, + /** + * operating System Version Regression + */ + OPERATING_SYSTEM_VERSION_REGRESSION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For UserExperienceAnalyticsSummarizedBy values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWindows10DevicesSummary.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWindows10DevicesSummary.java new file mode 100644 index 00000000000..b042b546f45 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWindows10DevicesSummary.java @@ -0,0 +1,59 @@ +// 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.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 User Experience Analytics Windows10Devices Summary. + */ +public class UserExperienceAnalyticsWindows10DevicesSummary 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 Unsupported OSversion Device Count. + * The count of Windows 10 devices that have unsupported OS versions. Read-only. + */ + @SerializedName(value = "unsupportedOSversionDeviceCount", alternate = {"UnsupportedOSversionDeviceCount"}) + @Expose + @Nullable + public Integer unsupportedOSversionDeviceCount; + + + /** + * 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/UserExperienceAnalyticsWorkFromAnywhereDevice.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevice.java new file mode 100644 index 00000000000..9518f2ede78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevice.java @@ -0,0 +1,346 @@ +// 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.UserExperienceAnalyticsHealthState; +import com.microsoft.graph.models.OperatingSystemUpgradeEligibility; +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 User Experience Analytics Work From Anywhere Device. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDevice extends Entity implements IJsonBackedObject { + + + /** + * The Auto Pilot Profile Assigned. + * When TRUE, indicates the intune device's autopilot profile is assigned. When FALSE, indicates it's not Assigned. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "autoPilotProfileAssigned", alternate = {"AutoPilotProfileAssigned"}) + @Expose + @Nullable + public Boolean autoPilotProfileAssigned; + + /** + * The Auto Pilot Registered. + * When TRUE, indicates the intune device's autopilot is registered. When FALSE, indicates it's not registered. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "autoPilotRegistered", alternate = {"AutoPilotRegistered"}) + @Expose + @Nullable + public Boolean autoPilotRegistered; + + /** + * The Azure Ad Device Id. + * The Azure Active Directory (Azure AD) device Id. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "azureAdDeviceId", alternate = {"AzureAdDeviceId"}) + @Expose + @Nullable + public String azureAdDeviceId; + + /** + * The Azure Ad Join Type. + * The work from anywhere device's Azure Active Directory (Azure AD) join type. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "azureAdJoinType", alternate = {"AzureAdJoinType"}) + @Expose + @Nullable + public String azureAdJoinType; + + /** + * The Azure Ad Registered. + * When TRUE, indicates the device's Azure Active Directory (Azure AD) is registered. When False, indicates it's not registered. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "azureAdRegistered", alternate = {"AzureAdRegistered"}) + @Expose + @Nullable + public Boolean azureAdRegistered; + + /** + * The Cloud Identity Score. + * Indicates per device cloud identity score. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "cloudIdentityScore", alternate = {"CloudIdentityScore"}) + @Expose + @Nullable + public Double cloudIdentityScore; + + /** + * The Cloud Management Score. + * Indicates per device cloud management score. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "cloudManagementScore", alternate = {"CloudManagementScore"}) + @Expose + @Nullable + public Double cloudManagementScore; + + /** + * The Cloud Provisioning Score. + * Indicates per device cloud provisioning score. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "cloudProvisioningScore", alternate = {"CloudProvisioningScore"}) + @Expose + @Nullable + public Double cloudProvisioningScore; + + /** + * The Compliance Policy Set To Intune. + * When TRUE, indicates the device's compliance policy is set to intune. When FALSE, indicates it's not set to intune. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "compliancePolicySetToIntune", alternate = {"CompliancePolicySetToIntune"}) + @Expose + @Nullable + public Boolean compliancePolicySetToIntune; + + /** + * The Device Id. + * The Intune device id of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Device Name. + * The name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "deviceName", alternate = {"DeviceName"}) + @Expose + @Nullable + public String deviceName; + + /** + * 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. + */ + @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState healthStatus; + + /** + * The Is Cloud Managed Gateway Enabled. + * When TRUE, indicates the device's Cloud Management Gateway for Configuration Manager is enabled. When FALSE, indicates it's not enabled. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "isCloudManagedGatewayEnabled", alternate = {"IsCloudManagedGatewayEnabled"}) + @Expose + @Nullable + public Boolean isCloudManagedGatewayEnabled; + + /** + * The Managed By. + * The management agent of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "managedBy", alternate = {"ManagedBy"}) + @Expose + @Nullable + public String managedBy; + + /** + * The Manufacturer. + * The manufacturer name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "manufacturer", alternate = {"Manufacturer"}) + @Expose + @Nullable + public String manufacturer; + + /** + * The Model. + * The model name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "model", alternate = {"Model"}) + @Expose + @Nullable + public String model; + + /** + * The Os Check Failed. + * When TRUE, indicates OS check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osCheckFailed", alternate = {"OsCheckFailed"}) + @Expose + @Nullable + public Boolean osCheckFailed; + + /** + * The Os Description. + * The OS description of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osDescription", alternate = {"OsDescription"}) + @Expose + @Nullable + public String osDescription; + + /** + * The Os Version. + * The OS version of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "osVersion", alternate = {"OsVersion"}) + @Expose + @Nullable + public String osVersion; + + /** + * The Other Workloads Set To Intune. + * When TRUE, indicates the device's other workloads is set to intune. When FALSE, indicates it's not set to intune. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "otherWorkloadsSetToIntune", alternate = {"OtherWorkloadsSetToIntune"}) + @Expose + @Nullable + public Boolean otherWorkloadsSetToIntune; + + /** + * The Ownership. + * Ownership of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "ownership", alternate = {"Ownership"}) + @Expose + @Nullable + public String ownership; + + /** + * The Processor64Bit Check Failed. + * When TRUE, indicates processor hardware 64-bit architecture check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "processor64BitCheckFailed", alternate = {"Processor64BitCheckFailed"}) + @Expose + @Nullable + public Boolean processor64BitCheckFailed; + + /** + * The Processor Core Count Check Failed. + * When TRUE, indicates processor hardware core count check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "processorCoreCountCheckFailed", alternate = {"ProcessorCoreCountCheckFailed"}) + @Expose + @Nullable + public Boolean processorCoreCountCheckFailed; + + /** + * The Processor Family Check Failed. + * When TRUE, indicates processor hardware family check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "processorFamilyCheckFailed", alternate = {"ProcessorFamilyCheckFailed"}) + @Expose + @Nullable + public Boolean processorFamilyCheckFailed; + + /** + * The Processor Speed Check Failed. + * When TRUE, indicates processor hardware speed check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "processorSpeedCheckFailed", alternate = {"ProcessorSpeedCheckFailed"}) + @Expose + @Nullable + public Boolean processorSpeedCheckFailed; + + /** + * The Ram Check Failed. + * When TRUE, indicates RAM hardware check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "ramCheckFailed", alternate = {"RamCheckFailed"}) + @Expose + @Nullable + public Boolean ramCheckFailed; + + /** + * The Secure Boot Check Failed. + * When TRUE, indicates secure boot hardware check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "secureBootCheckFailed", alternate = {"SecureBootCheckFailed"}) + @Expose + @Nullable + public Boolean secureBootCheckFailed; + + /** + * The Serial Number. + * The serial number of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "serialNumber", alternate = {"SerialNumber"}) + @Expose + @Nullable + public String serialNumber; + + /** + * The Storage Check Failed. + * When TRUE, indicates storage hardware check failed for device to upgrade to the latest version of windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "storageCheckFailed", alternate = {"StorageCheckFailed"}) + @Expose + @Nullable + public Boolean storageCheckFailed; + + /** + * The Tenant Attached. + * When TRUE, indicates the device is Tenant Attached. When FALSE, indicates it's not Tenant Attached. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "tenantAttached", alternate = {"TenantAttached"}) + @Expose + @Nullable + public Boolean tenantAttached; + + /** + * The Tpm Check Failed. + * When TRUE, indicates Trusted Platform Module (TPM) hardware check failed for device to the latest version of upgrade to windows. When FALSE, indicates the check succeeded. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "tpmCheckFailed", alternate = {"TpmCheckFailed"}) + @Expose + @Nullable + public Boolean tpmCheckFailed; + + /** + * 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. + */ + @SerializedName(value = "upgradeEligibility", alternate = {"UpgradeEligibility"}) + @Expose + @Nullable + public OperatingSystemUpgradeEligibility upgradeEligibility; + + /** + * The Windows Score. + * Indicates per device windows score. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "windowsScore", alternate = {"WindowsScore"}) + @Expose + @Nullable + public Double windowsScore; + + /** + * The Work From Anywhere Score. + * Indicates work from anywhere per device overall score. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "workFromAnywhereScore", alternate = {"WorkFromAnywhereScore"}) + @Expose + @Nullable + public Double workFromAnywhereScore; + + + /** + * 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/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.java new file mode 100644 index 00000000000..236e66e19ca --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.java @@ -0,0 +1,180 @@ +// 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.UserExperienceAnalyticsAutopilotDevicesSummary; +import com.microsoft.graph.models.UserExperienceAnalyticsCloudIdentityDevicesSummary; +import com.microsoft.graph.models.UserExperienceAnalyticsCloudManagementDevicesSummary; +import com.microsoft.graph.models.UserExperienceAnalyticsWindows10DevicesSummary; + + +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 User Experience Analytics Work From Anywhere Devices Summary. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDevicesSummary 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 Autopilot Devices Summary. + * The user experience analytics work from anywhere Autopilot devices summary. Read-only. + */ + @SerializedName(value = "autopilotDevicesSummary", alternate = {"AutopilotDevicesSummary"}) + @Expose + @Nullable + public UserExperienceAnalyticsAutopilotDevicesSummary autopilotDevicesSummary; + + /** + * The Cloud Identity Devices Summary. + * The user experience analytics work from anywhere Cloud Identity devices summary. Read-only. + */ + @SerializedName(value = "cloudIdentityDevicesSummary", alternate = {"CloudIdentityDevicesSummary"}) + @Expose + @Nullable + public UserExperienceAnalyticsCloudIdentityDevicesSummary cloudIdentityDevicesSummary; + + /** + * The Cloud Management Devices Summary. + * The user experience analytics work from anywhere Cloud management devices summary. Read-only. + */ + @SerializedName(value = "cloudManagementDevicesSummary", alternate = {"CloudManagementDevicesSummary"}) + @Expose + @Nullable + public UserExperienceAnalyticsCloudManagementDevicesSummary cloudManagementDevicesSummary; + + /** + * The Co Managed Devices. + * Total number of co-managed devices. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "coManagedDevices", alternate = {"CoManagedDevices"}) + @Expose + @Nullable + public Integer coManagedDevices; + + /** + * The Devices Not Autopilot Registered. + * The count of intune devices that are not autopilot registerd. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "devicesNotAutopilotRegistered", alternate = {"DevicesNotAutopilotRegistered"}) + @Expose + @Nullable + public Integer devicesNotAutopilotRegistered; + + /** + * The Devices Without Autopilot Profile Assigned. + * The count of intune devices not autopilot profile assigned. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "devicesWithoutAutopilotProfileAssigned", alternate = {"DevicesWithoutAutopilotProfileAssigned"}) + @Expose + @Nullable + public Integer devicesWithoutAutopilotProfileAssigned; + + /** + * The Devices Without Cloud Identity. + * The count of devices that are not cloud identity. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "devicesWithoutCloudIdentity", alternate = {"DevicesWithoutCloudIdentity"}) + @Expose + @Nullable + public Integer devicesWithoutCloudIdentity; + + /** + * The Intune Devices. + * The count of intune devices that are not autopilot registerd. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "intuneDevices", alternate = {"IntuneDevices"}) + @Expose + @Nullable + public Integer intuneDevices; + + /** + * The Tenant Attach Devices. + * Total count of tenant attach devices. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "tenantAttachDevices", alternate = {"TenantAttachDevices"}) + @Expose + @Nullable + public Integer tenantAttachDevices; + + /** + * The Total Devices. + * The total count of devices. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "totalDevices", alternate = {"TotalDevices"}) + @Expose + @Nullable + public Integer totalDevices; + + /** + * The Unsupported OSversion Devices. + * The count of Windows 10 devices that have unsupported OS versions. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "unsupportedOSversionDevices", alternate = {"UnsupportedOSversionDevices"}) + @Expose + @Nullable + public Integer unsupportedOSversionDevices; + + /** + * The Windows10Devices. + * The count of windows 10 devices. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "windows10Devices", alternate = {"Windows10Devices"}) + @Expose + @Nullable + public Integer windows10Devices; + + /** + * The Windows10Devices Summary. + * The user experience analytics work from anywhere Windows 10 devices summary. Read-only. + */ + @SerializedName(value = "windows10DevicesSummary", alternate = {"Windows10DevicesSummary"}) + @Expose + @Nullable + public UserExperienceAnalyticsWindows10DevicesSummary windows10DevicesSummary; + + /** + * The Windows10Devices Without Tenant Attach. + * The count of windows 10 devices that are Intune and co-managed. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "windows10DevicesWithoutTenantAttach", alternate = {"Windows10DevicesWithoutTenantAttach"}) + @Expose + @Nullable + public Integer windows10DevicesWithoutTenantAttach; + + + /** + * 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/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.java new file mode 100644 index 00000000000..19d3f4b9b6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.java @@ -0,0 +1,137 @@ +// 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.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 User Experience Analytics Work From Anywhere Hardware Readiness Metric. + */ +public class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric extends Entity implements IJsonBackedObject { + + + /** + * The Os Check Failed Percentage. + * The percentage of devices for which OS check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "osCheckFailedPercentage", alternate = {"OsCheckFailedPercentage"}) + @Expose + @Nullable + public Double osCheckFailedPercentage; + + /** + * The Processor64Bit Check Failed Percentage. + * The percentage of devices for which processor hardware 64-bit architecture check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "processor64BitCheckFailedPercentage", alternate = {"Processor64BitCheckFailedPercentage"}) + @Expose + @Nullable + public Double processor64BitCheckFailedPercentage; + + /** + * The Processor Core Count Check Failed Percentage. + * The percentage of devices for which processor hardware core count check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "processorCoreCountCheckFailedPercentage", alternate = {"ProcessorCoreCountCheckFailedPercentage"}) + @Expose + @Nullable + public Double processorCoreCountCheckFailedPercentage; + + /** + * The Processor Family Check Failed Percentage. + * The percentage of devices for which processor hardware family check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "processorFamilyCheckFailedPercentage", alternate = {"ProcessorFamilyCheckFailedPercentage"}) + @Expose + @Nullable + public Double processorFamilyCheckFailedPercentage; + + /** + * The Processor Speed Check Failed Percentage. + * The percentage of devices for which processor hardware speed check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "processorSpeedCheckFailedPercentage", alternate = {"ProcessorSpeedCheckFailedPercentage"}) + @Expose + @Nullable + public Double processorSpeedCheckFailedPercentage; + + /** + * The Ram Check Failed Percentage. + * The percentage of devices for which RAM hardware check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "ramCheckFailedPercentage", alternate = {"RamCheckFailedPercentage"}) + @Expose + @Nullable + public Double ramCheckFailedPercentage; + + /** + * The Secure Boot Check Failed Percentage. + * The percentage of devices for which secure boot hardware check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "secureBootCheckFailedPercentage", alternate = {"SecureBootCheckFailedPercentage"}) + @Expose + @Nullable + public Double secureBootCheckFailedPercentage; + + /** + * The Storage Check Failed Percentage. + * The percentage of devices for which storage hardware check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "storageCheckFailedPercentage", alternate = {"StorageCheckFailedPercentage"}) + @Expose + @Nullable + public Double storageCheckFailedPercentage; + + /** + * The Total Device Count. + * The count of total devices in an organization. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "totalDeviceCount", alternate = {"TotalDeviceCount"}) + @Expose + @Nullable + public Integer totalDeviceCount; + + /** + * The Tpm Check Failed Percentage. + * The percentage of devices for which Trusted Platform Module (TPM) hardware check has failed. Valid values 0 to 100. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "tpmCheckFailedPercentage", alternate = {"TpmCheckFailedPercentage"}) + @Expose + @Nullable + public Double tpmCheckFailedPercentage; + + /** + * The Upgrade Eligible Device Count. + * The count of devices in an organization eligible for windows upgrade. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "upgradeEligibleDeviceCount", alternate = {"UpgradeEligibleDeviceCount"}) + @Expose + @Nullable + public Integer upgradeEligibleDeviceCount; + + + /** + * 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/UserExperienceAnalyticsWorkFromAnywhereMetric.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereMetric.java new file mode 100644 index 00000000000..a342df1e7fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereMetric.java @@ -0,0 +1,53 @@ +// 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.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage; + + +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 User Experience Analytics Work From Anywhere Metric. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetric extends Entity implements IJsonBackedObject { + + + /** + * The Metric Devices. + * The work from anywhere metric devices. Read-only. + */ + @SerializedName(value = "metricDevices", alternate = {"MetricDevices"}) + @Expose + @Nullable + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage metricDevices; + + + /** + * 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("metricDevices")) { + metricDevices = serializer.deserializeObject(json.get("metricDevices"), com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java new file mode 100644 index 00000000000..2726a59770a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.java @@ -0,0 +1,120 @@ +// 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.UserExperienceAnalyticsHealthState; +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 User Experience Analytics Work From Anywhere Model Performance. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformance extends Entity implements IJsonBackedObject { + + + /** + * The Cloud Identity Score. + * The cloud identity score of the device model. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "cloudIdentityScore", alternate = {"CloudIdentityScore"}) + @Expose + @Nullable + public Double cloudIdentityScore; + + /** + * The Cloud Management Score. + * The cloud management score of the device model. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "cloudManagementScore", alternate = {"CloudManagementScore"}) + @Expose + @Nullable + public Double cloudManagementScore; + + /** + * The Cloud Provisioning Score. + * The cloud provisioning score of the device model. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "cloudProvisioningScore", alternate = {"CloudProvisioningScore"}) + @Expose + @Nullable + public Double cloudProvisioningScore; + + /** + * 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. + */ + @SerializedName(value = "healthStatus", alternate = {"HealthStatus"}) + @Expose + @Nullable + public UserExperienceAnalyticsHealthState healthStatus; + + /** + * The Manufacturer. + * The manufacturer name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "manufacturer", alternate = {"Manufacturer"}) + @Expose + @Nullable + public String manufacturer; + + /** + * The Model. + * The model name of the device. Supports: $select, $OrderBy. Read-only. + */ + @SerializedName(value = "model", alternate = {"Model"}) + @Expose + @Nullable + public String model; + + /** + * The Model Device Count. + * The devices count for the model. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "modelDeviceCount", alternate = {"ModelDeviceCount"}) + @Expose + @Nullable + public Integer modelDeviceCount; + + /** + * The Windows Score. + * The window score of the device model. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "windowsScore", alternate = {"WindowsScore"}) + @Expose + @Nullable + public Double windowsScore; + + /** + * The Work From Anywhere Score. + * The work from anywhere score of the device model. Valid values 0 to 100. Value -1 means associated score is unavailable. Supports: $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 + */ + @SerializedName(value = "workFromAnywhereScore", alternate = {"WorkFromAnywhereScore"}) + @Expose + @Nullable + public Double workFromAnywhereScore; + + + /** + * 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/UserLastSignInRecommendationInsightSetting.java b/src/main/java/com/microsoft/graph/models/UserLastSignInRecommendationInsightSetting.java new file mode 100644 index 00000000000..48cd38ef771 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserLastSignInRecommendationInsightSetting.java @@ -0,0 +1,57 @@ +// 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.UserSignInRecommendationScope; +import com.microsoft.graph.models.AccessReviewRecommendationInsightSetting; + + +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 User Last Sign In Recommendation Insight Setting. + */ +public class UserLastSignInRecommendationInsightSetting extends AccessReviewRecommendationInsightSetting implements IJsonBackedObject { + + + /** + * The Recommendation Look Back Duration. + * Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. + */ + @SerializedName(value = "recommendationLookBackDuration", alternate = {"RecommendationLookBackDuration"}) + @Expose + @Nullable + public javax.xml.datatype.Duration recommendationLookBackDuration; + + /** + * The Sign In Scope. + * Indicates whether inactivity is calculated based on the user's inactivity in the tenant or in the application. The possible values are tenant, application, unknownFutureValue. application is only relevant when the access review is a review of an assignment to an application. + */ + @SerializedName(value = "signInScope", alternate = {"SignInScope"}) + @Expose + @Nullable + public UserSignInRecommendationScope signInScope; + + + /** + * 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/UserPrint.java b/src/main/java/com/microsoft/graph/models/UserPrint.java new file mode 100644 index 00000000000..4a50dd007ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserPrint.java @@ -0,0 +1,61 @@ +// 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.requests.PrinterShareCollectionPage; + + +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 User Print. + */ +public class UserPrint 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 Recent Printer Shares. + * + */ + @SerializedName(value = "recentPrinterShares", alternate = {"RecentPrinterShares"}) + @Expose + @Nullable + public com.microsoft.graph.requests.PrinterShareCollectionPage recentPrinterShares; + + + /** + * 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/UserRegistrationDetails.java b/src/main/java/com/microsoft/graph/models/UserRegistrationDetails.java new file mode 100644 index 00000000000..810667764e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationDetails.java @@ -0,0 +1,176 @@ +// 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.UserDefaultAuthenticationMethod; +import com.microsoft.graph.models.SignInUserType; +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 User Registration Details. + */ +public class UserRegistrationDetails extends Entity implements IJsonBackedObject { + + + /** + * The Is Admin. + * + */ + @SerializedName(value = "isAdmin", alternate = {"IsAdmin"}) + @Expose + @Nullable + public Boolean isAdmin; + + /** + * The Is Mfa Capable. + * + */ + @SerializedName(value = "isMfaCapable", alternate = {"IsMfaCapable"}) + @Expose + @Nullable + public Boolean isMfaCapable; + + /** + * The Is Mfa Registered. + * + */ + @SerializedName(value = "isMfaRegistered", alternate = {"IsMfaRegistered"}) + @Expose + @Nullable + public Boolean isMfaRegistered; + + /** + * The Is Passwordless Capable. + * + */ + @SerializedName(value = "isPasswordlessCapable", alternate = {"IsPasswordlessCapable"}) + @Expose + @Nullable + public Boolean isPasswordlessCapable; + + /** + * The Is Sspr Capable. + * + */ + @SerializedName(value = "isSsprCapable", alternate = {"IsSsprCapable"}) + @Expose + @Nullable + public Boolean isSsprCapable; + + /** + * The Is Sspr Enabled. + * + */ + @SerializedName(value = "isSsprEnabled", alternate = {"IsSsprEnabled"}) + @Expose + @Nullable + public Boolean isSsprEnabled; + + /** + * The Is Sspr Registered. + * + */ + @SerializedName(value = "isSsprRegistered", alternate = {"IsSsprRegistered"}) + @Expose + @Nullable + public Boolean isSsprRegistered; + + /** + * The Is System Preferred Authentication Method Enabled. + * + */ + @SerializedName(value = "isSystemPreferredAuthenticationMethodEnabled", alternate = {"IsSystemPreferredAuthenticationMethodEnabled"}) + @Expose + @Nullable + public Boolean isSystemPreferredAuthenticationMethodEnabled; + + /** + * The Last Updated Date Time. + * + */ + @SerializedName(value = "lastUpdatedDateTime", alternate = {"LastUpdatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdatedDateTime; + + /** + * The Methods Registered. + * + */ + @SerializedName(value = "methodsRegistered", alternate = {"MethodsRegistered"}) + @Expose + @Nullable + public java.util.List methodsRegistered; + + /** + * The System Preferred Authentication Methods. + * + */ + @SerializedName(value = "systemPreferredAuthenticationMethods", alternate = {"SystemPreferredAuthenticationMethods"}) + @Expose + @Nullable + public java.util.List systemPreferredAuthenticationMethods; + + /** + * The User Display Name. + * + */ + @SerializedName(value = "userDisplayName", alternate = {"UserDisplayName"}) + @Expose + @Nullable + public String userDisplayName; + + /** + * The User Preferred Method For Secondary Authentication. + * + */ + @SerializedName(value = "userPreferredMethodForSecondaryAuthentication", alternate = {"UserPreferredMethodForSecondaryAuthentication"}) + @Expose + @Nullable + public UserDefaultAuthenticationMethod userPreferredMethodForSecondaryAuthentication; + + /** + * The User Principal Name. + * + */ + @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) + @Expose + @Nullable + public String userPrincipalName; + + /** + * The User Type. + * + */ + @SerializedName(value = "userType", alternate = {"UserType"}) + @Expose + @Nullable + public SignInUserType userType; + + + /** + * 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/UserRegistrationFeatureCount.java b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureCount.java new file mode 100644 index 00000000000..28414213b36 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureCount.java @@ -0,0 +1,69 @@ +// 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.AuthenticationMethodFeature; + + +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 User Registration Feature Count. + */ +public class UserRegistrationFeatureCount 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 Feature. + * + */ + @SerializedName(value = "feature", alternate = {"Feature"}) + @Expose + @Nullable + public AuthenticationMethodFeature feature; + + /** + * The User Count. + * + */ + @SerializedName(value = "userCount", alternate = {"UserCount"}) + @Expose + @Nullable + public Long userCount; + + + /** + * 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/UserRegistrationFeatureSummary.java b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureSummary.java new file mode 100644 index 00000000000..afed01be981 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationFeatureSummary.java @@ -0,0 +1,90 @@ +// 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.UserRegistrationFeatureCount; +import com.microsoft.graph.models.IncludedUserRoles; +import com.microsoft.graph.models.IncludedUserTypes; + + +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 User Registration Feature Summary. + */ +public class UserRegistrationFeatureSummary 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 Total User Count. + * + */ + @SerializedName(value = "totalUserCount", alternate = {"TotalUserCount"}) + @Expose + @Nullable + public Long totalUserCount; + + /** + * The User Registration Feature Counts. + * + */ + @SerializedName(value = "userRegistrationFeatureCounts", alternate = {"UserRegistrationFeatureCounts"}) + @Expose + @Nullable + public java.util.List userRegistrationFeatureCounts; + + /** + * The User Roles. + * + */ + @SerializedName(value = "userRoles", alternate = {"UserRoles"}) + @Expose + @Nullable + public IncludedUserRoles userRoles; + + /** + * The User Types. + * + */ + @SerializedName(value = "userTypes", alternate = {"UserTypes"}) + @Expose + @Nullable + public IncludedUserTypes userTypes; + + + /** + * 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/UserRegistrationMethodCount.java b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodCount.java new file mode 100644 index 00000000000..23869ce994a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodCount.java @@ -0,0 +1,68 @@ +// 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.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 User Registration Method Count. + */ +public class UserRegistrationMethodCount 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 Authentication Method. + * + */ + @SerializedName(value = "authenticationMethod", alternate = {"AuthenticationMethod"}) + @Expose + @Nullable + public String authenticationMethod; + + /** + * The User Count. + * + */ + @SerializedName(value = "userCount", alternate = {"UserCount"}) + @Expose + @Nullable + public Long userCount; + + + /** + * 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/UserRegistrationMethodSummary.java b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodSummary.java new file mode 100644 index 00000000000..c878cd689a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserRegistrationMethodSummary.java @@ -0,0 +1,90 @@ +// 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.UserRegistrationMethodCount; +import com.microsoft.graph.models.IncludedUserRoles; +import com.microsoft.graph.models.IncludedUserTypes; + + +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 User Registration Method Summary. + */ +public class UserRegistrationMethodSummary 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 Total User Count. + * + */ + @SerializedName(value = "totalUserCount", alternate = {"TotalUserCount"}) + @Expose + @Nullable + public Long totalUserCount; + + /** + * The User Registration Method Counts. + * + */ + @SerializedName(value = "userRegistrationMethodCounts", alternate = {"UserRegistrationMethodCounts"}) + @Expose + @Nullable + public java.util.List userRegistrationMethodCounts; + + /** + * The User Roles. + * + */ + @SerializedName(value = "userRoles", alternate = {"UserRoles"}) + @Expose + @Nullable + public IncludedUserRoles userRoles; + + /** + * The User Types. + * + */ + @SerializedName(value = "userTypes", alternate = {"UserTypes"}) + @Expose + @Nullable + public IncludedUserTypes userTypes; + + + /** + * 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/UserSettings.java b/src/main/java/com/microsoft/graph/models/UserSettings.java index 4a79c7c86d8..7b82e9b977a 100644 --- a/src/main/java/com/microsoft/graph/models/UserSettings.java +++ b/src/main/java/com/microsoft/graph/models/UserSettings.java @@ -28,7 +28,7 @@ public class UserSettings extends Entity implements IJsonBackedObject { /** * The Contribution To Content Discovery As Organization Disabled. - * + * Reflects the organization level setting controlling delegate access to the trending API. When set to true, the organization doesn't have access to Office Delve. The relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected for the whole organization. This setting is read-only and can only be changed by administrators in the SharePoint admin center. */ @SerializedName(value = "contributionToContentDiscoveryAsOrganizationDisabled", alternate = {"ContributionToContentDiscoveryAsOrganizationDisabled"}) @Expose @@ -37,7 +37,7 @@ public class UserSettings extends Entity implements IJsonBackedObject { /** * The Contribution To Content Discovery Disabled. - * + * When set to true, the delegate access to the user's trending API is disabled. When set to true, documents in the user's Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected. Users can control this setting in Office Delve. */ @SerializedName(value = "contributionToContentDiscoveryDisabled", alternate = {"ContributionToContentDiscoveryDisabled"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UserSignInInsight.java b/src/main/java/com/microsoft/graph/models/UserSignInInsight.java new file mode 100644 index 00000000000..9aa6daf1cec --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserSignInInsight.java @@ -0,0 +1,47 @@ +// 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.GovernanceInsight; + + +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 User Sign In Insight. + */ +public class UserSignInInsight extends GovernanceInsight implements IJsonBackedObject { + + + /** + * The Last Sign In Date Time. + * Indicates when the user last signed in. + */ + @SerializedName(value = "lastSignInDateTime", alternate = {"LastSignInDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSignInDateTime; + + + /** + * 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/UserSignInRecommendationScope.java b/src/main/java/com/microsoft/graph/models/UserSignInRecommendationScope.java new file mode 100644 index 00000000000..1e590fe78d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/UserSignInRecommendationScope.java @@ -0,0 +1,30 @@ +// 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 User Sign In Recommendation Scope. +*/ +public enum UserSignInRecommendationScope +{ + /** + * tenant + */ + TENANT, + /** + * application + */ + APPLICATION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For UserSignInRecommendationScope values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsDefenderProductStatus.java b/src/main/java/com/microsoft/graph/models/WindowsDefenderProductStatus.java new file mode 100644 index 00000000000..268be076050 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsDefenderProductStatus.java @@ -0,0 +1,122 @@ +// 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 Windows Defender Product Status. +*/ +public enum WindowsDefenderProductStatus +{ + /** + * no Status + */ + NO_STATUS, + /** + * service Not Running + */ + SERVICE_NOT_RUNNING, + /** + * service Started Without Malware Protection + */ + SERVICE_STARTED_WITHOUT_MALWARE_PROTECTION, + /** + * pending Full Scan Due To Threat Action + */ + PENDING_FULL_SCAN_DUE_TO_THREAT_ACTION, + /** + * pending Reboot Due To Threat Action + */ + PENDING_REBOOT_DUE_TO_THREAT_ACTION, + /** + * pending Manual Steps Due To Threat Action + */ + PENDING_MANUAL_STEPS_DUE_TO_THREAT_ACTION, + /** + * av Signatures Out Of Date + */ + AV_SIGNATURES_OUT_OF_DATE, + /** + * as Signatures Out Of Date + */ + AS_SIGNATURES_OUT_OF_DATE, + /** + * no Quick Scan Happened For Specified Period + */ + NO_QUICK_SCAN_HAPPENED_FOR_SPECIFIED_PERIOD, + /** + * no Full Scan Happened For Specified Period + */ + NO_FULL_SCAN_HAPPENED_FOR_SPECIFIED_PERIOD, + /** + * system Initiated Scan In Progress + */ + SYSTEM_INITIATED_SCAN_IN_PROGRESS, + /** + * system Initiated Clean In Progress + */ + SYSTEM_INITIATED_CLEAN_IN_PROGRESS, + /** + * samples Pending Submission + */ + SAMPLES_PENDING_SUBMISSION, + /** + * product Running In Evaluation Mode + */ + PRODUCT_RUNNING_IN_EVALUATION_MODE, + /** + * product Running In Non Genuine Mode + */ + PRODUCT_RUNNING_IN_NON_GENUINE_MODE, + /** + * product Expired + */ + PRODUCT_EXPIRED, + /** + * offline Scan Required + */ + OFFLINE_SCAN_REQUIRED, + /** + * service Shutdown As Part Of System Shutdown + */ + SERVICE_SHUTDOWN_AS_PART_OF_SYSTEM_SHUTDOWN, + /** + * threat Remediation Failed Critically + */ + THREAT_REMEDIATION_FAILED_CRITICALLY, + /** + * threat Remediation Failed Non Critically + */ + THREAT_REMEDIATION_FAILED_NON_CRITICALLY, + /** + * no Status Flags Set + */ + NO_STATUS_FLAGS_SET, + /** + * platform Out Of Date + */ + PLATFORM_OUT_OF_DATE, + /** + * platform Update In Progress + */ + PLATFORM_UPDATE_IN_PROGRESS, + /** + * platform About To Be Outdated + */ + PLATFORM_ABOUT_TO_BE_OUTDATED, + /** + * signature Or Platform End Of Life Is Past Or Is Impending + */ + SIGNATURE_OR_PLATFORM_END_OF_LIFE_IS_PAST_OR_IS_IMPENDING, + /** + * windows SMode Signatures In Use On Non Win10SInstall + */ + WINDOWS_S_MODE_SIGNATURES_IN_USE_ON_NON_WIN10_S_INSTALL, + /** + * For WindowsDefenderProductStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsDeviceHealthState.java b/src/main/java/com/microsoft/graph/models/WindowsDeviceHealthState.java new file mode 100644 index 00000000000..417a679d746 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsDeviceHealthState.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 Windows Device Health State. +*/ +public enum WindowsDeviceHealthState +{ + /** + * clean + */ + CLEAN, + /** + * full Scan Pending + */ + FULL_SCAN_PENDING, + /** + * reboot Pending + */ + REBOOT_PENDING, + /** + * manual Steps Pending + */ + MANUAL_STEPS_PENDING, + /** + * offline Scan Pending + */ + OFFLINE_SCAN_PENDING, + /** + * critical + */ + CRITICAL, + /** + * For WindowsDeviceHealthState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java b/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java new file mode 100644 index 00000000000..04bd4a50ada --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsDeviceMalwareState.java @@ -0,0 +1,133 @@ +// 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.WindowsMalwareCategory; +import com.microsoft.graph.models.WindowsMalwareExecutionState; +import com.microsoft.graph.models.WindowsMalwareSeverity; +import com.microsoft.graph.models.WindowsMalwareState; +import com.microsoft.graph.models.WindowsMalwareThreatState; +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 Windows Device Malware State. + */ +public class WindowsDeviceMalwareState extends Entity implements IJsonBackedObject { + + + /** + * The Additional Information Url. + * Information URL to learn more about the malware + */ + @SerializedName(value = "additionalInformationUrl", alternate = {"AdditionalInformationUrl"}) + @Expose + @Nullable + public String additionalInformationUrl; + + /** + * 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. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public WindowsMalwareCategory category; + + /** + * The Detection Count. + * Number of times the malware is detected + */ + @SerializedName(value = "detectionCount", alternate = {"DetectionCount"}) + @Expose + @Nullable + public Integer detectionCount; + + /** + * The Display Name. + * Malware name + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Execution State. + * Execution status of the malware like blocked/executing etc. Possible values are: unknown, blocked, allowed, running, notRunning. + */ + @SerializedName(value = "executionState", alternate = {"ExecutionState"}) + @Expose + @Nullable + public WindowsMalwareExecutionState executionState; + + /** + * The Initial Detection Date Time. + * Initial detection datetime of the malware + */ + @SerializedName(value = "initialDetectionDateTime", alternate = {"InitialDetectionDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime initialDetectionDateTime; + + /** + * The Last State Change Date Time. + * The last time this particular threat was changed + */ + @SerializedName(value = "lastStateChangeDateTime", alternate = {"LastStateChangeDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastStateChangeDateTime; + + /** + * The Severity. + * Severity of the malware. Possible values are: unknown, low, moderate, high, severe. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public WindowsMalwareSeverity severity; + + /** + * The State. + * Current status of the malware like cleaned/quarantined/allowed etc. Possible values are: unknown, detected, cleaned, quarantined, removed, allowed, blocked, cleanFailed, quarantineFailed, removeFailed, allowFailed, abandoned, blockFailed. + */ + @SerializedName(value = "state", alternate = {"State"}) + @Expose + @Nullable + public WindowsMalwareState state; + + /** + * The Threat State. + * Current status of the malware like cleaned/quarantined/allowed etc. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. + */ + @SerializedName(value = "threatState", alternate = {"ThreatState"}) + @Expose + @Nullable + public WindowsMalwareThreatState threatState; + + + /** + * 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/WindowsMalwareCategory.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategory.java new file mode 100644 index 00000000000..18cba7a6a22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategory.java @@ -0,0 +1,214 @@ +// 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 Windows Malware Category. +*/ +public enum WindowsMalwareCategory +{ + /** + * invalid + */ + INVALID, + /** + * adware + */ + ADWARE, + /** + * spyware + */ + SPYWARE, + /** + * password Stealer + */ + PASSWORD_STEALER, + /** + * trojan Downloader + */ + TROJAN_DOWNLOADER, + /** + * worm + */ + WORM, + /** + * backdoor + */ + BACKDOOR, + /** + * remote Access Trojan + */ + REMOTE_ACCESS_TROJAN, + /** + * trojan + */ + TROJAN, + /** + * email Flooder + */ + EMAIL_FLOODER, + /** + * keylogger + */ + KEYLOGGER, + /** + * dialer + */ + DIALER, + /** + * monitoring Software + */ + MONITORING_SOFTWARE, + /** + * browser Modifier + */ + BROWSER_MODIFIER, + /** + * cookie + */ + COOKIE, + /** + * browser Plugin + */ + BROWSER_PLUGIN, + /** + * aol Exploit + */ + AOL_EXPLOIT, + /** + * nuker + */ + NUKER, + /** + * security Disabler + */ + SECURITY_DISABLER, + /** + * joke Program + */ + JOKE_PROGRAM, + /** + * hostile Active XControl + */ + HOSTILE_ACTIVE_X_CONTROL, + /** + * software Bundler + */ + SOFTWARE_BUNDLER, + /** + * stealth Notifier + */ + STEALTH_NOTIFIER, + /** + * settings Modifier + */ + SETTINGS_MODIFIER, + /** + * tool Bar + */ + TOOL_BAR, + /** + * remote Control Software + */ + REMOTE_CONTROL_SOFTWARE, + /** + * trojan Ftp + */ + TROJAN_FTP, + /** + * potential Unwanted Software + */ + POTENTIAL_UNWANTED_SOFTWARE, + /** + * icq Exploit + */ + ICQ_EXPLOIT, + /** + * trojan Telnet + */ + TROJAN_TELNET, + /** + * exploit + */ + EXPLOIT, + /** + * filesharing Program + */ + FILESHARING_PROGRAM, + /** + * malware Creation Tool + */ + MALWARE_CREATION_TOOL, + /** + * tool + */ + TOOL, + /** + * trojan Denial Of Service + */ + TROJAN_DENIAL_OF_SERVICE, + /** + * trojan Dropper + */ + TROJAN_DROPPER, + /** + * trojan Mass Mailer + */ + TROJAN_MASS_MAILER, + /** + * trojan Monitoring Software + */ + TROJAN_MONITORING_SOFTWARE, + /** + * trojan Proxy Server + */ + TROJAN_PROXY_SERVER, + /** + * virus + */ + VIRUS, + /** + * known + */ + KNOWN, + /** + * unknown + */ + UNKNOWN, + /** + * spp + */ + SPP, + /** + * behavior + */ + BEHAVIOR, + /** + * vulnerability + */ + VULNERABILITY, + /** + * policy + */ + POLICY, + /** + * enterprise Unwanted Software + */ + ENTERPRISE_UNWANTED_SOFTWARE, + /** + * ransom + */ + RANSOM, + /** + * hips Rule + */ + HIPS_RULE, + /** + * For WindowsMalwareCategory values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.java new file mode 100644 index 00000000000..dd2b954ed43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareCategoryCount.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.WindowsMalwareCategory; + + +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 Windows Malware Category Count. + */ +public class WindowsMalwareCategoryCount 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 Active Malware Detection Count. + * Count of active malware detections for this malware category. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "activeMalwareDetectionCount", alternate = {"ActiveMalwareDetectionCount"}) + @Expose + @Nullable + public Integer activeMalwareDetectionCount; + + /** + * 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. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public WindowsMalwareCategory category; + + /** + * The Device Count. + * Count of devices with malware detections for this malware category + */ + @SerializedName(value = "deviceCount", alternate = {"DeviceCount"}) + @Expose + @Nullable + public Integer deviceCount; + + /** + * The Distinct Active Malware Count. + * Count of distinct active malwares for this malware category. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "distinctActiveMalwareCount", alternate = {"DistinctActiveMalwareCount"}) + @Expose + @Nullable + public Integer distinctActiveMalwareCount; + + /** + * The Last Update Date Time. + * The Timestamp of the last update for the device count in UTC + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + + /** + * 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/WindowsMalwareExecutionState.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionState.java new file mode 100644 index 00000000000..6959ca7097b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionState.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.models; + + +/** + * The Enum Windows Malware Execution State. +*/ +public enum WindowsMalwareExecutionState +{ + /** + * unknown + */ + UNKNOWN, + /** + * blocked + */ + BLOCKED, + /** + * allowed + */ + ALLOWED, + /** + * running + */ + RUNNING, + /** + * not Running + */ + NOT_RUNNING, + /** + * For WindowsMalwareExecutionState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java new file mode 100644 index 00000000000..4b983b3fd37 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareExecutionStateCount.java @@ -0,0 +1,78 @@ +// 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.WindowsMalwareExecutionState; + + +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 Windows Malware Execution State Count. + */ +public class WindowsMalwareExecutionStateCount 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 Device Count. + * Count of devices with malware detections for this malware execution state + */ + @SerializedName(value = "deviceCount", alternate = {"DeviceCount"}) + @Expose + @Nullable + public Integer deviceCount; + + /** + * The Execution State. + * Malware execution state. Possible values are: unknown, blocked, allowed, running, notRunning. + */ + @SerializedName(value = "executionState", alternate = {"ExecutionState"}) + @Expose + @Nullable + public WindowsMalwareExecutionState executionState; + + /** + * The Last Update Date Time. + * The Timestamp of the last update for the device count in UTC + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + + /** + * 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/WindowsMalwareInformation.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java new file mode 100644 index 00000000000..aba47c07571 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareInformation.java @@ -0,0 +1,100 @@ +// 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.WindowsMalwareCategory; +import com.microsoft.graph.models.WindowsMalwareSeverity; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionPage; + + +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 Windows Malware Information. + */ +public class WindowsMalwareInformation extends Entity implements IJsonBackedObject { + + + /** + * The Additional Information Url. + * Information URL to learn more about the malware + */ + @SerializedName(value = "additionalInformationUrl", alternate = {"AdditionalInformationUrl"}) + @Expose + @Nullable + public String additionalInformationUrl; + + /** + * 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. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public WindowsMalwareCategory category; + + /** + * The Display Name. + * Malware name + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Last Detection Date Time. + * The last time the malware is detected + */ + @SerializedName(value = "lastDetectionDateTime", alternate = {"LastDetectionDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastDetectionDateTime; + + /** + * The Severity. + * Severity of the malware. Possible values are: unknown, low, moderate, high, severe. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public WindowsMalwareSeverity severity; + + /** + * The Device Malware States. + * List of devices affected by current malware with the malware state on each device + */ + @SerializedName(value = "deviceMalwareStates", alternate = {"DeviceMalwareStates"}) + @Expose + @Nullable + public com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionPage deviceMalwareStates; + + + /** + * 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("deviceMalwareStates")) { + deviceMalwareStates = serializer.deserializeObject(json.get("deviceMalwareStates"), com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareNameCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareNameCount.java new file mode 100644 index 00000000000..9a2278fbdc0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareNameCount.java @@ -0,0 +1,86 @@ +// 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.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 Windows Malware Name Count. + */ +public class WindowsMalwareNameCount 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 Device Count. + * Count of devices with malware dectected for this malware + */ + @SerializedName(value = "deviceCount", alternate = {"DeviceCount"}) + @Expose + @Nullable + public Integer deviceCount; + + /** + * The Last Update Date Time. + * The Timestamp of the last update for the device count in UTC + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + /** + * The Malware Identifier. + * The unique identifier. This is malware identifier + */ + @SerializedName(value = "malwareIdentifier", alternate = {"MalwareIdentifier"}) + @Expose + @Nullable + public String malwareIdentifier; + + /** + * The Name. + * Malware name + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + + /** + * 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/WindowsMalwareOverview.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareOverview.java new file mode 100644 index 00000000000..0650495a5eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareOverview.java @@ -0,0 +1,138 @@ +// 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.WindowsMalwareCategoryCount; +import com.microsoft.graph.models.WindowsMalwareExecutionStateCount; +import com.microsoft.graph.models.WindowsMalwareNameCount; +import com.microsoft.graph.models.WindowsMalwareSeverityCount; +import com.microsoft.graph.models.WindowsMalwareStateCount; +import com.microsoft.graph.models.OsVersionCount; + + +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 Windows Malware Overview. + */ +public class WindowsMalwareOverview 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 Malware Category Summary. + * Count of devices per malware category + */ + @SerializedName(value = "malwareCategorySummary", alternate = {"MalwareCategorySummary"}) + @Expose + @Nullable + public java.util.List malwareCategorySummary; + + /** + * The Malware Detected Device Count. + * Count of devices with malware detected in the last 30 days + */ + @SerializedName(value = "malwareDetectedDeviceCount", alternate = {"MalwareDetectedDeviceCount"}) + @Expose + @Nullable + public Integer malwareDetectedDeviceCount; + + /** + * The Malware Execution State Summary. + * Count of devices per malware execution state + */ + @SerializedName(value = "malwareExecutionStateSummary", alternate = {"MalwareExecutionStateSummary"}) + @Expose + @Nullable + public java.util.List malwareExecutionStateSummary; + + /** + * The Malware Name Summary. + * Count of devices per malware + */ + @SerializedName(value = "malwareNameSummary", alternate = {"MalwareNameSummary"}) + @Expose + @Nullable + public java.util.List malwareNameSummary; + + /** + * The Malware Severity Summary. + * Count of active malware per malware severity + */ + @SerializedName(value = "malwareSeveritySummary", alternate = {"MalwareSeveritySummary"}) + @Expose + @Nullable + public java.util.List malwareSeveritySummary; + + /** + * The Malware State Summary. + * Count of devices per malware state + */ + @SerializedName(value = "malwareStateSummary", alternate = {"MalwareStateSummary"}) + @Expose + @Nullable + public java.util.List malwareStateSummary; + + /** + * The Os Versions Summary. + * Count of devices with malware per windows OS version + */ + @SerializedName(value = "osVersionsSummary", alternate = {"OsVersionsSummary"}) + @Expose + @Nullable + public java.util.List osVersionsSummary; + + /** + * The Total Distinct Malware Count. + * Count of all distinct malwares detected across all devices. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "totalDistinctMalwareCount", alternate = {"TotalDistinctMalwareCount"}) + @Expose + @Nullable + public Integer totalDistinctMalwareCount; + + /** + * The Total Malware Count. + * Count of all malware detections across all devices. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "totalMalwareCount", alternate = {"TotalMalwareCount"}) + @Expose + @Nullable + public Integer totalMalwareCount; + + + /** + * 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/WindowsMalwareSeverity.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverity.java new file mode 100644 index 00000000000..120f7905b3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverity.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.models; + + +/** + * The Enum Windows Malware Severity. +*/ +public enum WindowsMalwareSeverity +{ + /** + * unknown + */ + UNKNOWN, + /** + * low + */ + LOW, + /** + * moderate + */ + MODERATE, + /** + * high + */ + HIGH, + /** + * severe + */ + SEVERE, + /** + * For WindowsMalwareSeverity values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.java new file mode 100644 index 00000000000..85a1de0dfc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareSeverityCount.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.WindowsMalwareSeverity; + + +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 Windows Malware Severity Count. + */ +public class WindowsMalwareSeverityCount 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 Distinct Malware Count. + * Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "distinctMalwareCount", alternate = {"DistinctMalwareCount"}) + @Expose + @Nullable + public Integer distinctMalwareCount; + + /** + * The Last Update Date Time. + * The Timestamp of the last update for the WindowsMalwareSeverityCount in UTC + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + /** + * The Malware Detection Count. + * Count of threats detections for this malware severity. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "malwareDetectionCount", alternate = {"MalwareDetectionCount"}) + @Expose + @Nullable + public Integer malwareDetectionCount; + + /** + * The Severity. + * Malware Threat Severity. Possible values are: unknown, low, moderate, high, severe. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public WindowsMalwareSeverity severity; + + + /** + * 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/WindowsMalwareState.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareState.java new file mode 100644 index 00000000000..d9d0abf84f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareState.java @@ -0,0 +1,70 @@ +// 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 Windows Malware State. +*/ +public enum WindowsMalwareState +{ + /** + * unknown + */ + UNKNOWN, + /** + * detected + */ + DETECTED, + /** + * cleaned + */ + CLEANED, + /** + * quarantined + */ + QUARANTINED, + /** + * removed + */ + REMOVED, + /** + * allowed + */ + ALLOWED, + /** + * blocked + */ + BLOCKED, + /** + * clean Failed + */ + CLEAN_FAILED, + /** + * quarantine Failed + */ + QUARANTINE_FAILED, + /** + * remove Failed + */ + REMOVE_FAILED, + /** + * allow Failed + */ + ALLOW_FAILED, + /** + * abandoned + */ + ABANDONED, + /** + * block Failed + */ + BLOCK_FAILED, + /** + * For WindowsMalwareState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.java new file mode 100644 index 00000000000..e7e0e6423de --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareStateCount.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.WindowsMalwareThreatState; + + +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 Windows Malware State Count. + */ +public class WindowsMalwareStateCount 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 Device Count. + * Count of devices with malware detections for this malware State + */ + @SerializedName(value = "deviceCount", alternate = {"DeviceCount"}) + @Expose + @Nullable + public Integer deviceCount; + + /** + * The Distinct Malware Count. + * Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "distinctMalwareCount", alternate = {"DistinctMalwareCount"}) + @Expose + @Nullable + public Integer distinctMalwareCount; + + /** + * The Last Update Date Time. + * The Timestamp of the last update for the device count in UTC + */ + @SerializedName(value = "lastUpdateDateTime", alternate = {"LastUpdateDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdateDateTime; + + /** + * The Malware Detection Count. + * Count of total malware detections for this malware State. Valid values -2147483648 to 2147483647 + */ + @SerializedName(value = "malwareDetectionCount", alternate = {"MalwareDetectionCount"}) + @Expose + @Nullable + public Integer malwareDetectionCount; + + /** + * The State. + * Malware Threat State. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. + */ + @SerializedName(value = "state", alternate = {"State"}) + @Expose + @Nullable + public WindowsMalwareThreatState 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/WindowsMalwareThreatState.java b/src/main/java/com/microsoft/graph/models/WindowsMalwareThreatState.java new file mode 100644 index 00000000000..5d1c0b42e26 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsMalwareThreatState.java @@ -0,0 +1,62 @@ +// 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 Windows Malware Threat State. +*/ +public enum WindowsMalwareThreatState +{ + /** + * active + */ + ACTIVE, + /** + * action Failed + */ + ACTION_FAILED, + /** + * manual Steps Required + */ + MANUAL_STEPS_REQUIRED, + /** + * full Scan Required + */ + FULL_SCAN_REQUIRED, + /** + * reboot Required + */ + REBOOT_REQUIRED, + /** + * remediated With Non Critical Failures + */ + REMEDIATED_WITH_NON_CRITICAL_FAILURES, + /** + * quarantined + */ + QUARANTINED, + /** + * removed + */ + REMOVED, + /** + * cleaned + */ + CLEANED, + /** + * allowed + */ + ALLOWED, + /** + * no Status Cleared + */ + NO_STATUS_CLEARED, + /** + * For WindowsMalwareThreatState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java b/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java new file mode 100644 index 00000000000..ea4321d4bd3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsProtectionState.java @@ -0,0 +1,235 @@ +// 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.WindowsDeviceHealthState; +import com.microsoft.graph.models.WindowsDefenderProductStatus; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionPage; + + +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 Windows Protection State. + */ +public class WindowsProtectionState extends Entity implements IJsonBackedObject { + + + /** + * The Anti Malware Version. + * Current anti malware version + */ + @SerializedName(value = "antiMalwareVersion", alternate = {"AntiMalwareVersion"}) + @Expose + @Nullable + public String antiMalwareVersion; + + /** + * 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. + */ + @SerializedName(value = "deviceState", alternate = {"DeviceState"}) + @Expose + @Nullable + public EnumSet deviceState; + + /** + * The Engine Version. + * Current endpoint protection engine's version + */ + @SerializedName(value = "engineVersion", alternate = {"EngineVersion"}) + @Expose + @Nullable + public String engineVersion; + + /** + * The Full Scan Overdue. + * Full scan overdue or not? + */ + @SerializedName(value = "fullScanOverdue", alternate = {"FullScanOverdue"}) + @Expose + @Nullable + public Boolean fullScanOverdue; + + /** + * The Full Scan Required. + * Full scan required or not? + */ + @SerializedName(value = "fullScanRequired", alternate = {"FullScanRequired"}) + @Expose + @Nullable + public Boolean fullScanRequired; + + /** + * The Is Virtual Machine. + * Indicates whether the device is a virtual machine. + */ + @SerializedName(value = "isVirtualMachine", alternate = {"IsVirtualMachine"}) + @Expose + @Nullable + public Boolean isVirtualMachine; + + /** + * The Last Full Scan Date Time. + * Last quick scan datetime + */ + @SerializedName(value = "lastFullScanDateTime", alternate = {"LastFullScanDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastFullScanDateTime; + + /** + * The Last Full Scan Signature Version. + * Last full scan signature version + */ + @SerializedName(value = "lastFullScanSignatureVersion", alternate = {"LastFullScanSignatureVersion"}) + @Expose + @Nullable + public String lastFullScanSignatureVersion; + + /** + * The Last Quick Scan Date Time. + * Last quick scan datetime + */ + @SerializedName(value = "lastQuickScanDateTime", alternate = {"LastQuickScanDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastQuickScanDateTime; + + /** + * The Last Quick Scan Signature Version. + * Last quick scan signature version + */ + @SerializedName(value = "lastQuickScanSignatureVersion", alternate = {"LastQuickScanSignatureVersion"}) + @Expose + @Nullable + public String lastQuickScanSignatureVersion; + + /** + * The Last Reported Date Time. + * Last device health status reported time + */ + @SerializedName(value = "lastReportedDateTime", alternate = {"LastReportedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastReportedDateTime; + + /** + * The Malware Protection Enabled. + * Anti malware is enabled or not + */ + @SerializedName(value = "malwareProtectionEnabled", alternate = {"MalwareProtectionEnabled"}) + @Expose + @Nullable + public Boolean malwareProtectionEnabled; + + /** + * The Network Inspection System Enabled. + * Network inspection system enabled or not? + */ + @SerializedName(value = "networkInspectionSystemEnabled", alternate = {"NetworkInspectionSystemEnabled"}) + @Expose + @Nullable + public Boolean networkInspectionSystemEnabled; + + /** + * 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. + */ + @SerializedName(value = "productStatus", alternate = {"ProductStatus"}) + @Expose + @Nullable + public EnumSet productStatus; + + /** + * The Quick Scan Overdue. + * Quick scan overdue or not? + */ + @SerializedName(value = "quickScanOverdue", alternate = {"QuickScanOverdue"}) + @Expose + @Nullable + public Boolean quickScanOverdue; + + /** + * The Real Time Protection Enabled. + * Real time protection is enabled or not? + */ + @SerializedName(value = "realTimeProtectionEnabled", alternate = {"RealTimeProtectionEnabled"}) + @Expose + @Nullable + public Boolean realTimeProtectionEnabled; + + /** + * The Reboot Required. + * Reboot required or not? + */ + @SerializedName(value = "rebootRequired", alternate = {"RebootRequired"}) + @Expose + @Nullable + public Boolean rebootRequired; + + /** + * The Signature Update Overdue. + * Signature out of date or not? + */ + @SerializedName(value = "signatureUpdateOverdue", alternate = {"SignatureUpdateOverdue"}) + @Expose + @Nullable + public Boolean signatureUpdateOverdue; + + /** + * The Signature Version. + * Current malware definitions version + */ + @SerializedName(value = "signatureVersion", alternate = {"SignatureVersion"}) + @Expose + @Nullable + public String signatureVersion; + + /** + * The Tamper Protection Enabled. + * Indicates whether the Windows Defender tamper protection feature is enabled. + */ + @SerializedName(value = "tamperProtectionEnabled", alternate = {"TamperProtectionEnabled"}) + @Expose + @Nullable + public Boolean tamperProtectionEnabled; + + /** + * The Detected Malware State. + * Device malware list + */ + @SerializedName(value = "detectedMalwareState", alternate = {"DetectedMalwareState"}) + @Expose + @Nullable + public com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionPage detectedMalwareState; + + + /** + * 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("detectedMalwareState")) { + detectedMalwareState = serializer.deserializeObject(json.get("detectedMalwareState"), com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/Workbook.java b/src/main/java/com/microsoft/graph/models/Workbook.java index 2b00f5d143a..e3040b9414e 100644 --- a/src/main/java/com/microsoft/graph/models/Workbook.java +++ b/src/main/java/com/microsoft/graph/models/Workbook.java @@ -44,7 +44,7 @@ public class Workbook extends Entity implements IJsonBackedObject { /** * The Comments. - * + * Represents a collection of comments in a workbook. */ @SerializedName(value = "comments", alternate = {"Comments"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/AccessReviewInstanceDecisionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AccessReviewInstanceDecisionItemRequestBuilder.java index ee838f0ad3a..03cfcfee199 100644 --- a/src/main/java/com/microsoft/graph/requests/AccessReviewInstanceDecisionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/AccessReviewInstanceDecisionItemRequestBuilder.java @@ -57,4 +57,24 @@ public AccessReviewInstanceDecisionItemRequest buildRequest(@Nonnull final java. } + /** + * Gets a request builder for the GovernanceInsight collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.GovernanceInsightCollectionRequestBuilder insights() { + return new com.microsoft.graph.requests.GovernanceInsightCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("insights"), getClient(), null); + } + + /** + * Gets a request builder for the GovernanceInsight item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.GovernanceInsightRequestBuilder insights(@Nonnull final String id) { + return new com.microsoft.graph.requests.GovernanceInsightRequestBuilder(getRequestUrlWithAdditionalSegment("insights") + "/" + id, getClient(), null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionPage.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionPage.java new file mode 100644 index 00000000000..0400e8c6537 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionPage.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.AppLogCollectionRequest; +import com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.AppLogCollectionRequestCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the App Log Collection Request Collection Page. + */ +public class AppLogCollectionRequestCollectionPage extends BaseCollectionPage { + + /** + * A collection page for AppLogCollectionRequest + * + * @param response the serialized AppLogCollectionRequestCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public AppLogCollectionRequestCollectionPage(@Nonnull final AppLogCollectionRequestCollectionResponse response, @Nonnull final AppLogCollectionRequestCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for AppLogCollectionRequest + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public AppLogCollectionRequestCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final AppLogCollectionRequestCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionRequest.java new file mode 100644 index 00000000000..1143274ba0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionRequest.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.MobileAppTroubleshootingEvent; +import com.microsoft.graph.models.AppLogCollectionRequest; +import com.microsoft.graph.models.AppLogCollectionDownloadDetails; +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.AppLogCollectionRequestCollectionResponse; +import com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequestBuilder; +import com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the App Log Collection Request Collection Request. + */ +public class AppLogCollectionRequestCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of AppLogCollectionRequest + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AppLogCollectionRequestCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AppLogCollectionRequestCollectionResponse.class, AppLogCollectionRequestCollectionPage.class, AppLogCollectionRequestCollectionRequestBuilder.class); + } + + /** + * Creates a new AppLogCollectionRequest + * @param newAppLogCollectionRequest the AppLogCollectionRequest to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AppLogCollectionRequest newAppLogCollectionRequest) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AppLogCollectionRequestRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newAppLogCollectionRequest); + } + + /** + * Creates a new AppLogCollectionRequest + * @param newAppLogCollectionRequest the AppLogCollectionRequest to create + * @return the newly created object + */ + @Nonnull + public AppLogCollectionRequest post(@Nonnull final AppLogCollectionRequest newAppLogCollectionRequest) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new AppLogCollectionRequestRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newAppLogCollectionRequest); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public AppLogCollectionRequestCollectionRequest 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 AppLogCollectionRequestCollectionRequest 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 AppLogCollectionRequestCollectionRequest 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 AppLogCollectionRequestCollectionRequest 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 AppLogCollectionRequestCollectionRequest 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 AppLogCollectionRequestCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public AppLogCollectionRequestCollectionRequest 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 AppLogCollectionRequestCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public AppLogCollectionRequestCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionRequestBuilder.java new file mode 100644 index 00000000000..b2c0eb92302 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionRequestBuilder.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.MobileAppTroubleshootingEvent; +import com.microsoft.graph.models.AppLogCollectionRequest; +import com.microsoft.graph.models.AppLogCollectionDownloadDetails; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequestBuilder; +import com.microsoft.graph.requests.AppLogCollectionRequestRequestBuilder; +import com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequest; +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 App Log Collection Request Collection Request Builder. + */ +public class AppLogCollectionRequestCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of MobileAppTroubleshootingEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AppLogCollectionRequestCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AppLogCollectionRequestRequestBuilder.class, AppLogCollectionRequestCollectionRequest.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/AppLogCollectionRequestCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionResponse.java new file mode 100644 index 00000000000..01521d43f51 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCollectionResponse.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.AppLogCollectionRequest; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the App Log Collection Request Collection Response. + */ +public class AppLogCollectionRequestCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCreateDownloadUrlRequest.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCreateDownloadUrlRequest.java new file mode 100644 index 00000000000..5a88a289269 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCreateDownloadUrlRequest.java @@ -0,0 +1,78 @@ +// 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.AppLogCollectionDownloadDetails; +import com.microsoft.graph.models.AppLogCollectionRequest; +import com.microsoft.graph.requests.AppLogCollectionRequestCreateDownloadUrlRequest; + +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; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the App Log Collection Request Create Download Url Request. + */ +public class AppLogCollectionRequestCreateDownloadUrlRequest extends BaseRequest { + /** + * The request for this AppLogCollectionRequestCreateDownloadUrl + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AppLogCollectionRequestCreateDownloadUrlRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AppLogCollectionDownloadDetails.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public AppLogCollectionDownloadDetails post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AppLogCollectionRequestCreateDownloadUrlRequest 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 AppLogCollectionRequestCreateDownloadUrlRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCreateDownloadUrlRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCreateDownloadUrlRequestBuilder.java new file mode 100644 index 00000000000..23a25116112 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestCreateDownloadUrlRequestBuilder.java @@ -0,0 +1,59 @@ +// 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.AppLogCollectionRequestCreateDownloadUrlRequest; +import com.microsoft.graph.models.AppLogCollectionRequest; +import com.microsoft.graph.models.AppLogCollectionDownloadDetails; +import com.microsoft.graph.http.BaseActionRequestBuilder; +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 App Log Collection Request Create Download Url Request Builder. + */ +public class AppLogCollectionRequestCreateDownloadUrlRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this AppLogCollectionRequestCreateDownloadUrl + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AppLogCollectionRequestCreateDownloadUrlRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the AppLogCollectionRequestCreateDownloadUrlRequest + * + * @param requestOptions the options for the request + * @return the AppLogCollectionRequestCreateDownloadUrlRequest instance + */ + @Nonnull + public AppLogCollectionRequestCreateDownloadUrlRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the AppLogCollectionRequestCreateDownloadUrlRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the AppLogCollectionRequestCreateDownloadUrlRequest instance + */ + @Nonnull + public AppLogCollectionRequestCreateDownloadUrlRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final AppLogCollectionRequestCreateDownloadUrlRequest request = new AppLogCollectionRequestCreateDownloadUrlRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestRequest.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestRequest.java new file mode 100644 index 00000000000..5dc8ce08b83 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestRequest.java @@ -0,0 +1,174 @@ +// 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.AppLogCollectionRequest; +import com.microsoft.graph.models.AppLogCollectionDownloadDetails; +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 App Log Collection Request Request. + */ +public class AppLogCollectionRequestRequest extends BaseRequest { + + /** + * The request for the AppLogCollectionRequest + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AppLogCollectionRequestRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AppLogCollectionRequest.class); + } + + /** + * Gets the AppLogCollectionRequest from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AppLogCollectionRequest from the service + * + * @return the AppLogCollectionRequest from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AppLogCollectionRequest 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 AppLogCollectionRequest delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AppLogCollectionRequest with a source + * + * @param sourceAppLogCollectionRequest the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AppLogCollectionRequest sourceAppLogCollectionRequest) { + return sendAsync(HttpMethod.PATCH, sourceAppLogCollectionRequest); + } + + /** + * Patches this AppLogCollectionRequest with a source + * + * @param sourceAppLogCollectionRequest the source object with updates + * @return the updated AppLogCollectionRequest + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AppLogCollectionRequest patch(@Nonnull final AppLogCollectionRequest sourceAppLogCollectionRequest) throws ClientException { + return send(HttpMethod.PATCH, sourceAppLogCollectionRequest); + } + + /** + * Creates a AppLogCollectionRequest with a new object + * + * @param newAppLogCollectionRequest the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AppLogCollectionRequest newAppLogCollectionRequest) { + return sendAsync(HttpMethod.POST, newAppLogCollectionRequest); + } + + /** + * Creates a AppLogCollectionRequest with a new object + * + * @param newAppLogCollectionRequest the new object to create + * @return the created AppLogCollectionRequest + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AppLogCollectionRequest post(@Nonnull final AppLogCollectionRequest newAppLogCollectionRequest) throws ClientException { + return send(HttpMethod.POST, newAppLogCollectionRequest); + } + + /** + * Creates a AppLogCollectionRequest with a new object + * + * @param newAppLogCollectionRequest the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AppLogCollectionRequest newAppLogCollectionRequest) { + return sendAsync(HttpMethod.PUT, newAppLogCollectionRequest); + } + + /** + * Creates a AppLogCollectionRequest with a new object + * + * @param newAppLogCollectionRequest the object to create/update + * @return the created AppLogCollectionRequest + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AppLogCollectionRequest put(@Nonnull final AppLogCollectionRequest newAppLogCollectionRequest) throws ClientException { + return send(HttpMethod.PUT, newAppLogCollectionRequest); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AppLogCollectionRequestRequest 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 AppLogCollectionRequestRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestRequestBuilder.java new file mode 100644 index 00000000000..52a51de18ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AppLogCollectionRequestRequestBuilder.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.AppLogCollectionRequest; +import com.microsoft.graph.models.AppLogCollectionDownloadDetails; +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 App Log Collection Request Request Builder. + */ +public class AppLogCollectionRequestRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AppLogCollectionRequest + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AppLogCollectionRequestRequestBuilder(@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 AppLogCollectionRequestRequest instance + */ + @Nonnull + public AppLogCollectionRequestRequest 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 AppLogCollectionRequestRequest instance + */ + @Nonnull + public AppLogCollectionRequestRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AppLogCollectionRequestRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public AppLogCollectionRequestCreateDownloadUrlRequestBuilder createDownloadUrl() { + return new AppLogCollectionRequestCreateDownloadUrlRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createDownloadUrl"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ApplicationCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionReferenceRequest.java new file mode 100644 index 00000000000..c96abd16a09 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionReferenceRequest.java @@ -0,0 +1,158 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.identitygovernance.models.CustomTaskExtensionCallbackConfiguration; +import com.microsoft.graph.models.Application; +import com.microsoft.graph.models.KeyCredential; +import com.microsoft.graph.models.PasswordCredential; +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.ExtensionProperty; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.ApplicationWithReferenceRequest; +import com.microsoft.graph.requests.ApplicationReferenceRequestBuilder; +import com.microsoft.graph.requests.ApplicationWithReferenceRequestBuilder; +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesRequest; +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.models.Application; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Application Collection Reference Request. + */ +public class ApplicationCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of Application + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ApplicationCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ApplicationCollectionResponse.class, ApplicationCollectionWithReferencesPage.class, ApplicationCollectionWithReferencesRequestBuilder.class); + } + + /** + * Creates a new Application + * @param newApplication the Application to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Application newApplication) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/applications/" + newApplication.id); + return new ApplicationWithReferenceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newApplication, body); + } + + /** + * Creates a new Application + * @param newApplication the Application to create + * @return the newly created object + */ + @Nonnull + public Application post(@Nonnull final Application newApplication) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/applications/" + newApplication.id); + return new ApplicationWithReferenceRequestBuilder(requestUrl,getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newApplication, body); + } + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ApplicationCollectionReferenceRequest 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 ApplicationCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public ApplicationCollectionReferenceRequest 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 ApplicationCollectionReferenceRequest 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 ApplicationCollectionReferenceRequest 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 ApplicationCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ApplicationCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ApplicationCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..dd0b330f32c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionReferenceRequestBuilder.java @@ -0,0 +1,41 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.identitygovernance.models.CustomTaskExtensionCallbackConfiguration; +import com.microsoft.graph.models.Application; +import com.microsoft.graph.models.KeyCredential; +import com.microsoft.graph.models.PasswordCredential; +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.ExtensionProperty; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Application Collection Reference Request Builder. + */ +public class ApplicationCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of Application + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ApplicationCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ApplicationReferenceRequestBuilder.class, ApplicationCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesPage.java new file mode 100644 index 00000000000..64e9fd95b39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesPage.java @@ -0,0 +1,56 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.identitygovernance.models.CustomTaskExtensionCallbackConfiguration; +import com.microsoft.graph.models.Application; +import com.microsoft.graph.models.KeyCredential; +import com.microsoft.graph.models.PasswordCredential; +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.ExtensionProperty; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesPage; +import com.microsoft.graph.requests.ApplicationCollectionResponse; +import com.microsoft.graph.models.Application; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Application Collection With References Page. + */ +public class ApplicationCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for Application + * + * @param response the serialized ApplicationCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ApplicationCollectionWithReferencesPage(@Nonnull final ApplicationCollectionResponse response, @Nullable final ApplicationCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for Application + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ApplicationCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final ApplicationCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..587e6cb0186 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesRequest.java @@ -0,0 +1,132 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.identitygovernance.models.CustomTaskExtensionCallbackConfiguration; +import com.microsoft.graph.models.Application; +import com.microsoft.graph.models.KeyCredential; +import com.microsoft.graph.models.PasswordCredential; +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.ExtensionProperty; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.models.Application; +import com.microsoft.graph.requests.ApplicationWithReferenceRequest; +import com.microsoft.graph.requests.ApplicationReferenceRequestBuilder; +import com.microsoft.graph.requests.ApplicationWithReferenceRequestBuilder; +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesRequest; +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesRequest; +import com.microsoft.graph.requests.ApplicationCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Application Collection With References Request. + */ +public class ApplicationCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of Application + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ApplicationCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ApplicationCollectionResponse.class, ApplicationCollectionWithReferencesPage.class, ApplicationCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ApplicationCollectionWithReferencesRequest 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 ApplicationCollectionWithReferencesRequest 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 ApplicationCollectionWithReferencesRequest 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 ApplicationCollectionWithReferencesRequest 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 ApplicationCollectionWithReferencesRequest 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 ApplicationCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ApplicationCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..e82f19debfd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ApplicationCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,41 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.identitygovernance.models.CustomTaskExtensionCallbackConfiguration; +import com.microsoft.graph.models.Application; +import com.microsoft.graph.models.KeyCredential; +import com.microsoft.graph.models.PasswordCredential; +import com.microsoft.graph.models.DirectoryObject; +import com.microsoft.graph.models.ExtensionProperty; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Application Collection With References Request Builder. + */ +public class ApplicationCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of CustomTaskExtensionCallbackConfiguration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ApplicationCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ApplicationReferenceRequestBuilder.class, ApplicationCollectionReferenceRequest.class, ApplicationCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ApplicationReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/ApplicationReferenceRequest.java index 8d4cb9933c1..f04c704249c 100644 --- a/src/main/java/com/microsoft/graph/requests/ApplicationReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/ApplicationReferenceRequest.java @@ -65,4 +65,30 @@ public ApplicationReferenceRequest expand(@Nonnull final String value) { addExpandOption(value); return this; } + /** + * Puts the Application + * + * @param srcApplication the Application reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Application srcApplication) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/applications/" + srcApplication.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the Application + * + * @param srcApplication the Application reference to PUT + * @return the Application + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Application put(@Nonnull final Application srcApplication) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/applications/" + srcApplication.id)); + return send(HttpMethod.PUT, payload); + } } diff --git a/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootRequest.java b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootRequest.java new file mode 100644 index 00000000000..1444821bf73 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootRequest.java @@ -0,0 +1,177 @@ +// 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.AuthenticationMethodsRoot; +import com.microsoft.graph.models.UserRegistrationFeatureSummary; +import com.microsoft.graph.models.IncludedUserTypes; +import com.microsoft.graph.models.IncludedUserRoles; +import com.microsoft.graph.models.UserRegistrationMethodSummary; +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 Authentication Methods Root Request. + */ +public class AuthenticationMethodsRootRequest extends BaseRequest { + + /** + * The request for the AuthenticationMethodsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuthenticationMethodsRootRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AuthenticationMethodsRoot.class); + } + + /** + * Gets the AuthenticationMethodsRoot from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the AuthenticationMethodsRoot from the service + * + * @return the AuthenticationMethodsRoot from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AuthenticationMethodsRoot 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 AuthenticationMethodsRoot delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this AuthenticationMethodsRoot with a source + * + * @param sourceAuthenticationMethodsRoot the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final AuthenticationMethodsRoot sourceAuthenticationMethodsRoot) { + return sendAsync(HttpMethod.PATCH, sourceAuthenticationMethodsRoot); + } + + /** + * Patches this AuthenticationMethodsRoot with a source + * + * @param sourceAuthenticationMethodsRoot the source object with updates + * @return the updated AuthenticationMethodsRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AuthenticationMethodsRoot patch(@Nonnull final AuthenticationMethodsRoot sourceAuthenticationMethodsRoot) throws ClientException { + return send(HttpMethod.PATCH, sourceAuthenticationMethodsRoot); + } + + /** + * Creates a AuthenticationMethodsRoot with a new object + * + * @param newAuthenticationMethodsRoot the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final AuthenticationMethodsRoot newAuthenticationMethodsRoot) { + return sendAsync(HttpMethod.POST, newAuthenticationMethodsRoot); + } + + /** + * Creates a AuthenticationMethodsRoot with a new object + * + * @param newAuthenticationMethodsRoot the new object to create + * @return the created AuthenticationMethodsRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AuthenticationMethodsRoot post(@Nonnull final AuthenticationMethodsRoot newAuthenticationMethodsRoot) throws ClientException { + return send(HttpMethod.POST, newAuthenticationMethodsRoot); + } + + /** + * Creates a AuthenticationMethodsRoot with a new object + * + * @param newAuthenticationMethodsRoot the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final AuthenticationMethodsRoot newAuthenticationMethodsRoot) { + return sendAsync(HttpMethod.PUT, newAuthenticationMethodsRoot); + } + + /** + * Creates a AuthenticationMethodsRoot with a new object + * + * @param newAuthenticationMethodsRoot the object to create/update + * @return the created AuthenticationMethodsRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public AuthenticationMethodsRoot put(@Nonnull final AuthenticationMethodsRoot newAuthenticationMethodsRoot) throws ClientException { + return send(HttpMethod.PUT, newAuthenticationMethodsRoot); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AuthenticationMethodsRootRequest 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 AuthenticationMethodsRootRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootRequestBuilder.java new file mode 100644 index 00000000000..95506a80c29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootRequestBuilder.java @@ -0,0 +1,123 @@ +// 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.AuthenticationMethodsRoot; +import com.microsoft.graph.models.UserRegistrationFeatureSummary; +import com.microsoft.graph.models.IncludedUserTypes; +import com.microsoft.graph.models.IncludedUserRoles; +import com.microsoft.graph.models.UserRegistrationMethodSummary; +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; +import com.microsoft.graph.models.AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet; +import com.microsoft.graph.models.AuthenticationMethodsRootUsersRegisteredByMethodParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Authentication Methods Root Request Builder. + */ +public class AuthenticationMethodsRootRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the AuthenticationMethodsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuthenticationMethodsRootRequestBuilder(@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 AuthenticationMethodsRootRequest instance + */ + @Nonnull + public AuthenticationMethodsRootRequest 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 AuthenticationMethodsRootRequest instance + */ + @Nonnull + public AuthenticationMethodsRootRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AuthenticationMethodsRootRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the UserRegistrationDetails collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequestBuilder userRegistrationDetails() { + return new com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userRegistrationDetails"), getClient(), null); + } + + /** + * Gets a request builder for the UserRegistrationDetails item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserRegistrationDetailsRequestBuilder userRegistrationDetails(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserRegistrationDetailsRequestBuilder(getRequestUrlWithAdditionalSegment("userRegistrationDetails") + "/" + id, getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder usersRegisteredByFeature() { + return new AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.usersRegisteredByFeature"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder usersRegisteredByFeature(@Nonnull final AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet parameters) { + return new AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.usersRegisteredByFeature"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder usersRegisteredByMethod() { + return new AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.usersRegisteredByMethod"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder usersRegisteredByMethod(@Nonnull final AuthenticationMethodsRootUsersRegisteredByMethodParameterSet parameters) { + return new AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.usersRegisteredByMethod"), getClient(), null, parameters); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByFeatureRequest.java b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByFeatureRequest.java new file mode 100644 index 00000000000..0374aa2e33a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByFeatureRequest.java @@ -0,0 +1,81 @@ +// 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.UserRegistrationFeatureSummary; +import com.microsoft.graph.models.AuthenticationMethodsRoot; +import com.microsoft.graph.requests.AuthenticationMethodsRootUsersRegisteredByFeatureRequest; + +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.AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Authentication Methods Root Users Registered By Feature Request. + */ +public class AuthenticationMethodsRootUsersRegisteredByFeatureRequest extends BaseRequest { + /** + * The request for this AuthenticationMethodsRootUsersRegisteredByFeature + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuthenticationMethodsRootUsersRegisteredByFeatureRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserRegistrationFeatureSummary.class); + } + + /** + * Gets the UserRegistrationFeatureSummary + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserRegistrationFeatureSummary + * + * @return the UserRegistrationFeatureSummary + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public UserRegistrationFeatureSummary get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureRequest 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 AuthenticationMethodsRootUsersRegisteredByFeatureRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder.java new file mode 100644 index 00000000000..fa6f044552e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder.java @@ -0,0 +1,80 @@ +// 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.AuthenticationMethodsRootUsersRegisteredByFeatureRequest; +import com.microsoft.graph.models.AuthenticationMethodsRoot; +import com.microsoft.graph.models.UserRegistrationFeatureSummary; +import com.microsoft.graph.models.IncludedUserTypes; +import com.microsoft.graph.models.IncludedUserRoles; +import com.microsoft.graph.models.UserRegistrationFeatureSummary; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.models.AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet; +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 Authentication Methods Root Users Registered By Feature Request Builder. + */ +public class AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this AuthenticationMethodsRootUsersRegisteredByFeature + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this AuthenticationMethodsRootUsersRegisteredByFeature + * + * @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 AuthenticationMethodsRootUsersRegisteredByFeatureRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final AuthenticationMethodsRootUsersRegisteredByFeatureParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the AuthenticationMethodsRootUsersRegisteredByFeatureRequest + * + * @param requestOptions the options for the request + * @return the AuthenticationMethodsRootUsersRegisteredByFeatureRequest instance + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the AuthenticationMethodsRootUsersRegisteredByFeatureRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the AuthenticationMethodsRootUsersRegisteredByFeatureRequest instance + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByFeatureRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final AuthenticationMethodsRootUsersRegisteredByFeatureRequest request = new AuthenticationMethodsRootUsersRegisteredByFeatureRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByMethodRequest.java b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByMethodRequest.java new file mode 100644 index 00000000000..1541a6ca194 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByMethodRequest.java @@ -0,0 +1,81 @@ +// 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.UserRegistrationMethodSummary; +import com.microsoft.graph.models.AuthenticationMethodsRoot; +import com.microsoft.graph.requests.AuthenticationMethodsRootUsersRegisteredByMethodRequest; + +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.AuthenticationMethodsRootUsersRegisteredByMethodParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Authentication Methods Root Users Registered By Method Request. + */ +public class AuthenticationMethodsRootUsersRegisteredByMethodRequest extends BaseRequest { + /** + * The request for this AuthenticationMethodsRootUsersRegisteredByMethod + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuthenticationMethodsRootUsersRegisteredByMethodRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserRegistrationMethodSummary.class); + } + + /** + * Gets the UserRegistrationMethodSummary + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserRegistrationMethodSummary + * + * @return the UserRegistrationMethodSummary + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public UserRegistrationMethodSummary get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodRequest 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 AuthenticationMethodsRootUsersRegisteredByMethodRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder.java new file mode 100644 index 00000000000..8ed4b1fc9cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder.java @@ -0,0 +1,80 @@ +// 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.AuthenticationMethodsRootUsersRegisteredByMethodRequest; +import com.microsoft.graph.models.AuthenticationMethodsRoot; +import com.microsoft.graph.models.UserRegistrationMethodSummary; +import com.microsoft.graph.models.IncludedUserTypes; +import com.microsoft.graph.models.IncludedUserRoles; +import com.microsoft.graph.models.UserRegistrationMethodSummary; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.models.AuthenticationMethodsRootUsersRegisteredByMethodParameterSet; +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 Authentication Methods Root Users Registered By Method Request Builder. + */ +public class AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this AuthenticationMethodsRootUsersRegisteredByMethod + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this AuthenticationMethodsRootUsersRegisteredByMethod + * + * @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 AuthenticationMethodsRootUsersRegisteredByMethodRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final AuthenticationMethodsRootUsersRegisteredByMethodParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the AuthenticationMethodsRootUsersRegisteredByMethodRequest + * + * @param requestOptions the options for the request + * @return the AuthenticationMethodsRootUsersRegisteredByMethodRequest instance + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the AuthenticationMethodsRootUsersRegisteredByMethodRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the AuthenticationMethodsRootUsersRegisteredByMethodRequest instance + */ + @Nonnull + public AuthenticationMethodsRootUsersRegisteredByMethodRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final AuthenticationMethodsRootUsersRegisteredByMethodRequest request = new AuthenticationMethodsRootUsersRegisteredByMethodRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionRequest.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionRequest.java new file mode 100644 index 00000000000..7f9e111db22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionRequest.java @@ -0,0 +1,188 @@ +// 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.CustomCalloutExtension; +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 Callout Extension Request. + */ +public class CustomCalloutExtensionRequest extends BaseRequest { + + /** + * The request for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public CustomCalloutExtensionRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CustomCalloutExtension.class); + } + + /** + * Gets the CustomCalloutExtension from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the CustomCalloutExtension from the service + * + * @return the CustomCalloutExtension from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomCalloutExtension 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 CustomCalloutExtension delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this CustomCalloutExtension with a source + * + * @param sourceCustomCalloutExtension the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final CustomCalloutExtension sourceCustomCalloutExtension) { + return sendAsync(HttpMethod.PATCH, sourceCustomCalloutExtension); + } + + /** + * Patches this CustomCalloutExtension with a source + * + * @param sourceCustomCalloutExtension the source object with updates + * @return the updated CustomCalloutExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomCalloutExtension patch(@Nonnull final CustomCalloutExtension sourceCustomCalloutExtension) throws ClientException { + return send(HttpMethod.PATCH, sourceCustomCalloutExtension); + } + + /** + * Creates a CustomCalloutExtension with a new object + * + * @param newCustomCalloutExtension the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final CustomCalloutExtension newCustomCalloutExtension) { + return sendAsync(HttpMethod.POST, newCustomCalloutExtension); + } + + /** + * Creates a CustomCalloutExtension with a new object + * + * @param newCustomCalloutExtension the new object to create + * @return the created CustomCalloutExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomCalloutExtension post(@Nonnull final CustomCalloutExtension newCustomCalloutExtension) throws ClientException { + return send(HttpMethod.POST, newCustomCalloutExtension); + } + + /** + * Creates a CustomCalloutExtension with a new object + * + * @param newCustomCalloutExtension the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final CustomCalloutExtension newCustomCalloutExtension) { + return sendAsync(HttpMethod.PUT, newCustomCalloutExtension); + } + + /** + * Creates a CustomCalloutExtension with a new object + * + * @param newCustomCalloutExtension the object to create/update + * @return the created CustomCalloutExtension + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public CustomCalloutExtension put(@Nonnull final CustomCalloutExtension newCustomCalloutExtension) throws ClientException { + return send(HttpMethod.PUT, newCustomCalloutExtension); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public CustomCalloutExtensionRequest 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 CustomCalloutExtensionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionRequestBuilder.java new file mode 100644 index 00000000000..31d61525eff --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/CustomCalloutExtensionRequestBuilder.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.CustomCalloutExtension; +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 Callout Extension Request Builder. + */ +public class CustomCalloutExtensionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the CustomCalloutExtension + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CustomCalloutExtensionRequestBuilder(@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 CustomCalloutExtensionRequest instance + */ + @Nonnull + public CustomCalloutExtensionRequest 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 CustomCalloutExtensionRequest instance + */ + @Nonnull + public CustomCalloutExtensionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.CustomCalloutExtensionRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/DeletedItemContainerRequest.java b/src/main/java/com/microsoft/graph/requests/DeletedItemContainerRequest.java new file mode 100644 index 00000000000..8acec8e9766 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeletedItemContainerRequest.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.DeletedItemContainer; +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 Deleted Item Container Request. + */ +public class DeletedItemContainerRequest extends BaseRequest { + + /** + * The request for the DeletedItemContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeletedItemContainerRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeletedItemContainer.class); + } + + /** + * Gets the DeletedItemContainer from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the DeletedItemContainer from the service + * + * @return the DeletedItemContainer from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeletedItemContainer 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 DeletedItemContainer delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this DeletedItemContainer with a source + * + * @param sourceDeletedItemContainer the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final DeletedItemContainer sourceDeletedItemContainer) { + return sendAsync(HttpMethod.PATCH, sourceDeletedItemContainer); + } + + /** + * Patches this DeletedItemContainer with a source + * + * @param sourceDeletedItemContainer the source object with updates + * @return the updated DeletedItemContainer + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeletedItemContainer patch(@Nonnull final DeletedItemContainer sourceDeletedItemContainer) throws ClientException { + return send(HttpMethod.PATCH, sourceDeletedItemContainer); + } + + /** + * Creates a DeletedItemContainer with a new object + * + * @param newDeletedItemContainer the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final DeletedItemContainer newDeletedItemContainer) { + return sendAsync(HttpMethod.POST, newDeletedItemContainer); + } + + /** + * Creates a DeletedItemContainer with a new object + * + * @param newDeletedItemContainer the new object to create + * @return the created DeletedItemContainer + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeletedItemContainer post(@Nonnull final DeletedItemContainer newDeletedItemContainer) throws ClientException { + return send(HttpMethod.POST, newDeletedItemContainer); + } + + /** + * Creates a DeletedItemContainer with a new object + * + * @param newDeletedItemContainer the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final DeletedItemContainer newDeletedItemContainer) { + return sendAsync(HttpMethod.PUT, newDeletedItemContainer); + } + + /** + * Creates a DeletedItemContainer with a new object + * + * @param newDeletedItemContainer the object to create/update + * @return the created DeletedItemContainer + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeletedItemContainer put(@Nonnull final DeletedItemContainer newDeletedItemContainer) throws ClientException { + return send(HttpMethod.PUT, newDeletedItemContainer); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DeletedItemContainerRequest 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 DeletedItemContainerRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/DeletedItemContainerRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeletedItemContainerRequestBuilder.java new file mode 100644 index 00000000000..32ef93b69f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeletedItemContainerRequestBuilder.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.DeletedItemContainer; +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 Deleted Item Container Request Builder. + */ +public class DeletedItemContainerRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the DeletedItemContainer + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeletedItemContainerRequestBuilder(@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 DeletedItemContainerRequest instance + */ + @Nonnull + public DeletedItemContainerRequest 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 DeletedItemContainerRequest instance + */ + @Nonnull + public DeletedItemContainerRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.DeletedItemContainerRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the Workflow collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder workflows() { + return new com.microsoft.graph.identitygovernance.requests.WorkflowCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("workflows"), getClient(), null); + } + + /** + * Gets a request builder for the Workflow item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.identitygovernance.requests.WorkflowRequestBuilder workflows(@Nonnull final String id) { + return new com.microsoft.graph.identitygovernance.requests.WorkflowRequestBuilder(getRequestUrlWithAdditionalSegment("workflows") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionPage.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionPage.java new file mode 100644 index 00000000000..1e135bb3f5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionPage.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.DeviceLogCollectionResponse; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Log Collection Response Collection Page. + */ +public class DeviceLogCollectionResponseCollectionPage extends BaseCollectionPage { + + /** + * A collection page for DeviceLogCollectionResponse + * + * @param response the serialized DeviceLogCollectionResponseCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public DeviceLogCollectionResponseCollectionPage(@Nonnull final DeviceLogCollectionResponseCollectionResponse response, @Nonnull final DeviceLogCollectionResponseCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for DeviceLogCollectionResponse + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public DeviceLogCollectionResponseCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final DeviceLogCollectionResponseCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionRequest.java new file mode 100644 index 00000000000..9664f79c148 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionRequest.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.ManagedDevice; +import com.microsoft.graph.models.DeviceLogCollectionResponse; +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.DeviceLogCollectionResponseCollectionResponse; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequestBuilder; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Log Collection Response Collection Request. + */ +public class DeviceLogCollectionResponseCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of DeviceLogCollectionResponse + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLogCollectionResponseCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeviceLogCollectionResponseCollectionResponse.class, DeviceLogCollectionResponseCollectionPage.class, DeviceLogCollectionResponseCollectionRequestBuilder.class); + } + + /** + * Creates a new DeviceLogCollectionResponse + * @param newDeviceLogCollectionResponse the DeviceLogCollectionResponse to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final DeviceLogCollectionResponse newDeviceLogCollectionResponse) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new DeviceLogCollectionResponseRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newDeviceLogCollectionResponse); + } + + /** + * Creates a new DeviceLogCollectionResponse + * @param newDeviceLogCollectionResponse the DeviceLogCollectionResponse to create + * @return the newly created object + */ + @Nonnull + public DeviceLogCollectionResponse post(@Nonnull final DeviceLogCollectionResponse newDeviceLogCollectionResponse) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new DeviceLogCollectionResponseRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newDeviceLogCollectionResponse); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public DeviceLogCollectionResponseCollectionRequest 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 DeviceLogCollectionResponseCollectionRequest 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 DeviceLogCollectionResponseCollectionRequest 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 DeviceLogCollectionResponseCollectionRequest 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 DeviceLogCollectionResponseCollectionRequest 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 DeviceLogCollectionResponseCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public DeviceLogCollectionResponseCollectionRequest 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 DeviceLogCollectionResponseCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public DeviceLogCollectionResponseCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionRequestBuilder.java new file mode 100644 index 00000000000..914abc8dc42 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionRequestBuilder.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.ManagedDevice; +import com.microsoft.graph.models.DeviceLogCollectionResponse; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequestBuilder; +import com.microsoft.graph.requests.DeviceLogCollectionResponseRequestBuilder; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequest; +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 Device Log Collection Response Collection Request Builder. + */ +public class DeviceLogCollectionResponseCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ManagedDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLogCollectionResponseCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeviceLogCollectionResponseRequestBuilder.class, DeviceLogCollectionResponseCollectionRequest.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/DeviceLogCollectionResponseCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionResponse.java new file mode 100644 index 00000000000..bcb8c19c2b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCollectionResponse.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.DeviceLogCollectionResponse; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Log Collection Response Collection Response. + */ +public class DeviceLogCollectionResponseCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCreateDownloadUrlRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCreateDownloadUrlRequest.java new file mode 100644 index 00000000000..470dcbec9ce --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCreateDownloadUrlRequest.java @@ -0,0 +1,77 @@ +// 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.DeviceLogCollectionResponse; +import com.microsoft.graph.requests.DeviceLogCollectionResponseCreateDownloadUrlRequest; + +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; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Log Collection Response Create Download Url Request. + */ +public class DeviceLogCollectionResponseCreateDownloadUrlRequest extends BaseRequest { + /** + * The request for this DeviceLogCollectionResponseCreateDownloadUrl + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLogCollectionResponseCreateDownloadUrlRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, String.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public String post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DeviceLogCollectionResponseCreateDownloadUrlRequest 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 DeviceLogCollectionResponseCreateDownloadUrlRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder.java new file mode 100644 index 00000000000..ac70a245593 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder.java @@ -0,0 +1,59 @@ +// 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.DeviceLogCollectionResponseCreateDownloadUrlRequest; +import com.microsoft.graph.models.DeviceLogCollectionResponse; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +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 Device Log Collection Response Create Download Url Request Builder. + */ +public class DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this DeviceLogCollectionResponseCreateDownloadUrl + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the DeviceLogCollectionResponseCreateDownloadUrlRequest + * + * @param requestOptions the options for the request + * @return the DeviceLogCollectionResponseCreateDownloadUrlRequest instance + */ + @Nonnull + public DeviceLogCollectionResponseCreateDownloadUrlRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the DeviceLogCollectionResponseCreateDownloadUrlRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the DeviceLogCollectionResponseCreateDownloadUrlRequest instance + */ + @Nonnull + public DeviceLogCollectionResponseCreateDownloadUrlRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DeviceLogCollectionResponseCreateDownloadUrlRequest request = new DeviceLogCollectionResponseCreateDownloadUrlRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseRequest.java new file mode 100644 index 00000000000..118187c94dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseRequest.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.DeviceLogCollectionResponse; +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 Device Log Collection Response Request. + */ +public class DeviceLogCollectionResponseRequest extends BaseRequest { + + /** + * The request for the DeviceLogCollectionResponse + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLogCollectionResponseRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DeviceLogCollectionResponse.class); + } + + /** + * Gets the DeviceLogCollectionResponse from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the DeviceLogCollectionResponse from the service + * + * @return the DeviceLogCollectionResponse from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLogCollectionResponse 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 DeviceLogCollectionResponse delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this DeviceLogCollectionResponse with a source + * + * @param sourceDeviceLogCollectionResponse the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final DeviceLogCollectionResponse sourceDeviceLogCollectionResponse) { + return sendAsync(HttpMethod.PATCH, sourceDeviceLogCollectionResponse); + } + + /** + * Patches this DeviceLogCollectionResponse with a source + * + * @param sourceDeviceLogCollectionResponse the source object with updates + * @return the updated DeviceLogCollectionResponse + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLogCollectionResponse patch(@Nonnull final DeviceLogCollectionResponse sourceDeviceLogCollectionResponse) throws ClientException { + return send(HttpMethod.PATCH, sourceDeviceLogCollectionResponse); + } + + /** + * Creates a DeviceLogCollectionResponse with a new object + * + * @param newDeviceLogCollectionResponse the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final DeviceLogCollectionResponse newDeviceLogCollectionResponse) { + return sendAsync(HttpMethod.POST, newDeviceLogCollectionResponse); + } + + /** + * Creates a DeviceLogCollectionResponse with a new object + * + * @param newDeviceLogCollectionResponse the new object to create + * @return the created DeviceLogCollectionResponse + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLogCollectionResponse post(@Nonnull final DeviceLogCollectionResponse newDeviceLogCollectionResponse) throws ClientException { + return send(HttpMethod.POST, newDeviceLogCollectionResponse); + } + + /** + * Creates a DeviceLogCollectionResponse with a new object + * + * @param newDeviceLogCollectionResponse the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final DeviceLogCollectionResponse newDeviceLogCollectionResponse) { + return sendAsync(HttpMethod.PUT, newDeviceLogCollectionResponse); + } + + /** + * Creates a DeviceLogCollectionResponse with a new object + * + * @param newDeviceLogCollectionResponse the object to create/update + * @return the created DeviceLogCollectionResponse + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public DeviceLogCollectionResponse put(@Nonnull final DeviceLogCollectionResponse newDeviceLogCollectionResponse) throws ClientException { + return send(HttpMethod.PUT, newDeviceLogCollectionResponse); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DeviceLogCollectionResponseRequest 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 DeviceLogCollectionResponseRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseRequestBuilder.java new file mode 100644 index 00000000000..3484a743515 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceLogCollectionResponseRequestBuilder.java @@ -0,0 +1,68 @@ +// 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.DeviceLogCollectionResponse; +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 Device Log Collection Response Request Builder. + */ +public class DeviceLogCollectionResponseRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the DeviceLogCollectionResponse + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceLogCollectionResponseRequestBuilder(@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 DeviceLogCollectionResponseRequest instance + */ + @Nonnull + public DeviceLogCollectionResponseRequest 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 DeviceLogCollectionResponseRequest instance + */ + @Nonnull + public DeviceLogCollectionResponseRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.DeviceLogCollectionResponseRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder createDownloadUrl() { + return new DeviceLogCollectionResponseCreateDownloadUrlRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createDownloadUrl"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementRequest.java index 20db660747f..a72b21a4115 100644 --- a/src/main/java/com/microsoft/graph/requests/DeviceManagementRequest.java +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereDevicesSummary; import com.microsoft.graph.models.RolePermission; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementRequestBuilder.java index dedfeeffbc5..26de16ee089 100644 --- a/src/main/java/com/microsoft/graph/requests/DeviceManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementRequestBuilder.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereDevicesSummary; import com.microsoft.graph.models.RolePermission; import java.util.Arrays; import java.util.EnumSet; @@ -399,6 +400,456 @@ public com.microsoft.graph.requests.ManagedDeviceCollectionRequestBuilder manage public com.microsoft.graph.requests.ManagedDeviceRequestBuilder managedDevices(@Nonnull final String id) { return new com.microsoft.graph.requests.ManagedDeviceRequestBuilder(getRequestUrlWithAdditionalSegment("managedDevices") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the MobileAppTroubleshootingEvent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequestBuilder mobileAppTroubleshootingEvents() { + return new com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("mobileAppTroubleshootingEvents"), getClient(), null); + } + + /** + * Gets a request builder for the MobileAppTroubleshootingEvent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MobileAppTroubleshootingEventRequestBuilder mobileAppTroubleshootingEvents(@Nonnull final String id) { + return new com.microsoft.graph.requests.MobileAppTroubleshootingEventRequestBuilder(getRequestUrlWithAdditionalSegment("mobileAppTroubleshootingEvents") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthApplicationPerformance collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformance() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformance"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthApplicationPerformance item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformance(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformance") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthDeviceModelPerformance collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder userExperienceAnalyticsAppHealthDeviceModelPerformance() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthDeviceModelPerformance"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthDeviceModelPerformance item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder userExperienceAnalyticsAppHealthDeviceModelPerformance(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthDeviceModelPerformance") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthDevicePerformance collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder userExperienceAnalyticsAppHealthDevicePerformance() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthDevicePerformance"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthDevicePerformance item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder userExperienceAnalyticsAppHealthDevicePerformance(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthDevicePerformance") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthDevicePerformanceDetails collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder userExperienceAnalyticsAppHealthDevicePerformanceDetails() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthDevicePerformanceDetails"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthDevicePerformanceDetails item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder userExperienceAnalyticsAppHealthDevicePerformanceDetails(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthDevicePerformanceDetails") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthOSVersionPerformance collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder userExperienceAnalyticsAppHealthOSVersionPerformance() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthOSVersionPerformance"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsAppHealthOSVersionPerformance item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder userExperienceAnalyticsAppHealthOSVersionPerformance(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthOSVersionPerformance") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryRequestBuilder userExperienceAnalyticsAppHealthOverview() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsAppHealthOverview"), getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsBaseline collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequestBuilder userExperienceAnalyticsBaselines() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsBaselines"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsBaseline item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsBaselineRequestBuilder userExperienceAnalyticsBaselines(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsBaselineRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsBaselines") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsCategory collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequestBuilder userExperienceAnalyticsCategories() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsCategories"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsCategory item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryRequestBuilder userExperienceAnalyticsCategories(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsCategories") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsDevicePerformance collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder userExperienceAnalyticsDevicePerformance() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDevicePerformance"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsDevicePerformance item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceRequestBuilder userExperienceAnalyticsDevicePerformance(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDevicePerformance") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsDeviceScores collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder userExperienceAnalyticsDeviceScores() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDeviceScores"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsDeviceScores item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresRequestBuilder userExperienceAnalyticsDeviceScores(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDeviceScores") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsDeviceStartupHistory collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder userExperienceAnalyticsDeviceStartupHistory() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDeviceStartupHistory"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsDeviceStartupHistory item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder userExperienceAnalyticsDeviceStartupHistory(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDeviceStartupHistory") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsDeviceStartupProcess collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder userExperienceAnalyticsDeviceStartupProcesses() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDeviceStartupProcesses"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsDeviceStartupProcess item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessRequestBuilder userExperienceAnalyticsDeviceStartupProcesses(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsDeviceStartupProcesses") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsMetricHistory collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder userExperienceAnalyticsMetricHistory() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsMetricHistory"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsMetricHistory item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryRequestBuilder userExperienceAnalyticsMetricHistory(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsMetricHistory") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsModelScores collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequestBuilder userExperienceAnalyticsModelScores() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsModelScores"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsModelScores item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresRequestBuilder userExperienceAnalyticsModelScores(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsModelScores") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsOverview + * + * @return the UserExperienceAnalyticsOverviewRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsOverviewRequestBuilder userExperienceAnalyticsOverview() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsOverviewRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsOverview"), getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsScoreHistory collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder userExperienceAnalyticsScoreHistory() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsScoreHistory"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsScoreHistory item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryRequestBuilder userExperienceAnalyticsScoreHistory(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsScoreHistory") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric + * + * @return the UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric"), getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsWorkFromAnywhereMetric collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder userExperienceAnalyticsWorkFromAnywhereMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsWorkFromAnywhereMetrics"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsWorkFromAnywhereMetric item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder userExperienceAnalyticsWorkFromAnywhereMetrics(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsWorkFromAnywhereMetrics") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the UserExperienceAnalyticsWorkFromAnywhereModelPerformance collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder userExperienceAnalyticsWorkFromAnywhereModelPerformance() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsWorkFromAnywhereModelPerformance"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsWorkFromAnywhereModelPerformance item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder userExperienceAnalyticsWorkFromAnywhereModelPerformance(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(getRequestUrlWithAdditionalSegment("userExperienceAnalyticsWorkFromAnywhereModelPerformance") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the WindowsMalwareInformation collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequestBuilder windowsMalwareInformation() { + return new com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("windowsMalwareInformation"), getClient(), null); + } + + /** + * Gets a request builder for the WindowsMalwareInformation item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.WindowsMalwareInformationRequestBuilder windowsMalwareInformation(@Nonnull final String id) { + return new com.microsoft.graph.requests.WindowsMalwareInformationRequestBuilder(getRequestUrlWithAdditionalSegment("windowsMalwareInformation") + "/" + id, getClient(), null); + } /** * Gets a request builder for the ImportedWindowsAutopilotDeviceIdentity collection * @@ -640,6 +1091,15 @@ public DeviceManagementVerifyWindowsEnrollmentAutoDiscoveryRequestBuilder verify return new DeviceManagementVerifyWindowsEnrollmentAutoDiscoveryRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.verifyWindowsEnrollmentAutoDiscovery"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder userExperienceAnalyticsSummarizeWorkFromAnywhereDevices() { + return new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.userExperienceAnalyticsSummarizeWorkFromAnywhereDevices"), getClient(), null); + } + /** * Retrieves the effective permissions of the currently authenticated user * @return the request builder collection diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest.java new file mode 100644 index 00000000000..494289ca389 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest.java @@ -0,0 +1,80 @@ +// 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.UserExperienceAnalyticsWorkFromAnywhereDevicesSummary; +import com.microsoft.graph.models.DeviceManagement; +import com.microsoft.graph.requests.DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest; + +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; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Management User Experience Analytics Summarize Work From Anywhere Devices Request. + */ +public class DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest extends BaseRequest { + /** + * The request for this DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevices + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.class); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereDevicesSummary + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereDevicesSummary + * + * @return the UserExperienceAnalyticsWorkFromAnywhereDevicesSummary + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereDevicesSummary get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest 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 DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.java new file mode 100644 index 00000000000..17ea576f9c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.java @@ -0,0 +1,59 @@ +// 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.DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest; +import com.microsoft.graph.models.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereDevicesSummary; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +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 Device Management User Experience Analytics Summarize Work From Anywhere Devices Request Builder. + */ +public class DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevices + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest + * + * @param requestOptions the options for the request + * @return the DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest instance + */ + @Nonnull + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest instance + */ + @Nonnull + public DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest request = new DeviceManagementUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemAssignSensitivityLabelRequest.java b/src/main/java/com/microsoft/graph/requests/DriveItemAssignSensitivityLabelRequest.java new file mode 100644 index 00000000000..dba901ecd6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DriveItemAssignSensitivityLabelRequest.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.DriveItem; +import com.microsoft.graph.requests.DriveItemAssignSensitivityLabelRequest; + +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.DriveItemAssignSensitivityLabelParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Assign Sensitivity Label Request. + */ +public class DriveItemAssignSensitivityLabelRequest extends BaseRequest { + /** + * The request for this DriveItemAssignSensitivityLabel + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemAssignSensitivityLabelRequest(@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 DriveItemAssignSensitivityLabelParameterSet body; + /** + * Creates the DriveItemAssignSensitivityLabel + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the DriveItemAssignSensitivityLabel + * + * @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/DriveItemAssignSensitivityLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemAssignSensitivityLabelRequestBuilder.java new file mode 100644 index 00000000000..b20ebb98922 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DriveItemAssignSensitivityLabelRequestBuilder.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.DriveItemAssignSensitivityLabelRequest; +import com.microsoft.graph.models.DriveItem; +import com.microsoft.graph.models.SensitivityLabelAssignmentMethod; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.DriveItemAssignSensitivityLabelParameterSet; +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 Drive Item Assign Sensitivity Label Request Builder. + */ +public class DriveItemAssignSensitivityLabelRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this DriveItemAssignSensitivityLabel + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemAssignSensitivityLabelRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private DriveItemAssignSensitivityLabelParameterSet body; + /** + * The request builder for this DriveItemAssignSensitivityLabel + * + * @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 DriveItemAssignSensitivityLabelRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final DriveItemAssignSensitivityLabelParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the DriveItemAssignSensitivityLabelRequest + * + * @param requestOptions the options for the request + * @return the DriveItemAssignSensitivityLabelRequest instance + */ + @Nonnull + public DriveItemAssignSensitivityLabelRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the DriveItemAssignSensitivityLabelRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the DriveItemAssignSensitivityLabelRequest instance + */ + @Nonnull + public DriveItemAssignSensitivityLabelRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DriveItemAssignSensitivityLabelRequest request = new DriveItemAssignSensitivityLabelRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequest.java index 4ae5ada74f7..5c2cfd7c6b1 100644 --- a/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequest.java @@ -12,7 +12,9 @@ import com.microsoft.graph.models.ItemReference; import com.microsoft.graph.models.DriveItemUploadableProperties; import com.microsoft.graph.models.UploadSession; +import com.microsoft.graph.models.SensitivityLabelAssignmentMethod; import com.microsoft.graph.models.Permission; +import com.microsoft.graph.models.ExtractSensitivityLabelsResult; import com.microsoft.graph.models.DriveRecipient; import com.microsoft.graph.models.ItemPreviewInfo; import com.microsoft.graph.models.ItemActivityStat; diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequestBuilder.java index 52667d705c1..47e022c18d7 100644 --- a/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DriveItemCollectionRequestBuilder.java @@ -12,7 +12,9 @@ import com.microsoft.graph.models.ItemReference; import com.microsoft.graph.models.DriveItemUploadableProperties; import com.microsoft.graph.models.UploadSession; +import com.microsoft.graph.models.SensitivityLabelAssignmentMethod; import com.microsoft.graph.models.Permission; +import com.microsoft.graph.models.ExtractSensitivityLabelsResult; import com.microsoft.graph.models.DriveRecipient; import com.microsoft.graph.models.ItemPreviewInfo; import com.microsoft.graph.models.ItemActivityStat; @@ -30,6 +32,7 @@ import com.microsoft.graph.models.DriveItemRestoreParameterSet; import com.microsoft.graph.models.DriveItemCopyParameterSet; import com.microsoft.graph.models.DriveItemCreateUploadSessionParameterSet; +import com.microsoft.graph.models.DriveItemAssignSensitivityLabelParameterSet; import com.microsoft.graph.models.DriveItemCheckinParameterSet; import com.microsoft.graph.models.DriveItemCreateLinkParameterSet; import com.microsoft.graph.models.DriveItemInviteParameterSet; diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemExtractSensitivityLabelsRequest.java b/src/main/java/com/microsoft/graph/requests/DriveItemExtractSensitivityLabelsRequest.java new file mode 100644 index 00000000000..1900effb212 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DriveItemExtractSensitivityLabelsRequest.java @@ -0,0 +1,78 @@ +// 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.ExtractSensitivityLabelsResult; +import com.microsoft.graph.models.DriveItem; +import com.microsoft.graph.requests.DriveItemExtractSensitivityLabelsRequest; + +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; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Extract Sensitivity Labels Request. + */ +public class DriveItemExtractSensitivityLabelsRequest extends BaseRequest { + /** + * The request for this DriveItemExtractSensitivityLabels + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemExtractSensitivityLabelsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ExtractSensitivityLabelsResult.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public ExtractSensitivityLabelsResult post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public DriveItemExtractSensitivityLabelsRequest 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 DriveItemExtractSensitivityLabelsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemExtractSensitivityLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemExtractSensitivityLabelsRequestBuilder.java new file mode 100644 index 00000000000..701a1b65e66 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DriveItemExtractSensitivityLabelsRequestBuilder.java @@ -0,0 +1,59 @@ +// 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.DriveItemExtractSensitivityLabelsRequest; +import com.microsoft.graph.models.DriveItem; +import com.microsoft.graph.models.ExtractSensitivityLabelsResult; +import com.microsoft.graph.http.BaseActionRequestBuilder; +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 Drive Item Extract Sensitivity Labels Request Builder. + */ +public class DriveItemExtractSensitivityLabelsRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this DriveItemExtractSensitivityLabels + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemExtractSensitivityLabelsRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the DriveItemExtractSensitivityLabelsRequest + * + * @param requestOptions the options for the request + * @return the DriveItemExtractSensitivityLabelsRequest instance + */ + @Nonnull + public DriveItemExtractSensitivityLabelsRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the DriveItemExtractSensitivityLabelsRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the DriveItemExtractSensitivityLabelsRequest instance + */ + @Nonnull + public DriveItemExtractSensitivityLabelsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DriveItemExtractSensitivityLabelsRequest request = new DriveItemExtractSensitivityLabelsRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemRequest.java b/src/main/java/com/microsoft/graph/requests/DriveItemRequest.java index b25374ff3a0..269e5795ca5 100644 --- a/src/main/java/com/microsoft/graph/requests/DriveItemRequest.java +++ b/src/main/java/com/microsoft/graph/requests/DriveItemRequest.java @@ -11,7 +11,9 @@ import com.microsoft.graph.models.ItemReference; import com.microsoft.graph.models.DriveItemUploadableProperties; import com.microsoft.graph.models.UploadSession; +import com.microsoft.graph.models.SensitivityLabelAssignmentMethod; import com.microsoft.graph.models.Permission; +import com.microsoft.graph.models.ExtractSensitivityLabelsResult; import com.microsoft.graph.models.DriveRecipient; import com.microsoft.graph.models.ItemPreviewInfo; import com.microsoft.graph.models.ItemActivityStat; diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java index 738ba559734..dca946ed8f3 100644 --- a/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java @@ -11,7 +11,9 @@ import com.microsoft.graph.models.ItemReference; import com.microsoft.graph.models.DriveItemUploadableProperties; import com.microsoft.graph.models.UploadSession; +import com.microsoft.graph.models.SensitivityLabelAssignmentMethod; import com.microsoft.graph.models.Permission; +import com.microsoft.graph.models.ExtractSensitivityLabelsResult; import com.microsoft.graph.models.DriveRecipient; import com.microsoft.graph.models.ItemPreviewInfo; import com.microsoft.graph.models.ItemActivityStat; @@ -24,6 +26,7 @@ import com.microsoft.graph.models.DriveItemRestoreParameterSet; import com.microsoft.graph.models.DriveItemCopyParameterSet; import com.microsoft.graph.models.DriveItemCreateUploadSessionParameterSet; +import com.microsoft.graph.models.DriveItemAssignSensitivityLabelParameterSet; import com.microsoft.graph.models.DriveItemCheckinParameterSet; import com.microsoft.graph.models.DriveItemCreateLinkParameterSet; import com.microsoft.graph.models.DriveItemInviteParameterSet; @@ -281,6 +284,16 @@ public DriveItemCreateUploadSessionRequestBuilder createUploadSession(@Nonnull f return new DriveItemCreateUploadSessionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createUploadSession"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public DriveItemAssignSensitivityLabelRequestBuilder assignSensitivityLabel(@Nonnull final DriveItemAssignSensitivityLabelParameterSet parameters) { + return new DriveItemAssignSensitivityLabelRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.assignSensitivityLabel"), getClient(), null, parameters); + } + /** * Gets a builder to execute the method * @return the request builder @@ -310,6 +323,15 @@ public DriveItemCreateLinkRequestBuilder createLink(@Nonnull final DriveItemCrea return new DriveItemCreateLinkRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createLink"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public DriveItemExtractSensitivityLabelsRequestBuilder extractSensitivityLabels() { + return new DriveItemExtractSensitivityLabelsRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.extractSensitivityLabels"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder diff --git a/src/main/java/com/microsoft/graph/requests/EmployeeExperienceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EmployeeExperienceRequestBuilder.java index e323bc9f463..501bd6b17d1 100644 --- a/src/main/java/com/microsoft/graph/requests/EmployeeExperienceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EmployeeExperienceRequestBuilder.java @@ -56,6 +56,26 @@ public EmployeeExperienceRequest buildRequest(@Nonnull final java.util.List { + + /** + * The request for the EmployeeExperienceUser + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EmployeeExperienceUserRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EmployeeExperienceUser.class); + } + + /** + * Gets the EmployeeExperienceUser from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EmployeeExperienceUser from the service + * + * @return the EmployeeExperienceUser from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EmployeeExperienceUser 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 EmployeeExperienceUser delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EmployeeExperienceUser with a source + * + * @param sourceEmployeeExperienceUser the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EmployeeExperienceUser sourceEmployeeExperienceUser) { + return sendAsync(HttpMethod.PATCH, sourceEmployeeExperienceUser); + } + + /** + * Patches this EmployeeExperienceUser with a source + * + * @param sourceEmployeeExperienceUser the source object with updates + * @return the updated EmployeeExperienceUser + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EmployeeExperienceUser patch(@Nonnull final EmployeeExperienceUser sourceEmployeeExperienceUser) throws ClientException { + return send(HttpMethod.PATCH, sourceEmployeeExperienceUser); + } + + /** + * Creates a EmployeeExperienceUser with a new object + * + * @param newEmployeeExperienceUser the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EmployeeExperienceUser newEmployeeExperienceUser) { + return sendAsync(HttpMethod.POST, newEmployeeExperienceUser); + } + + /** + * Creates a EmployeeExperienceUser with a new object + * + * @param newEmployeeExperienceUser the new object to create + * @return the created EmployeeExperienceUser + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EmployeeExperienceUser post(@Nonnull final EmployeeExperienceUser newEmployeeExperienceUser) throws ClientException { + return send(HttpMethod.POST, newEmployeeExperienceUser); + } + + /** + * Creates a EmployeeExperienceUser with a new object + * + * @param newEmployeeExperienceUser the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EmployeeExperienceUser newEmployeeExperienceUser) { + return sendAsync(HttpMethod.PUT, newEmployeeExperienceUser); + } + + /** + * Creates a EmployeeExperienceUser with a new object + * + * @param newEmployeeExperienceUser the object to create/update + * @return the created EmployeeExperienceUser + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EmployeeExperienceUser put(@Nonnull final EmployeeExperienceUser newEmployeeExperienceUser) throws ClientException { + return send(HttpMethod.PUT, newEmployeeExperienceUser); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EmployeeExperienceUserRequest 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 EmployeeExperienceUserRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EmployeeExperienceUserRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EmployeeExperienceUserRequestBuilder.java new file mode 100644 index 00000000000..5688836dee5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EmployeeExperienceUserRequestBuilder.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.EmployeeExperienceUser; +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 Employee Experience User Request Builder. + */ +public class EmployeeExperienceUserRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EmployeeExperienceUser + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EmployeeExperienceUserRequestBuilder(@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 EmployeeExperienceUserRequest instance + */ + @Nonnull + public EmployeeExperienceUserRequest 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 EmployeeExperienceUserRequest instance + */ + @Nonnull + public EmployeeExperienceUserRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EmployeeExperienceUserRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the LearningCourseActivity collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequestBuilder learningCourseActivities() { + return new com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("learningCourseActivities"), getClient(), null); + } + + /** + * Gets a request builder for the LearningCourseActivity item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.LearningCourseActivityWithReferenceRequestBuilder learningCourseActivities(@Nonnull final String id) { + return new com.microsoft.graph.requests.LearningCourseActivityWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("learningCourseActivities") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionPage.java b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionPage.java new file mode 100644 index 00000000000..cd650afb79a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionPage.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.GovernanceInsight; +import com.microsoft.graph.requests.GovernanceInsightCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.GovernanceInsightCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Governance Insight Collection Page. + */ +public class GovernanceInsightCollectionPage extends BaseCollectionPage { + + /** + * A collection page for GovernanceInsight + * + * @param response the serialized GovernanceInsightCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public GovernanceInsightCollectionPage(@Nonnull final GovernanceInsightCollectionResponse response, @Nonnull final GovernanceInsightCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for GovernanceInsight + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public GovernanceInsightCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final GovernanceInsightCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionRequest.java new file mode 100644 index 00000000000..c7424d1959d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionRequest.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.AccessReviewInstanceDecisionItem; +import com.microsoft.graph.models.GovernanceInsight; +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.GovernanceInsightCollectionResponse; +import com.microsoft.graph.requests.GovernanceInsightCollectionRequestBuilder; +import com.microsoft.graph.requests.GovernanceInsightCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Governance Insight Collection Request. + */ +public class GovernanceInsightCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of GovernanceInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public GovernanceInsightCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, GovernanceInsightCollectionResponse.class, GovernanceInsightCollectionPage.class, GovernanceInsightCollectionRequestBuilder.class); + } + + /** + * Creates a new GovernanceInsight + * @param newGovernanceInsight the GovernanceInsight to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final GovernanceInsight newGovernanceInsight) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new GovernanceInsightRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newGovernanceInsight); + } + + /** + * Creates a new GovernanceInsight + * @param newGovernanceInsight the GovernanceInsight to create + * @return the newly created object + */ + @Nonnull + public GovernanceInsight post(@Nonnull final GovernanceInsight newGovernanceInsight) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new GovernanceInsightRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newGovernanceInsight); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public GovernanceInsightCollectionRequest 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 GovernanceInsightCollectionRequest 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 GovernanceInsightCollectionRequest 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 GovernanceInsightCollectionRequest 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 GovernanceInsightCollectionRequest 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 GovernanceInsightCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public GovernanceInsightCollectionRequest 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 GovernanceInsightCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public GovernanceInsightCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionRequestBuilder.java new file mode 100644 index 00000000000..307b8f9d60c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionRequestBuilder.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.AccessReviewInstanceDecisionItem; +import com.microsoft.graph.models.GovernanceInsight; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.GovernanceInsightCollectionRequestBuilder; +import com.microsoft.graph.requests.GovernanceInsightRequestBuilder; +import com.microsoft.graph.requests.GovernanceInsightCollectionRequest; +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 Governance Insight Collection Request Builder. + */ +public class GovernanceInsightCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AccessReviewInstanceDecisionItem + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public GovernanceInsightCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, GovernanceInsightRequestBuilder.class, GovernanceInsightCollectionRequest.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/GovernanceInsightCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionResponse.java new file mode 100644 index 00000000000..d97308bdb86 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/GovernanceInsightCollectionResponse.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.GovernanceInsight; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Governance Insight Collection Response. + */ +public class GovernanceInsightCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/GovernanceInsightRequest.java b/src/main/java/com/microsoft/graph/requests/GovernanceInsightRequest.java new file mode 100644 index 00000000000..1dbc9114d8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/GovernanceInsightRequest.java @@ -0,0 +1,188 @@ +// 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.GovernanceInsight; +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 Governance Insight Request. + */ +public class GovernanceInsightRequest extends BaseRequest { + + /** + * The request for the GovernanceInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public GovernanceInsightRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the GovernanceInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public GovernanceInsightRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, GovernanceInsight.class); + } + + /** + * Gets the GovernanceInsight from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the GovernanceInsight from the service + * + * @return the GovernanceInsight from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public GovernanceInsight 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 GovernanceInsight delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this GovernanceInsight with a source + * + * @param sourceGovernanceInsight the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final GovernanceInsight sourceGovernanceInsight) { + return sendAsync(HttpMethod.PATCH, sourceGovernanceInsight); + } + + /** + * Patches this GovernanceInsight with a source + * + * @param sourceGovernanceInsight the source object with updates + * @return the updated GovernanceInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public GovernanceInsight patch(@Nonnull final GovernanceInsight sourceGovernanceInsight) throws ClientException { + return send(HttpMethod.PATCH, sourceGovernanceInsight); + } + + /** + * Creates a GovernanceInsight with a new object + * + * @param newGovernanceInsight the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final GovernanceInsight newGovernanceInsight) { + return sendAsync(HttpMethod.POST, newGovernanceInsight); + } + + /** + * Creates a GovernanceInsight with a new object + * + * @param newGovernanceInsight the new object to create + * @return the created GovernanceInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public GovernanceInsight post(@Nonnull final GovernanceInsight newGovernanceInsight) throws ClientException { + return send(HttpMethod.POST, newGovernanceInsight); + } + + /** + * Creates a GovernanceInsight with a new object + * + * @param newGovernanceInsight the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final GovernanceInsight newGovernanceInsight) { + return sendAsync(HttpMethod.PUT, newGovernanceInsight); + } + + /** + * Creates a GovernanceInsight with a new object + * + * @param newGovernanceInsight the object to create/update + * @return the created GovernanceInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public GovernanceInsight put(@Nonnull final GovernanceInsight newGovernanceInsight) throws ClientException { + return send(HttpMethod.PUT, newGovernanceInsight); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public GovernanceInsightRequest 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 GovernanceInsightRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/GovernanceInsightRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/GovernanceInsightRequestBuilder.java new file mode 100644 index 00000000000..1df87b6f4a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/GovernanceInsightRequestBuilder.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.GovernanceInsight; +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 Governance Insight Request Builder. + */ +public class GovernanceInsightRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the GovernanceInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public GovernanceInsightRequestBuilder(@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 GovernanceInsightRequest instance + */ + @Nonnull + public GovernanceInsightRequest 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 GovernanceInsightRequest instance + */ + @Nonnull + public GovernanceInsightRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.GovernanceInsightRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java b/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java index bfc555f9961..c8c4a872ba1 100644 --- a/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java @@ -1019,6 +1019,16 @@ public com.microsoft.graph.requests.TeamsTemplateRequestBuilder teamsTemplates(@ return new com.microsoft.graph.requests.TeamsTemplateRequestBuilder(getServiceRoot() + "/teamsTemplates/" + id, this, null); } + /** + * Gets the GraphServiceRequestBuilder + * + * @return the IdentityGovernance + */ + @Nonnull + public com.microsoft.graph.requests.IdentityGovernanceRequestBuilder identityGovernance() { + return new com.microsoft.graph.requests.IdentityGovernanceRequestBuilder(getServiceRoot() + "/identityGovernance", this, null); + } + /** * Gets the GraphServiceRequestBuilder * @@ -1029,6 +1039,16 @@ public com.microsoft.graph.requests.AuditLogRootRequestBuilder auditLogs() { return new com.microsoft.graph.requests.AuditLogRootRequestBuilder(getServiceRoot() + "/auditLogs", this, null); } + /** + * Gets the GraphServiceRequestBuilder + * + * @return the ReportRoot + */ + @Nonnull + public com.microsoft.graph.requests.ReportRootRequestBuilder reports() { + return new com.microsoft.graph.requests.ReportRootRequestBuilder(getServiceRoot() + "/reports", this, null); + } + /** * Gets the GraphServiceRequestBuilder * @@ -1169,16 +1189,6 @@ public com.microsoft.graph.requests.CloudCommunicationsRequestBuilder communicat return new com.microsoft.graph.requests.CloudCommunicationsRequestBuilder(getServiceRoot() + "/communications", this, null); } - /** - * Gets the GraphServiceRequestBuilder - * - * @return the IdentityGovernance - */ - @Nonnull - public com.microsoft.graph.requests.IdentityGovernanceRequestBuilder identityGovernance() { - return new com.microsoft.graph.requests.IdentityGovernanceRequestBuilder(getServiceRoot() + "/identityGovernance", this, null); - } - /** * Gets the GraphServiceRequestBuilder * @@ -1209,16 +1219,6 @@ public com.microsoft.graph.requests.DeviceManagementRequestBuilder deviceManagem return new com.microsoft.graph.requests.DeviceManagementRequestBuilder(getServiceRoot() + "/deviceManagement", this, null); } - /** - * Gets the GraphServiceRequestBuilder - * - * @return the ReportRoot - */ - @Nonnull - public com.microsoft.graph.requests.ReportRootRequestBuilder reports() { - return new com.microsoft.graph.requests.ReportRootRequestBuilder(getServiceRoot() + "/reports", this, null); - } - /** * Gets the GraphServiceRequestBuilder * diff --git a/src/main/java/com/microsoft/graph/requests/IdentityGovernanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/IdentityGovernanceRequestBuilder.java index 41c3ac52d93..e654f70a3ca 100644 --- a/src/main/java/com/microsoft/graph/requests/IdentityGovernanceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/IdentityGovernanceRequestBuilder.java @@ -57,6 +57,16 @@ public IdentityGovernanceRequest buildRequest(@Nonnull final java.util.List { + + /** + * The request for the LearningAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningAssignmentRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningAssignment.class); + } + + /** + * Gets the LearningAssignment from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LearningAssignment from the service + * + * @return the LearningAssignment from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningAssignment 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 LearningAssignment delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LearningAssignment with a source + * + * @param sourceLearningAssignment the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LearningAssignment sourceLearningAssignment) { + return sendAsync(HttpMethod.PATCH, sourceLearningAssignment); + } + + /** + * Patches this LearningAssignment with a source + * + * @param sourceLearningAssignment the source object with updates + * @return the updated LearningAssignment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningAssignment patch(@Nonnull final LearningAssignment sourceLearningAssignment) throws ClientException { + return send(HttpMethod.PATCH, sourceLearningAssignment); + } + + /** + * Creates a LearningAssignment with a new object + * + * @param newLearningAssignment the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LearningAssignment newLearningAssignment) { + return sendAsync(HttpMethod.POST, newLearningAssignment); + } + + /** + * Creates a LearningAssignment with a new object + * + * @param newLearningAssignment the new object to create + * @return the created LearningAssignment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningAssignment post(@Nonnull final LearningAssignment newLearningAssignment) throws ClientException { + return send(HttpMethod.POST, newLearningAssignment); + } + + /** + * Creates a LearningAssignment with a new object + * + * @param newLearningAssignment the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LearningAssignment newLearningAssignment) { + return sendAsync(HttpMethod.PUT, newLearningAssignment); + } + + /** + * Creates a LearningAssignment with a new object + * + * @param newLearningAssignment the object to create/update + * @return the created LearningAssignment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningAssignment put(@Nonnull final LearningAssignment newLearningAssignment) throws ClientException { + return send(HttpMethod.PUT, newLearningAssignment); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LearningAssignmentRequest 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 LearningAssignmentRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/LearningAssignmentRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningAssignmentRequestBuilder.java new file mode 100644 index 00000000000..8a74a661d2a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningAssignmentRequestBuilder.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.LearningAssignment; +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 Learning Assignment Request Builder. + */ +public class LearningAssignmentRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LearningAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningAssignmentRequestBuilder(@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 LearningAssignmentRequest instance + */ + @Nonnull + public LearningAssignmentRequest 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 LearningAssignmentRequest instance + */ + @Nonnull + public LearningAssignmentRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.LearningAssignmentRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionPage.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionPage.java new file mode 100644 index 00000000000..76c1d447ae3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionPage.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.LearningCourseActivity; +import com.microsoft.graph.requests.LearningCourseActivityCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.LearningCourseActivityCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection Page. + */ +public class LearningCourseActivityCollectionPage extends BaseCollectionPage { + + /** + * A collection page for LearningCourseActivity + * + * @param response the serialized LearningCourseActivityCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public LearningCourseActivityCollectionPage(@Nonnull final LearningCourseActivityCollectionResponse response, @Nonnull final LearningCourseActivityCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for LearningCourseActivity + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public LearningCourseActivityCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final LearningCourseActivityCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionReferenceRequest.java new file mode 100644 index 00000000000..7ad6e3bc6ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionReferenceRequest.java @@ -0,0 +1,154 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.EmployeeExperienceUser; +import com.microsoft.graph.models.LearningCourseActivity; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.LearningCourseActivityWithReferenceRequest; +import com.microsoft.graph.requests.LearningCourseActivityReferenceRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityWithReferenceRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequest; +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.models.LearningCourseActivity; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection Reference Request. + */ +public class LearningCourseActivityCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityCollectionResponse.class, LearningCourseActivityCollectionWithReferencesPage.class, LearningCourseActivityCollectionWithReferencesRequestBuilder.class); + } + + /** + * Creates a new LearningCourseActivity + * @param newLearningCourseActivity the LearningCourseActivity to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LearningCourseActivity newLearningCourseActivity) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/employeeExperience/learningCourseActivities/" + newLearningCourseActivity.id); + return new LearningCourseActivityWithReferenceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newLearningCourseActivity, body); + } + + /** + * Creates a new LearningCourseActivity + * @param newLearningCourseActivity the LearningCourseActivity to create + * @return the newly created object + */ + @Nonnull + public LearningCourseActivity post(@Nonnull final LearningCourseActivity newLearningCourseActivity) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/employeeExperience/learningCourseActivities/" + newLearningCourseActivity.id); + return new LearningCourseActivityWithReferenceRequestBuilder(requestUrl,getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newLearningCourseActivity, body); + } + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionReferenceRequest 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 LearningCourseActivityCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionReferenceRequest 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 LearningCourseActivityCollectionReferenceRequest 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 LearningCourseActivityCollectionReferenceRequest 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 LearningCourseActivityCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..cbe3e53e818 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.EmployeeExperienceUser; +import com.microsoft.graph.models.LearningCourseActivity; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection Reference Request Builder. + */ +public class LearningCourseActivityCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityReferenceRequestBuilder.class, LearningCourseActivityCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionRequest.java new file mode 100644 index 00000000000..f9b3b155d48 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionRequest.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.LearningProvider; +import com.microsoft.graph.models.LearningCourseActivity; +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.LearningCourseActivityCollectionResponse; +import com.microsoft.graph.requests.LearningCourseActivityCollectionRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection Request. + */ +public class LearningCourseActivityCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityCollectionResponse.class, LearningCourseActivityCollectionPage.class, LearningCourseActivityCollectionRequestBuilder.class); + } + + /** + * Creates a new LearningCourseActivity + * @param newLearningCourseActivity the LearningCourseActivity to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LearningCourseActivity newLearningCourseActivity) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LearningCourseActivityRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newLearningCourseActivity); + } + + /** + * Creates a new LearningCourseActivity + * @param newLearningCourseActivity the LearningCourseActivity to create + * @return the newly created object + */ + @Nonnull + public LearningCourseActivity post(@Nonnull final LearningCourseActivity newLearningCourseActivity) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new LearningCourseActivityRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newLearningCourseActivity); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionRequest 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 LearningCourseActivityCollectionRequest 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 LearningCourseActivityCollectionRequest 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 LearningCourseActivityCollectionRequest 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 LearningCourseActivityCollectionRequest 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 LearningCourseActivityCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionRequest 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 LearningCourseActivityCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionRequestBuilder.java new file mode 100644 index 00000000000..82716a68421 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionRequestBuilder.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.LearningProvider; +import com.microsoft.graph.models.LearningCourseActivity; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.LearningCourseActivityCollectionRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityCollectionRequest; +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 Learning Course Activity Collection Request Builder. + */ +public class LearningCourseActivityCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of LearningProvider + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityRequestBuilder.class, LearningCourseActivityCollectionRequest.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/LearningCourseActivityCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionResponse.java new file mode 100644 index 00000000000..dbd7f7fe3c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionResponse.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.LearningCourseActivity; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection Response. + */ +public class LearningCourseActivityCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesPage.java new file mode 100644 index 00000000000..d0f56722933 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.EmployeeExperienceUser; +import com.microsoft.graph.models.LearningCourseActivity; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesPage; +import com.microsoft.graph.requests.LearningCourseActivityCollectionResponse; +import com.microsoft.graph.models.LearningCourseActivity; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection With References Page. + */ +public class LearningCourseActivityCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for LearningCourseActivity + * + * @param response the serialized LearningCourseActivityCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public LearningCourseActivityCollectionWithReferencesPage(@Nonnull final LearningCourseActivityCollectionResponse response, @Nullable final LearningCourseActivityCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for LearningCourseActivity + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public LearningCourseActivityCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final LearningCourseActivityCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..9e8d6ed85e8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.EmployeeExperienceUser; +import com.microsoft.graph.models.LearningCourseActivity; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.models.LearningCourseActivity; +import com.microsoft.graph.requests.LearningCourseActivityWithReferenceRequest; +import com.microsoft.graph.requests.LearningCourseActivityReferenceRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityWithReferenceRequestBuilder; +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequest; +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequest; +import com.microsoft.graph.requests.LearningCourseActivityCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection With References Request. + */ +public class LearningCourseActivityCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityCollectionResponse.class, LearningCourseActivityCollectionWithReferencesPage.class, LearningCourseActivityCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionWithReferencesRequest 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 LearningCourseActivityCollectionWithReferencesRequest 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 LearningCourseActivityCollectionWithReferencesRequest 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 LearningCourseActivityCollectionWithReferencesRequest 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 LearningCourseActivityCollectionWithReferencesRequest 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 LearningCourseActivityCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public LearningCourseActivityCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..8462a0f4ec2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.EmployeeExperienceUser; +import com.microsoft.graph.models.LearningCourseActivity; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Learning Course Activity Collection With References Request Builder. + */ +public class LearningCourseActivityCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of EmployeeExperienceUser + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityReferenceRequestBuilder.class, LearningCourseActivityCollectionReferenceRequest.class, LearningCourseActivityCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityReferenceRequest.java new file mode 100644 index 00000000000..3a7effa743b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.LearningCourseActivity; +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 Learning Course Activity Reference Request. + */ +public class LearningCourseActivityReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivity.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityReferenceRequest 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 LearningCourseActivityReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the LearningCourseActivity + * + * @param srcLearningCourseActivity the LearningCourseActivity reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LearningCourseActivity srcLearningCourseActivity) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/employeeExperience/learningCourseActivities/" + srcLearningCourseActivity.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the LearningCourseActivity + * + * @param srcLearningCourseActivity the LearningCourseActivity reference to PUT + * @return the LearningCourseActivity + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public LearningCourseActivity put(@Nonnull final LearningCourseActivity srcLearningCourseActivity) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/employeeExperience/learningCourseActivities/" + srcLearningCourseActivity.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityReferenceRequestBuilder.java new file mode 100644 index 00000000000..250cc7784af --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityReferenceRequestBuilder.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.LearningCourseActivity; +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 Learning Course Activity Reference Request Builder. + */ +public class LearningCourseActivityReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityRequest.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityRequest.java new file mode 100644 index 00000000000..e934aebd0ee --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityRequest.java @@ -0,0 +1,188 @@ +// 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.LearningCourseActivity; +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 Learning Course Activity Request. + */ +public class LearningCourseActivityRequest extends BaseRequest { + + /** + * The request for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public LearningCourseActivityRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivity.class); + } + + /** + * Gets the LearningCourseActivity from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LearningCourseActivity from the service + * + * @return the LearningCourseActivity from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningCourseActivity 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 LearningCourseActivity delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LearningCourseActivity with a source + * + * @param sourceLearningCourseActivity the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LearningCourseActivity sourceLearningCourseActivity) { + return sendAsync(HttpMethod.PATCH, sourceLearningCourseActivity); + } + + /** + * Patches this LearningCourseActivity with a source + * + * @param sourceLearningCourseActivity the source object with updates + * @return the updated LearningCourseActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningCourseActivity patch(@Nonnull final LearningCourseActivity sourceLearningCourseActivity) throws ClientException { + return send(HttpMethod.PATCH, sourceLearningCourseActivity); + } + + /** + * Creates a LearningCourseActivity with a new object + * + * @param newLearningCourseActivity the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LearningCourseActivity newLearningCourseActivity) { + return sendAsync(HttpMethod.POST, newLearningCourseActivity); + } + + /** + * Creates a LearningCourseActivity with a new object + * + * @param newLearningCourseActivity the new object to create + * @return the created LearningCourseActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningCourseActivity post(@Nonnull final LearningCourseActivity newLearningCourseActivity) throws ClientException { + return send(HttpMethod.POST, newLearningCourseActivity); + } + + /** + * Creates a LearningCourseActivity with a new object + * + * @param newLearningCourseActivity the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LearningCourseActivity newLearningCourseActivity) { + return sendAsync(HttpMethod.PUT, newLearningCourseActivity); + } + + /** + * Creates a LearningCourseActivity with a new object + * + * @param newLearningCourseActivity the object to create/update + * @return the created LearningCourseActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningCourseActivity put(@Nonnull final LearningCourseActivity newLearningCourseActivity) throws ClientException { + return send(HttpMethod.PUT, newLearningCourseActivity); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityRequest 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 LearningCourseActivityRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityRequestBuilder.java new file mode 100644 index 00000000000..9969477dfbe --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityRequestBuilder.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.LearningCourseActivity; +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 Learning Course Activity Request Builder. + */ +public class LearningCourseActivityRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityRequestBuilder(@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 LearningCourseActivityRequest instance + */ + @Nonnull + public LearningCourseActivityRequest 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 LearningCourseActivityRequest instance + */ + @Nonnull + public LearningCourseActivityRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.LearningCourseActivityRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityWithReferenceRequest.java new file mode 100644 index 00000000000..b1f30f7f761 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityWithReferenceRequest.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.LearningCourseActivity; +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 Learning Course Activity With Reference Request. + */ +public class LearningCourseActivityWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivity.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LearningCourseActivityWithReferenceRequest 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 LearningCourseActivityWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningCourseActivityWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..23429de144c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningCourseActivityWithReferenceRequestBuilder.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.LearningCourseActivity; +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 Learning Course Activity With Reference Request Builder. + */ +public class LearningCourseActivityWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the LearningCourseActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningCourseActivityWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningCourseActivityWithReferenceRequest.class, LearningCourseActivityReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/LearningProviderRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningProviderRequestBuilder.java index 15869bc8d71..73778a04a54 100644 --- a/src/main/java/com/microsoft/graph/requests/LearningProviderRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/LearningProviderRequestBuilder.java @@ -76,4 +76,24 @@ public com.microsoft.graph.requests.LearningContentCollectionRequestBuilder lear public com.microsoft.graph.requests.LearningContentRequestBuilder learningContents(@Nonnull final String id) { return new com.microsoft.graph.requests.LearningContentRequestBuilder(getRequestUrlWithAdditionalSegment("learningContents") + "/" + id, getClient(), null); } + /** + * Gets a request builder for the LearningCourseActivity collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.LearningCourseActivityCollectionRequestBuilder learningCourseActivities() { + return new com.microsoft.graph.requests.LearningCourseActivityCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("learningCourseActivities"), getClient(), null); + } + + /** + * Gets a request builder for the LearningCourseActivity item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.LearningCourseActivityRequestBuilder learningCourseActivities(@Nonnull final String id) { + return new com.microsoft.graph.requests.LearningCourseActivityRequestBuilder(getRequestUrlWithAdditionalSegment("learningCourseActivities") + "/" + id, getClient(), null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/LearningSelfInitiatedCourseRequest.java b/src/main/java/com/microsoft/graph/requests/LearningSelfInitiatedCourseRequest.java new file mode 100644 index 00000000000..32d42d677db --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningSelfInitiatedCourseRequest.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.LearningSelfInitiatedCourse; +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 Learning Self Initiated Course Request. + */ +public class LearningSelfInitiatedCourseRequest extends BaseRequest { + + /** + * The request for the LearningSelfInitiatedCourse + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningSelfInitiatedCourseRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, LearningSelfInitiatedCourse.class); + } + + /** + * Gets the LearningSelfInitiatedCourse from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the LearningSelfInitiatedCourse from the service + * + * @return the LearningSelfInitiatedCourse from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningSelfInitiatedCourse 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 LearningSelfInitiatedCourse delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this LearningSelfInitiatedCourse with a source + * + * @param sourceLearningSelfInitiatedCourse the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final LearningSelfInitiatedCourse sourceLearningSelfInitiatedCourse) { + return sendAsync(HttpMethod.PATCH, sourceLearningSelfInitiatedCourse); + } + + /** + * Patches this LearningSelfInitiatedCourse with a source + * + * @param sourceLearningSelfInitiatedCourse the source object with updates + * @return the updated LearningSelfInitiatedCourse + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningSelfInitiatedCourse patch(@Nonnull final LearningSelfInitiatedCourse sourceLearningSelfInitiatedCourse) throws ClientException { + return send(HttpMethod.PATCH, sourceLearningSelfInitiatedCourse); + } + + /** + * Creates a LearningSelfInitiatedCourse with a new object + * + * @param newLearningSelfInitiatedCourse the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final LearningSelfInitiatedCourse newLearningSelfInitiatedCourse) { + return sendAsync(HttpMethod.POST, newLearningSelfInitiatedCourse); + } + + /** + * Creates a LearningSelfInitiatedCourse with a new object + * + * @param newLearningSelfInitiatedCourse the new object to create + * @return the created LearningSelfInitiatedCourse + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningSelfInitiatedCourse post(@Nonnull final LearningSelfInitiatedCourse newLearningSelfInitiatedCourse) throws ClientException { + return send(HttpMethod.POST, newLearningSelfInitiatedCourse); + } + + /** + * Creates a LearningSelfInitiatedCourse with a new object + * + * @param newLearningSelfInitiatedCourse the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final LearningSelfInitiatedCourse newLearningSelfInitiatedCourse) { + return sendAsync(HttpMethod.PUT, newLearningSelfInitiatedCourse); + } + + /** + * Creates a LearningSelfInitiatedCourse with a new object + * + * @param newLearningSelfInitiatedCourse the object to create/update + * @return the created LearningSelfInitiatedCourse + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public LearningSelfInitiatedCourse put(@Nonnull final LearningSelfInitiatedCourse newLearningSelfInitiatedCourse) throws ClientException { + return send(HttpMethod.PUT, newLearningSelfInitiatedCourse); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public LearningSelfInitiatedCourseRequest 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 LearningSelfInitiatedCourseRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/LearningSelfInitiatedCourseRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/LearningSelfInitiatedCourseRequestBuilder.java new file mode 100644 index 00000000000..f41e9c1bca9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/LearningSelfInitiatedCourseRequestBuilder.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.LearningSelfInitiatedCourse; +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 Learning Self Initiated Course Request Builder. + */ +public class LearningSelfInitiatedCourseRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the LearningSelfInitiatedCourse + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public LearningSelfInitiatedCourseRequestBuilder(@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 LearningSelfInitiatedCourseRequest instance + */ + @Nonnull + public LearningSelfInitiatedCourseRequest 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 LearningSelfInitiatedCourseRequest instance + */ + @Nonnull + public LearningSelfInitiatedCourseRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.LearningSelfInitiatedCourseRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/MacOSMicrosoftDefenderAppRequest.java b/src/main/java/com/microsoft/graph/requests/MacOSMicrosoftDefenderAppRequest.java new file mode 100644 index 00000000000..c09c8bde05d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MacOSMicrosoftDefenderAppRequest.java @@ -0,0 +1,174 @@ +// 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.MacOSMicrosoftDefenderApp; +import com.microsoft.graph.models.MobileAppAssignment; +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 Mac OSMicrosoft Defender App Request. + */ +public class MacOSMicrosoftDefenderAppRequest extends BaseRequest { + + /** + * The request for the MacOSMicrosoftDefenderApp + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MacOSMicrosoftDefenderAppRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MacOSMicrosoftDefenderApp.class); + } + + /** + * Gets the MacOSMicrosoftDefenderApp from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MacOSMicrosoftDefenderApp from the service + * + * @return the MacOSMicrosoftDefenderApp from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MacOSMicrosoftDefenderApp 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 MacOSMicrosoftDefenderApp delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MacOSMicrosoftDefenderApp with a source + * + * @param sourceMacOSMicrosoftDefenderApp the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MacOSMicrosoftDefenderApp sourceMacOSMicrosoftDefenderApp) { + return sendAsync(HttpMethod.PATCH, sourceMacOSMicrosoftDefenderApp); + } + + /** + * Patches this MacOSMicrosoftDefenderApp with a source + * + * @param sourceMacOSMicrosoftDefenderApp the source object with updates + * @return the updated MacOSMicrosoftDefenderApp + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MacOSMicrosoftDefenderApp patch(@Nonnull final MacOSMicrosoftDefenderApp sourceMacOSMicrosoftDefenderApp) throws ClientException { + return send(HttpMethod.PATCH, sourceMacOSMicrosoftDefenderApp); + } + + /** + * Creates a MacOSMicrosoftDefenderApp with a new object + * + * @param newMacOSMicrosoftDefenderApp the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MacOSMicrosoftDefenderApp newMacOSMicrosoftDefenderApp) { + return sendAsync(HttpMethod.POST, newMacOSMicrosoftDefenderApp); + } + + /** + * Creates a MacOSMicrosoftDefenderApp with a new object + * + * @param newMacOSMicrosoftDefenderApp the new object to create + * @return the created MacOSMicrosoftDefenderApp + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MacOSMicrosoftDefenderApp post(@Nonnull final MacOSMicrosoftDefenderApp newMacOSMicrosoftDefenderApp) throws ClientException { + return send(HttpMethod.POST, newMacOSMicrosoftDefenderApp); + } + + /** + * Creates a MacOSMicrosoftDefenderApp with a new object + * + * @param newMacOSMicrosoftDefenderApp the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MacOSMicrosoftDefenderApp newMacOSMicrosoftDefenderApp) { + return sendAsync(HttpMethod.PUT, newMacOSMicrosoftDefenderApp); + } + + /** + * Creates a MacOSMicrosoftDefenderApp with a new object + * + * @param newMacOSMicrosoftDefenderApp the object to create/update + * @return the created MacOSMicrosoftDefenderApp + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MacOSMicrosoftDefenderApp put(@Nonnull final MacOSMicrosoftDefenderApp newMacOSMicrosoftDefenderApp) throws ClientException { + return send(HttpMethod.PUT, newMacOSMicrosoftDefenderApp); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MacOSMicrosoftDefenderAppRequest 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 MacOSMicrosoftDefenderAppRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MacOSMicrosoftDefenderAppRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MacOSMicrosoftDefenderAppRequestBuilder.java new file mode 100644 index 00000000000..8d66ebd3df3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MacOSMicrosoftDefenderAppRequestBuilder.java @@ -0,0 +1,111 @@ +// 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.MacOSMicrosoftDefenderApp; +import com.microsoft.graph.models.MobileAppAssignment; +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; +import com.microsoft.graph.models.MobileAppAssignParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Mac OSMicrosoft Defender App Request Builder. + */ +public class MacOSMicrosoftDefenderAppRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MacOSMicrosoftDefenderApp + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MacOSMicrosoftDefenderAppRequestBuilder(@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 MacOSMicrosoftDefenderAppRequest instance + */ + @Nonnull + public MacOSMicrosoftDefenderAppRequest 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 MacOSMicrosoftDefenderAppRequest instance + */ + @Nonnull + public MacOSMicrosoftDefenderAppRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MacOSMicrosoftDefenderAppRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the MobileAppAssignment collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MobileAppAssignmentCollectionRequestBuilder assignments() { + return new com.microsoft.graph.requests.MobileAppAssignmentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("assignments"), getClient(), null); + } + + /** + * Gets a request builder for the MobileAppAssignment item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MobileAppAssignmentRequestBuilder assignments(@Nonnull final String id) { + return new com.microsoft.graph.requests.MobileAppAssignmentRequestBuilder(getRequestUrlWithAdditionalSegment("assignments") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the MobileAppCategory collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MobileAppCategoryCollectionWithReferencesRequestBuilder categories() { + return new com.microsoft.graph.requests.MobileAppCategoryCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("categories"), getClient(), null); + } + + /** + * Gets a request builder for the MobileAppCategory item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MobileAppCategoryWithReferenceRequestBuilder categories(@Nonnull final String id) { + return new com.microsoft.graph.requests.MobileAppCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("categories") + "/" + id, getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public MobileAppAssignRequestBuilder assign(@Nonnull final MobileAppAssignParameterSet parameters) { + return new MobileAppAssignRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.assign"), getClient(), null, parameters); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionPage.java new file mode 100644 index 00000000000..94b857e8b27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionPage.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.MalwareStateForWindowsDevice; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Malware State For Windows Device Collection Page. + */ +public class MalwareStateForWindowsDeviceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for MalwareStateForWindowsDevice + * + * @param response the serialized MalwareStateForWindowsDeviceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public MalwareStateForWindowsDeviceCollectionPage(@Nonnull final MalwareStateForWindowsDeviceCollectionResponse response, @Nonnull final MalwareStateForWindowsDeviceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for MalwareStateForWindowsDevice + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public MalwareStateForWindowsDeviceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final MalwareStateForWindowsDeviceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionRequest.java new file mode 100644 index 00000000000..822d081a7d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionRequest.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.WindowsMalwareInformation; +import com.microsoft.graph.models.MalwareStateForWindowsDevice; +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.MalwareStateForWindowsDeviceCollectionResponse; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequestBuilder; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Malware State For Windows Device Collection Request. + */ +public class MalwareStateForWindowsDeviceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of MalwareStateForWindowsDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MalwareStateForWindowsDeviceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MalwareStateForWindowsDeviceCollectionResponse.class, MalwareStateForWindowsDeviceCollectionPage.class, MalwareStateForWindowsDeviceCollectionRequestBuilder.class); + } + + /** + * Creates a new MalwareStateForWindowsDevice + * @param newMalwareStateForWindowsDevice the MalwareStateForWindowsDevice to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MalwareStateForWindowsDevice newMalwareStateForWindowsDevice) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new MalwareStateForWindowsDeviceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newMalwareStateForWindowsDevice); + } + + /** + * Creates a new MalwareStateForWindowsDevice + * @param newMalwareStateForWindowsDevice the MalwareStateForWindowsDevice to create + * @return the newly created object + */ + @Nonnull + public MalwareStateForWindowsDevice post(@Nonnull final MalwareStateForWindowsDevice newMalwareStateForWindowsDevice) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new MalwareStateForWindowsDeviceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newMalwareStateForWindowsDevice); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public MalwareStateForWindowsDeviceCollectionRequest 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 MalwareStateForWindowsDeviceCollectionRequest 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 MalwareStateForWindowsDeviceCollectionRequest 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 MalwareStateForWindowsDeviceCollectionRequest 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 MalwareStateForWindowsDeviceCollectionRequest 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 MalwareStateForWindowsDeviceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public MalwareStateForWindowsDeviceCollectionRequest 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 MalwareStateForWindowsDeviceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public MalwareStateForWindowsDeviceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionRequestBuilder.java new file mode 100644 index 00000000000..23954d9258c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionRequestBuilder.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.WindowsMalwareInformation; +import com.microsoft.graph.models.MalwareStateForWindowsDevice; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequestBuilder; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceRequestBuilder; +import com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequest; +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 Malware State For Windows Device Collection Request Builder. + */ +public class MalwareStateForWindowsDeviceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of WindowsMalwareInformation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MalwareStateForWindowsDeviceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MalwareStateForWindowsDeviceRequestBuilder.class, MalwareStateForWindowsDeviceCollectionRequest.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/MalwareStateForWindowsDeviceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionResponse.java new file mode 100644 index 00000000000..baff12d4166 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceCollectionResponse.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.MalwareStateForWindowsDevice; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Malware State For Windows Device Collection Response. + */ +public class MalwareStateForWindowsDeviceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceRequest.java b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceRequest.java new file mode 100644 index 00000000000..fc492f2fd24 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceRequest.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.MalwareStateForWindowsDevice; +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 Malware State For Windows Device Request. + */ +public class MalwareStateForWindowsDeviceRequest extends BaseRequest { + + /** + * The request for the MalwareStateForWindowsDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MalwareStateForWindowsDeviceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MalwareStateForWindowsDevice.class); + } + + /** + * Gets the MalwareStateForWindowsDevice from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MalwareStateForWindowsDevice from the service + * + * @return the MalwareStateForWindowsDevice from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MalwareStateForWindowsDevice 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 MalwareStateForWindowsDevice delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MalwareStateForWindowsDevice with a source + * + * @param sourceMalwareStateForWindowsDevice the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MalwareStateForWindowsDevice sourceMalwareStateForWindowsDevice) { + return sendAsync(HttpMethod.PATCH, sourceMalwareStateForWindowsDevice); + } + + /** + * Patches this MalwareStateForWindowsDevice with a source + * + * @param sourceMalwareStateForWindowsDevice the source object with updates + * @return the updated MalwareStateForWindowsDevice + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MalwareStateForWindowsDevice patch(@Nonnull final MalwareStateForWindowsDevice sourceMalwareStateForWindowsDevice) throws ClientException { + return send(HttpMethod.PATCH, sourceMalwareStateForWindowsDevice); + } + + /** + * Creates a MalwareStateForWindowsDevice with a new object + * + * @param newMalwareStateForWindowsDevice the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MalwareStateForWindowsDevice newMalwareStateForWindowsDevice) { + return sendAsync(HttpMethod.POST, newMalwareStateForWindowsDevice); + } + + /** + * Creates a MalwareStateForWindowsDevice with a new object + * + * @param newMalwareStateForWindowsDevice the new object to create + * @return the created MalwareStateForWindowsDevice + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MalwareStateForWindowsDevice post(@Nonnull final MalwareStateForWindowsDevice newMalwareStateForWindowsDevice) throws ClientException { + return send(HttpMethod.POST, newMalwareStateForWindowsDevice); + } + + /** + * Creates a MalwareStateForWindowsDevice with a new object + * + * @param newMalwareStateForWindowsDevice the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MalwareStateForWindowsDevice newMalwareStateForWindowsDevice) { + return sendAsync(HttpMethod.PUT, newMalwareStateForWindowsDevice); + } + + /** + * Creates a MalwareStateForWindowsDevice with a new object + * + * @param newMalwareStateForWindowsDevice the object to create/update + * @return the created MalwareStateForWindowsDevice + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MalwareStateForWindowsDevice put(@Nonnull final MalwareStateForWindowsDevice newMalwareStateForWindowsDevice) throws ClientException { + return send(HttpMethod.PUT, newMalwareStateForWindowsDevice); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MalwareStateForWindowsDeviceRequest 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 MalwareStateForWindowsDeviceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceRequestBuilder.java new file mode 100644 index 00000000000..ec63119fc0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MalwareStateForWindowsDeviceRequestBuilder.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.MalwareStateForWindowsDevice; +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 Malware State For Windows Device Request Builder. + */ +public class MalwareStateForWindowsDeviceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MalwareStateForWindowsDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MalwareStateForWindowsDeviceRequestBuilder(@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 MalwareStateForWindowsDeviceRequest instance + */ + @Nonnull + public MalwareStateForWindowsDeviceRequest 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 MalwareStateForWindowsDeviceRequest instance + */ + @Nonnull + public MalwareStateForWindowsDeviceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MalwareStateForWindowsDeviceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/ManagedDeviceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ManagedDeviceRequestBuilder.java index 2a8d0fe7961..d10b864238d 100644 --- a/src/main/java/com/microsoft/graph/requests/ManagedDeviceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/ManagedDeviceRequestBuilder.java @@ -112,6 +112,26 @@ public com.microsoft.graph.requests.DeviceConfigurationStateRequestBuilder devic public com.microsoft.graph.requests.DeviceCategoryRequestBuilder deviceCategory() { return new com.microsoft.graph.requests.DeviceCategoryRequestBuilder(getRequestUrlWithAdditionalSegment("deviceCategory"), getClient(), null); } + /** + * Gets a request builder for the DeviceLogCollectionResponse collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequestBuilder logCollectionRequests() { + return new com.microsoft.graph.requests.DeviceLogCollectionResponseCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("logCollectionRequests"), getClient(), null); + } + + /** + * Gets a request builder for the DeviceLogCollectionResponse item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.DeviceLogCollectionResponseRequestBuilder logCollectionRequests(@Nonnull final String id) { + return new com.microsoft.graph.requests.DeviceLogCollectionResponseRequestBuilder(getRequestUrlWithAdditionalSegment("logCollectionRequests") + "/" + id, getClient(), null); + } /** * Gets a request builder for the User collection * @@ -133,6 +153,16 @@ public com.microsoft.graph.requests.UserWithReferenceRequestBuilder users(@Nonnu return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("users") + "/" + id, getClient(), null); } + /** + * Gets the request builder for WindowsProtectionState + * + * @return the WindowsProtectionStateRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.WindowsProtectionStateRequestBuilder windowsProtectionState() { + return new com.microsoft.graph.requests.WindowsProtectionStateRequestBuilder(getRequestUrlWithAdditionalSegment("windowsProtectionState"), getClient(), null); + } + /** * Bypass activation lock * @return the request builder diff --git a/src/main/java/com/microsoft/graph/requests/MembershipOutlierInsightRequest.java b/src/main/java/com/microsoft/graph/requests/MembershipOutlierInsightRequest.java new file mode 100644 index 00000000000..00b3e9e8708 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MembershipOutlierInsightRequest.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.MembershipOutlierInsight; +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 Membership Outlier Insight Request. + */ +public class MembershipOutlierInsightRequest extends BaseRequest { + + /** + * The request for the MembershipOutlierInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MembershipOutlierInsightRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MembershipOutlierInsight.class); + } + + /** + * Gets the MembershipOutlierInsight from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MembershipOutlierInsight from the service + * + * @return the MembershipOutlierInsight from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MembershipOutlierInsight 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 MembershipOutlierInsight delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MembershipOutlierInsight with a source + * + * @param sourceMembershipOutlierInsight the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MembershipOutlierInsight sourceMembershipOutlierInsight) { + return sendAsync(HttpMethod.PATCH, sourceMembershipOutlierInsight); + } + + /** + * Patches this MembershipOutlierInsight with a source + * + * @param sourceMembershipOutlierInsight the source object with updates + * @return the updated MembershipOutlierInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MembershipOutlierInsight patch(@Nonnull final MembershipOutlierInsight sourceMembershipOutlierInsight) throws ClientException { + return send(HttpMethod.PATCH, sourceMembershipOutlierInsight); + } + + /** + * Creates a MembershipOutlierInsight with a new object + * + * @param newMembershipOutlierInsight the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MembershipOutlierInsight newMembershipOutlierInsight) { + return sendAsync(HttpMethod.POST, newMembershipOutlierInsight); + } + + /** + * Creates a MembershipOutlierInsight with a new object + * + * @param newMembershipOutlierInsight the new object to create + * @return the created MembershipOutlierInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MembershipOutlierInsight post(@Nonnull final MembershipOutlierInsight newMembershipOutlierInsight) throws ClientException { + return send(HttpMethod.POST, newMembershipOutlierInsight); + } + + /** + * Creates a MembershipOutlierInsight with a new object + * + * @param newMembershipOutlierInsight the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MembershipOutlierInsight newMembershipOutlierInsight) { + return sendAsync(HttpMethod.PUT, newMembershipOutlierInsight); + } + + /** + * Creates a MembershipOutlierInsight with a new object + * + * @param newMembershipOutlierInsight the object to create/update + * @return the created MembershipOutlierInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MembershipOutlierInsight put(@Nonnull final MembershipOutlierInsight newMembershipOutlierInsight) throws ClientException { + return send(HttpMethod.PUT, newMembershipOutlierInsight); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MembershipOutlierInsightRequest 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 MembershipOutlierInsightRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MembershipOutlierInsightRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MembershipOutlierInsightRequestBuilder.java new file mode 100644 index 00000000000..6ac637ff3b6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MembershipOutlierInsightRequestBuilder.java @@ -0,0 +1,89 @@ +// 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.MembershipOutlierInsight; +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 Membership Outlier Insight Request Builder. + */ +public class MembershipOutlierInsightRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MembershipOutlierInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MembershipOutlierInsightRequestBuilder(@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 MembershipOutlierInsightRequest instance + */ + @Nonnull + public MembershipOutlierInsightRequest 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 MembershipOutlierInsightRequest instance + */ + @Nonnull + public MembershipOutlierInsightRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MembershipOutlierInsightRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for DirectoryObject + * + * @return the DirectoryObjectWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryObjectWithReferenceRequestBuilder container() { + return new com.microsoft.graph.requests.DirectoryObjectWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("container"), getClient(), null); + } + + /** + * Gets the request builder for User + * + * @return the UserWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserWithReferenceRequestBuilder lastModifiedBy() { + return new com.microsoft.graph.requests.UserWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("lastModifiedBy"), getClient(), null); + } + + /** + * Gets the request builder for DirectoryObject + * + * @return the DirectoryObjectWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.DirectoryObjectWithReferenceRequestBuilder member() { + return new com.microsoft.graph.requests.DirectoryObjectWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("member"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionPage.java b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionPage.java new file mode 100644 index 00000000000..2732dac72f4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionPage.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.MobileAppTroubleshootingEvent; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Mobile App Troubleshooting Event Collection Page. + */ +public class MobileAppTroubleshootingEventCollectionPage extends BaseCollectionPage { + + /** + * A collection page for MobileAppTroubleshootingEvent + * + * @param response the serialized MobileAppTroubleshootingEventCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public MobileAppTroubleshootingEventCollectionPage(@Nonnull final MobileAppTroubleshootingEventCollectionResponse response, @Nonnull final MobileAppTroubleshootingEventCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for MobileAppTroubleshootingEvent + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public MobileAppTroubleshootingEventCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final MobileAppTroubleshootingEventCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionRequest.java new file mode 100644 index 00000000000..70ac0aadf7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.MobileAppTroubleshootingEvent; +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.MobileAppTroubleshootingEventCollectionResponse; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequestBuilder; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Mobile App Troubleshooting Event Collection Request. + */ +public class MobileAppTroubleshootingEventCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of MobileAppTroubleshootingEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MobileAppTroubleshootingEventCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MobileAppTroubleshootingEventCollectionResponse.class, MobileAppTroubleshootingEventCollectionPage.class, MobileAppTroubleshootingEventCollectionRequestBuilder.class); + } + + /** + * Creates a new MobileAppTroubleshootingEvent + * @param newMobileAppTroubleshootingEvent the MobileAppTroubleshootingEvent to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MobileAppTroubleshootingEvent newMobileAppTroubleshootingEvent) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new MobileAppTroubleshootingEventRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newMobileAppTroubleshootingEvent); + } + + /** + * Creates a new MobileAppTroubleshootingEvent + * @param newMobileAppTroubleshootingEvent the MobileAppTroubleshootingEvent to create + * @return the newly created object + */ + @Nonnull + public MobileAppTroubleshootingEvent post(@Nonnull final MobileAppTroubleshootingEvent newMobileAppTroubleshootingEvent) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new MobileAppTroubleshootingEventRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newMobileAppTroubleshootingEvent); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public MobileAppTroubleshootingEventCollectionRequest 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 MobileAppTroubleshootingEventCollectionRequest 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 MobileAppTroubleshootingEventCollectionRequest 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 MobileAppTroubleshootingEventCollectionRequest 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 MobileAppTroubleshootingEventCollectionRequest 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 MobileAppTroubleshootingEventCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public MobileAppTroubleshootingEventCollectionRequest 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 MobileAppTroubleshootingEventCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public MobileAppTroubleshootingEventCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionRequestBuilder.java new file mode 100644 index 00000000000..25fac98eb77 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.MobileAppTroubleshootingEvent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequestBuilder; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventRequestBuilder; +import com.microsoft.graph.requests.MobileAppTroubleshootingEventCollectionRequest; +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 Mobile App Troubleshooting Event Collection Request Builder. + */ +public class MobileAppTroubleshootingEventCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MobileAppTroubleshootingEventCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MobileAppTroubleshootingEventRequestBuilder.class, MobileAppTroubleshootingEventCollectionRequest.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/MobileAppTroubleshootingEventCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionResponse.java new file mode 100644 index 00000000000..0ec4295b6d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventCollectionResponse.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.MobileAppTroubleshootingEvent; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Mobile App Troubleshooting Event Collection Response. + */ +public class MobileAppTroubleshootingEventCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventRequest.java b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventRequest.java new file mode 100644 index 00000000000..fd0bdd31352 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventRequest.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.MobileAppTroubleshootingEvent; +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 Mobile App Troubleshooting Event Request. + */ +public class MobileAppTroubleshootingEventRequest extends BaseRequest { + + /** + * The request for the MobileAppTroubleshootingEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MobileAppTroubleshootingEventRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, MobileAppTroubleshootingEvent.class); + } + + /** + * Gets the MobileAppTroubleshootingEvent from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the MobileAppTroubleshootingEvent from the service + * + * @return the MobileAppTroubleshootingEvent from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MobileAppTroubleshootingEvent 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 MobileAppTroubleshootingEvent delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this MobileAppTroubleshootingEvent with a source + * + * @param sourceMobileAppTroubleshootingEvent the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final MobileAppTroubleshootingEvent sourceMobileAppTroubleshootingEvent) { + return sendAsync(HttpMethod.PATCH, sourceMobileAppTroubleshootingEvent); + } + + /** + * Patches this MobileAppTroubleshootingEvent with a source + * + * @param sourceMobileAppTroubleshootingEvent the source object with updates + * @return the updated MobileAppTroubleshootingEvent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MobileAppTroubleshootingEvent patch(@Nonnull final MobileAppTroubleshootingEvent sourceMobileAppTroubleshootingEvent) throws ClientException { + return send(HttpMethod.PATCH, sourceMobileAppTroubleshootingEvent); + } + + /** + * Creates a MobileAppTroubleshootingEvent with a new object + * + * @param newMobileAppTroubleshootingEvent the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final MobileAppTroubleshootingEvent newMobileAppTroubleshootingEvent) { + return sendAsync(HttpMethod.POST, newMobileAppTroubleshootingEvent); + } + + /** + * Creates a MobileAppTroubleshootingEvent with a new object + * + * @param newMobileAppTroubleshootingEvent the new object to create + * @return the created MobileAppTroubleshootingEvent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MobileAppTroubleshootingEvent post(@Nonnull final MobileAppTroubleshootingEvent newMobileAppTroubleshootingEvent) throws ClientException { + return send(HttpMethod.POST, newMobileAppTroubleshootingEvent); + } + + /** + * Creates a MobileAppTroubleshootingEvent with a new object + * + * @param newMobileAppTroubleshootingEvent the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final MobileAppTroubleshootingEvent newMobileAppTroubleshootingEvent) { + return sendAsync(HttpMethod.PUT, newMobileAppTroubleshootingEvent); + } + + /** + * Creates a MobileAppTroubleshootingEvent with a new object + * + * @param newMobileAppTroubleshootingEvent the object to create/update + * @return the created MobileAppTroubleshootingEvent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public MobileAppTroubleshootingEvent put(@Nonnull final MobileAppTroubleshootingEvent newMobileAppTroubleshootingEvent) throws ClientException { + return send(HttpMethod.PUT, newMobileAppTroubleshootingEvent); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public MobileAppTroubleshootingEventRequest 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 MobileAppTroubleshootingEventRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventRequestBuilder.java new file mode 100644 index 00000000000..c3610d468a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/MobileAppTroubleshootingEventRequestBuilder.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.MobileAppTroubleshootingEvent; +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 Mobile App Troubleshooting Event Request Builder. + */ +public class MobileAppTroubleshootingEventRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the MobileAppTroubleshootingEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public MobileAppTroubleshootingEventRequestBuilder(@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 MobileAppTroubleshootingEventRequest instance + */ + @Nonnull + public MobileAppTroubleshootingEventRequest 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 MobileAppTroubleshootingEventRequest instance + */ + @Nonnull + public MobileAppTroubleshootingEventRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.MobileAppTroubleshootingEventRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the AppLogCollectionRequest collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequestBuilder appLogCollectionRequests() { + return new com.microsoft.graph.requests.AppLogCollectionRequestCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("appLogCollectionRequests"), getClient(), null); + } + + /** + * Gets a request builder for the AppLogCollectionRequest item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.AppLogCollectionRequestRequestBuilder appLogCollectionRequests(@Nonnull final String id) { + return new com.microsoft.graph.requests.AppLogCollectionRequestRequestBuilder(getRequestUrlWithAdditionalSegment("appLogCollectionRequests") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequest.java index 07700f2ff89..7d6c28e79c6 100644 --- a/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequest.java @@ -7,7 +7,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.models.Print; +import com.microsoft.graph.models.UserPrint; import com.microsoft.graph.models.PrinterShare; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequestBuilder.java index 8092abfc41e..ca940000dac 100644 --- a/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/PrinterShareCollectionRequestBuilder.java @@ -7,7 +7,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.models.Print; +import com.microsoft.graph.models.UserPrint; import com.microsoft.graph.models.PrinterShare; import java.util.Arrays; import java.util.EnumSet; @@ -28,7 +28,7 @@ public class PrinterShareCollectionRequestBuilder extends BaseCollectionRequestBuilder { /** - * The request builder for this collection of Print + * The request builder for this collection of UserPrint * * @param requestUrl the request URL * @param client the service client diff --git a/src/main/java/com/microsoft/graph/requests/PrinterShareReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/PrinterShareReferenceRequest.java index 618a0934374..69fe7ebe9d5 100644 --- a/src/main/java/com/microsoft/graph/requests/PrinterShareReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/PrinterShareReferenceRequest.java @@ -70,7 +70,7 @@ public PrinterShareReferenceRequest expand(@Nonnull final String value) { @Nonnull public java.util.concurrent.CompletableFuture putAsync(@Nonnull final PrinterShare srcPrinterShare) { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/print/shares/" + srcPrinterShare.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/recentPrinterShares/" + srcPrinterShare.id)); return sendAsync(HttpMethod.PUT, payload); } @@ -84,7 +84,7 @@ public java.util.concurrent.CompletableFuture putAsync(@Nonnull fi @Nullable public PrinterShare put(@Nonnull final PrinterShare srcPrinterShare) throws ClientException { final JsonObject payload = new JsonObject(); - payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/print/shares/" + srcPrinterShare.id)); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/recentPrinterShares/" + srcPrinterShare.id)); return send(HttpMethod.PUT, payload); } } diff --git a/src/main/java/com/microsoft/graph/requests/ReportRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ReportRootRequestBuilder.java index ad9bc19de4f..cbedec7016b 100644 --- a/src/main/java/com/microsoft/graph/requests/ReportRootRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/ReportRootRequestBuilder.java @@ -135,6 +135,16 @@ public ReportRootRequest buildRequest(@Nonnull final java.util.List postAsync() { - return this.sendAsync(HttpMethod.POST, null); + return this.sendAsync(HttpMethod.POST, body); } /** @@ -47,6 +51,6 @@ public java.util.concurrent.CompletableFuture postAsync() { * @throws ClientException an exception occurs if there was an error while the request was sent */ public void post() throws ClientException { - this.send(HttpMethod.POST, null); + this.send(HttpMethod.POST, body); } } diff --git a/src/main/java/com/microsoft/graph/requests/TeamsAppInstallationUpgradeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TeamsAppInstallationUpgradeRequestBuilder.java index d23260c8b5f..f647cb54a86 100644 --- a/src/main/java/com/microsoft/graph/requests/TeamsAppInstallationUpgradeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/TeamsAppInstallationUpgradeRequestBuilder.java @@ -6,8 +6,9 @@ package com.microsoft.graph.requests; import com.microsoft.graph.requests.TeamsAppInstallationUpgradeRequest; import com.microsoft.graph.models.TeamsAppInstallation; - +import com.microsoft.graph.models.TeamsAppPermissionSet; import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.TeamsAppInstallationUpgradeParameterSet; import com.microsoft.graph.core.IBaseClient; import com.google.gson.JsonElement; import javax.annotation.Nullable; @@ -30,6 +31,19 @@ public class TeamsAppInstallationUpgradeRequestBuilder extends BaseActionRequest public TeamsAppInstallationUpgradeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { super(requestUrl, client, requestOptions); } + private TeamsAppInstallationUpgradeParameterSet body; + /** + * The request builder for this TeamsAppInstallationUpgrade + * + * @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 TeamsAppInstallationUpgradeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final TeamsAppInstallationUpgradeParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } /** * Creates the TeamsAppInstallationUpgradeRequest @@ -54,6 +68,7 @@ public TeamsAppInstallationUpgradeRequest buildRequest(@Nonnull final java.util. getRequestUrl(), getClient(), requestOptions); + request.body = this.body; return request; } } diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage.java new file mode 100644 index 00000000000..5c81e9074af --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By App Version Details Collection Page. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * + * @param response the serialized UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest.java new file mode 100644 index 00000000000..5cb352ac155 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails; +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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By App Version Details Collection Request. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.class, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionPage.class, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails post(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder.java new file mode 100644 index 00000000000..a1b2d0ab637 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest; +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 User Experience Analytics App Health App Performance By App Version Details Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder.class, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionRequest.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/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.java new file mode 100644 index 00000000000..1f72771d9ce --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By App Version Details Collection Response. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest.java new file mode 100644 index 00000000000..00eea21c1c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails; +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 User Experience Analytics App Health App Performance By App Version Details Request. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails from the service + * + * @return the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails with a source + * + * @param sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails with a source + * + * @param sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails patch(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the new object to create + * @return the created UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails post(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the object to create/update + * @return the created UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails put(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder.java new file mode 100644 index 00000000000..d2ff5464343 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails; +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 User Experience Analytics App Health App Performance By App Version Details Request Builder. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequestBuilder(@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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage.java new file mode 100644 index 00000000000..50132fd3052 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By App Version Device Id Collection Page. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * + * @param response the serialized UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest.java new file mode 100644 index 00000000000..bc3767e9b3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId; +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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By App Version Device Id Collection Request. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.class, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionPage.class, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId post(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder.java new file mode 100644 index 00000000000..fff4bf50096 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest; +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 User Experience Analytics App Health App Performance By App Version Device Id Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder.class, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionRequest.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/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.java new file mode 100644 index 00000000000..9929458468b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By App Version Device Id Collection Response. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest.java new file mode 100644 index 00000000000..b22a5488584 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId; +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 User Experience Analytics App Health App Performance By App Version Device Id Request. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId from the service + * + * @return the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId with a source + * + * @param sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId with a source + * + * @param sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId patch(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the new object to create + * @return the created UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId post(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the object to create/update + * @return the created UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId put(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder.java new file mode 100644 index 00000000000..19ef1b0186c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder.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.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId; +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 User Experience Analytics App Health App Performance By App Version Device Id Request Builder. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequestBuilder(@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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage.java new file mode 100644 index 00000000000..f4c1f7dbfae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage.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.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By OSVersion Collection Page. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * + * @param response the serialized UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest.java new file mode 100644 index 00000000000..c769906160e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion; +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.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By OSVersion Collection Request. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.class, UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionPage.class, UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion post(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder.java new file mode 100644 index 00000000000..63a6aa299ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest; +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 User Experience Analytics App Health App Performance By OSVersion Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder.class, UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionRequest.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/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.java new file mode 100644 index 00000000000..515d7c47c6f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.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.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health App Performance By OSVersion Collection Response. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest.java new file mode 100644 index 00000000000..25be3805bb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest.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.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion; +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 User Experience Analytics App Health App Performance By OSVersion Request. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion from the service + * + * @return the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion with a source + * + * @param sourceUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion sourceUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion with a source + * + * @param sourceUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion patch(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion sourceUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the new object to create + * @return the created UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion post(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion with a new object + * + * @param newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion the object to create/update + * @return the created UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion put(@Nonnull final UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthAppPerformanceByOSVersion); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder.java new file mode 100644 index 00000000000..434a3720227 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder.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.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion; +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 User Experience Analytics App Health App Performance By OSVersion Request Builder. + */ +public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequestBuilder(@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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest 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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage.java new file mode 100644 index 00000000000..69c6db6e344 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage.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.UserExperienceAnalyticsAppHealthApplicationPerformance; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Application Performance Collection Page. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthApplicationPerformance + * + * @param response the serialized UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthApplicationPerformance + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest.java new file mode 100644 index 00000000000..b58077d5875 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthApplicationPerformance; +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.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Application Performance Collection Request. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthApplicationPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.class, UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionPage.class, UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthApplicationPerformance + * @param newUserExperienceAnalyticsAppHealthApplicationPerformance the UserExperienceAnalyticsAppHealthApplicationPerformance to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance newUserExperienceAnalyticsAppHealthApplicationPerformance) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthApplicationPerformance + * @param newUserExperienceAnalyticsAppHealthApplicationPerformance the UserExperienceAnalyticsAppHealthApplicationPerformance to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformance post(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance newUserExperienceAnalyticsAppHealthApplicationPerformance) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder.java new file mode 100644 index 00000000000..93462035baf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthApplicationPerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest; +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 User Experience Analytics App Health Application Performance Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.class, UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionRequest.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/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.java new file mode 100644 index 00000000000..1a34e3a94f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.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.UserExperienceAnalyticsAppHealthApplicationPerformance; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Application Performance Collection Response. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceRequest.java new file mode 100644 index 00000000000..58d17f9fd4d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceRequest.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.UserExperienceAnalyticsAppHealthApplicationPerformance; +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 User Experience Analytics App Health Application Performance Request. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformanceRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthApplicationPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthApplicationPerformanceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthApplicationPerformance.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthApplicationPerformance from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthApplicationPerformance from the service + * + * @return the UserExperienceAnalyticsAppHealthApplicationPerformance from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthApplicationPerformance 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 UserExperienceAnalyticsAppHealthApplicationPerformance delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthApplicationPerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthApplicationPerformance the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance sourceUserExperienceAnalyticsAppHealthApplicationPerformance) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthApplicationPerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthApplicationPerformance the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthApplicationPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthApplicationPerformance patch(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance sourceUserExperienceAnalyticsAppHealthApplicationPerformance) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthApplicationPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthApplicationPerformance the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance newUserExperienceAnalyticsAppHealthApplicationPerformance) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthApplicationPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthApplicationPerformance the new object to create + * @return the created UserExperienceAnalyticsAppHealthApplicationPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthApplicationPerformance post(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance newUserExperienceAnalyticsAppHealthApplicationPerformance) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthApplicationPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthApplicationPerformance the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance newUserExperienceAnalyticsAppHealthApplicationPerformance) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthApplicationPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthApplicationPerformance the object to create/update + * @return the created UserExperienceAnalyticsAppHealthApplicationPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthApplicationPerformance put(@Nonnull final UserExperienceAnalyticsAppHealthApplicationPerformance newUserExperienceAnalyticsAppHealthApplicationPerformance) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthApplicationPerformance); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformanceRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.java new file mode 100644 index 00000000000..e14a08c6f19 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.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.UserExperienceAnalyticsAppHealthApplicationPerformance; +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 User Experience Analytics App Health Application Performance Request Builder. + */ +public class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthApplicationPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(@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 UserExperienceAnalyticsAppHealthApplicationPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformanceRequest 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 UserExperienceAnalyticsAppHealthApplicationPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthApplicationPerformanceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthApplicationPerformanceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage.java new file mode 100644 index 00000000000..512dbe2cc46 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage.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.UserExperienceAnalyticsAppHealthDeviceModelPerformance; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Model Performance Collection Page. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthDeviceModelPerformance + * + * @param response the serialized UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthDeviceModelPerformance + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest.java new file mode 100644 index 00000000000..24cac910f9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthDeviceModelPerformance; +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.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Model Performance Collection Request. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthDeviceModelPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.class, UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionPage.class, UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthDeviceModelPerformance + * @param newUserExperienceAnalyticsAppHealthDeviceModelPerformance the UserExperienceAnalyticsAppHealthDeviceModelPerformance to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance newUserExperienceAnalyticsAppHealthDeviceModelPerformance) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthDeviceModelPerformance + * @param newUserExperienceAnalyticsAppHealthDeviceModelPerformance the UserExperienceAnalyticsAppHealthDeviceModelPerformance to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformance post(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance newUserExperienceAnalyticsAppHealthDeviceModelPerformance) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder.java new file mode 100644 index 00000000000..cd54be6350a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthDeviceModelPerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest; +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 User Experience Analytics App Health Device Model Performance Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.class, UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionRequest.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/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.java new file mode 100644 index 00000000000..113b4f61bf7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.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.UserExperienceAnalyticsAppHealthDeviceModelPerformance; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Model Performance Collection Response. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest.java new file mode 100644 index 00000000000..feb629fb662 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest.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.UserExperienceAnalyticsAppHealthDeviceModelPerformance; +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 User Experience Analytics App Health Device Model Performance Request. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthDeviceModelPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDeviceModelPerformance.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthDeviceModelPerformance from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthDeviceModelPerformance from the service + * + * @return the UserExperienceAnalyticsAppHealthDeviceModelPerformance from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDeviceModelPerformance 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 UserExperienceAnalyticsAppHealthDeviceModelPerformance delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthDeviceModelPerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthDeviceModelPerformance the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance sourceUserExperienceAnalyticsAppHealthDeviceModelPerformance) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthDeviceModelPerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthDeviceModelPerformance the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthDeviceModelPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDeviceModelPerformance patch(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance sourceUserExperienceAnalyticsAppHealthDeviceModelPerformance) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDeviceModelPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDeviceModelPerformance the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance newUserExperienceAnalyticsAppHealthDeviceModelPerformance) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDeviceModelPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDeviceModelPerformance the new object to create + * @return the created UserExperienceAnalyticsAppHealthDeviceModelPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDeviceModelPerformance post(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance newUserExperienceAnalyticsAppHealthDeviceModelPerformance) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDeviceModelPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDeviceModelPerformance the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance newUserExperienceAnalyticsAppHealthDeviceModelPerformance) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDeviceModelPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDeviceModelPerformance the object to create/update + * @return the created UserExperienceAnalyticsAppHealthDeviceModelPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDeviceModelPerformance put(@Nonnull final UserExperienceAnalyticsAppHealthDeviceModelPerformance newUserExperienceAnalyticsAppHealthDeviceModelPerformance) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthDeviceModelPerformance); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.java new file mode 100644 index 00000000000..9bc7906ad43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.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.UserExperienceAnalyticsAppHealthDeviceModelPerformance; +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 User Experience Analytics App Health Device Model Performance Request Builder. + */ +public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthDeviceModelPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(@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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest 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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage.java new file mode 100644 index 00000000000..a3e7f1a344c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage.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.UserExperienceAnalyticsAppHealthDevicePerformance; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Performance Collection Page. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthDevicePerformance + * + * @param response the serialized UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthDevicePerformance + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest.java new file mode 100644 index 00000000000..e15d78e8100 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthDevicePerformance; +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.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Performance Collection Request. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthDevicePerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.class, UserExperienceAnalyticsAppHealthDevicePerformanceCollectionPage.class, UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthDevicePerformance + * @param newUserExperienceAnalyticsAppHealthDevicePerformance the UserExperienceAnalyticsAppHealthDevicePerformance to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance newUserExperienceAnalyticsAppHealthDevicePerformance) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthDevicePerformance + * @param newUserExperienceAnalyticsAppHealthDevicePerformance the UserExperienceAnalyticsAppHealthDevicePerformance to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformance post(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance newUserExperienceAnalyticsAppHealthDevicePerformance) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder.java new file mode 100644 index 00000000000..213411acdcd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthDevicePerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest; +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 User Experience Analytics App Health Device Performance Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.class, UserExperienceAnalyticsAppHealthDevicePerformanceCollectionRequest.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/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.java new file mode 100644 index 00000000000..35868fcd1aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.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.UserExperienceAnalyticsAppHealthDevicePerformance; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Performance Collection Response. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage.java new file mode 100644 index 00000000000..d41d28a84df --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage.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.UserExperienceAnalyticsAppHealthDevicePerformanceDetails; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Performance Details Collection Page. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * + * @param response the serialized UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest.java new file mode 100644 index 00000000000..41023b556ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails; +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.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Performance Details Collection Request. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.class, UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionPage.class, UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * @param newUserExperienceAnalyticsAppHealthDevicePerformanceDetails the UserExperienceAnalyticsAppHealthDevicePerformanceDetails to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails newUserExperienceAnalyticsAppHealthDevicePerformanceDetails) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * @param newUserExperienceAnalyticsAppHealthDevicePerformanceDetails the UserExperienceAnalyticsAppHealthDevicePerformanceDetails to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetails post(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails newUserExperienceAnalyticsAppHealthDevicePerformanceDetails) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder.java new file mode 100644 index 00000000000..a2e775c5a97 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest; +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 User Experience Analytics App Health Device Performance Details Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.class, UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionRequest.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/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.java new file mode 100644 index 00000000000..d122040c4a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.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.UserExperienceAnalyticsAppHealthDevicePerformanceDetails; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health Device Performance Details Collection Response. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest.java new file mode 100644 index 00000000000..90b397c43a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest.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.UserExperienceAnalyticsAppHealthDevicePerformanceDetails; +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 User Experience Analytics App Health Device Performance Details Request. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDevicePerformanceDetails.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthDevicePerformanceDetails from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthDevicePerformanceDetails from the service + * + * @return the UserExperienceAnalyticsAppHealthDevicePerformanceDetails from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformanceDetails 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetails delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthDevicePerformanceDetails with a source + * + * @param sourceUserExperienceAnalyticsAppHealthDevicePerformanceDetails the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails sourceUserExperienceAnalyticsAppHealthDevicePerformanceDetails) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthDevicePerformanceDetails with a source + * + * @param sourceUserExperienceAnalyticsAppHealthDevicePerformanceDetails the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformanceDetails patch(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails sourceUserExperienceAnalyticsAppHealthDevicePerformanceDetails) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformanceDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformanceDetails the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails newUserExperienceAnalyticsAppHealthDevicePerformanceDetails) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformanceDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformanceDetails the new object to create + * @return the created UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformanceDetails post(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails newUserExperienceAnalyticsAppHealthDevicePerformanceDetails) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformanceDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformanceDetails the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails newUserExperienceAnalyticsAppHealthDevicePerformanceDetails) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformanceDetails with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformanceDetails the object to create/update + * @return the created UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformanceDetails put(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformanceDetails newUserExperienceAnalyticsAppHealthDevicePerformanceDetails) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthDevicePerformanceDetails); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.java new file mode 100644 index 00000000000..130dcae9fcc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.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.UserExperienceAnalyticsAppHealthDevicePerformanceDetails; +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 User Experience Analytics App Health Device Performance Details Request Builder. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthDevicePerformanceDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(@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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceRequest.java new file mode 100644 index 00000000000..f7ad1974882 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceRequest.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.UserExperienceAnalyticsAppHealthDevicePerformance; +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 User Experience Analytics App Health Device Performance Request. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthDevicePerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthDevicePerformance.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthDevicePerformance from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthDevicePerformance from the service + * + * @return the UserExperienceAnalyticsAppHealthDevicePerformance from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformance 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 UserExperienceAnalyticsAppHealthDevicePerformance delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthDevicePerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthDevicePerformance the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance sourceUserExperienceAnalyticsAppHealthDevicePerformance) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthDevicePerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthDevicePerformance the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthDevicePerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformance patch(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance sourceUserExperienceAnalyticsAppHealthDevicePerformance) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformance the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance newUserExperienceAnalyticsAppHealthDevicePerformance) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformance the new object to create + * @return the created UserExperienceAnalyticsAppHealthDevicePerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformance post(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance newUserExperienceAnalyticsAppHealthDevicePerformance) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformance the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance newUserExperienceAnalyticsAppHealthDevicePerformance) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthDevicePerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthDevicePerformance the object to create/update + * @return the created UserExperienceAnalyticsAppHealthDevicePerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthDevicePerformance put(@Nonnull final UserExperienceAnalyticsAppHealthDevicePerformance newUserExperienceAnalyticsAppHealthDevicePerformance) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthDevicePerformance); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.java new file mode 100644 index 00000000000..298ac9804f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.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.UserExperienceAnalyticsAppHealthDevicePerformance; +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 User Experience Analytics App Health Device Performance Request Builder. + */ +public class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthDevicePerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(@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 UserExperienceAnalyticsAppHealthDevicePerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceRequest 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 UserExperienceAnalyticsAppHealthDevicePerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthDevicePerformanceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthDevicePerformanceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage.java new file mode 100644 index 00000000000..1b58b60f1ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage.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.UserExperienceAnalyticsAppHealthOSVersionPerformance; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health OSVersion Performance Collection Page. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsAppHealthOSVersionPerformance + * + * @param response the serialized UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse response, @Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsAppHealthOSVersionPerformance + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest.java new file mode 100644 index 00000000000..e013bea3988 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthOSVersionPerformance; +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.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health OSVersion Performance Collection Request. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsAppHealthOSVersionPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.class, UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionPage.class, UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthOSVersionPerformance + * @param newUserExperienceAnalyticsAppHealthOSVersionPerformance the UserExperienceAnalyticsAppHealthOSVersionPerformance to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance newUserExperienceAnalyticsAppHealthOSVersionPerformance) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Creates a new UserExperienceAnalyticsAppHealthOSVersionPerformance + * @param newUserExperienceAnalyticsAppHealthOSVersionPerformance the UserExperienceAnalyticsAppHealthOSVersionPerformance to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformance post(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance newUserExperienceAnalyticsAppHealthOSVersionPerformance) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder.java new file mode 100644 index 00000000000..3f30ca94b24 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsAppHealthOSVersionPerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest; +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 User Experience Analytics App Health OSVersion Performance Collection Request Builder. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.class, UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionRequest.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/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.java new file mode 100644 index 00000000000..50fddb5ecb9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.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.UserExperienceAnalyticsAppHealthOSVersionPerformance; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics App Health OSVersion Performance Collection Response. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest.java new file mode 100644 index 00000000000..f3e8d012559 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest.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.UserExperienceAnalyticsAppHealthOSVersionPerformance; +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 User Experience Analytics App Health OSVersion Performance Request. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsAppHealthOSVersionPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsAppHealthOSVersionPerformance.class); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthOSVersionPerformance from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsAppHealthOSVersionPerformance from the service + * + * @return the UserExperienceAnalyticsAppHealthOSVersionPerformance from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthOSVersionPerformance 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 UserExperienceAnalyticsAppHealthOSVersionPerformance delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthOSVersionPerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthOSVersionPerformance the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance sourceUserExperienceAnalyticsAppHealthOSVersionPerformance) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Patches this UserExperienceAnalyticsAppHealthOSVersionPerformance with a source + * + * @param sourceUserExperienceAnalyticsAppHealthOSVersionPerformance the source object with updates + * @return the updated UserExperienceAnalyticsAppHealthOSVersionPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthOSVersionPerformance patch(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance sourceUserExperienceAnalyticsAppHealthOSVersionPerformance) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthOSVersionPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthOSVersionPerformance the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance newUserExperienceAnalyticsAppHealthOSVersionPerformance) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthOSVersionPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthOSVersionPerformance the new object to create + * @return the created UserExperienceAnalyticsAppHealthOSVersionPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthOSVersionPerformance post(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance newUserExperienceAnalyticsAppHealthOSVersionPerformance) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthOSVersionPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthOSVersionPerformance the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance newUserExperienceAnalyticsAppHealthOSVersionPerformance) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Creates a UserExperienceAnalyticsAppHealthOSVersionPerformance with a new object + * + * @param newUserExperienceAnalyticsAppHealthOSVersionPerformance the object to create/update + * @return the created UserExperienceAnalyticsAppHealthOSVersionPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsAppHealthOSVersionPerformance put(@Nonnull final UserExperienceAnalyticsAppHealthOSVersionPerformance newUserExperienceAnalyticsAppHealthOSVersionPerformance) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsAppHealthOSVersionPerformance); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.java new file mode 100644 index 00000000000..10e5f4ff7ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.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.UserExperienceAnalyticsAppHealthOSVersionPerformance; +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 User Experience Analytics App Health OSVersion Performance Request Builder. + */ +public class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsAppHealthOSVersionPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(@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 UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest 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 UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsAppHealthOSVersionPerformanceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionPage.java new file mode 100644 index 00000000000..14e7fa45642 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionPage.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.UserExperienceAnalyticsBaseline; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Baseline Collection Page. + */ +public class UserExperienceAnalyticsBaselineCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsBaseline + * + * @param response the serialized UserExperienceAnalyticsBaselineCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsBaselineCollectionPage(@Nonnull final UserExperienceAnalyticsBaselineCollectionResponse response, @Nonnull final UserExperienceAnalyticsBaselineCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsBaseline + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsBaselineCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsBaselineCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionRequest.java new file mode 100644 index 00000000000..28a1a38bd90 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsBaseline; +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.UserExperienceAnalyticsBaselineCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Baseline Collection Request. + */ +public class UserExperienceAnalyticsBaselineCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsBaseline + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsBaselineCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsBaselineCollectionResponse.class, UserExperienceAnalyticsBaselineCollectionPage.class, UserExperienceAnalyticsBaselineCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsBaseline + * @param newUserExperienceAnalyticsBaseline the UserExperienceAnalyticsBaseline to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsBaseline newUserExperienceAnalyticsBaseline) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsBaselineRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsBaseline); + } + + /** + * Creates a new UserExperienceAnalyticsBaseline + * @param newUserExperienceAnalyticsBaseline the UserExperienceAnalyticsBaseline to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsBaseline post(@Nonnull final UserExperienceAnalyticsBaseline newUserExperienceAnalyticsBaseline) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsBaselineRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsBaseline); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsBaselineCollectionRequest 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 UserExperienceAnalyticsBaselineCollectionRequest 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 UserExperienceAnalyticsBaselineCollectionRequest 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 UserExperienceAnalyticsBaselineCollectionRequest 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 UserExperienceAnalyticsBaselineCollectionRequest 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 UserExperienceAnalyticsBaselineCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsBaselineCollectionRequest 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 UserExperienceAnalyticsBaselineCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsBaselineCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionRequestBuilder.java new file mode 100644 index 00000000000..cbc0b1c7a0e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsBaseline; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsBaselineCollectionRequest; +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 User Experience Analytics Baseline Collection Request Builder. + */ +public class UserExperienceAnalyticsBaselineCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsBaselineCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsBaselineRequestBuilder.class, UserExperienceAnalyticsBaselineCollectionRequest.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/UserExperienceAnalyticsBaselineCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionResponse.java new file mode 100644 index 00000000000..69be692ef93 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineCollectionResponse.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.UserExperienceAnalyticsBaseline; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Baseline Collection Response. + */ +public class UserExperienceAnalyticsBaselineCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineRequest.java new file mode 100644 index 00000000000..39985bfb202 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineRequest.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.UserExperienceAnalyticsBaseline; +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 User Experience Analytics Baseline Request. + */ +public class UserExperienceAnalyticsBaselineRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsBaseline + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsBaselineRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsBaseline.class); + } + + /** + * Gets the UserExperienceAnalyticsBaseline from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsBaseline from the service + * + * @return the UserExperienceAnalyticsBaseline from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsBaseline 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 UserExperienceAnalyticsBaseline delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsBaseline with a source + * + * @param sourceUserExperienceAnalyticsBaseline the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsBaseline sourceUserExperienceAnalyticsBaseline) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsBaseline); + } + + /** + * Patches this UserExperienceAnalyticsBaseline with a source + * + * @param sourceUserExperienceAnalyticsBaseline the source object with updates + * @return the updated UserExperienceAnalyticsBaseline + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsBaseline patch(@Nonnull final UserExperienceAnalyticsBaseline sourceUserExperienceAnalyticsBaseline) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsBaseline); + } + + /** + * Creates a UserExperienceAnalyticsBaseline with a new object + * + * @param newUserExperienceAnalyticsBaseline the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsBaseline newUserExperienceAnalyticsBaseline) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsBaseline); + } + + /** + * Creates a UserExperienceAnalyticsBaseline with a new object + * + * @param newUserExperienceAnalyticsBaseline the new object to create + * @return the created UserExperienceAnalyticsBaseline + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsBaseline post(@Nonnull final UserExperienceAnalyticsBaseline newUserExperienceAnalyticsBaseline) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsBaseline); + } + + /** + * Creates a UserExperienceAnalyticsBaseline with a new object + * + * @param newUserExperienceAnalyticsBaseline the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsBaseline newUserExperienceAnalyticsBaseline) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsBaseline); + } + + /** + * Creates a UserExperienceAnalyticsBaseline with a new object + * + * @param newUserExperienceAnalyticsBaseline the object to create/update + * @return the created UserExperienceAnalyticsBaseline + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsBaseline put(@Nonnull final UserExperienceAnalyticsBaseline newUserExperienceAnalyticsBaseline) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsBaseline); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsBaselineRequest 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 UserExperienceAnalyticsBaselineRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineRequestBuilder.java new file mode 100644 index 00000000000..6c759491e8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsBaselineRequestBuilder.java @@ -0,0 +1,129 @@ +// 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.UserExperienceAnalyticsBaseline; +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 User Experience Analytics Baseline Request Builder. + */ +public class UserExperienceAnalyticsBaselineRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsBaseline + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsBaselineRequestBuilder(@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 UserExperienceAnalyticsBaselineRequest instance + */ + @Nonnull + public UserExperienceAnalyticsBaselineRequest 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 UserExperienceAnalyticsBaselineRequest instance + */ + @Nonnull + public UserExperienceAnalyticsBaselineRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsBaselineRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder appHealthMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("appHealthMetrics"), getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder batteryHealthMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("batteryHealthMetrics"), getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder bestPracticesMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("bestPracticesMetrics"), getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder deviceBootPerformanceMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("deviceBootPerformanceMetrics"), getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder rebootAnalyticsMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("rebootAnalyticsMetrics"), getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder resourcePerformanceMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("resourcePerformanceMetrics"), getClient(), null); + } + + /** + * Gets the request builder for UserExperienceAnalyticsCategory + * + * @return the UserExperienceAnalyticsCategoryWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder workFromAnywhereMetrics() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("workFromAnywhereMetrics"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionPage.java new file mode 100644 index 00000000000..ae201009fc5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionPage.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.UserExperienceAnalyticsCategory; +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Category Collection Page. + */ +public class UserExperienceAnalyticsCategoryCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsCategory + * + * @param response the serialized UserExperienceAnalyticsCategoryCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsCategoryCollectionPage(@Nonnull final UserExperienceAnalyticsCategoryCollectionResponse response, @Nonnull final UserExperienceAnalyticsCategoryCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsCategory + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsCategoryCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsCategoryCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionRequest.java new file mode 100644 index 00000000000..b7a7d2982a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsCategory; +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.UserExperienceAnalyticsCategoryCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Category Collection Request. + */ +public class UserExperienceAnalyticsCategoryCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategoryCollectionResponse.class, UserExperienceAnalyticsCategoryCollectionPage.class, UserExperienceAnalyticsCategoryCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsCategory + * @param newUserExperienceAnalyticsCategory the UserExperienceAnalyticsCategory to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsCategory newUserExperienceAnalyticsCategory) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsCategoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsCategory); + } + + /** + * Creates a new UserExperienceAnalyticsCategory + * @param newUserExperienceAnalyticsCategory the UserExperienceAnalyticsCategory to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsCategory post(@Nonnull final UserExperienceAnalyticsCategory newUserExperienceAnalyticsCategory) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsCategoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsCategory); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsCategoryCollectionRequest 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 UserExperienceAnalyticsCategoryCollectionRequest 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 UserExperienceAnalyticsCategoryCollectionRequest 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 UserExperienceAnalyticsCategoryCollectionRequest 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 UserExperienceAnalyticsCategoryCollectionRequest 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 UserExperienceAnalyticsCategoryCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsCategoryCollectionRequest 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 UserExperienceAnalyticsCategoryCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsCategoryCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionRequestBuilder.java new file mode 100644 index 00000000000..6b95cfc65d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsCategory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsCategoryCollectionRequest; +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 User Experience Analytics Category Collection Request Builder. + */ +public class UserExperienceAnalyticsCategoryCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategoryRequestBuilder.class, UserExperienceAnalyticsCategoryCollectionRequest.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/UserExperienceAnalyticsCategoryCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionResponse.java new file mode 100644 index 00000000000..92a3ab115b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryCollectionResponse.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.UserExperienceAnalyticsCategory; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Category Collection Response. + */ +public class UserExperienceAnalyticsCategoryCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryReferenceRequest.java new file mode 100644 index 00000000000..ab8a28d4ae1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryReferenceRequest.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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Category Reference Request. + */ +public class UserExperienceAnalyticsCategoryReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategory.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsCategoryReferenceRequest 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 UserExperienceAnalyticsCategoryReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryReferenceRequestBuilder.java new file mode 100644 index 00000000000..30f8359aef3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryReferenceRequestBuilder.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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Category Reference Request Builder. + */ +public class UserExperienceAnalyticsCategoryReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategoryReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryRequest.java new file mode 100644 index 00000000000..36bb159cacf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryRequest.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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Category Request. + */ +public class UserExperienceAnalyticsCategoryRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategory.class); + } + + /** + * Gets the UserExperienceAnalyticsCategory from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsCategory from the service + * + * @return the UserExperienceAnalyticsCategory from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsCategory 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 UserExperienceAnalyticsCategory delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsCategory with a source + * + * @param sourceUserExperienceAnalyticsCategory the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsCategory sourceUserExperienceAnalyticsCategory) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsCategory); + } + + /** + * Patches this UserExperienceAnalyticsCategory with a source + * + * @param sourceUserExperienceAnalyticsCategory the source object with updates + * @return the updated UserExperienceAnalyticsCategory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsCategory patch(@Nonnull final UserExperienceAnalyticsCategory sourceUserExperienceAnalyticsCategory) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsCategory); + } + + /** + * Creates a UserExperienceAnalyticsCategory with a new object + * + * @param newUserExperienceAnalyticsCategory the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsCategory newUserExperienceAnalyticsCategory) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsCategory); + } + + /** + * Creates a UserExperienceAnalyticsCategory with a new object + * + * @param newUserExperienceAnalyticsCategory the new object to create + * @return the created UserExperienceAnalyticsCategory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsCategory post(@Nonnull final UserExperienceAnalyticsCategory newUserExperienceAnalyticsCategory) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsCategory); + } + + /** + * Creates a UserExperienceAnalyticsCategory with a new object + * + * @param newUserExperienceAnalyticsCategory the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsCategory newUserExperienceAnalyticsCategory) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsCategory); + } + + /** + * Creates a UserExperienceAnalyticsCategory with a new object + * + * @param newUserExperienceAnalyticsCategory the object to create/update + * @return the created UserExperienceAnalyticsCategory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsCategory put(@Nonnull final UserExperienceAnalyticsCategory newUserExperienceAnalyticsCategory) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsCategory); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsCategoryRequest 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 UserExperienceAnalyticsCategoryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryRequestBuilder.java new file mode 100644 index 00000000000..dc822983187 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryRequestBuilder.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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Category Request Builder. + */ +public class UserExperienceAnalyticsCategoryRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryRequestBuilder(@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 UserExperienceAnalyticsCategoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsCategoryRequest 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 UserExperienceAnalyticsCategoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsCategoryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsCategoryRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the UserExperienceAnalyticsMetric collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequestBuilder metricValues() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("metricValues"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsMetric item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsMetricRequestBuilder metricValues(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsMetricRequestBuilder(getRequestUrlWithAdditionalSegment("metricValues") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryWithReferenceRequest.java new file mode 100644 index 00000000000..948a0dc601a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryWithReferenceRequest.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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Category With Reference Request. + */ +public class UserExperienceAnalyticsCategoryWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategory.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsCategoryWithReferenceRequest 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 UserExperienceAnalyticsCategoryWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..e81d6396683 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsCategoryWithReferenceRequestBuilder.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.UserExperienceAnalyticsCategory; +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 User Experience Analytics Category With Reference Request Builder. + */ +public class UserExperienceAnalyticsCategoryWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsCategoryWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsCategoryWithReferenceRequest.class, UserExperienceAnalyticsCategoryReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionPage.java new file mode 100644 index 00000000000..5c4a34e1a0f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionPage.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.UserExperienceAnalyticsDevicePerformance; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Collection Page. + */ +public class UserExperienceAnalyticsDevicePerformanceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsDevicePerformance + * + * @param response the serialized UserExperienceAnalyticsDevicePerformanceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsDevicePerformanceCollectionPage(@Nonnull final UserExperienceAnalyticsDevicePerformanceCollectionResponse response, @Nonnull final UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsDevicePerformance + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsDevicePerformanceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionRequest.java new file mode 100644 index 00000000000..e74af303706 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import com.microsoft.graph.models.UserExperienceAnalyticsSummarizedBy; +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.UserExperienceAnalyticsDevicePerformanceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Collection Request. + */ +public class UserExperienceAnalyticsDevicePerformanceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsDevicePerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDevicePerformanceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDevicePerformanceCollectionResponse.class, UserExperienceAnalyticsDevicePerformanceCollectionPage.class, UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsDevicePerformance + * @param newUserExperienceAnalyticsDevicePerformance the UserExperienceAnalyticsDevicePerformance to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDevicePerformance newUserExperienceAnalyticsDevicePerformance) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDevicePerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsDevicePerformance); + } + + /** + * Creates a new UserExperienceAnalyticsDevicePerformance + * @param newUserExperienceAnalyticsDevicePerformance the UserExperienceAnalyticsDevicePerformance to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformance post(@Nonnull final UserExperienceAnalyticsDevicePerformance newUserExperienceAnalyticsDevicePerformance) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDevicePerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsDevicePerformance); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder.java new file mode 100644 index 00000000000..e5223374296 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder.java @@ -0,0 +1,64 @@ +// 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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import com.microsoft.graph.models.UserExperienceAnalyticsSummarizedBy; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceCollectionRequest; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Collection Request Builder. + */ +public class UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDevicePerformanceRequestBuilder.class, UserExperienceAnalyticsDevicePerformanceCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder summarizeDevicePerformanceDevices(@Nonnull final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet parameters) { + return new UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.summarizeDevicePerformanceDevices"), getClient(), null, parameters); + } + + /** + * 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/UserExperienceAnalyticsDevicePerformanceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionResponse.java new file mode 100644 index 00000000000..81746e62292 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceCollectionResponse.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.UserExperienceAnalyticsDevicePerformance; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Collection Response. + */ +public class UserExperienceAnalyticsDevicePerformanceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequest.java index 8f1a4c08dd4..c4994087ef7 100644 --- a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import com.microsoft.graph.models.UserExperienceAnalyticsSummarizedBy; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequestBuilder.java index b66fe0a88df..549f454efdf 100644 --- a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceRequestBuilder.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import com.microsoft.graph.models.UserExperienceAnalyticsSummarizedBy; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage.java new file mode 100644 index 00000000000..37d62763390 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage.java @@ -0,0 +1,48 @@ +// Template Source: BaseMethodCollectionPage.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.UserExperienceAnalyticsSummarizedBy; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Summarize Device Performance Devices Collection Page. + */ +public class UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsDevicePerformance. + * + * @param response The serialized UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage(@Nonnull final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse response, @Nonnull final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevices + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest.java new file mode 100644 index 00000000000..ed12cb642c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest.java @@ -0,0 +1,146 @@ +// Template Source: BaseMethodCollectionRequest.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.UserExperienceAnalyticsSummarizedBy; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Summarize Device Performance Devices Collection Request. + */ +public class UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest extends BaseFunctionCollectionRequest { + + + /** + * The request for this UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevices + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse.class, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionPage.class, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest 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 UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(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 UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest count() { + addCountOption(true); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder.java new file mode 100644 index 00000000000..9ab1248b58d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder.java @@ -0,0 +1,73 @@ +// Template Source: BaseMethodCollectionRequestBuilder.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.UserExperienceAnalyticsSummarizedBy; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest; +import com.microsoft.graph.requests.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse; +import com.microsoft.graph.models.UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet; +import com.microsoft.graph.options.FunctionOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Summarize Device Performance Devices Collection Request Builder. + */ +public class UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder extends BaseFunctionCollectionRequestBuilder { + + /** + * The request builder for this collection of UserExperienceAnalyticsDevicePerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder.class, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest.class); + } + /** + * The request builder for this collection of UserExperienceAnalyticsDevicePerformance + * + * @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 UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesParameterSet parameters) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequestBuilder.class, UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest.class); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest instance + */ + @Override + @Nonnull + public UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest buildRequest(@Nullable final java.util.List requestOptions) { + final UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionRequest request = super.buildRequest(requestOptions); + if(functionOptions != null) { + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse.java new file mode 100644 index 00000000000..a8f31fab10d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse.java @@ -0,0 +1,20 @@ +// Template Source: BaseMethodCollectionResponse.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.UserExperienceAnalyticsDevicePerformance; + + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Performance Summarize Device Performance Devices Collection Response. + */ +public class UserExperienceAnalyticsDevicePerformanceSummarizeDevicePerformanceDevicesCollectionResponse extends BaseCollectionResponse { +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionPage.java new file mode 100644 index 00000000000..5d9a16244d3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionPage.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.UserExperienceAnalyticsDeviceScores; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Scores Collection Page. + */ +public class UserExperienceAnalyticsDeviceScoresCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsDeviceScores + * + * @param response the serialized UserExperienceAnalyticsDeviceScoresCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsDeviceScoresCollectionPage(@Nonnull final UserExperienceAnalyticsDeviceScoresCollectionResponse response, @Nonnull final UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsDeviceScores + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsDeviceScoresCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionRequest.java new file mode 100644 index 00000000000..993a18ccb7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDeviceScores; +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.UserExperienceAnalyticsDeviceScoresCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Scores Collection Request. + */ +public class UserExperienceAnalyticsDeviceScoresCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsDeviceScores + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceScoresCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceScoresCollectionResponse.class, UserExperienceAnalyticsDeviceScoresCollectionPage.class, UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsDeviceScores + * @param newUserExperienceAnalyticsDeviceScores the UserExperienceAnalyticsDeviceScores to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDeviceScores newUserExperienceAnalyticsDeviceScores) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDeviceScoresRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsDeviceScores); + } + + /** + * Creates a new UserExperienceAnalyticsDeviceScores + * @param newUserExperienceAnalyticsDeviceScores the UserExperienceAnalyticsDeviceScores to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsDeviceScores post(@Nonnull final UserExperienceAnalyticsDeviceScores newUserExperienceAnalyticsDeviceScores) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDeviceScoresRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsDeviceScores); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceScoresCollectionRequest 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 UserExperienceAnalyticsDeviceScoresCollectionRequest 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 UserExperienceAnalyticsDeviceScoresCollectionRequest 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 UserExperienceAnalyticsDeviceScoresCollectionRequest 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 UserExperienceAnalyticsDeviceScoresCollectionRequest 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 UserExperienceAnalyticsDeviceScoresCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceScoresCollectionRequest 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 UserExperienceAnalyticsDeviceScoresCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceScoresCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder.java new file mode 100644 index 00000000000..a7e5264a786 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDeviceScores; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresCollectionRequest; +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 User Experience Analytics Device Scores Collection Request Builder. + */ +public class UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceScoresCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceScoresRequestBuilder.class, UserExperienceAnalyticsDeviceScoresCollectionRequest.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/UserExperienceAnalyticsDeviceScoresCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionResponse.java new file mode 100644 index 00000000000..30d5d441285 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresCollectionResponse.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.UserExperienceAnalyticsDeviceScores; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Scores Collection Response. + */ +public class UserExperienceAnalyticsDeviceScoresCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresRequest.java new file mode 100644 index 00000000000..4e2d85e7a79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresRequest.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.UserExperienceAnalyticsDeviceScores; +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 User Experience Analytics Device Scores Request. + */ +public class UserExperienceAnalyticsDeviceScoresRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsDeviceScores + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceScoresRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceScores.class); + } + + /** + * Gets the UserExperienceAnalyticsDeviceScores from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsDeviceScores from the service + * + * @return the UserExperienceAnalyticsDeviceScores from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceScores 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 UserExperienceAnalyticsDeviceScores delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsDeviceScores with a source + * + * @param sourceUserExperienceAnalyticsDeviceScores the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsDeviceScores sourceUserExperienceAnalyticsDeviceScores) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsDeviceScores); + } + + /** + * Patches this UserExperienceAnalyticsDeviceScores with a source + * + * @param sourceUserExperienceAnalyticsDeviceScores the source object with updates + * @return the updated UserExperienceAnalyticsDeviceScores + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceScores patch(@Nonnull final UserExperienceAnalyticsDeviceScores sourceUserExperienceAnalyticsDeviceScores) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsDeviceScores); + } + + /** + * Creates a UserExperienceAnalyticsDeviceScores with a new object + * + * @param newUserExperienceAnalyticsDeviceScores the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDeviceScores newUserExperienceAnalyticsDeviceScores) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsDeviceScores); + } + + /** + * Creates a UserExperienceAnalyticsDeviceScores with a new object + * + * @param newUserExperienceAnalyticsDeviceScores the new object to create + * @return the created UserExperienceAnalyticsDeviceScores + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceScores post(@Nonnull final UserExperienceAnalyticsDeviceScores newUserExperienceAnalyticsDeviceScores) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsDeviceScores); + } + + /** + * Creates a UserExperienceAnalyticsDeviceScores with a new object + * + * @param newUserExperienceAnalyticsDeviceScores the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsDeviceScores newUserExperienceAnalyticsDeviceScores) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsDeviceScores); + } + + /** + * Creates a UserExperienceAnalyticsDeviceScores with a new object + * + * @param newUserExperienceAnalyticsDeviceScores the object to create/update + * @return the created UserExperienceAnalyticsDeviceScores + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceScores put(@Nonnull final UserExperienceAnalyticsDeviceScores newUserExperienceAnalyticsDeviceScores) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsDeviceScores); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceScoresRequest 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 UserExperienceAnalyticsDeviceScoresRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresRequestBuilder.java new file mode 100644 index 00000000000..feb5c6f3330 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceScoresRequestBuilder.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.UserExperienceAnalyticsDeviceScores; +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 User Experience Analytics Device Scores Request Builder. + */ +public class UserExperienceAnalyticsDeviceScoresRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsDeviceScores + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceScoresRequestBuilder(@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 UserExperienceAnalyticsDeviceScoresRequest instance + */ + @Nonnull + public UserExperienceAnalyticsDeviceScoresRequest 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 UserExperienceAnalyticsDeviceScoresRequest instance + */ + @Nonnull + public UserExperienceAnalyticsDeviceScoresRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceScoresRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionPage.java new file mode 100644 index 00000000000..7112a6f517a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionPage.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.UserExperienceAnalyticsDeviceStartupHistory; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Startup History Collection Page. + */ +public class UserExperienceAnalyticsDeviceStartupHistoryCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsDeviceStartupHistory + * + * @param response the serialized UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsDeviceStartupHistoryCollectionPage(@Nonnull final UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse response, @Nonnull final UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsDeviceStartupHistory + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsDeviceStartupHistoryCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest.java new file mode 100644 index 00000000000..e8081bb7854 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDeviceStartupHistory; +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.UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Startup History Collection Request. + */ +public class UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsDeviceStartupHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.class, UserExperienceAnalyticsDeviceStartupHistoryCollectionPage.class, UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsDeviceStartupHistory + * @param newUserExperienceAnalyticsDeviceStartupHistory the UserExperienceAnalyticsDeviceStartupHistory to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory newUserExperienceAnalyticsDeviceStartupHistory) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Creates a new UserExperienceAnalyticsDeviceStartupHistory + * @param newUserExperienceAnalyticsDeviceStartupHistory the UserExperienceAnalyticsDeviceStartupHistory to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistory post(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory newUserExperienceAnalyticsDeviceStartupHistory) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest 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 UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest 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 UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest 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 UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest 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 UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest 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 UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest 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 UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder.java new file mode 100644 index 00000000000..a2fcf7a9341 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDeviceStartupHistory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest; +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 User Experience Analytics Device Startup History Collection Request Builder. + */ +public class UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.class, UserExperienceAnalyticsDeviceStartupHistoryCollectionRequest.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/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.java new file mode 100644 index 00000000000..05096350618 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.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.UserExperienceAnalyticsDeviceStartupHistory; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Startup History Collection Response. + */ +public class UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryRequest.java new file mode 100644 index 00000000000..d826864ffae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryRequest.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.UserExperienceAnalyticsDeviceStartupHistory; +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 User Experience Analytics Device Startup History Request. + */ +public class UserExperienceAnalyticsDeviceStartupHistoryRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsDeviceStartupHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupHistoryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceStartupHistory.class); + } + + /** + * Gets the UserExperienceAnalyticsDeviceStartupHistory from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsDeviceStartupHistory from the service + * + * @return the UserExperienceAnalyticsDeviceStartupHistory from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupHistory 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 UserExperienceAnalyticsDeviceStartupHistory delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsDeviceStartupHistory with a source + * + * @param sourceUserExperienceAnalyticsDeviceStartupHistory the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory sourceUserExperienceAnalyticsDeviceStartupHistory) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Patches this UserExperienceAnalyticsDeviceStartupHistory with a source + * + * @param sourceUserExperienceAnalyticsDeviceStartupHistory the source object with updates + * @return the updated UserExperienceAnalyticsDeviceStartupHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupHistory patch(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory sourceUserExperienceAnalyticsDeviceStartupHistory) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupHistory with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupHistory the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory newUserExperienceAnalyticsDeviceStartupHistory) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupHistory with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupHistory the new object to create + * @return the created UserExperienceAnalyticsDeviceStartupHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupHistory post(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory newUserExperienceAnalyticsDeviceStartupHistory) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupHistory with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupHistory the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory newUserExperienceAnalyticsDeviceStartupHistory) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupHistory with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupHistory the object to create/update + * @return the created UserExperienceAnalyticsDeviceStartupHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupHistory put(@Nonnull final UserExperienceAnalyticsDeviceStartupHistory newUserExperienceAnalyticsDeviceStartupHistory) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsDeviceStartupHistory); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistoryRequest 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 UserExperienceAnalyticsDeviceStartupHistoryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.java new file mode 100644 index 00000000000..4558135d5f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.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.UserExperienceAnalyticsDeviceStartupHistory; +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 User Experience Analytics Device Startup History Request Builder. + */ +public class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsDeviceStartupHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(@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 UserExperienceAnalyticsDeviceStartupHistoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistoryRequest 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 UserExperienceAnalyticsDeviceStartupHistoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupHistoryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupHistoryRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionPage.java new file mode 100644 index 00000000000..24502ac77ce --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionPage.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.UserExperienceAnalyticsDeviceStartupProcess; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Startup Process Collection Page. + */ +public class UserExperienceAnalyticsDeviceStartupProcessCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsDeviceStartupProcess + * + * @param response the serialized UserExperienceAnalyticsDeviceStartupProcessCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsDeviceStartupProcessCollectionPage(@Nonnull final UserExperienceAnalyticsDeviceStartupProcessCollectionResponse response, @Nonnull final UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsDeviceStartupProcess + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsDeviceStartupProcessCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionRequest.java new file mode 100644 index 00000000000..bc301d534ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDeviceStartupProcess; +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.UserExperienceAnalyticsDeviceStartupProcessCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Startup Process Collection Request. + */ +public class UserExperienceAnalyticsDeviceStartupProcessCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsDeviceStartupProcess + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupProcessCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.class, UserExperienceAnalyticsDeviceStartupProcessCollectionPage.class, UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsDeviceStartupProcess + * @param newUserExperienceAnalyticsDeviceStartupProcess the UserExperienceAnalyticsDeviceStartupProcess to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess newUserExperienceAnalyticsDeviceStartupProcess) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDeviceStartupProcessRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Creates a new UserExperienceAnalyticsDeviceStartupProcess + * @param newUserExperienceAnalyticsDeviceStartupProcess the UserExperienceAnalyticsDeviceStartupProcess to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcess post(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess newUserExperienceAnalyticsDeviceStartupProcess) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsDeviceStartupProcessRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcessCollectionRequest 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 UserExperienceAnalyticsDeviceStartupProcessCollectionRequest 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 UserExperienceAnalyticsDeviceStartupProcessCollectionRequest 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 UserExperienceAnalyticsDeviceStartupProcessCollectionRequest 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 UserExperienceAnalyticsDeviceStartupProcessCollectionRequest 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 UserExperienceAnalyticsDeviceStartupProcessCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcessCollectionRequest 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 UserExperienceAnalyticsDeviceStartupProcessCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcessCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder.java new file mode 100644 index 00000000000..a390c3abf76 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsDeviceStartupProcess; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessCollectionRequest; +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 User Experience Analytics Device Startup Process Collection Request Builder. + */ +public class UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupProcessCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceStartupProcessRequestBuilder.class, UserExperienceAnalyticsDeviceStartupProcessCollectionRequest.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/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.java new file mode 100644 index 00000000000..f9dcde2af7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.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.UserExperienceAnalyticsDeviceStartupProcess; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Device Startup Process Collection Response. + */ +public class UserExperienceAnalyticsDeviceStartupProcessCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessRequest.java new file mode 100644 index 00000000000..0a3da1d44cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessRequest.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.UserExperienceAnalyticsDeviceStartupProcess; +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 User Experience Analytics Device Startup Process Request. + */ +public class UserExperienceAnalyticsDeviceStartupProcessRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsDeviceStartupProcess + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupProcessRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsDeviceStartupProcess.class); + } + + /** + * Gets the UserExperienceAnalyticsDeviceStartupProcess from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsDeviceStartupProcess from the service + * + * @return the UserExperienceAnalyticsDeviceStartupProcess from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupProcess 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 UserExperienceAnalyticsDeviceStartupProcess delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsDeviceStartupProcess with a source + * + * @param sourceUserExperienceAnalyticsDeviceStartupProcess the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess sourceUserExperienceAnalyticsDeviceStartupProcess) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Patches this UserExperienceAnalyticsDeviceStartupProcess with a source + * + * @param sourceUserExperienceAnalyticsDeviceStartupProcess the source object with updates + * @return the updated UserExperienceAnalyticsDeviceStartupProcess + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupProcess patch(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess sourceUserExperienceAnalyticsDeviceStartupProcess) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupProcess with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupProcess the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess newUserExperienceAnalyticsDeviceStartupProcess) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupProcess with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupProcess the new object to create + * @return the created UserExperienceAnalyticsDeviceStartupProcess + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupProcess post(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess newUserExperienceAnalyticsDeviceStartupProcess) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupProcess with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupProcess the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess newUserExperienceAnalyticsDeviceStartupProcess) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Creates a UserExperienceAnalyticsDeviceStartupProcess with a new object + * + * @param newUserExperienceAnalyticsDeviceStartupProcess the object to create/update + * @return the created UserExperienceAnalyticsDeviceStartupProcess + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsDeviceStartupProcess put(@Nonnull final UserExperienceAnalyticsDeviceStartupProcess newUserExperienceAnalyticsDeviceStartupProcess) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsDeviceStartupProcess); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcessRequest 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 UserExperienceAnalyticsDeviceStartupProcessRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessRequestBuilder.java new file mode 100644 index 00000000000..63f439a6eeb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsDeviceStartupProcessRequestBuilder.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.UserExperienceAnalyticsDeviceStartupProcess; +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 User Experience Analytics Device Startup Process Request Builder. + */ +public class UserExperienceAnalyticsDeviceStartupProcessRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsDeviceStartupProcess + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsDeviceStartupProcessRequestBuilder(@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 UserExperienceAnalyticsDeviceStartupProcessRequest instance + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcessRequest 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 UserExperienceAnalyticsDeviceStartupProcessRequest instance + */ + @Nonnull + public UserExperienceAnalyticsDeviceStartupProcessRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsDeviceStartupProcessRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionPage.java new file mode 100644 index 00000000000..09753775113 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionPage.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.UserExperienceAnalyticsMetric; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Metric Collection Page. + */ +public class UserExperienceAnalyticsMetricCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsMetric + * + * @param response the serialized UserExperienceAnalyticsMetricCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsMetricCollectionPage(@Nonnull final UserExperienceAnalyticsMetricCollectionResponse response, @Nonnull final UserExperienceAnalyticsMetricCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsMetric + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsMetricCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsMetricCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionRequest.java new file mode 100644 index 00000000000..c86c97bc83c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionRequest.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.UserExperienceAnalyticsCategory; +import com.microsoft.graph.models.UserExperienceAnalyticsMetric; +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.UserExperienceAnalyticsMetricCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Metric Collection Request. + */ +public class UserExperienceAnalyticsMetricCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsMetricCollectionResponse.class, UserExperienceAnalyticsMetricCollectionPage.class, UserExperienceAnalyticsMetricCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsMetric + * @param newUserExperienceAnalyticsMetric the UserExperienceAnalyticsMetric to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsMetric newUserExperienceAnalyticsMetric) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsMetricRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsMetric); + } + + /** + * Creates a new UserExperienceAnalyticsMetric + * @param newUserExperienceAnalyticsMetric the UserExperienceAnalyticsMetric to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsMetric post(@Nonnull final UserExperienceAnalyticsMetric newUserExperienceAnalyticsMetric) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsMetricRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsMetric); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricCollectionRequest 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 UserExperienceAnalyticsMetricCollectionRequest 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 UserExperienceAnalyticsMetricCollectionRequest 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 UserExperienceAnalyticsMetricCollectionRequest 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 UserExperienceAnalyticsMetricCollectionRequest 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 UserExperienceAnalyticsMetricCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricCollectionRequest 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 UserExperienceAnalyticsMetricCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionRequestBuilder.java new file mode 100644 index 00000000000..eda9358e416 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionRequestBuilder.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.UserExperienceAnalyticsCategory; +import com.microsoft.graph.models.UserExperienceAnalyticsMetric; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricCollectionRequest; +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 User Experience Analytics Metric Collection Request Builder. + */ +public class UserExperienceAnalyticsMetricCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of UserExperienceAnalyticsCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsMetricRequestBuilder.class, UserExperienceAnalyticsMetricCollectionRequest.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/UserExperienceAnalyticsMetricCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionResponse.java new file mode 100644 index 00000000000..bfc5212f662 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricCollectionResponse.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.UserExperienceAnalyticsMetric; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Metric Collection Response. + */ +public class UserExperienceAnalyticsMetricCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionPage.java new file mode 100644 index 00000000000..8762a70cfc1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionPage.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.UserExperienceAnalyticsMetricHistory; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Metric History Collection Page. + */ +public class UserExperienceAnalyticsMetricHistoryCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsMetricHistory + * + * @param response the serialized UserExperienceAnalyticsMetricHistoryCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsMetricHistoryCollectionPage(@Nonnull final UserExperienceAnalyticsMetricHistoryCollectionResponse response, @Nonnull final UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsMetricHistory + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsMetricHistoryCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionRequest.java new file mode 100644 index 00000000000..df04f76434a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsMetricHistory; +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.UserExperienceAnalyticsMetricHistoryCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Metric History Collection Request. + */ +public class UserExperienceAnalyticsMetricHistoryCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsMetricHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricHistoryCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsMetricHistoryCollectionResponse.class, UserExperienceAnalyticsMetricHistoryCollectionPage.class, UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsMetricHistory + * @param newUserExperienceAnalyticsMetricHistory the UserExperienceAnalyticsMetricHistory to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsMetricHistory newUserExperienceAnalyticsMetricHistory) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsMetricHistoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsMetricHistory); + } + + /** + * Creates a new UserExperienceAnalyticsMetricHistory + * @param newUserExperienceAnalyticsMetricHistory the UserExperienceAnalyticsMetricHistory to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsMetricHistory post(@Nonnull final UserExperienceAnalyticsMetricHistory newUserExperienceAnalyticsMetricHistory) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsMetricHistoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsMetricHistory); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricHistoryCollectionRequest 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 UserExperienceAnalyticsMetricHistoryCollectionRequest 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 UserExperienceAnalyticsMetricHistoryCollectionRequest 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 UserExperienceAnalyticsMetricHistoryCollectionRequest 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 UserExperienceAnalyticsMetricHistoryCollectionRequest 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 UserExperienceAnalyticsMetricHistoryCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricHistoryCollectionRequest 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 UserExperienceAnalyticsMetricHistoryCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricHistoryCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder.java new file mode 100644 index 00000000000..1b1ecc6c676 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsMetricHistory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryCollectionRequest; +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 User Experience Analytics Metric History Collection Request Builder. + */ +public class UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricHistoryCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsMetricHistoryRequestBuilder.class, UserExperienceAnalyticsMetricHistoryCollectionRequest.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/UserExperienceAnalyticsMetricHistoryCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionResponse.java new file mode 100644 index 00000000000..da5b77d260b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryCollectionResponse.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.UserExperienceAnalyticsMetricHistory; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Metric History Collection Response. + */ +public class UserExperienceAnalyticsMetricHistoryCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryRequest.java new file mode 100644 index 00000000000..f757def88ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryRequest.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.UserExperienceAnalyticsMetricHistory; +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 User Experience Analytics Metric History Request. + */ +public class UserExperienceAnalyticsMetricHistoryRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsMetricHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricHistoryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsMetricHistory.class); + } + + /** + * Gets the UserExperienceAnalyticsMetricHistory from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsMetricHistory from the service + * + * @return the UserExperienceAnalyticsMetricHistory from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetricHistory 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 UserExperienceAnalyticsMetricHistory delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsMetricHistory with a source + * + * @param sourceUserExperienceAnalyticsMetricHistory the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsMetricHistory sourceUserExperienceAnalyticsMetricHistory) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsMetricHistory); + } + + /** + * Patches this UserExperienceAnalyticsMetricHistory with a source + * + * @param sourceUserExperienceAnalyticsMetricHistory the source object with updates + * @return the updated UserExperienceAnalyticsMetricHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetricHistory patch(@Nonnull final UserExperienceAnalyticsMetricHistory sourceUserExperienceAnalyticsMetricHistory) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsMetricHistory); + } + + /** + * Creates a UserExperienceAnalyticsMetricHistory with a new object + * + * @param newUserExperienceAnalyticsMetricHistory the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsMetricHistory newUserExperienceAnalyticsMetricHistory) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsMetricHistory); + } + + /** + * Creates a UserExperienceAnalyticsMetricHistory with a new object + * + * @param newUserExperienceAnalyticsMetricHistory the new object to create + * @return the created UserExperienceAnalyticsMetricHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetricHistory post(@Nonnull final UserExperienceAnalyticsMetricHistory newUserExperienceAnalyticsMetricHistory) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsMetricHistory); + } + + /** + * Creates a UserExperienceAnalyticsMetricHistory with a new object + * + * @param newUserExperienceAnalyticsMetricHistory the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsMetricHistory newUserExperienceAnalyticsMetricHistory) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsMetricHistory); + } + + /** + * Creates a UserExperienceAnalyticsMetricHistory with a new object + * + * @param newUserExperienceAnalyticsMetricHistory the object to create/update + * @return the created UserExperienceAnalyticsMetricHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetricHistory put(@Nonnull final UserExperienceAnalyticsMetricHistory newUserExperienceAnalyticsMetricHistory) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsMetricHistory); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricHistoryRequest 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 UserExperienceAnalyticsMetricHistoryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryRequestBuilder.java new file mode 100644 index 00000000000..da2cfe3057c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricHistoryRequestBuilder.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.UserExperienceAnalyticsMetricHistory; +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 User Experience Analytics Metric History Request Builder. + */ +public class UserExperienceAnalyticsMetricHistoryRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsMetricHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricHistoryRequestBuilder(@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 UserExperienceAnalyticsMetricHistoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsMetricHistoryRequest 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 UserExperienceAnalyticsMetricHistoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsMetricHistoryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsMetricHistoryRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricRequest.java new file mode 100644 index 00000000000..b16c5a132f3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricRequest.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.UserExperienceAnalyticsMetric; +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 User Experience Analytics Metric Request. + */ +public class UserExperienceAnalyticsMetricRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsMetric.class); + } + + /** + * Gets the UserExperienceAnalyticsMetric from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsMetric from the service + * + * @return the UserExperienceAnalyticsMetric from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetric 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 UserExperienceAnalyticsMetric delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsMetric with a source + * + * @param sourceUserExperienceAnalyticsMetric the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsMetric sourceUserExperienceAnalyticsMetric) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsMetric); + } + + /** + * Patches this UserExperienceAnalyticsMetric with a source + * + * @param sourceUserExperienceAnalyticsMetric the source object with updates + * @return the updated UserExperienceAnalyticsMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetric patch(@Nonnull final UserExperienceAnalyticsMetric sourceUserExperienceAnalyticsMetric) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsMetric); + } + + /** + * Creates a UserExperienceAnalyticsMetric with a new object + * + * @param newUserExperienceAnalyticsMetric the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsMetric newUserExperienceAnalyticsMetric) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsMetric); + } + + /** + * Creates a UserExperienceAnalyticsMetric with a new object + * + * @param newUserExperienceAnalyticsMetric the new object to create + * @return the created UserExperienceAnalyticsMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetric post(@Nonnull final UserExperienceAnalyticsMetric newUserExperienceAnalyticsMetric) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsMetric); + } + + /** + * Creates a UserExperienceAnalyticsMetric with a new object + * + * @param newUserExperienceAnalyticsMetric the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsMetric newUserExperienceAnalyticsMetric) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsMetric); + } + + /** + * Creates a UserExperienceAnalyticsMetric with a new object + * + * @param newUserExperienceAnalyticsMetric the object to create/update + * @return the created UserExperienceAnalyticsMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsMetric put(@Nonnull final UserExperienceAnalyticsMetric newUserExperienceAnalyticsMetric) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsMetric); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsMetricRequest 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 UserExperienceAnalyticsMetricRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricRequestBuilder.java new file mode 100644 index 00000000000..2fc5d279726 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsMetricRequestBuilder.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.UserExperienceAnalyticsMetric; +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 User Experience Analytics Metric Request Builder. + */ +public class UserExperienceAnalyticsMetricRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsMetricRequestBuilder(@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 UserExperienceAnalyticsMetricRequest instance + */ + @Nonnull + public UserExperienceAnalyticsMetricRequest 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 UserExperienceAnalyticsMetricRequest instance + */ + @Nonnull + public UserExperienceAnalyticsMetricRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsMetricRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionPage.java new file mode 100644 index 00000000000..10781aab030 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionPage.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.UserExperienceAnalyticsModelScores; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Model Scores Collection Page. + */ +public class UserExperienceAnalyticsModelScoresCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsModelScores + * + * @param response the serialized UserExperienceAnalyticsModelScoresCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsModelScoresCollectionPage(@Nonnull final UserExperienceAnalyticsModelScoresCollectionResponse response, @Nonnull final UserExperienceAnalyticsModelScoresCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsModelScores + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsModelScoresCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsModelScoresCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionRequest.java new file mode 100644 index 00000000000..e9618eb9e26 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsModelScores; +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.UserExperienceAnalyticsModelScoresCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Model Scores Collection Request. + */ +public class UserExperienceAnalyticsModelScoresCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsModelScores + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsModelScoresCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsModelScoresCollectionResponse.class, UserExperienceAnalyticsModelScoresCollectionPage.class, UserExperienceAnalyticsModelScoresCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsModelScores + * @param newUserExperienceAnalyticsModelScores the UserExperienceAnalyticsModelScores to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsModelScores newUserExperienceAnalyticsModelScores) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsModelScoresRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsModelScores); + } + + /** + * Creates a new UserExperienceAnalyticsModelScores + * @param newUserExperienceAnalyticsModelScores the UserExperienceAnalyticsModelScores to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsModelScores post(@Nonnull final UserExperienceAnalyticsModelScores newUserExperienceAnalyticsModelScores) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsModelScoresRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsModelScores); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsModelScoresCollectionRequest 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 UserExperienceAnalyticsModelScoresCollectionRequest 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 UserExperienceAnalyticsModelScoresCollectionRequest 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 UserExperienceAnalyticsModelScoresCollectionRequest 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 UserExperienceAnalyticsModelScoresCollectionRequest 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 UserExperienceAnalyticsModelScoresCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsModelScoresCollectionRequest 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 UserExperienceAnalyticsModelScoresCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsModelScoresCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionRequestBuilder.java new file mode 100644 index 00000000000..7eb950a6f6d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsModelScores; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresCollectionRequest; +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 User Experience Analytics Model Scores Collection Request Builder. + */ +public class UserExperienceAnalyticsModelScoresCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsModelScoresCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsModelScoresRequestBuilder.class, UserExperienceAnalyticsModelScoresCollectionRequest.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/UserExperienceAnalyticsModelScoresCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionResponse.java new file mode 100644 index 00000000000..2c38963ca8e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresCollectionResponse.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.UserExperienceAnalyticsModelScores; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Model Scores Collection Response. + */ +public class UserExperienceAnalyticsModelScoresCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresRequest.java new file mode 100644 index 00000000000..d3dc724507e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresRequest.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.UserExperienceAnalyticsModelScores; +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 User Experience Analytics Model Scores Request. + */ +public class UserExperienceAnalyticsModelScoresRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsModelScores + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsModelScoresRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsModelScores.class); + } + + /** + * Gets the UserExperienceAnalyticsModelScores from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsModelScores from the service + * + * @return the UserExperienceAnalyticsModelScores from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsModelScores 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 UserExperienceAnalyticsModelScores delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsModelScores with a source + * + * @param sourceUserExperienceAnalyticsModelScores the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsModelScores sourceUserExperienceAnalyticsModelScores) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsModelScores); + } + + /** + * Patches this UserExperienceAnalyticsModelScores with a source + * + * @param sourceUserExperienceAnalyticsModelScores the source object with updates + * @return the updated UserExperienceAnalyticsModelScores + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsModelScores patch(@Nonnull final UserExperienceAnalyticsModelScores sourceUserExperienceAnalyticsModelScores) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsModelScores); + } + + /** + * Creates a UserExperienceAnalyticsModelScores with a new object + * + * @param newUserExperienceAnalyticsModelScores the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsModelScores newUserExperienceAnalyticsModelScores) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsModelScores); + } + + /** + * Creates a UserExperienceAnalyticsModelScores with a new object + * + * @param newUserExperienceAnalyticsModelScores the new object to create + * @return the created UserExperienceAnalyticsModelScores + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsModelScores post(@Nonnull final UserExperienceAnalyticsModelScores newUserExperienceAnalyticsModelScores) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsModelScores); + } + + /** + * Creates a UserExperienceAnalyticsModelScores with a new object + * + * @param newUserExperienceAnalyticsModelScores the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsModelScores newUserExperienceAnalyticsModelScores) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsModelScores); + } + + /** + * Creates a UserExperienceAnalyticsModelScores with a new object + * + * @param newUserExperienceAnalyticsModelScores the object to create/update + * @return the created UserExperienceAnalyticsModelScores + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsModelScores put(@Nonnull final UserExperienceAnalyticsModelScores newUserExperienceAnalyticsModelScores) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsModelScores); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsModelScoresRequest 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 UserExperienceAnalyticsModelScoresRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresRequestBuilder.java new file mode 100644 index 00000000000..e5ee6e53e3c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsModelScoresRequestBuilder.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.UserExperienceAnalyticsModelScores; +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 User Experience Analytics Model Scores Request Builder. + */ +public class UserExperienceAnalyticsModelScoresRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsModelScores + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsModelScoresRequestBuilder(@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 UserExperienceAnalyticsModelScoresRequest instance + */ + @Nonnull + public UserExperienceAnalyticsModelScoresRequest 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 UserExperienceAnalyticsModelScoresRequest instance + */ + @Nonnull + public UserExperienceAnalyticsModelScoresRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsModelScoresRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsOverviewRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsOverviewRequest.java new file mode 100644 index 00000000000..0ab68ea4f16 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsOverviewRequest.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.UserExperienceAnalyticsOverview; +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 User Experience Analytics Overview Request. + */ +public class UserExperienceAnalyticsOverviewRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsOverview + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsOverviewRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsOverview.class); + } + + /** + * Gets the UserExperienceAnalyticsOverview from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsOverview from the service + * + * @return the UserExperienceAnalyticsOverview from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsOverview 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 UserExperienceAnalyticsOverview delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsOverview with a source + * + * @param sourceUserExperienceAnalyticsOverview the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsOverview sourceUserExperienceAnalyticsOverview) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsOverview); + } + + /** + * Patches this UserExperienceAnalyticsOverview with a source + * + * @param sourceUserExperienceAnalyticsOverview the source object with updates + * @return the updated UserExperienceAnalyticsOverview + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsOverview patch(@Nonnull final UserExperienceAnalyticsOverview sourceUserExperienceAnalyticsOverview) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsOverview); + } + + /** + * Creates a UserExperienceAnalyticsOverview with a new object + * + * @param newUserExperienceAnalyticsOverview the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsOverview newUserExperienceAnalyticsOverview) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsOverview); + } + + /** + * Creates a UserExperienceAnalyticsOverview with a new object + * + * @param newUserExperienceAnalyticsOverview the new object to create + * @return the created UserExperienceAnalyticsOverview + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsOverview post(@Nonnull final UserExperienceAnalyticsOverview newUserExperienceAnalyticsOverview) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsOverview); + } + + /** + * Creates a UserExperienceAnalyticsOverview with a new object + * + * @param newUserExperienceAnalyticsOverview the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsOverview newUserExperienceAnalyticsOverview) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsOverview); + } + + /** + * Creates a UserExperienceAnalyticsOverview with a new object + * + * @param newUserExperienceAnalyticsOverview the object to create/update + * @return the created UserExperienceAnalyticsOverview + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsOverview put(@Nonnull final UserExperienceAnalyticsOverview newUserExperienceAnalyticsOverview) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsOverview); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsOverviewRequest 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 UserExperienceAnalyticsOverviewRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsOverviewRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsOverviewRequestBuilder.java new file mode 100644 index 00000000000..f69d467f9fa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsOverviewRequestBuilder.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.UserExperienceAnalyticsOverview; +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 User Experience Analytics Overview Request Builder. + */ +public class UserExperienceAnalyticsOverviewRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsOverview + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsOverviewRequestBuilder(@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 UserExperienceAnalyticsOverviewRequest instance + */ + @Nonnull + public UserExperienceAnalyticsOverviewRequest 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 UserExperienceAnalyticsOverviewRequest instance + */ + @Nonnull + public UserExperienceAnalyticsOverviewRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsOverviewRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionPage.java new file mode 100644 index 00000000000..ac4890adb6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionPage.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.UserExperienceAnalyticsScoreHistory; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Score History Collection Page. + */ +public class UserExperienceAnalyticsScoreHistoryCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsScoreHistory + * + * @param response the serialized UserExperienceAnalyticsScoreHistoryCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsScoreHistoryCollectionPage(@Nonnull final UserExperienceAnalyticsScoreHistoryCollectionResponse response, @Nonnull final UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsScoreHistory + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsScoreHistoryCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionRequest.java new file mode 100644 index 00000000000..5ac106c06fe --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsScoreHistory; +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.UserExperienceAnalyticsScoreHistoryCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Score History Collection Request. + */ +public class UserExperienceAnalyticsScoreHistoryCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsScoreHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsScoreHistoryCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsScoreHistoryCollectionResponse.class, UserExperienceAnalyticsScoreHistoryCollectionPage.class, UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsScoreHistory + * @param newUserExperienceAnalyticsScoreHistory the UserExperienceAnalyticsScoreHistory to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsScoreHistory newUserExperienceAnalyticsScoreHistory) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsScoreHistoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsScoreHistory); + } + + /** + * Creates a new UserExperienceAnalyticsScoreHistory + * @param newUserExperienceAnalyticsScoreHistory the UserExperienceAnalyticsScoreHistory to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsScoreHistory post(@Nonnull final UserExperienceAnalyticsScoreHistory newUserExperienceAnalyticsScoreHistory) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsScoreHistoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsScoreHistory); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsScoreHistoryCollectionRequest 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 UserExperienceAnalyticsScoreHistoryCollectionRequest 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 UserExperienceAnalyticsScoreHistoryCollectionRequest 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 UserExperienceAnalyticsScoreHistoryCollectionRequest 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 UserExperienceAnalyticsScoreHistoryCollectionRequest 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 UserExperienceAnalyticsScoreHistoryCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsScoreHistoryCollectionRequest 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 UserExperienceAnalyticsScoreHistoryCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsScoreHistoryCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder.java new file mode 100644 index 00000000000..e06ffc76940 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsScoreHistory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryCollectionRequest; +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 User Experience Analytics Score History Collection Request Builder. + */ +public class UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsScoreHistoryCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsScoreHistoryRequestBuilder.class, UserExperienceAnalyticsScoreHistoryCollectionRequest.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/UserExperienceAnalyticsScoreHistoryCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionResponse.java new file mode 100644 index 00000000000..2b45dc1794c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryCollectionResponse.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.UserExperienceAnalyticsScoreHistory; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Score History Collection Response. + */ +public class UserExperienceAnalyticsScoreHistoryCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryRequest.java new file mode 100644 index 00000000000..ec45750ac3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryRequest.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.UserExperienceAnalyticsScoreHistory; +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 User Experience Analytics Score History Request. + */ +public class UserExperienceAnalyticsScoreHistoryRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsScoreHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsScoreHistoryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsScoreHistory.class); + } + + /** + * Gets the UserExperienceAnalyticsScoreHistory from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsScoreHistory from the service + * + * @return the UserExperienceAnalyticsScoreHistory from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsScoreHistory 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 UserExperienceAnalyticsScoreHistory delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsScoreHistory with a source + * + * @param sourceUserExperienceAnalyticsScoreHistory the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsScoreHistory sourceUserExperienceAnalyticsScoreHistory) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsScoreHistory); + } + + /** + * Patches this UserExperienceAnalyticsScoreHistory with a source + * + * @param sourceUserExperienceAnalyticsScoreHistory the source object with updates + * @return the updated UserExperienceAnalyticsScoreHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsScoreHistory patch(@Nonnull final UserExperienceAnalyticsScoreHistory sourceUserExperienceAnalyticsScoreHistory) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsScoreHistory); + } + + /** + * Creates a UserExperienceAnalyticsScoreHistory with a new object + * + * @param newUserExperienceAnalyticsScoreHistory the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsScoreHistory newUserExperienceAnalyticsScoreHistory) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsScoreHistory); + } + + /** + * Creates a UserExperienceAnalyticsScoreHistory with a new object + * + * @param newUserExperienceAnalyticsScoreHistory the new object to create + * @return the created UserExperienceAnalyticsScoreHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsScoreHistory post(@Nonnull final UserExperienceAnalyticsScoreHistory newUserExperienceAnalyticsScoreHistory) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsScoreHistory); + } + + /** + * Creates a UserExperienceAnalyticsScoreHistory with a new object + * + * @param newUserExperienceAnalyticsScoreHistory the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsScoreHistory newUserExperienceAnalyticsScoreHistory) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsScoreHistory); + } + + /** + * Creates a UserExperienceAnalyticsScoreHistory with a new object + * + * @param newUserExperienceAnalyticsScoreHistory the object to create/update + * @return the created UserExperienceAnalyticsScoreHistory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsScoreHistory put(@Nonnull final UserExperienceAnalyticsScoreHistory newUserExperienceAnalyticsScoreHistory) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsScoreHistory); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsScoreHistoryRequest 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 UserExperienceAnalyticsScoreHistoryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryRequestBuilder.java new file mode 100644 index 00000000000..49e6880ed96 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsScoreHistoryRequestBuilder.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.UserExperienceAnalyticsScoreHistory; +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 User Experience Analytics Score History Request Builder. + */ +public class UserExperienceAnalyticsScoreHistoryRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsScoreHistory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsScoreHistoryRequestBuilder(@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 UserExperienceAnalyticsScoreHistoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsScoreHistoryRequest 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 UserExperienceAnalyticsScoreHistoryRequest instance + */ + @Nonnull + public UserExperienceAnalyticsScoreHistoryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsScoreHistoryRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage.java new file mode 100644 index 00000000000..63ba783af46 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage.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.UserExperienceAnalyticsWorkFromAnywhereDevice; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Device Collection Page. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsWorkFromAnywhereDevice + * + * @param response the serialized UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse response, @Nonnull final UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsWorkFromAnywhereDevice + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest.java new file mode 100644 index 00000000000..43c68dfa9bd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest.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.UserExperienceAnalyticsWorkFromAnywhereMetric; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereDevice; +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.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Device Collection Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsWorkFromAnywhereDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.class, UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionPage.class, UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsWorkFromAnywhereDevice + * @param newUserExperienceAnalyticsWorkFromAnywhereDevice the UserExperienceAnalyticsWorkFromAnywhereDevice to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice newUserExperienceAnalyticsWorkFromAnywhereDevice) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Creates a new UserExperienceAnalyticsWorkFromAnywhereDevice + * @param newUserExperienceAnalyticsWorkFromAnywhereDevice the UserExperienceAnalyticsWorkFromAnywhereDevice to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDevice post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice newUserExperienceAnalyticsWorkFromAnywhereDevice) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder.java new file mode 100644 index 00000000000..1cac0e378cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder.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.UserExperienceAnalyticsWorkFromAnywhereMetric; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereDevice; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest; +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 User Experience Analytics Work From Anywhere Device Collection Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of UserExperienceAnalyticsWorkFromAnywhereMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder.class, UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequest.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/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.java new file mode 100644 index 00000000000..03b145284d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.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.UserExperienceAnalyticsWorkFromAnywhereDevice; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Device Collection Response. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceRequest.java new file mode 100644 index 00000000000..f6701b7ab8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceRequest.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.UserExperienceAnalyticsWorkFromAnywhereDevice; +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 User Experience Analytics Work From Anywhere Device Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDeviceRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsWorkFromAnywhereDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereDeviceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereDevice.class); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereDevice from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereDevice from the service + * + * @return the UserExperienceAnalyticsWorkFromAnywhereDevice from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereDevice 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 UserExperienceAnalyticsWorkFromAnywhereDevice delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereDevice with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereDevice the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice sourceUserExperienceAnalyticsWorkFromAnywhereDevice) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereDevice with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereDevice the source object with updates + * @return the updated UserExperienceAnalyticsWorkFromAnywhereDevice + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereDevice patch(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice sourceUserExperienceAnalyticsWorkFromAnywhereDevice) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereDevice with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereDevice the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice newUserExperienceAnalyticsWorkFromAnywhereDevice) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereDevice with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereDevice the new object to create + * @return the created UserExperienceAnalyticsWorkFromAnywhereDevice + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereDevice post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice newUserExperienceAnalyticsWorkFromAnywhereDevice) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereDevice with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereDevice the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice newUserExperienceAnalyticsWorkFromAnywhereDevice) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereDevice with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereDevice the object to create/update + * @return the created UserExperienceAnalyticsWorkFromAnywhereDevice + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereDevice put(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereDevice newUserExperienceAnalyticsWorkFromAnywhereDevice) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereDevice); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDeviceRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder.java new file mode 100644 index 00000000000..aaf93b488e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder.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.UserExperienceAnalyticsWorkFromAnywhereDevice; +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 User Experience Analytics Work From Anywhere Device Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsWorkFromAnywhereDevice + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder(@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 UserExperienceAnalyticsWorkFromAnywhereDeviceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDeviceRequest 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 UserExperienceAnalyticsWorkFromAnywhereDeviceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereDeviceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest.java new file mode 100644 index 00000000000..c09e36ff631 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest.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.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric; +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 User Experience Analytics Work From Anywhere Hardware Readiness Metric Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.class); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric from the service + * + * @return the UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric 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 UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric sourceUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the source object with updates + * @return the updated UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric patch(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric sourceUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the new object to create + * @return the created UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the object to create/update + * @return the created UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric put(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest 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 UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.java new file mode 100644 index 00000000000..fbd00d58bb1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.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.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric; +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 User Experience Analytics Work From Anywhere Hardware Readiness Metric Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder(@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 UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest 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 UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage.java new file mode 100644 index 00000000000..9c607bf5801 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage.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.UserExperienceAnalyticsWorkFromAnywhereMetric; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Metric Collection Page. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsWorkFromAnywhereMetric + * + * @param response the serialized UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse response, @Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsWorkFromAnywhereMetric + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest.java new file mode 100644 index 00000000000..4c33896bf81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereMetric; +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.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Metric Collection Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsWorkFromAnywhereMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.class, UserExperienceAnalyticsWorkFromAnywhereMetricCollectionPage.class, UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsWorkFromAnywhereMetric + * @param newUserExperienceAnalyticsWorkFromAnywhereMetric the UserExperienceAnalyticsWorkFromAnywhereMetric to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric newUserExperienceAnalyticsWorkFromAnywhereMetric) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Creates a new UserExperienceAnalyticsWorkFromAnywhereMetric + * @param newUserExperienceAnalyticsWorkFromAnywhereMetric the UserExperienceAnalyticsWorkFromAnywhereMetric to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetric post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric newUserExperienceAnalyticsWorkFromAnywhereMetric) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder.java new file mode 100644 index 00000000000..c4aa02d28ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereMetric; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest; +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 User Experience Analytics Work From Anywhere Metric Collection Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder.class, UserExperienceAnalyticsWorkFromAnywhereMetricCollectionRequest.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/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.java new file mode 100644 index 00000000000..5b105de1bfc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.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.UserExperienceAnalyticsWorkFromAnywhereMetric; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Metric Collection Response. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricRequest.java new file mode 100644 index 00000000000..1a8ca63046e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricRequest.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.UserExperienceAnalyticsWorkFromAnywhereMetric; +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 User Experience Analytics Work From Anywhere Metric Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetricRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsWorkFromAnywhereMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereMetricRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereMetric.class); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereMetric from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereMetric from the service + * + * @return the UserExperienceAnalyticsWorkFromAnywhereMetric from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereMetric 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 UserExperienceAnalyticsWorkFromAnywhereMetric delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereMetric with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereMetric the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric sourceUserExperienceAnalyticsWorkFromAnywhereMetric) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereMetric with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereMetric the source object with updates + * @return the updated UserExperienceAnalyticsWorkFromAnywhereMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereMetric patch(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric sourceUserExperienceAnalyticsWorkFromAnywhereMetric) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereMetric the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric newUserExperienceAnalyticsWorkFromAnywhereMetric) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereMetric the new object to create + * @return the created UserExperienceAnalyticsWorkFromAnywhereMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereMetric post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric newUserExperienceAnalyticsWorkFromAnywhereMetric) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereMetric the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric newUserExperienceAnalyticsWorkFromAnywhereMetric) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereMetric with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereMetric the object to create/update + * @return the created UserExperienceAnalyticsWorkFromAnywhereMetric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereMetric put(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereMetric newUserExperienceAnalyticsWorkFromAnywhereMetric) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereMetric); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetricRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder.java new file mode 100644 index 00000000000..9136966b837 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder.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.UserExperienceAnalyticsWorkFromAnywhereMetric; +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 User Experience Analytics Work From Anywhere Metric Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsWorkFromAnywhereMetric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereMetricRequestBuilder(@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 UserExperienceAnalyticsWorkFromAnywhereMetricRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetricRequest 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 UserExperienceAnalyticsWorkFromAnywhereMetricRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereMetricRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereMetricRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the UserExperienceAnalyticsWorkFromAnywhereDevice collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder metricDevices() { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("metricDevices"), getClient(), null); + } + + /** + * Gets a request builder for the UserExperienceAnalyticsWorkFromAnywhereDevice item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder metricDevices(@Nonnull final String id) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereDeviceRequestBuilder(getRequestUrlWithAdditionalSegment("metricDevices") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage.java new file mode 100644 index 00000000000..a6e647d1004 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage.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.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Model Performance Collection Page. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * + * @param response the serialized UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse response, @Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest.java new file mode 100644 index 00000000000..b178c867cc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; +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.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Model Performance Collection Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.class, UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionPage.class, UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder.class); + } + + /** + * Creates a new UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * @param newUserExperienceAnalyticsWorkFromAnywhereModelPerformance the UserExperienceAnalyticsWorkFromAnywhereModelPerformance to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance newUserExperienceAnalyticsWorkFromAnywhereModelPerformance) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Creates a new UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * @param newUserExperienceAnalyticsWorkFromAnywhereModelPerformance the UserExperienceAnalyticsWorkFromAnywhereModelPerformance to create + * @return the newly created object + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformance post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance newUserExperienceAnalyticsWorkFromAnywhereModelPerformance) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder.java new file mode 100644 index 00000000000..9644fd9594d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder; +import com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest; +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 User Experience Analytics Work From Anywhere Model Performance Collection Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.class, UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionRequest.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/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.java new file mode 100644 index 00000000000..673799e92d3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.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.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Experience Analytics Work From Anywhere Model Performance Collection Response. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest.java new file mode 100644 index 00000000000..f52bb018cb7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest.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.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; +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 User Experience Analytics Work From Anywhere Model Performance Request. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest extends BaseRequest { + + /** + * The request for the UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserExperienceAnalyticsWorkFromAnywhereModelPerformance.class); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereModelPerformance from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserExperienceAnalyticsWorkFromAnywhereModelPerformance from the service + * + * @return the UserExperienceAnalyticsWorkFromAnywhereModelPerformance from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereModelPerformance 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformance delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereModelPerformance with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereModelPerformance the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance sourceUserExperienceAnalyticsWorkFromAnywhereModelPerformance) { + return sendAsync(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Patches this UserExperienceAnalyticsWorkFromAnywhereModelPerformance with a source + * + * @param sourceUserExperienceAnalyticsWorkFromAnywhereModelPerformance the source object with updates + * @return the updated UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereModelPerformance patch(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance sourceUserExperienceAnalyticsWorkFromAnywhereModelPerformance) throws ClientException { + return send(HttpMethod.PATCH, sourceUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereModelPerformance with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereModelPerformance the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance newUserExperienceAnalyticsWorkFromAnywhereModelPerformance) { + return sendAsync(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereModelPerformance with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereModelPerformance the new object to create + * @return the created UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereModelPerformance post(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance newUserExperienceAnalyticsWorkFromAnywhereModelPerformance) throws ClientException { + return send(HttpMethod.POST, newUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereModelPerformance with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereModelPerformance the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance newUserExperienceAnalyticsWorkFromAnywhereModelPerformance) { + return sendAsync(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Creates a UserExperienceAnalyticsWorkFromAnywhereModelPerformance with a new object + * + * @param newUserExperienceAnalyticsWorkFromAnywhereModelPerformance the object to create/update + * @return the created UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserExperienceAnalyticsWorkFromAnywhereModelPerformance put(@Nonnull final UserExperienceAnalyticsWorkFromAnywhereModelPerformance newUserExperienceAnalyticsWorkFromAnywhereModelPerformance) throws ClientException { + return send(HttpMethod.PUT, newUserExperienceAnalyticsWorkFromAnywhereModelPerformance); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.java new file mode 100644 index 00000000000..4714d129d87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.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.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; +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 User Experience Analytics Work From Anywhere Model Performance Request Builder. + */ +public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserExperienceAnalyticsWorkFromAnywhereModelPerformance + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(@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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest 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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest instance + */ + @Nonnull + public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionPage.java b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionPage.java new file mode 100644 index 00000000000..54a9db05aa0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionPage.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.UserRegistrationDetails; +import com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.UserRegistrationDetailsCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Registration Details Collection Page. + */ +public class UserRegistrationDetailsCollectionPage extends BaseCollectionPage { + + /** + * A collection page for UserRegistrationDetails + * + * @param response the serialized UserRegistrationDetailsCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserRegistrationDetailsCollectionPage(@Nonnull final UserRegistrationDetailsCollectionResponse response, @Nonnull final UserRegistrationDetailsCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for UserRegistrationDetails + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public UserRegistrationDetailsCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final UserRegistrationDetailsCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionRequest.java new file mode 100644 index 00000000000..49ca83b7881 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionRequest.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.AuthenticationMethodsRoot; +import com.microsoft.graph.models.UserRegistrationDetails; +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.UserRegistrationDetailsCollectionResponse; +import com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequestBuilder; +import com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Registration Details Collection Request. + */ +public class UserRegistrationDetailsCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of UserRegistrationDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserRegistrationDetailsCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserRegistrationDetailsCollectionResponse.class, UserRegistrationDetailsCollectionPage.class, UserRegistrationDetailsCollectionRequestBuilder.class); + } + + /** + * Creates a new UserRegistrationDetails + * @param newUserRegistrationDetails the UserRegistrationDetails to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserRegistrationDetails newUserRegistrationDetails) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserRegistrationDetailsRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newUserRegistrationDetails); + } + + /** + * Creates a new UserRegistrationDetails + * @param newUserRegistrationDetails the UserRegistrationDetails to create + * @return the newly created object + */ + @Nonnull + public UserRegistrationDetails post(@Nonnull final UserRegistrationDetails newUserRegistrationDetails) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserRegistrationDetailsRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserRegistrationDetails); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public UserRegistrationDetailsCollectionRequest 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 UserRegistrationDetailsCollectionRequest 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 UserRegistrationDetailsCollectionRequest 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 UserRegistrationDetailsCollectionRequest 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 UserRegistrationDetailsCollectionRequest 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 UserRegistrationDetailsCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public UserRegistrationDetailsCollectionRequest 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 UserRegistrationDetailsCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public UserRegistrationDetailsCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionRequestBuilder.java new file mode 100644 index 00000000000..031d9a7129c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionRequestBuilder.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.AuthenticationMethodsRoot; +import com.microsoft.graph.models.UserRegistrationDetails; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequestBuilder; +import com.microsoft.graph.requests.UserRegistrationDetailsRequestBuilder; +import com.microsoft.graph.requests.UserRegistrationDetailsCollectionRequest; +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 User Registration Details Collection Request Builder. + */ +public class UserRegistrationDetailsCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of AuthenticationMethodsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserRegistrationDetailsCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserRegistrationDetailsRequestBuilder.class, UserRegistrationDetailsCollectionRequest.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/UserRegistrationDetailsCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionResponse.java new file mode 100644 index 00000000000..c1bbd2cf88f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsCollectionResponse.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.UserRegistrationDetails; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Registration Details Collection Response. + */ +public class UserRegistrationDetailsCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsRequest.java b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsRequest.java new file mode 100644 index 00000000000..d070dae0a81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsRequest.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.UserRegistrationDetails; +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 User Registration Details Request. + */ +public class UserRegistrationDetailsRequest extends BaseRequest { + + /** + * The request for the UserRegistrationDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserRegistrationDetailsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserRegistrationDetails.class); + } + + /** + * Gets the UserRegistrationDetails from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserRegistrationDetails from the service + * + * @return the UserRegistrationDetails from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserRegistrationDetails 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 UserRegistrationDetails delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserRegistrationDetails with a source + * + * @param sourceUserRegistrationDetails the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserRegistrationDetails sourceUserRegistrationDetails) { + return sendAsync(HttpMethod.PATCH, sourceUserRegistrationDetails); + } + + /** + * Patches this UserRegistrationDetails with a source + * + * @param sourceUserRegistrationDetails the source object with updates + * @return the updated UserRegistrationDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserRegistrationDetails patch(@Nonnull final UserRegistrationDetails sourceUserRegistrationDetails) throws ClientException { + return send(HttpMethod.PATCH, sourceUserRegistrationDetails); + } + + /** + * Creates a UserRegistrationDetails with a new object + * + * @param newUserRegistrationDetails the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserRegistrationDetails newUserRegistrationDetails) { + return sendAsync(HttpMethod.POST, newUserRegistrationDetails); + } + + /** + * Creates a UserRegistrationDetails with a new object + * + * @param newUserRegistrationDetails the new object to create + * @return the created UserRegistrationDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserRegistrationDetails post(@Nonnull final UserRegistrationDetails newUserRegistrationDetails) throws ClientException { + return send(HttpMethod.POST, newUserRegistrationDetails); + } + + /** + * Creates a UserRegistrationDetails with a new object + * + * @param newUserRegistrationDetails the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserRegistrationDetails newUserRegistrationDetails) { + return sendAsync(HttpMethod.PUT, newUserRegistrationDetails); + } + + /** + * Creates a UserRegistrationDetails with a new object + * + * @param newUserRegistrationDetails the object to create/update + * @return the created UserRegistrationDetails + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserRegistrationDetails put(@Nonnull final UserRegistrationDetails newUserRegistrationDetails) throws ClientException { + return send(HttpMethod.PUT, newUserRegistrationDetails); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserRegistrationDetailsRequest 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 UserRegistrationDetailsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsRequestBuilder.java new file mode 100644 index 00000000000..47177369d3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserRegistrationDetailsRequestBuilder.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.UserRegistrationDetails; +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 User Registration Details Request Builder. + */ +public class UserRegistrationDetailsRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserRegistrationDetails + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserRegistrationDetailsRequestBuilder(@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 UserRegistrationDetailsRequest instance + */ + @Nonnull + public UserRegistrationDetailsRequest 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 UserRegistrationDetailsRequest instance + */ + @Nonnull + public UserRegistrationDetailsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserRegistrationDetailsRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java index 2dd6ad4a40e..b3d56326756 100644 --- a/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/UserRequestBuilder.java @@ -1188,6 +1188,16 @@ public com.microsoft.graph.requests.TodoRequestBuilder todo() { return new com.microsoft.graph.requests.TodoRequestBuilder(getRequestUrlWithAdditionalSegment("todo"), getClient(), null); } + /** + * Gets the request builder for EmployeeExperienceUser + * + * @return the EmployeeExperienceUserRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.EmployeeExperienceUserRequestBuilder employeeExperience() { + return new com.microsoft.graph.requests.EmployeeExperienceUserRequestBuilder(getRequestUrlWithAdditionalSegment("employeeExperience"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder diff --git a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequest.java index cab1682ab5b..c954e50e491 100644 --- a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequest.java @@ -9,6 +9,7 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.UserTeamwork; import com.microsoft.graph.models.UserScopeTeamsAppInstallation; +import com.microsoft.graph.models.TeamsAppPermissionSet; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequestBuilder.java index e1b8957cb29..e8e7f8123bc 100644 --- a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationCollectionRequestBuilder.java @@ -9,6 +9,7 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.UserTeamwork; import com.microsoft.graph.models.UserScopeTeamsAppInstallation; +import com.microsoft.graph.models.TeamsAppPermissionSet; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; @@ -20,6 +21,7 @@ import com.microsoft.graph.http.BaseCollectionRequestBuilder; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.models.TeamsAppInstallationUpgradeParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** diff --git a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequest.java b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequest.java index fe4c1a211b1..7afd84c77bf 100644 --- a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequest.java +++ b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.UserScopeTeamsAppInstallation; +import com.microsoft.graph.models.TeamsAppPermissionSet; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequestBuilder.java index 1be76e588fa..b4c4207cf87 100644 --- a/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/UserScopeTeamsAppInstallationRequestBuilder.java @@ -8,12 +8,14 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.UserScopeTeamsAppInstallation; +import com.microsoft.graph.models.TeamsAppPermissionSet; 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; +import com.microsoft.graph.models.TeamsAppInstallationUpgradeParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. @@ -90,9 +92,10 @@ public com.microsoft.graph.requests.ChatWithReferenceRequestBuilder chat() { /** * Gets a builder to execute the method * @return the request builder + * @param parameters the parameters for the service method */ @Nonnull - public TeamsAppInstallationUpgradeRequestBuilder upgrade() { - return new TeamsAppInstallationUpgradeRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.upgrade"), getClient(), null); + public TeamsAppInstallationUpgradeRequestBuilder upgrade(@Nonnull final TeamsAppInstallationUpgradeParameterSet parameters) { + return new TeamsAppInstallationUpgradeRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.upgrade"), getClient(), null, parameters); } } diff --git a/src/main/java/com/microsoft/graph/requests/UserSignInInsightRequest.java b/src/main/java/com/microsoft/graph/requests/UserSignInInsightRequest.java new file mode 100644 index 00000000000..62f15bdf596 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserSignInInsightRequest.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.UserSignInInsight; +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 User Sign In Insight Request. + */ +public class UserSignInInsightRequest extends BaseRequest { + + /** + * The request for the UserSignInInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserSignInInsightRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserSignInInsight.class); + } + + /** + * Gets the UserSignInInsight from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UserSignInInsight from the service + * + * @return the UserSignInInsight from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserSignInInsight 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 UserSignInInsight delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserSignInInsight with a source + * + * @param sourceUserSignInInsight the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UserSignInInsight sourceUserSignInInsight) { + return sendAsync(HttpMethod.PATCH, sourceUserSignInInsight); + } + + /** + * Patches this UserSignInInsight with a source + * + * @param sourceUserSignInInsight the source object with updates + * @return the updated UserSignInInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserSignInInsight patch(@Nonnull final UserSignInInsight sourceUserSignInInsight) throws ClientException { + return send(HttpMethod.PATCH, sourceUserSignInInsight); + } + + /** + * Creates a UserSignInInsight with a new object + * + * @param newUserSignInInsight the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UserSignInInsight newUserSignInInsight) { + return sendAsync(HttpMethod.POST, newUserSignInInsight); + } + + /** + * Creates a UserSignInInsight with a new object + * + * @param newUserSignInInsight the new object to create + * @return the created UserSignInInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserSignInInsight post(@Nonnull final UserSignInInsight newUserSignInInsight) throws ClientException { + return send(HttpMethod.POST, newUserSignInInsight); + } + + /** + * Creates a UserSignInInsight with a new object + * + * @param newUserSignInInsight the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UserSignInInsight newUserSignInInsight) { + return sendAsync(HttpMethod.PUT, newUserSignInInsight); + } + + /** + * Creates a UserSignInInsight with a new object + * + * @param newUserSignInInsight the object to create/update + * @return the created UserSignInInsight + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UserSignInInsight put(@Nonnull final UserSignInInsight newUserSignInInsight) throws ClientException { + return send(HttpMethod.PUT, newUserSignInInsight); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UserSignInInsightRequest 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 UserSignInInsightRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/UserSignInInsightRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/UserSignInInsightRequestBuilder.java new file mode 100644 index 00000000000..6c80d2214fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/UserSignInInsightRequestBuilder.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.UserSignInInsight; +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 User Sign In Insight Request Builder. + */ +public class UserSignInInsightRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UserSignInInsight + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserSignInInsightRequestBuilder(@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 UserSignInInsightRequest instance + */ + @Nonnull + public UserSignInInsightRequest 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 UserSignInInsightRequest instance + */ + @Nonnull + public UserSignInInsightRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.UserSignInInsightRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionPage.java b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionPage.java new file mode 100644 index 00000000000..a0a94a4c89d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionPage.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.WindowsDeviceMalwareState; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Windows Device Malware State Collection Page. + */ +public class WindowsDeviceMalwareStateCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WindowsDeviceMalwareState + * + * @param response the serialized WindowsDeviceMalwareStateCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WindowsDeviceMalwareStateCollectionPage(@Nonnull final WindowsDeviceMalwareStateCollectionResponse response, @Nonnull final WindowsDeviceMalwareStateCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WindowsDeviceMalwareState + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WindowsDeviceMalwareStateCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WindowsDeviceMalwareStateCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionRequest.java new file mode 100644 index 00000000000..de2f3891d8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionRequest.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.WindowsProtectionState; +import com.microsoft.graph.models.WindowsDeviceMalwareState; +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.WindowsDeviceMalwareStateCollectionResponse; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequestBuilder; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Windows Device Malware State Collection Request. + */ +public class WindowsDeviceMalwareStateCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WindowsDeviceMalwareState + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsDeviceMalwareStateCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsDeviceMalwareStateCollectionResponse.class, WindowsDeviceMalwareStateCollectionPage.class, WindowsDeviceMalwareStateCollectionRequestBuilder.class); + } + + /** + * Creates a new WindowsDeviceMalwareState + * @param newWindowsDeviceMalwareState the WindowsDeviceMalwareState to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WindowsDeviceMalwareState newWindowsDeviceMalwareState) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WindowsDeviceMalwareStateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWindowsDeviceMalwareState); + } + + /** + * Creates a new WindowsDeviceMalwareState + * @param newWindowsDeviceMalwareState the WindowsDeviceMalwareState to create + * @return the newly created object + */ + @Nonnull + public WindowsDeviceMalwareState post(@Nonnull final WindowsDeviceMalwareState newWindowsDeviceMalwareState) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WindowsDeviceMalwareStateRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWindowsDeviceMalwareState); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WindowsDeviceMalwareStateCollectionRequest 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 WindowsDeviceMalwareStateCollectionRequest 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 WindowsDeviceMalwareStateCollectionRequest 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 WindowsDeviceMalwareStateCollectionRequest 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 WindowsDeviceMalwareStateCollectionRequest 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 WindowsDeviceMalwareStateCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WindowsDeviceMalwareStateCollectionRequest 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 WindowsDeviceMalwareStateCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WindowsDeviceMalwareStateCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionRequestBuilder.java new file mode 100644 index 00000000000..21a2cf5f55b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionRequestBuilder.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.WindowsProtectionState; +import com.microsoft.graph.models.WindowsDeviceMalwareState; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequestBuilder; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateRequestBuilder; +import com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequest; +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 Windows Device Malware State Collection Request Builder. + */ +public class WindowsDeviceMalwareStateCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of WindowsProtectionState + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsDeviceMalwareStateCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsDeviceMalwareStateRequestBuilder.class, WindowsDeviceMalwareStateCollectionRequest.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/WindowsDeviceMalwareStateCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionResponse.java new file mode 100644 index 00000000000..5dade58c697 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateCollectionResponse.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.WindowsDeviceMalwareState; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Windows Device Malware State Collection Response. + */ +public class WindowsDeviceMalwareStateCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateRequest.java b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateRequest.java new file mode 100644 index 00000000000..f574e248c8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateRequest.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.WindowsDeviceMalwareState; +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 Windows Device Malware State Request. + */ +public class WindowsDeviceMalwareStateRequest extends BaseRequest { + + /** + * The request for the WindowsDeviceMalwareState + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsDeviceMalwareStateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsDeviceMalwareState.class); + } + + /** + * Gets the WindowsDeviceMalwareState from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WindowsDeviceMalwareState from the service + * + * @return the WindowsDeviceMalwareState from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsDeviceMalwareState 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 WindowsDeviceMalwareState delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WindowsDeviceMalwareState with a source + * + * @param sourceWindowsDeviceMalwareState the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WindowsDeviceMalwareState sourceWindowsDeviceMalwareState) { + return sendAsync(HttpMethod.PATCH, sourceWindowsDeviceMalwareState); + } + + /** + * Patches this WindowsDeviceMalwareState with a source + * + * @param sourceWindowsDeviceMalwareState the source object with updates + * @return the updated WindowsDeviceMalwareState + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsDeviceMalwareState patch(@Nonnull final WindowsDeviceMalwareState sourceWindowsDeviceMalwareState) throws ClientException { + return send(HttpMethod.PATCH, sourceWindowsDeviceMalwareState); + } + + /** + * Creates a WindowsDeviceMalwareState with a new object + * + * @param newWindowsDeviceMalwareState the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WindowsDeviceMalwareState newWindowsDeviceMalwareState) { + return sendAsync(HttpMethod.POST, newWindowsDeviceMalwareState); + } + + /** + * Creates a WindowsDeviceMalwareState with a new object + * + * @param newWindowsDeviceMalwareState the new object to create + * @return the created WindowsDeviceMalwareState + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsDeviceMalwareState post(@Nonnull final WindowsDeviceMalwareState newWindowsDeviceMalwareState) throws ClientException { + return send(HttpMethod.POST, newWindowsDeviceMalwareState); + } + + /** + * Creates a WindowsDeviceMalwareState with a new object + * + * @param newWindowsDeviceMalwareState the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WindowsDeviceMalwareState newWindowsDeviceMalwareState) { + return sendAsync(HttpMethod.PUT, newWindowsDeviceMalwareState); + } + + /** + * Creates a WindowsDeviceMalwareState with a new object + * + * @param newWindowsDeviceMalwareState the object to create/update + * @return the created WindowsDeviceMalwareState + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsDeviceMalwareState put(@Nonnull final WindowsDeviceMalwareState newWindowsDeviceMalwareState) throws ClientException { + return send(HttpMethod.PUT, newWindowsDeviceMalwareState); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WindowsDeviceMalwareStateRequest 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 WindowsDeviceMalwareStateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateRequestBuilder.java new file mode 100644 index 00000000000..5508b0bf0ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsDeviceMalwareStateRequestBuilder.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.WindowsDeviceMalwareState; +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 Windows Device Malware State Request Builder. + */ +public class WindowsDeviceMalwareStateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WindowsDeviceMalwareState + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsDeviceMalwareStateRequestBuilder(@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 WindowsDeviceMalwareStateRequest instance + */ + @Nonnull + public WindowsDeviceMalwareStateRequest 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 WindowsDeviceMalwareStateRequest instance + */ + @Nonnull + public WindowsDeviceMalwareStateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.WindowsDeviceMalwareStateRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionPage.java b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionPage.java new file mode 100644 index 00000000000..39d6a93e6ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionPage.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.WindowsMalwareInformation; +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Windows Malware Information Collection Page. + */ +public class WindowsMalwareInformationCollectionPage extends BaseCollectionPage { + + /** + * A collection page for WindowsMalwareInformation + * + * @param response the serialized WindowsMalwareInformationCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WindowsMalwareInformationCollectionPage(@Nonnull final WindowsMalwareInformationCollectionResponse response, @Nonnull final WindowsMalwareInformationCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for WindowsMalwareInformation + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public WindowsMalwareInformationCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final WindowsMalwareInformationCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionRequest.java new file mode 100644 index 00000000000..8117bbdd8c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionRequest.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.DeviceManagement; +import com.microsoft.graph.models.WindowsMalwareInformation; +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.WindowsMalwareInformationCollectionResponse; +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequestBuilder; +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Windows Malware Information Collection Request. + */ +public class WindowsMalwareInformationCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of WindowsMalwareInformation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsMalwareInformationCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsMalwareInformationCollectionResponse.class, WindowsMalwareInformationCollectionPage.class, WindowsMalwareInformationCollectionRequestBuilder.class); + } + + /** + * Creates a new WindowsMalwareInformation + * @param newWindowsMalwareInformation the WindowsMalwareInformation to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WindowsMalwareInformation newWindowsMalwareInformation) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WindowsMalwareInformationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newWindowsMalwareInformation); + } + + /** + * Creates a new WindowsMalwareInformation + * @param newWindowsMalwareInformation the WindowsMalwareInformation to create + * @return the newly created object + */ + @Nonnull + public WindowsMalwareInformation post(@Nonnull final WindowsMalwareInformation newWindowsMalwareInformation) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WindowsMalwareInformationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newWindowsMalwareInformation); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public WindowsMalwareInformationCollectionRequest 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 WindowsMalwareInformationCollectionRequest 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 WindowsMalwareInformationCollectionRequest 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 WindowsMalwareInformationCollectionRequest 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 WindowsMalwareInformationCollectionRequest 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 WindowsMalwareInformationCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public WindowsMalwareInformationCollectionRequest 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 WindowsMalwareInformationCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public WindowsMalwareInformationCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionRequestBuilder.java new file mode 100644 index 00000000000..6da016f70b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionRequestBuilder.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.DeviceManagement; +import com.microsoft.graph.models.WindowsMalwareInformation; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequestBuilder; +import com.microsoft.graph.requests.WindowsMalwareInformationRequestBuilder; +import com.microsoft.graph.requests.WindowsMalwareInformationCollectionRequest; +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 Windows Malware Information Collection Request Builder. + */ +public class WindowsMalwareInformationCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of DeviceManagement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsMalwareInformationCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsMalwareInformationRequestBuilder.class, WindowsMalwareInformationCollectionRequest.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/WindowsMalwareInformationCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionResponse.java new file mode 100644 index 00000000000..367b9519350 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationCollectionResponse.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.WindowsMalwareInformation; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Windows Malware Information Collection Response. + */ +public class WindowsMalwareInformationCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationRequest.java b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationRequest.java new file mode 100644 index 00000000000..30602a1d7e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationRequest.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.WindowsMalwareInformation; +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 Windows Malware Information Request. + */ +public class WindowsMalwareInformationRequest extends BaseRequest { + + /** + * The request for the WindowsMalwareInformation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsMalwareInformationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsMalwareInformation.class); + } + + /** + * Gets the WindowsMalwareInformation from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WindowsMalwareInformation from the service + * + * @return the WindowsMalwareInformation from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsMalwareInformation 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 WindowsMalwareInformation delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WindowsMalwareInformation with a source + * + * @param sourceWindowsMalwareInformation the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WindowsMalwareInformation sourceWindowsMalwareInformation) { + return sendAsync(HttpMethod.PATCH, sourceWindowsMalwareInformation); + } + + /** + * Patches this WindowsMalwareInformation with a source + * + * @param sourceWindowsMalwareInformation the source object with updates + * @return the updated WindowsMalwareInformation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsMalwareInformation patch(@Nonnull final WindowsMalwareInformation sourceWindowsMalwareInformation) throws ClientException { + return send(HttpMethod.PATCH, sourceWindowsMalwareInformation); + } + + /** + * Creates a WindowsMalwareInformation with a new object + * + * @param newWindowsMalwareInformation the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WindowsMalwareInformation newWindowsMalwareInformation) { + return sendAsync(HttpMethod.POST, newWindowsMalwareInformation); + } + + /** + * Creates a WindowsMalwareInformation with a new object + * + * @param newWindowsMalwareInformation the new object to create + * @return the created WindowsMalwareInformation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsMalwareInformation post(@Nonnull final WindowsMalwareInformation newWindowsMalwareInformation) throws ClientException { + return send(HttpMethod.POST, newWindowsMalwareInformation); + } + + /** + * Creates a WindowsMalwareInformation with a new object + * + * @param newWindowsMalwareInformation the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WindowsMalwareInformation newWindowsMalwareInformation) { + return sendAsync(HttpMethod.PUT, newWindowsMalwareInformation); + } + + /** + * Creates a WindowsMalwareInformation with a new object + * + * @param newWindowsMalwareInformation the object to create/update + * @return the created WindowsMalwareInformation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsMalwareInformation put(@Nonnull final WindowsMalwareInformation newWindowsMalwareInformation) throws ClientException { + return send(HttpMethod.PUT, newWindowsMalwareInformation); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WindowsMalwareInformationRequest 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 WindowsMalwareInformationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationRequestBuilder.java new file mode 100644 index 00000000000..dacb556c50f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsMalwareInformationRequestBuilder.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.WindowsMalwareInformation; +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 Windows Malware Information Request Builder. + */ +public class WindowsMalwareInformationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WindowsMalwareInformation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsMalwareInformationRequestBuilder(@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 WindowsMalwareInformationRequest instance + */ + @Nonnull + public WindowsMalwareInformationRequest 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 WindowsMalwareInformationRequest instance + */ + @Nonnull + public WindowsMalwareInformationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.WindowsMalwareInformationRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the MalwareStateForWindowsDevice collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequestBuilder deviceMalwareStates() { + return new com.microsoft.graph.requests.MalwareStateForWindowsDeviceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("deviceMalwareStates"), getClient(), null); + } + + /** + * Gets a request builder for the MalwareStateForWindowsDevice item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MalwareStateForWindowsDeviceRequestBuilder deviceMalwareStates(@Nonnull final String id) { + return new com.microsoft.graph.requests.MalwareStateForWindowsDeviceRequestBuilder(getRequestUrlWithAdditionalSegment("deviceMalwareStates") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/WindowsProtectionStateRequest.java b/src/main/java/com/microsoft/graph/requests/WindowsProtectionStateRequest.java new file mode 100644 index 00000000000..630b2e9b018 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsProtectionStateRequest.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.WindowsProtectionState; +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 Windows Protection State Request. + */ +public class WindowsProtectionStateRequest extends BaseRequest { + + /** + * The request for the WindowsProtectionState + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsProtectionStateRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WindowsProtectionState.class); + } + + /** + * Gets the WindowsProtectionState from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the WindowsProtectionState from the service + * + * @return the WindowsProtectionState from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsProtectionState 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 WindowsProtectionState delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this WindowsProtectionState with a source + * + * @param sourceWindowsProtectionState the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final WindowsProtectionState sourceWindowsProtectionState) { + return sendAsync(HttpMethod.PATCH, sourceWindowsProtectionState); + } + + /** + * Patches this WindowsProtectionState with a source + * + * @param sourceWindowsProtectionState the source object with updates + * @return the updated WindowsProtectionState + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsProtectionState patch(@Nonnull final WindowsProtectionState sourceWindowsProtectionState) throws ClientException { + return send(HttpMethod.PATCH, sourceWindowsProtectionState); + } + + /** + * Creates a WindowsProtectionState with a new object + * + * @param newWindowsProtectionState the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final WindowsProtectionState newWindowsProtectionState) { + return sendAsync(HttpMethod.POST, newWindowsProtectionState); + } + + /** + * Creates a WindowsProtectionState with a new object + * + * @param newWindowsProtectionState the new object to create + * @return the created WindowsProtectionState + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsProtectionState post(@Nonnull final WindowsProtectionState newWindowsProtectionState) throws ClientException { + return send(HttpMethod.POST, newWindowsProtectionState); + } + + /** + * Creates a WindowsProtectionState with a new object + * + * @param newWindowsProtectionState the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final WindowsProtectionState newWindowsProtectionState) { + return sendAsync(HttpMethod.PUT, newWindowsProtectionState); + } + + /** + * Creates a WindowsProtectionState with a new object + * + * @param newWindowsProtectionState the object to create/update + * @return the created WindowsProtectionState + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public WindowsProtectionState put(@Nonnull final WindowsProtectionState newWindowsProtectionState) throws ClientException { + return send(HttpMethod.PUT, newWindowsProtectionState); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public WindowsProtectionStateRequest 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 WindowsProtectionStateRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/WindowsProtectionStateRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/WindowsProtectionStateRequestBuilder.java new file mode 100644 index 00000000000..d5d19187f30 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/WindowsProtectionStateRequestBuilder.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.WindowsProtectionState; +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 Windows Protection State Request Builder. + */ +public class WindowsProtectionStateRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the WindowsProtectionState + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WindowsProtectionStateRequestBuilder(@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 WindowsProtectionStateRequest instance + */ + @Nonnull + public WindowsProtectionStateRequest 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 WindowsProtectionStateRequest instance + */ + @Nonnull + public WindowsProtectionStateRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.WindowsProtectionStateRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the WindowsDeviceMalwareState collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequestBuilder detectedMalwareState() { + return new com.microsoft.graph.requests.WindowsDeviceMalwareStateCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("detectedMalwareState"), getClient(), null); + } + + /** + * Gets a request builder for the WindowsDeviceMalwareState item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.WindowsDeviceMalwareStateRequestBuilder detectedMalwareState(@Nonnull final String id) { + return new com.microsoft.graph.requests.WindowsDeviceMalwareStateRequestBuilder(getRequestUrlWithAdditionalSegment("detectedMalwareState") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionPage.java new file mode 100644 index 00000000000..4ec1be57c83 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.Article; +import com.microsoft.graph.security.requests.ArticleCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.ArticleCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection Page. + */ +public class ArticleCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Article + * + * @param response the serialized ArticleCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ArticleCollectionPage(@Nonnull final ArticleCollectionResponse response, @Nonnull final ArticleCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Article + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ArticleCollectionPage(@Nonnull final java.util.List
pageContents, @Nullable final ArticleCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionReferenceRequest.java new file mode 100644 index 00000000000..8a54b32ce75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.Vulnerability; +import com.microsoft.graph.security.models.Article; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.ArticleWithReferenceRequest; +import com.microsoft.graph.security.requests.ArticleReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.Article; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection Reference Request. + */ +public class ArticleCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleCollectionResponse.class, ArticleCollectionWithReferencesPage.class, ArticleCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ArticleCollectionReferenceRequest 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 ArticleCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public ArticleCollectionReferenceRequest 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 ArticleCollectionReferenceRequest 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 ArticleCollectionReferenceRequest 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 ArticleCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ArticleCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..3ac32066c88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.Vulnerability; +import com.microsoft.graph.security.models.Article; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection Reference Request Builder. + */ +public class ArticleCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleReferenceRequestBuilder.class, ArticleCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionRequest.java new file mode 100644 index 00000000000..94be9d65e0e --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.Article; +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.security.requests.ArticleCollectionResponse; +import com.microsoft.graph.security.requests.ArticleCollectionRequestBuilder; +import com.microsoft.graph.security.requests.ArticleCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection Request. + */ +public class ArticleCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleCollectionResponse.class, ArticleCollectionPage.class, ArticleCollectionRequestBuilder.class); + } + + /** + * Creates a new Article + * @param newArticle the Article to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture
postAsync(@Nonnull final Article newArticle) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ArticleRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newArticle); + } + + /** + * Creates a new Article + * @param newArticle the Article to create + * @return the newly created object + */ + @Nonnull + public Article post(@Nonnull final Article newArticle) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ArticleRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newArticle); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ArticleCollectionRequest 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 ArticleCollectionRequest 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 ArticleCollectionRequest 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 ArticleCollectionRequest 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 ArticleCollectionRequest 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 ArticleCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ArticleCollectionRequest 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 ArticleCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public ArticleCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionRequestBuilder.java new file mode 100644 index 00000000000..aaf17fed755 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.Article; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.ArticleCollectionRequestBuilder; +import com.microsoft.graph.security.requests.ArticleRequestBuilder; +import com.microsoft.graph.security.requests.ArticleCollectionRequest; +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 Article Collection Request Builder. + */ +public class ArticleCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleRequestBuilder.class, ArticleCollectionRequest.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/security/requests/ArticleCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionResponse.java new file mode 100644 index 00000000000..cf7c886abbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.Article; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection Response. + */ +public class ArticleCollectionResponse extends BaseCollectionResponse
{ + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesPage.java new file mode 100644 index 00000000000..582f3b305c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.Vulnerability; +import com.microsoft.graph.security.models.Article; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.ArticleCollectionResponse; +import com.microsoft.graph.security.models.Article; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection With References Page. + */ +public class ArticleCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for Article + * + * @param response the serialized ArticleCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ArticleCollectionWithReferencesPage(@Nonnull final ArticleCollectionResponse response, @Nullable final ArticleCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for Article + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ArticleCollectionWithReferencesPage(@Nonnull final java.util.List
pageContents, @Nullable final ArticleCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..bd3d60ca56e --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.Vulnerability; +import com.microsoft.graph.security.models.Article; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.Article; +import com.microsoft.graph.security.requests.ArticleWithReferenceRequest; +import com.microsoft.graph.security.requests.ArticleReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection With References Request. + */ +public class ArticleCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleCollectionResponse.class, ArticleCollectionWithReferencesPage.class, ArticleCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ArticleCollectionWithReferencesRequest 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 ArticleCollectionWithReferencesRequest 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 ArticleCollectionWithReferencesRequest 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 ArticleCollectionWithReferencesRequest 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 ArticleCollectionWithReferencesRequest 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 ArticleCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ArticleCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..7ab2da44d51 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.Vulnerability; +import com.microsoft.graph.security.models.Article; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Collection With References Request Builder. + */ +public class ArticleCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Vulnerability + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleReferenceRequestBuilder.class, ArticleCollectionReferenceRequest.class, ArticleCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionPage.java new file mode 100644 index 00000000000..0e725dd2a4d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.ArticleIndicator; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection Page. + */ +public class ArticleIndicatorCollectionPage extends BaseCollectionPage { + + /** + * A collection page for ArticleIndicator + * + * @param response the serialized ArticleIndicatorCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ArticleIndicatorCollectionPage(@Nonnull final ArticleIndicatorCollectionResponse response, @Nonnull final ArticleIndicatorCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for ArticleIndicator + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ArticleIndicatorCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final ArticleIndicatorCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionReferenceRequest.java new file mode 100644 index 00000000000..6ad5a4e35a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.Article; +import com.microsoft.graph.security.models.ArticleIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.ArticleIndicatorWithReferenceRequest; +import com.microsoft.graph.security.requests.ArticleIndicatorReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.ArticleIndicator; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection Reference Request. + */ +public class ArticleIndicatorCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorCollectionResponse.class, ArticleIndicatorCollectionWithReferencesPage.class, ArticleIndicatorCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionReferenceRequest 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 ArticleIndicatorCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionReferenceRequest 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 ArticleIndicatorCollectionReferenceRequest 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 ArticleIndicatorCollectionReferenceRequest 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 ArticleIndicatorCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..a6429321e9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.Article; +import com.microsoft.graph.security.models.ArticleIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection Reference Request Builder. + */ +public class ArticleIndicatorCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorReferenceRequestBuilder.class, ArticleIndicatorCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionRequest.java new file mode 100644 index 00000000000..eec52d92b4d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.ArticleIndicator; +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.security.requests.ArticleIndicatorCollectionResponse; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection Request. + */ +public class ArticleIndicatorCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorCollectionResponse.class, ArticleIndicatorCollectionPage.class, ArticleIndicatorCollectionRequestBuilder.class); + } + + /** + * Creates a new ArticleIndicator + * @param newArticleIndicator the ArticleIndicator to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ArticleIndicator newArticleIndicator) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ArticleIndicatorRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newArticleIndicator); + } + + /** + * Creates a new ArticleIndicator + * @param newArticleIndicator the ArticleIndicator to create + * @return the newly created object + */ + @Nonnull + public ArticleIndicator post(@Nonnull final ArticleIndicator newArticleIndicator) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ArticleIndicatorRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newArticleIndicator); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionRequest 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 ArticleIndicatorCollectionRequest 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 ArticleIndicatorCollectionRequest 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 ArticleIndicatorCollectionRequest 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 ArticleIndicatorCollectionRequest 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 ArticleIndicatorCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionRequest 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 ArticleIndicatorCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionRequestBuilder.java new file mode 100644 index 00000000000..fe690d15589 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.ArticleIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequest; +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 Article Indicator Collection Request Builder. + */ +public class ArticleIndicatorCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorRequestBuilder.class, ArticleIndicatorCollectionRequest.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/security/requests/ArticleIndicatorCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionResponse.java new file mode 100644 index 00000000000..520eef48dbf --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.ArticleIndicator; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection Response. + */ +public class ArticleIndicatorCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesPage.java new file mode 100644 index 00000000000..095db9e622e --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.Article; +import com.microsoft.graph.security.models.ArticleIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionResponse; +import com.microsoft.graph.security.models.ArticleIndicator; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection With References Page. + */ +public class ArticleIndicatorCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for ArticleIndicator + * + * @param response the serialized ArticleIndicatorCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ArticleIndicatorCollectionWithReferencesPage(@Nonnull final ArticleIndicatorCollectionResponse response, @Nullable final ArticleIndicatorCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for ArticleIndicator + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ArticleIndicatorCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final ArticleIndicatorCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..f865299e05d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.Article; +import com.microsoft.graph.security.models.ArticleIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.ArticleIndicator; +import com.microsoft.graph.security.requests.ArticleIndicatorWithReferenceRequest; +import com.microsoft.graph.security.requests.ArticleIndicatorReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection With References Request. + */ +public class ArticleIndicatorCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorCollectionResponse.class, ArticleIndicatorCollectionWithReferencesPage.class, ArticleIndicatorCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionWithReferencesRequest 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 ArticleIndicatorCollectionWithReferencesRequest 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 ArticleIndicatorCollectionWithReferencesRequest 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 ArticleIndicatorCollectionWithReferencesRequest 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 ArticleIndicatorCollectionWithReferencesRequest 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 ArticleIndicatorCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ArticleIndicatorCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..593774d2993 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/ArticleIndicatorCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.Article; +import com.microsoft.graph.security.models.ArticleIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Article Indicator Collection With References Request Builder. + */ +public class ArticleIndicatorCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorReferenceRequestBuilder.class, ArticleIndicatorCollectionReferenceRequest.class, ArticleIndicatorCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionPage.java new file mode 100644 index 00000000000..a26d505dc54 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.Host; +import com.microsoft.graph.security.requests.HostCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Collection Page. + */ +public class HostCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Host + * + * @param response the serialized HostCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostCollectionPage(@Nonnull final HostCollectionResponse response, @Nonnull final HostCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Host + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionRequest.java new file mode 100644 index 00000000000..11ea7513da7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.Host; +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.security.requests.HostCollectionResponse; +import com.microsoft.graph.security.requests.HostCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Collection Request. + */ +public class HostCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCollectionResponse.class, HostCollectionPage.class, HostCollectionRequestBuilder.class); + } + + /** + * Creates a new Host + * @param newHost the Host to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Host newHost) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHost); + } + + /** + * Creates a new Host + * @param newHost the Host to create + * @return the newly created object + */ + @Nonnull + public Host post(@Nonnull final Host newHost) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHost); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostCollectionRequest 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 HostCollectionRequest 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 HostCollectionRequest 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 HostCollectionRequest 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 HostCollectionRequest 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 HostCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostCollectionRequest 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 HostCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionRequestBuilder.java new file mode 100644 index 00000000000..c936d8b4b7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.Host; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostRequestBuilder; +import com.microsoft.graph.security.requests.HostCollectionRequest; +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 Host Collection Request Builder. + */ +public class HostCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostRequestBuilder.class, HostCollectionRequest.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/security/requests/HostCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostCollectionResponse.java new file mode 100644 index 00000000000..2ee4cace499 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.Host; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Collection Response. + */ +public class HostCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionPage.java new file mode 100644 index 00000000000..64df578e8da --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.HostComponent; +import com.microsoft.graph.security.requests.HostComponentCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostComponentCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection Page. + */ +public class HostComponentCollectionPage extends BaseCollectionPage { + + /** + * A collection page for HostComponent + * + * @param response the serialized HostComponentCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostComponentCollectionPage(@Nonnull final HostComponentCollectionResponse response, @Nonnull final HostComponentCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for HostComponent + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostComponentCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostComponentCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionReferenceRequest.java new file mode 100644 index 00000000000..2ce00be611e --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.Host; +import com.microsoft.graph.security.models.HostComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostComponentWithReferenceRequest; +import com.microsoft.graph.security.requests.HostComponentReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.HostComponent; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection Reference Request. + */ +public class HostComponentCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentCollectionResponse.class, HostComponentCollectionWithReferencesPage.class, HostComponentCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostComponentCollectionReferenceRequest 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 HostComponentCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public HostComponentCollectionReferenceRequest 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 HostComponentCollectionReferenceRequest 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 HostComponentCollectionReferenceRequest 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 HostComponentCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostComponentCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..cddd2d7af29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.Host; +import com.microsoft.graph.security.models.HostComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection Reference Request Builder. + */ +public class HostComponentCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentReferenceRequestBuilder.class, HostComponentCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionRequest.java new file mode 100644 index 00000000000..19c33a2630a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostComponent; +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.security.requests.HostComponentCollectionResponse; +import com.microsoft.graph.security.requests.HostComponentCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection Request. + */ +public class HostComponentCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentCollectionResponse.class, HostComponentCollectionPage.class, HostComponentCollectionRequestBuilder.class); + } + + /** + * Creates a new HostComponent + * @param newHostComponent the HostComponent to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostComponent newHostComponent) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostComponentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHostComponent); + } + + /** + * Creates a new HostComponent + * @param newHostComponent the HostComponent to create + * @return the newly created object + */ + @Nonnull + public HostComponent post(@Nonnull final HostComponent newHostComponent) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostComponentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHostComponent); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostComponentCollectionRequest 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 HostComponentCollectionRequest 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 HostComponentCollectionRequest 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 HostComponentCollectionRequest 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 HostComponentCollectionRequest 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 HostComponentCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostComponentCollectionRequest 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 HostComponentCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostComponentCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionRequestBuilder.java new file mode 100644 index 00000000000..a85c95dcc69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostComponentCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentCollectionRequest; +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 Host Component Collection Request Builder. + */ +public class HostComponentCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentRequestBuilder.class, HostComponentCollectionRequest.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/security/requests/HostComponentCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionResponse.java new file mode 100644 index 00000000000..c4381c2b8bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.HostComponent; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection Response. + */ +public class HostComponentCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesPage.java new file mode 100644 index 00000000000..64a3190d4de --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.Host; +import com.microsoft.graph.security.models.HostComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostComponentCollectionResponse; +import com.microsoft.graph.security.models.HostComponent; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection With References Page. + */ +public class HostComponentCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for HostComponent + * + * @param response the serialized HostComponentCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostComponentCollectionWithReferencesPage(@Nonnull final HostComponentCollectionResponse response, @Nullable final HostComponentCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for HostComponent + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostComponentCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostComponentCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..1296fe6d14f --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.Host; +import com.microsoft.graph.security.models.HostComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.HostComponent; +import com.microsoft.graph.security.requests.HostComponentWithReferenceRequest; +import com.microsoft.graph.security.requests.HostComponentReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection With References Request. + */ +public class HostComponentCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentCollectionResponse.class, HostComponentCollectionWithReferencesPage.class, HostComponentCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostComponentCollectionWithReferencesRequest 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 HostComponentCollectionWithReferencesRequest 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 HostComponentCollectionWithReferencesRequest 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 HostComponentCollectionWithReferencesRequest 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 HostComponentCollectionWithReferencesRequest 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 HostComponentCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostComponentCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..366fe60b2c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostComponentCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.Host; +import com.microsoft.graph.security.models.HostComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Component Collection With References Request Builder. + */ +public class HostComponentCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentReferenceRequestBuilder.class, HostComponentCollectionReferenceRequest.class, HostComponentCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionPage.java new file mode 100644 index 00000000000..e4f7ef79f96 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.HostCookie; +import com.microsoft.graph.security.requests.HostCookieCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostCookieCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection Page. + */ +public class HostCookieCollectionPage extends BaseCollectionPage { + + /** + * A collection page for HostCookie + * + * @param response the serialized HostCookieCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostCookieCollectionPage(@Nonnull final HostCookieCollectionResponse response, @Nonnull final HostCookieCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for HostCookie + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostCookieCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostCookieCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionReferenceRequest.java new file mode 100644 index 00000000000..f9e0a5a4d27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.Host; +import com.microsoft.graph.security.models.HostCookie; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostCookieWithReferenceRequest; +import com.microsoft.graph.security.requests.HostCookieReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.HostCookie; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection Reference Request. + */ +public class HostCookieCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieCollectionResponse.class, HostCookieCollectionWithReferencesPage.class, HostCookieCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostCookieCollectionReferenceRequest 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 HostCookieCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public HostCookieCollectionReferenceRequest 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 HostCookieCollectionReferenceRequest 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 HostCookieCollectionReferenceRequest 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 HostCookieCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostCookieCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..f8cb5670bb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.Host; +import com.microsoft.graph.security.models.HostCookie; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection Reference Request Builder. + */ +public class HostCookieCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieReferenceRequestBuilder.class, HostCookieCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionRequest.java new file mode 100644 index 00000000000..4809c006242 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostCookie; +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.security.requests.HostCookieCollectionResponse; +import com.microsoft.graph.security.requests.HostCookieCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection Request. + */ +public class HostCookieCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieCollectionResponse.class, HostCookieCollectionPage.class, HostCookieCollectionRequestBuilder.class); + } + + /** + * Creates a new HostCookie + * @param newHostCookie the HostCookie to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostCookie newHostCookie) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostCookieRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHostCookie); + } + + /** + * Creates a new HostCookie + * @param newHostCookie the HostCookie to create + * @return the newly created object + */ + @Nonnull + public HostCookie post(@Nonnull final HostCookie newHostCookie) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostCookieRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHostCookie); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostCookieCollectionRequest 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 HostCookieCollectionRequest 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 HostCookieCollectionRequest 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 HostCookieCollectionRequest 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 HostCookieCollectionRequest 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 HostCookieCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostCookieCollectionRequest 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 HostCookieCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostCookieCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionRequestBuilder.java new file mode 100644 index 00000000000..9e5cd681fcc --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostCookie; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostCookieCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieCollectionRequest; +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 Host Cookie Collection Request Builder. + */ +public class HostCookieCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieRequestBuilder.class, HostCookieCollectionRequest.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/security/requests/HostCookieCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionResponse.java new file mode 100644 index 00000000000..fa3b47a4fa1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.HostCookie; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection Response. + */ +public class HostCookieCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesPage.java new file mode 100644 index 00000000000..1b149381b3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.Host; +import com.microsoft.graph.security.models.HostCookie; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostCookieCollectionResponse; +import com.microsoft.graph.security.models.HostCookie; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection With References Page. + */ +public class HostCookieCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for HostCookie + * + * @param response the serialized HostCookieCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostCookieCollectionWithReferencesPage(@Nonnull final HostCookieCollectionResponse response, @Nullable final HostCookieCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for HostCookie + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostCookieCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostCookieCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..5318f40cd75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.Host; +import com.microsoft.graph.security.models.HostCookie; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.HostCookie; +import com.microsoft.graph.security.requests.HostCookieWithReferenceRequest; +import com.microsoft.graph.security.requests.HostCookieReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection With References Request. + */ +public class HostCookieCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieCollectionResponse.class, HostCookieCollectionWithReferencesPage.class, HostCookieCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostCookieCollectionWithReferencesRequest 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 HostCookieCollectionWithReferencesRequest 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 HostCookieCollectionWithReferencesRequest 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 HostCookieCollectionWithReferencesRequest 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 HostCookieCollectionWithReferencesRequest 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 HostCookieCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostCookieCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..925f8a6e5a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostCookieCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.Host; +import com.microsoft.graph.security.models.HostCookie; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Cookie Collection With References Request Builder. + */ +public class HostCookieCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieReferenceRequestBuilder.class, HostCookieCollectionReferenceRequest.class, HostCookieCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionPage.java new file mode 100644 index 00000000000..494bc03a33c --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.HostTracker; +import com.microsoft.graph.security.requests.HostTrackerCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.HostTrackerCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection Page. + */ +public class HostTrackerCollectionPage extends BaseCollectionPage { + + /** + * A collection page for HostTracker + * + * @param response the serialized HostTrackerCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostTrackerCollectionPage(@Nonnull final HostTrackerCollectionResponse response, @Nonnull final HostTrackerCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for HostTracker + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostTrackerCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final HostTrackerCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionReferenceRequest.java new file mode 100644 index 00000000000..f2b81fc0306 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.Host; +import com.microsoft.graph.security.models.HostTracker; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostTrackerWithReferenceRequest; +import com.microsoft.graph.security.requests.HostTrackerReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.HostTracker; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection Reference Request. + */ +public class HostTrackerCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerCollectionResponse.class, HostTrackerCollectionWithReferencesPage.class, HostTrackerCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionReferenceRequest 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 HostTrackerCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionReferenceRequest 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 HostTrackerCollectionReferenceRequest 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 HostTrackerCollectionReferenceRequest 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 HostTrackerCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..8e9fc4dda4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.Host; +import com.microsoft.graph.security.models.HostTracker; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection Reference Request Builder. + */ +public class HostTrackerCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerReferenceRequestBuilder.class, HostTrackerCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionRequest.java new file mode 100644 index 00000000000..caf5500a858 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostTracker; +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.security.requests.HostTrackerCollectionResponse; +import com.microsoft.graph.security.requests.HostTrackerCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection Request. + */ +public class HostTrackerCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerCollectionResponse.class, HostTrackerCollectionPage.class, HostTrackerCollectionRequestBuilder.class); + } + + /** + * Creates a new HostTracker + * @param newHostTracker the HostTracker to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostTracker newHostTracker) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostTrackerRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newHostTracker); + } + + /** + * Creates a new HostTracker + * @param newHostTracker the HostTracker to create + * @return the newly created object + */ + @Nonnull + public HostTracker post(@Nonnull final HostTracker newHostTracker) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new HostTrackerRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newHostTracker); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionRequest 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 HostTrackerCollectionRequest 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 HostTrackerCollectionRequest 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 HostTrackerCollectionRequest 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 HostTrackerCollectionRequest 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 HostTrackerCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionRequest 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 HostTrackerCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionRequestBuilder.java new file mode 100644 index 00000000000..0b21b0d3dac --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.HostTracker; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostTrackerCollectionRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerCollectionRequest; +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 Host Tracker Collection Request Builder. + */ +public class HostTrackerCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerRequestBuilder.class, HostTrackerCollectionRequest.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/security/requests/HostTrackerCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionResponse.java new file mode 100644 index 00000000000..ec9234509a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.HostTracker; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection Response. + */ +public class HostTrackerCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesPage.java new file mode 100644 index 00000000000..7a669618a88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.Host; +import com.microsoft.graph.security.models.HostTracker; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.HostTrackerCollectionResponse; +import com.microsoft.graph.security.models.HostTracker; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection With References Page. + */ +public class HostTrackerCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for HostTracker + * + * @param response the serialized HostTrackerCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public HostTrackerCollectionWithReferencesPage(@Nonnull final HostTrackerCollectionResponse response, @Nullable final HostTrackerCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for HostTracker + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public HostTrackerCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final HostTrackerCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..60b7c056e13 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.Host; +import com.microsoft.graph.security.models.HostTracker; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.HostTracker; +import com.microsoft.graph.security.requests.HostTrackerWithReferenceRequest; +import com.microsoft.graph.security.requests.HostTrackerReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection With References Request. + */ +public class HostTrackerCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerCollectionResponse.class, HostTrackerCollectionWithReferencesPage.class, HostTrackerCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionWithReferencesRequest 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 HostTrackerCollectionWithReferencesRequest 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 HostTrackerCollectionWithReferencesRequest 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 HostTrackerCollectionWithReferencesRequest 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 HostTrackerCollectionWithReferencesRequest 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 HostTrackerCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public HostTrackerCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..57468c32575 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/HostTrackerCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.Host; +import com.microsoft.graph.security.models.HostTracker; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Host Tracker Collection With References Request Builder. + */ +public class HostTrackerCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerReferenceRequestBuilder.class, HostTrackerCollectionReferenceRequest.class, HostTrackerCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionPage.java new file mode 100644 index 00000000000..c3faf1788d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.IntelligenceProfile; +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Collection Page. + */ +public class IntelligenceProfileCollectionPage extends BaseCollectionPage { + + /** + * A collection page for IntelligenceProfile + * + * @param response the serialized IntelligenceProfileCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public IntelligenceProfileCollectionPage(@Nonnull final IntelligenceProfileCollectionResponse response, @Nonnull final IntelligenceProfileCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for IntelligenceProfile + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public IntelligenceProfileCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final IntelligenceProfileCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionRequest.java new file mode 100644 index 00000000000..22dc5f3979d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.IntelligenceProfile; +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.security.requests.IntelligenceProfileCollectionResponse; +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Collection Request. + */ +public class IntelligenceProfileCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of IntelligenceProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileCollectionResponse.class, IntelligenceProfileCollectionPage.class, IntelligenceProfileCollectionRequestBuilder.class); + } + + /** + * Creates a new IntelligenceProfile + * @param newIntelligenceProfile the IntelligenceProfile to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final IntelligenceProfile newIntelligenceProfile) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new IntelligenceProfileRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newIntelligenceProfile); + } + + /** + * Creates a new IntelligenceProfile + * @param newIntelligenceProfile the IntelligenceProfile to create + * @return the newly created object + */ + @Nonnull + public IntelligenceProfile post(@Nonnull final IntelligenceProfile newIntelligenceProfile) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new IntelligenceProfileRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newIntelligenceProfile); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileCollectionRequest 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 IntelligenceProfileCollectionRequest 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 IntelligenceProfileCollectionRequest 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 IntelligenceProfileCollectionRequest 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 IntelligenceProfileCollectionRequest 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 IntelligenceProfileCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public IntelligenceProfileCollectionRequest 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 IntelligenceProfileCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public IntelligenceProfileCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionRequestBuilder.java new file mode 100644 index 00000000000..b00ee8ad6db --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.IntelligenceProfile; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequest; +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 Intelligence Profile Collection Request Builder. + */ +public class IntelligenceProfileCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileRequestBuilder.class, IntelligenceProfileCollectionRequest.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/security/requests/IntelligenceProfileCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionResponse.java new file mode 100644 index 00000000000..94b33ba1a3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.IntelligenceProfile; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Collection Response. + */ +public class IntelligenceProfileCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionPage.java new file mode 100644 index 00000000000..f02ab1ea916 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection Page. + */ +public class IntelligenceProfileIndicatorCollectionPage extends BaseCollectionPage { + + /** + * A collection page for IntelligenceProfileIndicator + * + * @param response the serialized IntelligenceProfileIndicatorCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public IntelligenceProfileIndicatorCollectionPage(@Nonnull final IntelligenceProfileIndicatorCollectionResponse response, @Nonnull final IntelligenceProfileIndicatorCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for IntelligenceProfileIndicator + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public IntelligenceProfileIndicatorCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final IntelligenceProfileIndicatorCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionReferenceRequest.java new file mode 100644 index 00000000000..de6574df0df --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.IntelligenceProfile; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorWithReferenceRequest; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorReferenceRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection Reference Request. + */ +public class IntelligenceProfileIndicatorCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorCollectionResponse.class, IntelligenceProfileIndicatorCollectionWithReferencesPage.class, IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionReferenceRequest 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 IntelligenceProfileIndicatorCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionReferenceRequest 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 IntelligenceProfileIndicatorCollectionReferenceRequest 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 IntelligenceProfileIndicatorCollectionReferenceRequest 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 IntelligenceProfileIndicatorCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..f6daba8ba89 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.IntelligenceProfile; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection Reference Request Builder. + */ +public class IntelligenceProfileIndicatorCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorReferenceRequestBuilder.class, IntelligenceProfileIndicatorCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionRequest.java new file mode 100644 index 00000000000..c4f5654d294 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +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.security.requests.IntelligenceProfileIndicatorCollectionResponse; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection Request. + */ +public class IntelligenceProfileIndicatorCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorCollectionResponse.class, IntelligenceProfileIndicatorCollectionPage.class, IntelligenceProfileIndicatorCollectionRequestBuilder.class); + } + + /** + * Creates a new IntelligenceProfileIndicator + * @param newIntelligenceProfileIndicator the IntelligenceProfileIndicator to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final IntelligenceProfileIndicator newIntelligenceProfileIndicator) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new IntelligenceProfileIndicatorRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newIntelligenceProfileIndicator); + } + + /** + * Creates a new IntelligenceProfileIndicator + * @param newIntelligenceProfileIndicator the IntelligenceProfileIndicator to create + * @return the newly created object + */ + @Nonnull + public IntelligenceProfileIndicator post(@Nonnull final IntelligenceProfileIndicator newIntelligenceProfileIndicator) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new IntelligenceProfileIndicatorRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newIntelligenceProfileIndicator); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionRequest 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 IntelligenceProfileIndicatorCollectionRequest 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 IntelligenceProfileIndicatorCollectionRequest 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 IntelligenceProfileIndicatorCollectionRequest 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 IntelligenceProfileIndicatorCollectionRequest 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 IntelligenceProfileIndicatorCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionRequest 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 IntelligenceProfileIndicatorCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionRequestBuilder.java new file mode 100644 index 00000000000..68417d0ebad --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequest; +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 Intelligence Profile Indicator Collection Request Builder. + */ +public class IntelligenceProfileIndicatorCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorRequestBuilder.class, IntelligenceProfileIndicatorCollectionRequest.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/security/requests/IntelligenceProfileIndicatorCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionResponse.java new file mode 100644 index 00000000000..7609525834b --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection Response. + */ +public class IntelligenceProfileIndicatorCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesPage.java new file mode 100644 index 00000000000..0d151697b8d --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.IntelligenceProfile; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionResponse; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection With References Page. + */ +public class IntelligenceProfileIndicatorCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for IntelligenceProfileIndicator + * + * @param response the serialized IntelligenceProfileIndicatorCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public IntelligenceProfileIndicatorCollectionWithReferencesPage(@Nonnull final IntelligenceProfileIndicatorCollectionResponse response, @Nullable final IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for IntelligenceProfileIndicator + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public IntelligenceProfileIndicatorCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..9bea6521c29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.IntelligenceProfile; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorWithReferenceRequest; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorReferenceRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection With References Request. + */ +public class IntelligenceProfileIndicatorCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorCollectionResponse.class, IntelligenceProfileIndicatorCollectionWithReferencesPage.class, IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionWithReferencesRequest 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 IntelligenceProfileIndicatorCollectionWithReferencesRequest 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 IntelligenceProfileIndicatorCollectionWithReferencesRequest 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 IntelligenceProfileIndicatorCollectionWithReferencesRequest 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 IntelligenceProfileIndicatorCollectionWithReferencesRequest 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 IntelligenceProfileIndicatorCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..8dd75c0c6e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.IntelligenceProfile; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Intelligence Profile Indicator Collection With References Request Builder. + */ +public class IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of IntelligenceProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorReferenceRequestBuilder.class, IntelligenceProfileIndicatorCollectionReferenceRequest.class, IntelligenceProfileIndicatorCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionPage.java new file mode 100644 index 00000000000..fced9a0a918 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection Page. + */ +public class PassiveDnsRecordCollectionPage extends BaseCollectionPage { + + /** + * A collection page for PassiveDnsRecord + * + * @param response the serialized PassiveDnsRecordCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public PassiveDnsRecordCollectionPage(@Nonnull final PassiveDnsRecordCollectionResponse response, @Nonnull final PassiveDnsRecordCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for PassiveDnsRecord + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public PassiveDnsRecordCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final PassiveDnsRecordCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionReferenceRequest.java new file mode 100644 index 00000000000..ea3194e964b --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionReferenceRequest.java @@ -0,0 +1,127 @@ +// Template Source: BaseEntityCollectionReferenceRequest.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.Host; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequest; +import com.microsoft.graph.security.requests.PassiveDnsRecordReferenceRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.http.ReferenceRequestBody; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection Reference Request. + */ +public class PassiveDnsRecordCollectionReferenceRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordCollectionReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordCollectionResponse.class, PassiveDnsRecordCollectionWithReferencesPage.class, PassiveDnsRecordCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionReferenceRequest 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 PassiveDnsRecordCollectionReferenceRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the sort clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionReferenceRequest 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 PassiveDnsRecordCollectionReferenceRequest 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 PassiveDnsRecordCollectionReferenceRequest 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 PassiveDnsRecordCollectionReferenceRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionReferenceRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionReferenceRequestBuilder.java new file mode 100644 index 00000000000..e77505ca288 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionReferenceRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionReferenceRequestBuilder.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.Host; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionReferenceRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection Reference Request Builder. + */ +public class PassiveDnsRecordCollectionReferenceRequestBuilder extends BaseCollectionReferenceRequestBuilder { + + /** + * The request builder for this collection of PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordCollectionReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordReferenceRequestBuilder.class, PassiveDnsRecordCollectionReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionRequest.java new file mode 100644 index 00000000000..716be3ad1c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.PassiveDnsRecord; +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.security.requests.PassiveDnsRecordCollectionResponse; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection Request. + */ +public class PassiveDnsRecordCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordCollectionResponse.class, PassiveDnsRecordCollectionPage.class, PassiveDnsRecordCollectionRequestBuilder.class); + } + + /** + * Creates a new PassiveDnsRecord + * @param newPassiveDnsRecord the PassiveDnsRecord to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final PassiveDnsRecord newPassiveDnsRecord) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new PassiveDnsRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newPassiveDnsRecord); + } + + /** + * Creates a new PassiveDnsRecord + * @param newPassiveDnsRecord the PassiveDnsRecord to create + * @return the newly created object + */ + @Nonnull + public PassiveDnsRecord post(@Nonnull final PassiveDnsRecord newPassiveDnsRecord) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new PassiveDnsRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newPassiveDnsRecord); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionRequest 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 PassiveDnsRecordCollectionRequest 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 PassiveDnsRecordCollectionRequest 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 PassiveDnsRecordCollectionRequest 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 PassiveDnsRecordCollectionRequest 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 PassiveDnsRecordCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionRequest 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 PassiveDnsRecordCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionRequestBuilder.java new file mode 100644 index 00000000000..4847268408c --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequest; +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 Passive Dns Record Collection Request Builder. + */ +public class PassiveDnsRecordCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordRequestBuilder.class, PassiveDnsRecordCollectionRequest.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/security/requests/PassiveDnsRecordCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionResponse.java new file mode 100644 index 00000000000..ff213dc53b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.PassiveDnsRecord; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection Response. + */ +public class PassiveDnsRecordCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesPage.java new file mode 100644 index 00000000000..00dfc28e029 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesPage.java @@ -0,0 +1,52 @@ +// Template Source: BaseEntityCollectionWithReferencesPage.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.Host; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesPage; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionResponse; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection With References Page. + */ +public class PassiveDnsRecordCollectionWithReferencesPage extends BaseCollectionPage { + + /** + * A collection page for PassiveDnsRecord + * + * @param response the serialized PassiveDnsRecordCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public PassiveDnsRecordCollectionWithReferencesPage(@Nonnull final PassiveDnsRecordCollectionResponse response, @Nullable final PassiveDnsRecordCollectionWithReferencesRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } + + /** + * Creates the collection page for PassiveDnsRecord + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public PassiveDnsRecordCollectionWithReferencesPage(@Nonnull final java.util.List pageContents, @Nullable final PassiveDnsRecordCollectionWithReferencesRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesRequest.java new file mode 100644 index 00000000000..becb3f631fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesRequest.java @@ -0,0 +1,128 @@ +// Template Source: BaseEntityCollectionWithReferencesRequest.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.Host; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.models.PassiveDnsRecord; +import com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequest; +import com.microsoft.graph.security.requests.PassiveDnsRecordReferenceRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequest; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequest; +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection With References Request. + */ +public class PassiveDnsRecordCollectionWithReferencesRequest extends BaseCollectionWithReferencesRequest { + + /** + * The request builder for this collection of PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordCollectionWithReferencesRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordCollectionResponse.class, PassiveDnsRecordCollectionWithReferencesPage.class, PassiveDnsRecordCollectionWithReferencesRequestBuilder.class); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionWithReferencesRequest 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 PassiveDnsRecordCollectionWithReferencesRequest 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 PassiveDnsRecordCollectionWithReferencesRequest 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 PassiveDnsRecordCollectionWithReferencesRequest 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 PassiveDnsRecordCollectionWithReferencesRequest 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 PassiveDnsRecordCollectionWithReferencesRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordCollectionWithReferencesRequest count() { + addCountOption(true); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesRequestBuilder.java new file mode 100644 index 00000000000..a535fb010af --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/PassiveDnsRecordCollectionWithReferencesRequestBuilder.java @@ -0,0 +1,37 @@ +// Template Source: BaseEntityCollectionWithReferencesRequestBuilder.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.Host; +import com.microsoft.graph.security.models.PassiveDnsRecord; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Passive Dns Record Collection With References Request Builder. + */ +public class PassiveDnsRecordCollectionWithReferencesRequestBuilder extends BaseCollectionWithReferencesRequestBuilder { + + /** + * The request builder for this collection of Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordCollectionWithReferencesRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordReferenceRequestBuilder.class, PassiveDnsRecordCollectionReferenceRequest.class, PassiveDnsRecordCollectionReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionPage.java new file mode 100644 index 00000000000..7a981e3263f --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.Vulnerability; +import com.microsoft.graph.security.requests.VulnerabilityCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.VulnerabilityCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Vulnerability Collection Page. + */ +public class VulnerabilityCollectionPage extends BaseCollectionPage { + + /** + * A collection page for Vulnerability + * + * @param response the serialized VulnerabilityCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public VulnerabilityCollectionPage(@Nonnull final VulnerabilityCollectionResponse response, @Nonnull final VulnerabilityCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for Vulnerability + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VulnerabilityCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VulnerabilityCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionRequest.java new file mode 100644 index 00000000000..4bdc576479b --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.Vulnerability; +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.security.requests.VulnerabilityCollectionResponse; +import com.microsoft.graph.security.requests.VulnerabilityCollectionRequestBuilder; +import com.microsoft.graph.security.requests.VulnerabilityCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Vulnerability Collection Request. + */ +public class VulnerabilityCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of Vulnerability + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VulnerabilityCollectionResponse.class, VulnerabilityCollectionPage.class, VulnerabilityCollectionRequestBuilder.class); + } + + /** + * Creates a new Vulnerability + * @param newVulnerability the Vulnerability to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Vulnerability newVulnerability) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VulnerabilityRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newVulnerability); + } + + /** + * Creates a new Vulnerability + * @param newVulnerability the Vulnerability to create + * @return the newly created object + */ + @Nonnull + public Vulnerability post(@Nonnull final Vulnerability newVulnerability) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VulnerabilityRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newVulnerability); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public VulnerabilityCollectionRequest 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 VulnerabilityCollectionRequest 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 VulnerabilityCollectionRequest 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 VulnerabilityCollectionRequest 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 VulnerabilityCollectionRequest 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 VulnerabilityCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VulnerabilityCollectionRequest 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 VulnerabilityCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VulnerabilityCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionRequestBuilder.java new file mode 100644 index 00000000000..8c0d03683df --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ThreatIntelligence; +import com.microsoft.graph.security.models.Vulnerability; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.VulnerabilityCollectionRequestBuilder; +import com.microsoft.graph.security.requests.VulnerabilityRequestBuilder; +import com.microsoft.graph.security.requests.VulnerabilityCollectionRequest; +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 Vulnerability Collection Request Builder. + */ +public class VulnerabilityCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VulnerabilityRequestBuilder.class, VulnerabilityCollectionRequest.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/security/requests/VulnerabilityCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionResponse.java new file mode 100644 index 00000000000..c02bc75ce74 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.Vulnerability; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Vulnerability Collection Response. + */ +public class VulnerabilityCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionPage.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionPage.java new file mode 100644 index 00000000000..799372e0bcc --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionPage.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.security.requests; +import com.microsoft.graph.security.models.VulnerabilityComponent; +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Vulnerability Component Collection Page. + */ +public class VulnerabilityComponentCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VulnerabilityComponent + * + * @param response the serialized VulnerabilityComponentCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public VulnerabilityComponentCollectionPage(@Nonnull final VulnerabilityComponentCollectionResponse response, @Nonnull final VulnerabilityComponentCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VulnerabilityComponent + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VulnerabilityComponentCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VulnerabilityComponentCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionRequest.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionRequest.java new file mode 100644 index 00000000000..6f4c2c2f5a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Vulnerability; +import com.microsoft.graph.security.models.VulnerabilityComponent; +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.security.requests.VulnerabilityComponentCollectionResponse; +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequestBuilder; +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Vulnerability Component Collection Request. + */ +public class VulnerabilityComponentCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of VulnerabilityComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityComponentCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VulnerabilityComponentCollectionResponse.class, VulnerabilityComponentCollectionPage.class, VulnerabilityComponentCollectionRequestBuilder.class); + } + + /** + * Creates a new VulnerabilityComponent + * @param newVulnerabilityComponent the VulnerabilityComponent to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VulnerabilityComponent newVulnerabilityComponent) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VulnerabilityComponentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newVulnerabilityComponent); + } + + /** + * Creates a new VulnerabilityComponent + * @param newVulnerabilityComponent the VulnerabilityComponent to create + * @return the newly created object + */ + @Nonnull + public VulnerabilityComponent post(@Nonnull final VulnerabilityComponent newVulnerabilityComponent) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VulnerabilityComponentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newVulnerabilityComponent); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public VulnerabilityComponentCollectionRequest 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 VulnerabilityComponentCollectionRequest 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 VulnerabilityComponentCollectionRequest 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 VulnerabilityComponentCollectionRequest 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 VulnerabilityComponentCollectionRequest 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 VulnerabilityComponentCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VulnerabilityComponentCollectionRequest 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 VulnerabilityComponentCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VulnerabilityComponentCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionRequestBuilder.java new file mode 100644 index 00000000000..37bbd11ea09 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Vulnerability; +import com.microsoft.graph.security.models.VulnerabilityComponent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequestBuilder; +import com.microsoft.graph.security.requests.VulnerabilityComponentRequestBuilder; +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequest; +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 Vulnerability Component Collection Request Builder. + */ +public class VulnerabilityComponentCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Vulnerability + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityComponentCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VulnerabilityComponentRequestBuilder.class, VulnerabilityComponentCollectionRequest.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/security/requests/VulnerabilityComponentCollectionResponse.java b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionResponse.java new file mode 100644 index 00000000000..c4b126e8c10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/security/requests/VulnerabilityComponentCollectionResponse.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.security.requests; +import com.microsoft.graph.security.models.VulnerabilityComponent; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Vulnerability Component Collection Response. + */ +public class VulnerabilityComponentCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/Article.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Article.java new file mode 100644 index 00000000000..ca9cf380f99 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Article.java @@ -0,0 +1,124 @@ +// 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.FormattedContent; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionPage; + + +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 Article. + */ +public class Article extends Entity implements IJsonBackedObject { + + + /** + * The Body. + * Formatted article contents. + */ + @SerializedName(value = "body", alternate = {"Body"}) + @Expose + @Nullable + public FormattedContent body; + + /** + * The Created Date Time. + * The date and time when this article was created. 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 = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Image Url. + * URL of the header image for this article, used for display purposes. + */ + @SerializedName(value = "imageUrl", alternate = {"ImageUrl"}) + @Expose + @Nullable + public String imageUrl; + + /** + * The Is Featured. + * Indicates whether this article is currently featured by Microsoft. + */ + @SerializedName(value = "isFeatured", alternate = {"IsFeatured"}) + @Expose + @Nullable + public Boolean isFeatured; + + /** + * The Last Updated Date Time. + * The most recent date and time when this article was updated. 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 = "lastUpdatedDateTime", alternate = {"LastUpdatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastUpdatedDateTime; + + /** + * The Summary. + * A quick summary of this article. + */ + @SerializedName(value = "summary", alternate = {"Summary"}) + @Expose + @Nullable + public FormattedContent summary; + + /** + * The Tags. + * Tags for this article, communicating keywords, or key concepts. + */ + @SerializedName(value = "tags", alternate = {"Tags"}) + @Expose + @Nullable + public java.util.List tags; + + /** + * The Title. + * The title of this article. + */ + @SerializedName(value = "title", alternate = {"Title"}) + @Expose + @Nullable + public String title; + + /** + * The Indicators. + * Indicators related to this article. + */ + @Nullable + public com.microsoft.graph.security.requests.ArticleIndicatorCollectionPage indicators; + + + /** + * 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("indicators")) { + indicators = serializer.deserializeObject(json.get("indicators"), com.microsoft.graph.security.requests.ArticleIndicatorCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ArticleIndicator.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ArticleIndicator.java new file mode 100644 index 00000000000..b2242cc1d14 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ArticleIndicator.java @@ -0,0 +1,38 @@ +// 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.security.models.Indicator; + + +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 Article Indicator. + */ +public class ArticleIndicator extends Indicator implements IJsonBackedObject { + + + + /** + * 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/Artifact.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Artifact.java new file mode 100644 index 00000000000..6e77e581c1b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Artifact.java @@ -0,0 +1,38 @@ +// 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.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 Artifact. + */ +public class Artifact extends Entity implements IJsonBackedObject { + + + + /** + * 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/AutonomousSystem.java b/src/main/java/com/microsoft/graph/securitynamespace/models/AutonomousSystem.java new file mode 100644 index 00000000000..d6ffaf6916e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/AutonomousSystem.java @@ -0,0 +1,86 @@ +// 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 Autonomous System. + */ +public class AutonomousSystem 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 Name. + * The name of the autonomous system. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Number. + * The autonomous system number, assigned by IANA. + */ + @SerializedName(value = "number", alternate = {"Number"}) + @Expose + @Nullable + public Integer number; + + /** + * The Organization. + * The name of the autonomous system organization. + */ + @SerializedName(value = "organization", alternate = {"Organization"}) + @Expose + @Nullable + public String organization; + + /** + * The Value. + * A displayable value for these autonomous system details. + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public String value; + + + /** + * 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/ContentFormat.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ContentFormat.java new file mode 100644 index 00000000000..9c4bbda0eb8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ContentFormat.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 Content Format. +*/ +public enum ContentFormat +{ + /** + * text + */ + TEXT, + /** + * html + */ + HTML, + /** + * markdown + */ + MARKDOWN, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ContentFormat values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/CvssSummary.java b/src/main/java/com/microsoft/graph/securitynamespace/models/CvssSummary.java new file mode 100644 index 00000000000..d7f0e76d0fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/CvssSummary.java @@ -0,0 +1,78 @@ +// 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.security.models.VulnerabilitySeverity; + + +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 Cvss Summary. + */ +public class CvssSummary 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 Score. + * The CVSS score about this vulnerability. + */ + @SerializedName(value = "score", alternate = {"Score"}) + @Expose + @Nullable + public Double score; + + /** + * The Severity. + * The CVSS severity rating for this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public VulnerabilitySeverity severity; + + /** + * The Vector String. + * The CVSS vector string for this vulnerability. + */ + @SerializedName(value = "vectorString", alternate = {"VectorString"}) + @Expose + @Nullable + public String vectorString; + + + /** + * 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/DynamicColumnValue.java b/src/main/java/com/microsoft/graph/securitynamespace/models/DynamicColumnValue.java new file mode 100644 index 00000000000..e9fd31869d2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/DynamicColumnValue.java @@ -0,0 +1,51 @@ +// 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; +import java.util.HashMap; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Dynamic Column Value. + */ +public class DynamicColumnValue 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; + } + + + /** + * 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/FormattedContent.java b/src/main/java/com/microsoft/graph/securitynamespace/models/FormattedContent.java new file mode 100644 index 00000000000..71275e60320 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/FormattedContent.java @@ -0,0 +1,69 @@ +// 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.security.models.ContentFormat; + + +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 Formatted Content. + */ +public class FormattedContent 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 Content. + * The content of this formattedContent. + */ + @SerializedName(value = "content", alternate = {"Content"}) + @Expose + @Nullable + public String content; + + /** + * The Format. + * The format of the content. The possible values are: text, html, markdown, unknownFutureValue. + */ + @SerializedName(value = "format", alternate = {"Format"}) + @Expose + @Nullable + public ContentFormat format; + + + /** + * 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/Host.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java new file mode 100644 index 00000000000..8f085661feb --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Host.java @@ -0,0 +1,125 @@ +// 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.HostReputation; +import com.microsoft.graph.security.models.Artifact; +import com.microsoft.graph.security.requests.HostComponentCollectionPage; +import com.microsoft.graph.security.requests.HostCookieCollectionPage; +import com.microsoft.graph.security.requests.HostTrackerCollectionPage; + + +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 Host. + */ +public class Host extends Artifact implements IJsonBackedObject { + + + /** + * The First Seen Date Time. + * The first date and time this host was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * The most recent date and time when this host was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Components. + * The hostComponents that are associated with this host. + */ + @Nullable + public com.microsoft.graph.security.requests.HostComponentCollectionPage components; + + /** + * The Cookies. + * The hostCookies that are associated with this host. + */ + @Nullable + public com.microsoft.graph.security.requests.HostCookieCollectionPage cookies; + + /** + * The Passive Dns. + * Passive DNS retrieval about this host. + */ + @Nullable + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage passiveDns; + + /** + * The Passive Dns Reverse. + * Reverse passive DNS retrieval about this host. + */ + @Nullable + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage passiveDnsReverse; + + /** + * The Reputation. + * Represents a calculated reputation of this host. + */ + @SerializedName(value = "reputation", alternate = {"Reputation"}) + @Expose + @Nullable + public HostReputation reputation; + + /** + * The Trackers. + * The hostTrackers that are associated with this host. + */ + @Nullable + public com.microsoft.graph.security.requests.HostTrackerCollectionPage trackers; + + + /** + * 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("components")) { + components = serializer.deserializeObject(json.get("components"), com.microsoft.graph.security.requests.HostComponentCollectionPage.class); + } + + if (json.has("cookies")) { + cookies = serializer.deserializeObject(json.get("cookies"), com.microsoft.graph.security.requests.HostCookieCollectionPage.class); + } + + if (json.has("passiveDns")) { + passiveDns = serializer.deserializeObject(json.get("passiveDns"), com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage.class); + } + + if (json.has("passiveDnsReverse")) { + passiveDnsReverse = serializer.deserializeObject(json.get("passiveDnsReverse"), com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage.class); + } + + if (json.has("trackers")) { + trackers = serializer.deserializeObject(json.get("trackers"), com.microsoft.graph.security.requests.HostTrackerCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.java new file mode 100644 index 00000000000..b366c56a473 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostComponent.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.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.security.models.Host; +import com.microsoft.graph.security.models.Artifact; + + +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 Host Component. + */ +public class HostComponent extends Artifact implements IJsonBackedObject { + + + /** + * The Category. + * The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server). + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public String category; + + /** + * The First Seen Date Time. + * The first date and time when Microsoft Defender Threat Intelligence observed this web component. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * The most recent date and time when Microsoft Defender Threat Intelligence observed this web component. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Name. + * A name running on the artifact, for example, Microsoft IIS. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Version. + * The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical. + */ + @SerializedName(value = "version", alternate = {"Version"}) + @Expose + @Nullable + public String version; + + /** + * The Host. + * The host related to this component. This is a reverse navigation property. When navigating to components from a host, this should be assumed to be a return reference. + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + + /** + * 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/HostCookie.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostCookie.java new file mode 100644 index 00000000000..f7e32bf4b7d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostCookie.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.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.security.models.Host; +import com.microsoft.graph.security.models.Artifact; + + +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 Host Cookie. + */ +public class HostCookie extends Artifact implements IJsonBackedObject { + + + /** + * The Domain. + * The URI for which the cookie is valid. + */ + @SerializedName(value = "domain", alternate = {"Domain"}) + @Expose + @Nullable + public String domain; + + /** + * The First Seen Date Time. + * The first date and time when this hostCookie was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * The most recent date and time when this hostCookie was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Name. + * The name of the cookie, for example, JSESSIONID or SEARCH_NAMESITE. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Host. + * Indicates that a cookie of this name and domain was found related to this host. + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + + /** + * 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/HostReputation.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputation.java new file mode 100644 index 00000000000..f25db1f9b65 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputation.java @@ -0,0 +1,68 @@ +// 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.HostReputationClassification; +import com.microsoft.graph.security.models.HostReputationRule; +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 Host Reputation. + */ +public class HostReputation extends Entity implements IJsonBackedObject { + + + /** + * The Classification. + * The calculated reputation of the host. The possible values are: unknown, neutral, suspicious, malicious, unknownFutureValue. + */ + @SerializedName(value = "classification", alternate = {"Classification"}) + @Expose + @Nullable + public HostReputationClassification classification; + + /** + * The Rules. + * A collection of rules that have been used to calculate the classification and score. + */ + @SerializedName(value = "rules", alternate = {"Rules"}) + @Expose + @Nullable + public java.util.List rules; + + /** + * The Score. + * The calculated score (0-100) of the requested host. A higher value indicates that this host is more likely to be suspicious or malicious. + */ + @SerializedName(value = "score", alternate = {"Score"}) + @Expose + @Nullable + public Integer score; + + + /** + * 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/HostReputationClassification.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationClassification.java new file mode 100644 index 00000000000..21201b3b387 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationClassification.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 Host Reputation Classification. +*/ +public enum HostReputationClassification +{ + /** + * unknown + */ + UNKNOWN, + /** + * neutral + */ + NEUTRAL, + /** + * suspicious + */ + SUSPICIOUS, + /** + * malicious + */ + MALICIOUS, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For HostReputationClassification values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationRule.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationRule.java new file mode 100644 index 00000000000..e1688016e34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationRule.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.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.security.models.HostReputationRuleSeverity; + + +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 Host Reputation Rule. + */ +public class HostReputationRule 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 Description. + * The description of the rule that gives more context. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public String description; + + /** + * The Name. + * The name of the rule. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Related Details Url. + * Link to a web page with details related to this rule. + */ + @SerializedName(value = "relatedDetailsUrl", alternate = {"RelatedDetailsUrl"}) + @Expose + @Nullable + public String relatedDetailsUrl; + + /** + * The Severity. + * Indicates the severity that this rule has against the reputation score. The possible values are: unknown, low, medium, high, unknownFutureValue. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public HostReputationRuleSeverity severity; + + + /** + * 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/HostReputationRuleSeverity.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationRuleSeverity.java new file mode 100644 index 00000000000..86db0f95ad6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostReputationRuleSeverity.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 Host Reputation Rule Severity. +*/ +public enum HostReputationRuleSeverity +{ + /** + * unknown + */ + UNKNOWN, + /** + * low + */ + LOW, + /** + * medium + */ + MEDIUM, + /** + * high + */ + HIGH, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For HostReputationRuleSeverity values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/HostTracker.java b/src/main/java/com/microsoft/graph/securitynamespace/models/HostTracker.java new file mode 100644 index 00000000000..47b3d7ab516 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/HostTracker.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.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.security.models.Host; +import com.microsoft.graph.security.models.Artifact; + + +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 Host Tracker. + */ +public class HostTracker extends Artifact implements IJsonBackedObject { + + + /** + * The First Seen Date Time. + * The first date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Kind. + * The kind of hostTracker that was detected. For example, GoogleAnalyticsID or JarmHash. + */ + @SerializedName(value = "kind", alternate = {"Kind"}) + @Expose + @Nullable + public String kind; + + /** + * The Last Seen Date Time. + * The most recent date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Value. + * The identification value for the hostTracker. + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public String value; + + /** + * The Host. + * The host related to this hostTracker. When navigating to a hostTracker from a host, this should be assumed to be a return reference. + */ + @SerializedName(value = "host", alternate = {"Host"}) + @Expose + @Nullable + public Host host; + + + /** + * 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/Hostname.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Hostname.java new file mode 100644 index 00000000000..a52e2d6f144 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Hostname.java @@ -0,0 +1,56 @@ +// 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.security.models.Host; + + +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 Hostname. + */ +public class Hostname extends Host implements IJsonBackedObject { + + + /** + * The Registrant. + * The company or individual who registered this hostname, from WHOIS data. + */ + @SerializedName(value = "registrant", alternate = {"Registrant"}) + @Expose + @Nullable + public String registrant; + + /** + * The Registrar. + * The registrar for this hostname, from WHOIS data. + */ + @SerializedName(value = "registrar", alternate = {"Registrar"}) + @Expose + @Nullable + public String registrar; + + + /** + * 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/Hyperlink.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Hyperlink.java new file mode 100644 index 00000000000..8c976c61d00 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Hyperlink.java @@ -0,0 +1,68 @@ +// 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 Hyperlink. + */ +public class Hyperlink 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 Name. + * The name for this hyperlink. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Url. + * The URL for this hyperlink. + */ + @SerializedName(value = "url", alternate = {"Url"}) + @Expose + @Nullable + public String url; + + + /** + * 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/Indicator.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Indicator.java new file mode 100644 index 00000000000..2873fb6b4f1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Indicator.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.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.security.models.IndicatorSource; +import com.microsoft.graph.security.models.Artifact; +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 Indicator. + */ +public class Indicator extends Entity implements IJsonBackedObject { + + + /** + * The Source. + * The source that provides this indicator. The possible values are: microsoftDefenderThreatIntelligence, openSourceIntelligence, public, unknownFutureValue. + */ + @SerializedName(value = "source", alternate = {"Source"}) + @Expose + @Nullable + public IndicatorSource source; + + /** + * The Artifact. + * The artifact related to this indicator. + */ + @SerializedName(value = "artifact", alternate = {"Artifact"}) + @Expose + @Nullable + public Artifact artifact; + + + /** + * 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/IndicatorSource.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IndicatorSource.java new file mode 100644 index 00000000000..13f759dc6ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IndicatorSource.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 Indicator Source. +*/ +public enum IndicatorSource +{ + /** + * microsoft + */ + MICROSOFT, + /** + * osint + */ + OSINT, + /** + * public + */ + PUBLIC, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For IndicatorSource values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfile.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfile.java new file mode 100644 index 00000000000..2d03aa0f590 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfile.java @@ -0,0 +1,135 @@ +// 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.IntelligenceProfileCountryOrRegionOfOrigin; +import com.microsoft.graph.security.models.FormattedContent; +import com.microsoft.graph.security.models.IntelligenceProfileKind; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage; + + +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 Intelligence Profile. + */ +public class IntelligenceProfile extends Entity implements IJsonBackedObject { + + + /** + * The Aliases. + * A list of commonly-known aliases for the threat intelligence included in the intelligenceProfile. + */ + @SerializedName(value = "aliases", alternate = {"Aliases"}) + @Expose + @Nullable + public java.util.List aliases; + + /** + * The Countries Or Regions Of Origin. + * The country/region of origin for the given actor or threat associated with this intelligenceProfile. + */ + @SerializedName(value = "countriesOrRegionsOfOrigin", alternate = {"CountriesOrRegionsOfOrigin"}) + @Expose + @Nullable + public java.util.List countriesOrRegionsOfOrigin; + + /** + * The Description. + * A synopsis of the threat actor. This property places the threat actor in wider context, tracing its discovery, history, significant campaigns, targeting, techniques of note, affiliations with governments, law enforcement countermeasures, and any areas of dispute among the security community regarding attribution. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public FormattedContent description; + + /** + * The First Active Date Time. + * The date and time when this intelligenceProfile was first active. 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 = "firstActiveDateTime", alternate = {"FirstActiveDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstActiveDateTime; + + /** + * The Kind. + * A categorization of the type of this intelligenceProfile. The possible values are: actor, tool, unknownFutureValue. + */ + @SerializedName(value = "kind", alternate = {"Kind"}) + @Expose + @Nullable + public IntelligenceProfileKind kind; + + /** + * The Summary. + * A short summary of this intelligenceProfile. + */ + @SerializedName(value = "summary", alternate = {"Summary"}) + @Expose + @Nullable + public FormattedContent summary; + + /** + * The Targets. + * Known targets related to this intelligenceProfile. + */ + @SerializedName(value = "targets", alternate = {"Targets"}) + @Expose + @Nullable + public java.util.List targets; + + /** + * The Title. + * The title of this intelligenceProfile. + */ + @SerializedName(value = "title", alternate = {"Title"}) + @Expose + @Nullable + public String title; + + /** + * The Tradecraft. + * Formatted information featuring a description of the distinctive tactics, techniques, and procedures (TTP) of the group, followed by a list of all known custom, commodity, and publicly available implants used by the group. + */ + @SerializedName(value = "tradecraft", alternate = {"Tradecraft"}) + @Expose + @Nullable + public FormattedContent tradecraft; + + /** + * The Indicators. + * Includes an assemblage of high-fidelity network indicators of compromise. + */ + @Nullable + public com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage indicators; + + + /** + * 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("indicators")) { + indicators = serializer.deserializeObject(json.get("indicators"), com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java new file mode 100644 index 00000000000..00318c4fc13 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileCountryOrRegionOfOrigin.java @@ -0,0 +1,68 @@ +// 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 Intelligence Profile Country Or Region Of Origin. + */ +public class IntelligenceProfileCountryOrRegionOfOrigin 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 Code. + * A codified representation for this country/region of origin. + */ + @SerializedName(value = "code", alternate = {"Code"}) + @Expose + @Nullable + public String code; + + /** + * The Label. + * A display label for this ountry/region of origin. + */ + @SerializedName(value = "label", alternate = {"Label"}) + @Expose + @Nullable + public String label; + + + /** + * 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/IntelligenceProfileIndicator.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileIndicator.java new file mode 100644 index 00000000000..a8f11883517 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileIndicator.java @@ -0,0 +1,56 @@ +// 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.security.models.Indicator; + + +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 Intelligence Profile Indicator. + */ +public class IntelligenceProfileIndicator extends Indicator implements IJsonBackedObject { + + + /** + * The First Seen Date Time. + * Designate when an artifact was first used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly. + */ + @SerializedName(value = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly. + */ + @SerializedName(value = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + + /** + * 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/IntelligenceProfileKind.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileKind.java new file mode 100644 index 00000000000..3b70f809e3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IntelligenceProfileKind.java @@ -0,0 +1,30 @@ +// 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 Intelligence Profile Kind. +*/ +public enum IntelligenceProfileKind +{ + /** + * actor + */ + ACTOR, + /** + * tool + */ + TOOL, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For IntelligenceProfileKind values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/IpAddress.java b/src/main/java/com/microsoft/graph/securitynamespace/models/IpAddress.java new file mode 100644 index 00000000000..587a3966832 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/IpAddress.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.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.security.models.AutonomousSystem; +import com.microsoft.graph.security.models.Host; + + +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 Ip Address. + */ +public class IpAddress extends Host implements IJsonBackedObject { + + + /** + * The Autonomous System. + * The details about the autonomous system to which this IP address belongs. + */ + @SerializedName(value = "autonomousSystem", alternate = {"AutonomousSystem"}) + @Expose + @Nullable + public AutonomousSystem autonomousSystem; + + /** + * The Country Or Region. + * The country or region for this IP address. + */ + @SerializedName(value = "countryOrRegion", alternate = {"CountryOrRegion"}) + @Expose + @Nullable + public String countryOrRegion; + + /** + * The Hosting Provider. + * The hosting company listed for this host. + */ + @SerializedName(value = "hostingProvider", alternate = {"HostingProvider"}) + @Expose + @Nullable + public String hostingProvider; + + /** + * The Netblock. + * The block of IP addresses this IP address belongs to. + */ + @SerializedName(value = "netblock", alternate = {"Netblock"}) + @Expose + @Nullable + public String netblock; + + + /** + * 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/PassiveDnsRecord.java b/src/main/java/com/microsoft/graph/securitynamespace/models/PassiveDnsRecord.java new file mode 100644 index 00000000000..e3c3acc6d06 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/PassiveDnsRecord.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.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.security.models.Artifact; +import com.microsoft.graph.security.models.Host; + + +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 Passive Dns Record. + */ +public class PassiveDnsRecord extends Artifact implements IJsonBackedObject { + + + /** + * The Collected Date Time. + * The date and time that this passiveDnsRecord entry was collected by Microsoft. 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 = "collectedDateTime", alternate = {"CollectedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime collectedDateTime; + + /** + * The First Seen Date Time. + * The date and time when this passiveDnsRecord entry was first seen. 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 = "firstSeenDateTime", alternate = {"FirstSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime firstSeenDateTime; + + /** + * The Last Seen Date Time. + * The date and time when this passiveDnsRecord entry was most recently seen. 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 = "lastSeenDateTime", alternate = {"LastSeenDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastSeenDateTime; + + /** + * The Record Type. + * The DNS record type for this passiveDnsRecord entry. + */ + @SerializedName(value = "recordType", alternate = {"RecordType"}) + @Expose + @Nullable + public String recordType; + + /** + * The Artifact. + * The artifact related to this passiveDnsRecord entry. + */ + @SerializedName(value = "artifact", alternate = {"Artifact"}) + @Expose + @Nullable + public Artifact artifact; + + /** + * The Parent Host. + * The parent host related to this passiveDnsRecord entry. Generally, this is the value that you can search to discover this passiveDnsRecord value. + */ + @SerializedName(value = "parentHost", alternate = {"ParentHost"}) + @Expose + @Nullable + public Host parentHost; + + + /** + * 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/ProcessEvidence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ProcessEvidence.java index 2f0929584c2..987f20cfeab 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/ProcessEvidence.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ProcessEvidence.java @@ -57,7 +57,7 @@ public class ProcessEvidence extends AlertEvidence implements IJsonBackedObject /** * The Parent Process Creation Date Time. - * Date and time when the parent of the process was created. + * Date and time when the parent of the process was created. 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 = "parentProcessCreationDateTime", alternate = {"ParentProcessCreationDateTime"}) @Expose @@ -93,7 +93,7 @@ public class ProcessEvidence extends AlertEvidence implements IJsonBackedObject /** * The Process Creation Date Time. - * Date and time the process was created. + * Date and time when the process was created. 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 = "processCreationDateTime", alternate = {"ProcessCreationDateTime"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java new file mode 100644 index 00000000000..c389a055d36 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/ThreatIntelligence.java @@ -0,0 +1,179 @@ +// 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.models.Entity; +import com.microsoft.graph.security.requests.ArticleIndicatorCollectionPage; +import com.microsoft.graph.security.requests.ArticleCollectionPage; +import com.microsoft.graph.security.requests.HostComponentCollectionPage; +import com.microsoft.graph.security.requests.HostCookieCollectionPage; +import com.microsoft.graph.security.requests.HostCollectionPage; +import com.microsoft.graph.security.requests.HostTrackerCollectionPage; +import com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage; +import com.microsoft.graph.security.requests.IntelligenceProfileCollectionPage; +import com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage; +import com.microsoft.graph.security.requests.VulnerabilityCollectionPage; + + +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 Threat Intelligence. + */ +public class ThreatIntelligence extends Entity implements IJsonBackedObject { + + + /** + * The Article Indicators. + * Refers to indicators of threat or compromise highlighted in an microsoft.graph.security.article.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "articleIndicators", alternate = {"ArticleIndicators"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.ArticleIndicatorCollectionPage articleIndicators; + + /** + * The Articles. + * A list of article objects. + */ + @SerializedName(value = "articles", alternate = {"Articles"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.ArticleCollectionPage articles; + + /** + * The Host Components. + * Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "hostComponents", alternate = {"HostComponents"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostComponentCollectionPage hostComponents; + + /** + * The Host Cookies. + * Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "hostCookies", alternate = {"HostCookies"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostCookieCollectionPage hostCookies; + + /** + * The Hosts. + * Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "hosts", alternate = {"Hosts"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostCollectionPage hosts; + + /** + * The Host Trackers. + * Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "hostTrackers", alternate = {"HostTrackers"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.HostTrackerCollectionPage hostTrackers; + + /** + * The Intelligence Profile Indicators. + * + */ + @SerializedName(value = "intelligenceProfileIndicators", alternate = {"IntelligenceProfileIndicators"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage intelligenceProfileIndicators; + + /** + * The Intel Profiles. + * A list of intelligenceProfile objects. + */ + @SerializedName(value = "intelProfiles", alternate = {"IntelProfiles"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.IntelligenceProfileCollectionPage intelProfiles; + + /** + * The Passive Dns Records. + * Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "passiveDnsRecords", alternate = {"PassiveDnsRecords"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage passiveDnsRecords; + + /** + * The Vulnerabilities. + * Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported. + */ + @SerializedName(value = "vulnerabilities", alternate = {"Vulnerabilities"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.VulnerabilityCollectionPage vulnerabilities; + + + /** + * 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("articleIndicators")) { + articleIndicators = serializer.deserializeObject(json.get("articleIndicators"), com.microsoft.graph.security.requests.ArticleIndicatorCollectionPage.class); + } + + if (json.has("articles")) { + articles = serializer.deserializeObject(json.get("articles"), com.microsoft.graph.security.requests.ArticleCollectionPage.class); + } + + if (json.has("hostComponents")) { + hostComponents = serializer.deserializeObject(json.get("hostComponents"), com.microsoft.graph.security.requests.HostComponentCollectionPage.class); + } + + if (json.has("hostCookies")) { + hostCookies = serializer.deserializeObject(json.get("hostCookies"), com.microsoft.graph.security.requests.HostCookieCollectionPage.class); + } + + if (json.has("hosts")) { + hosts = serializer.deserializeObject(json.get("hosts"), com.microsoft.graph.security.requests.HostCollectionPage.class); + } + + if (json.has("hostTrackers")) { + hostTrackers = serializer.deserializeObject(json.get("hostTrackers"), com.microsoft.graph.security.requests.HostTrackerCollectionPage.class); + } + + if (json.has("intelligenceProfileIndicators")) { + intelligenceProfileIndicators = serializer.deserializeObject(json.get("intelligenceProfileIndicators"), com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionPage.class); + } + + if (json.has("intelProfiles")) { + intelProfiles = serializer.deserializeObject(json.get("intelProfiles"), com.microsoft.graph.security.requests.IntelligenceProfileCollectionPage.class); + } + + if (json.has("passiveDnsRecords")) { + passiveDnsRecords = serializer.deserializeObject(json.get("passiveDnsRecords"), com.microsoft.graph.security.requests.PassiveDnsRecordCollectionPage.class); + } + + if (json.has("vulnerabilities")) { + vulnerabilities = serializer.deserializeObject(json.get("vulnerabilities"), com.microsoft.graph.security.requests.VulnerabilityCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/UnclassifiedArtifact.java b/src/main/java/com/microsoft/graph/securitynamespace/models/UnclassifiedArtifact.java new file mode 100644 index 00000000000..f22461dba4d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/UnclassifiedArtifact.java @@ -0,0 +1,56 @@ +// 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.security.models.Artifact; + + +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 Unclassified Artifact. + */ +public class UnclassifiedArtifact extends Artifact implements IJsonBackedObject { + + + /** + * The Kind. + * The kind for this unclassifiedArtifact resource, describing what this value means. + */ + @SerializedName(value = "kind", alternate = {"Kind"}) + @Expose + @Nullable + public String kind; + + /** + * The Value. + * The value for this unclassifiedArtifact. + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public String value; + + + /** + * 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/Vulnerability.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Vulnerability.java new file mode 100644 index 00000000000..d5ee215fa2f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Vulnerability.java @@ -0,0 +1,204 @@ +// 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.CvssSummary; +import com.microsoft.graph.security.models.FormattedContent; +import com.microsoft.graph.security.models.Hyperlink; +import com.microsoft.graph.security.models.VulnerabilitySeverity; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.security.requests.ArticleCollectionPage; +import com.microsoft.graph.security.requests.VulnerabilityComponentCollectionPage; + + +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 Vulnerability. + */ +public class Vulnerability extends Entity implements IJsonBackedObject { + + + /** + * The Active Exploits Observed. + * Indicates whether this vulnerability has any known exploits associated to known bad actors. + */ + @SerializedName(value = "activeExploitsObserved", alternate = {"ActiveExploitsObserved"}) + @Expose + @Nullable + public Boolean activeExploitsObserved; + + /** + * The Common Weakness Enumeration Ids. + * Community-defined common weakness enumerations (CWE). + */ + @SerializedName(value = "commonWeaknessEnumerationIds", alternate = {"CommonWeaknessEnumerationIds"}) + @Expose + @Nullable + public java.util.List commonWeaknessEnumerationIds; + + /** + * The Created Date Time. + * The date and time when this vulnerability article was first created. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Cvss2Summary. + * A summary of the common vulnerability scoring system (v2) findings about this vulnerability. + */ + @SerializedName(value = "cvss2Summary", alternate = {"Cvss2Summary"}) + @Expose + @Nullable + public CvssSummary cvss2Summary; + + /** + * The Cvss3Summary. + * A summary of the common vulnerability scoring system (v3) findings about this vulnerability. + */ + @SerializedName(value = "cvss3Summary", alternate = {"Cvss3Summary"}) + @Expose + @Nullable + public CvssSummary cvss3Summary; + + /** + * The Description. + * The vulnerability article contents, describing the vulnerability. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public FormattedContent description; + + /** + * The Exploits. + * Known exploits for this vulnerability. + */ + @SerializedName(value = "exploits", alternate = {"Exploits"}) + @Expose + @Nullable + public java.util.List exploits; + + /** + * The Exploits Available. + * Indicates whether this vulnerability has exploits in public sources (such as Packetstorm or Exploit-DB) online. + */ + @SerializedName(value = "exploitsAvailable", alternate = {"ExploitsAvailable"}) + @Expose + @Nullable + public Boolean exploitsAvailable; + + /** + * The Has Chatter. + * Indicates whether chatter about this vulnerability has been discovered online. + */ + @SerializedName(value = "hasChatter", alternate = {"HasChatter"}) + @Expose + @Nullable + public Boolean hasChatter; + + /** + * The Last Modified Date Time. + * The date and time when this vulnerability article was most recently updated. + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Priority Score. + * A unique algorithm that reflects the priority of a vulnerability based on the CVSS score, exploits, chatter, and linkage to malware. This property also evaluates the recency of these components so users can understand which vulnerability should be remediated first. + */ + @SerializedName(value = "priorityScore", alternate = {"PriorityScore"}) + @Expose + @Nullable + public Integer priorityScore; + + /** + * The Published Date Time. + * The date and time when this vulnerability article was published. + */ + @SerializedName(value = "publishedDateTime", alternate = {"PublishedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime publishedDateTime; + + /** + * The References. + * Reference links where further information can be learned about this vulnerability. + */ + @SerializedName(value = "references", alternate = {"References"}) + @Expose + @Nullable + public java.util.List references; + + /** + * The Remediation. + * Any known remediation steps. + */ + @SerializedName(value = "remediation", alternate = {"Remediation"}) + @Expose + @Nullable + public FormattedContent remediation; + + /** + * The Severity. + * Indicates the severity of this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public VulnerabilitySeverity severity; + + /** + * The Articles. + * Articles related to this vulnerability. + */ + @Nullable + public com.microsoft.graph.security.requests.ArticleCollectionPage articles; + + /** + * The Components. + * Components related to this vulnerability article. + */ + @SerializedName(value = "components", alternate = {"Components"}) + @Expose + @Nullable + public com.microsoft.graph.security.requests.VulnerabilityComponentCollectionPage components; + + + /** + * 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("articles")) { + articles = serializer.deserializeObject(json.get("articles"), com.microsoft.graph.security.requests.ArticleCollectionPage.class); + } + + if (json.has("components")) { + components = serializer.deserializeObject(json.get("components"), com.microsoft.graph.security.requests.VulnerabilityComponentCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/VulnerabilityComponent.java b/src/main/java/com/microsoft/graph/securitynamespace/models/VulnerabilityComponent.java new file mode 100644 index 00000000000..60dd6754a53 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/VulnerabilityComponent.java @@ -0,0 +1,47 @@ +// 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.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 Vulnerability Component. + */ +public class VulnerabilityComponent extends Entity implements IJsonBackedObject { + + + /** + * The Name. + * The name of this vulnerability component. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + + /** + * 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/VulnerabilitySeverity.java b/src/main/java/com/microsoft/graph/securitynamespace/models/VulnerabilitySeverity.java new file mode 100644 index 00000000000..f0f9230bfdc --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/VulnerabilitySeverity.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.security.models; + + +/** + * The Enum Vulnerability Severity. +*/ +public enum VulnerabilitySeverity +{ + /** + * none + */ + NONE, + /** + * low + */ + LOW, + /** + * medium + */ + MEDIUM, + /** + * high + */ + HIGH, + /** + * critical + */ + CRITICAL, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For VulnerabilitySeverity values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorReferenceRequest.java new file mode 100644 index 00000000000..a491f5d653b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.ArticleIndicator; +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 Article Indicator Reference Request. + */ +public class ArticleIndicatorReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicator.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorReferenceRequest 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 ArticleIndicatorReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the ArticleIndicator + * + * @param srcArticleIndicator the ArticleIndicator reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ArticleIndicator srcArticleIndicator) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/articleIndicators/" + srcArticleIndicator.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the ArticleIndicator + * + * @param srcArticleIndicator the ArticleIndicator reference to PUT + * @return the ArticleIndicator + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public ArticleIndicator put(@Nonnull final ArticleIndicator srcArticleIndicator) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/articleIndicators/" + srcArticleIndicator.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorReferenceRequestBuilder.java new file mode 100644 index 00000000000..453877e3e74 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ArticleIndicator; +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 Article Indicator Reference Request Builder. + */ +public class ArticleIndicatorReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorRequest.java new file mode 100644 index 00000000000..1c3c498219c --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorRequest.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.ArticleIndicator; +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 Article Indicator Request. + */ +public class ArticleIndicatorRequest extends BaseRequest { + + /** + * The request for the ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicator.class); + } + + /** + * Gets the ArticleIndicator from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ArticleIndicator from the service + * + * @return the ArticleIndicator from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ArticleIndicator 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 ArticleIndicator delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ArticleIndicator with a source + * + * @param sourceArticleIndicator the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ArticleIndicator sourceArticleIndicator) { + return sendAsync(HttpMethod.PATCH, sourceArticleIndicator); + } + + /** + * Patches this ArticleIndicator with a source + * + * @param sourceArticleIndicator the source object with updates + * @return the updated ArticleIndicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ArticleIndicator patch(@Nonnull final ArticleIndicator sourceArticleIndicator) throws ClientException { + return send(HttpMethod.PATCH, sourceArticleIndicator); + } + + /** + * Creates a ArticleIndicator with a new object + * + * @param newArticleIndicator the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ArticleIndicator newArticleIndicator) { + return sendAsync(HttpMethod.POST, newArticleIndicator); + } + + /** + * Creates a ArticleIndicator with a new object + * + * @param newArticleIndicator the new object to create + * @return the created ArticleIndicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ArticleIndicator post(@Nonnull final ArticleIndicator newArticleIndicator) throws ClientException { + return send(HttpMethod.POST, newArticleIndicator); + } + + /** + * Creates a ArticleIndicator with a new object + * + * @param newArticleIndicator the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ArticleIndicator newArticleIndicator) { + return sendAsync(HttpMethod.PUT, newArticleIndicator); + } + + /** + * Creates a ArticleIndicator with a new object + * + * @param newArticleIndicator the object to create/update + * @return the created ArticleIndicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ArticleIndicator put(@Nonnull final ArticleIndicator newArticleIndicator) throws ClientException { + return send(HttpMethod.PUT, newArticleIndicator); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorRequest 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 ArticleIndicatorRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorRequestBuilder.java new file mode 100644 index 00000000000..fd9755d30de --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ArticleIndicator; +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 Article Indicator Request Builder. + */ +public class ArticleIndicatorRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorRequestBuilder(@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 ArticleIndicatorRequest instance + */ + @Nonnull + public ArticleIndicatorRequest 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 ArticleIndicatorRequest instance + */ + @Nonnull + public ArticleIndicatorRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.ArticleIndicatorRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Artifact + * + * @return the ArtifactWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder artifact() { + return new com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("artifact"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorWithReferenceRequest.java new file mode 100644 index 00000000000..6b9a36fcc07 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ArticleIndicator; +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 Article Indicator With Reference Request. + */ +public class ArticleIndicatorWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicator.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArticleIndicatorWithReferenceRequest 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 ArticleIndicatorWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..13a78055f3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleIndicatorWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.ArticleIndicator; +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 Article Indicator With Reference Request Builder. + */ +public class ArticleIndicatorWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the ArticleIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleIndicatorWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleIndicatorWithReferenceRequest.class, ArticleIndicatorReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleReferenceRequest.java new file mode 100644 index 00000000000..3deaeee85da --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.Article; +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 Article Reference Request. + */ +public class ArticleReferenceRequest extends BaseReferenceRequest
{ + + /** + * The request for the Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Article.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArticleReferenceRequest 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 ArticleReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the Article + * + * @param srcArticle the Article reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture
putAsync(@Nonnull final Article srcArticle) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/articles/" + srcArticle.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the Article + * + * @param srcArticle the Article reference to PUT + * @return the Article + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Article put(@Nonnull final Article srcArticle) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/articles/" + srcArticle.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleReferenceRequestBuilder.java new file mode 100644 index 00000000000..da2f5d51311 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Article; +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 Article Reference Request Builder. + */ +public class ArticleReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleRequest.java new file mode 100644 index 00000000000..e665cda478a --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleRequest.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.Article; +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 Article Request. + */ +public class ArticleRequest extends BaseRequest
{ + + /** + * The request for the Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Article.class); + } + + /** + * Gets the Article from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture
getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Article from the service + * + * @return the Article from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Article 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 Article delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Article with a source + * + * @param sourceArticle the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture
patchAsync(@Nonnull final Article sourceArticle) { + return sendAsync(HttpMethod.PATCH, sourceArticle); + } + + /** + * Patches this Article with a source + * + * @param sourceArticle the source object with updates + * @return the updated Article + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Article patch(@Nonnull final Article sourceArticle) throws ClientException { + return send(HttpMethod.PATCH, sourceArticle); + } + + /** + * Creates a Article with a new object + * + * @param newArticle the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture
postAsync(@Nonnull final Article newArticle) { + return sendAsync(HttpMethod.POST, newArticle); + } + + /** + * Creates a Article with a new object + * + * @param newArticle the new object to create + * @return the created Article + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Article post(@Nonnull final Article newArticle) throws ClientException { + return send(HttpMethod.POST, newArticle); + } + + /** + * Creates a Article with a new object + * + * @param newArticle the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture
putAsync(@Nonnull final Article newArticle) { + return sendAsync(HttpMethod.PUT, newArticle); + } + + /** + * Creates a Article with a new object + * + * @param newArticle the object to create/update + * @return the created Article + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Article put(@Nonnull final Article newArticle) throws ClientException { + return send(HttpMethod.PUT, newArticle); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArticleRequest 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 ArticleRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleRequestBuilder.java new file mode 100644 index 00000000000..085b0402d07 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleRequestBuilder.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.Article; +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 Article Request Builder. + */ +public class ArticleRequestBuilder extends BaseRequestBuilder
{ + + /** + * The request builder for the Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleRequestBuilder(@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 ArticleRequest instance + */ + @Nonnull + public ArticleRequest 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 ArticleRequest instance + */ + @Nonnull + public ArticleRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.ArticleRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the ArticleIndicator collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequestBuilder indicators() { + return new com.microsoft.graph.security.requests.ArticleIndicatorCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("indicators"), getClient(), null); + } + + /** + * Gets a request builder for the ArticleIndicator item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleIndicatorWithReferenceRequestBuilder indicators(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.ArticleIndicatorWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("indicators") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleWithReferenceRequest.java new file mode 100644 index 00000000000..16d3577da57 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Article; +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 Article With Reference Request. + */ +public class ArticleWithReferenceRequest extends BaseWithReferenceRequest
{ + + /** + * The request for the Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Article.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArticleWithReferenceRequest 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 ArticleWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..682f3c3259e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArticleWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Article; +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 Article With Reference Request Builder. + */ +public class ArticleWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Article + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArticleWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArticleWithReferenceRequest.class, ArticleReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactReferenceRequest.java new file mode 100644 index 00000000000..b1f2e0b8ea9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Artifact; +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 Artifact Reference Request. + */ +public class ArtifactReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArtifactReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Artifact.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArtifactReferenceRequest 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 ArtifactReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactReferenceRequestBuilder.java new file mode 100644 index 00000000000..a1f677ca62e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Artifact; +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 Artifact Reference Request Builder. + */ +public class ArtifactReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArtifactReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArtifactReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactRequest.java new file mode 100644 index 00000000000..d5f4d14bd7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactRequest.java @@ -0,0 +1,188 @@ +// 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.Artifact; +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 Artifact Request. + */ +public class ArtifactRequest extends BaseRequest { + + /** + * The request for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public ArtifactRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArtifactRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Artifact.class); + } + + /** + * Gets the Artifact from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Artifact from the service + * + * @return the Artifact from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Artifact 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 Artifact delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Artifact with a source + * + * @param sourceArtifact the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Artifact sourceArtifact) { + return sendAsync(HttpMethod.PATCH, sourceArtifact); + } + + /** + * Patches this Artifact with a source + * + * @param sourceArtifact the source object with updates + * @return the updated Artifact + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Artifact patch(@Nonnull final Artifact sourceArtifact) throws ClientException { + return send(HttpMethod.PATCH, sourceArtifact); + } + + /** + * Creates a Artifact with a new object + * + * @param newArtifact the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Artifact newArtifact) { + return sendAsync(HttpMethod.POST, newArtifact); + } + + /** + * Creates a Artifact with a new object + * + * @param newArtifact the new object to create + * @return the created Artifact + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Artifact post(@Nonnull final Artifact newArtifact) throws ClientException { + return send(HttpMethod.POST, newArtifact); + } + + /** + * Creates a Artifact with a new object + * + * @param newArtifact the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Artifact newArtifact) { + return sendAsync(HttpMethod.PUT, newArtifact); + } + + /** + * Creates a Artifact with a new object + * + * @param newArtifact the object to create/update + * @return the created Artifact + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Artifact put(@Nonnull final Artifact newArtifact) throws ClientException { + return send(HttpMethod.PUT, newArtifact); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArtifactRequest 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 ArtifactRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactRequestBuilder.java new file mode 100644 index 00000000000..0548f7d5033 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Artifact; +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 Artifact Request Builder. + */ +public class ArtifactRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArtifactRequestBuilder(@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 ArtifactRequest instance + */ + @Nonnull + public ArtifactRequest 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 ArtifactRequest instance + */ + @Nonnull + public ArtifactRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.ArtifactRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactWithReferenceRequest.java new file mode 100644 index 00000000000..c484b882f34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Artifact; +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 Artifact With Reference Request. + */ +public class ArtifactWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArtifactWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Artifact.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ArtifactWithReferenceRequest 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 ArtifactWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..436b270f9c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ArtifactWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Artifact; +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 Artifact With Reference Request Builder. + */ +public class ArtifactWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Artifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ArtifactWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ArtifactWithReferenceRequest.class, ArtifactReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequest.java new file mode 100644 index 00000000000..0bf3c38b072 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.HostComponent; +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 Host Component Reference Request. + */ +public class HostComponentReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponent.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostComponentReferenceRequest 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 HostComponentReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the HostComponent + * + * @param srcHostComponent the HostComponent reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostComponent srcHostComponent) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostComponents/" + srcHostComponent.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the HostComponent + * + * @param srcHostComponent the HostComponent reference to PUT + * @return the HostComponent + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public HostComponent put(@Nonnull final HostComponent srcHostComponent) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostComponents/" + srcHostComponent.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequestBuilder.java new file mode 100644 index 00000000000..75aade28b4c --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostComponent; +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 Host Component Reference Request Builder. + */ +public class HostComponentReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentRequest.java new file mode 100644 index 00000000000..0cceee3e355 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentRequest.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.HostComponent; +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 Host Component Request. + */ +public class HostComponentRequest extends BaseRequest { + + /** + * The request for the HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponent.class); + } + + /** + * Gets the HostComponent from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostComponent from the service + * + * @return the HostComponent from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostComponent 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 HostComponent delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostComponent with a source + * + * @param sourceHostComponent the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostComponent sourceHostComponent) { + return sendAsync(HttpMethod.PATCH, sourceHostComponent); + } + + /** + * Patches this HostComponent with a source + * + * @param sourceHostComponent the source object with updates + * @return the updated HostComponent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostComponent patch(@Nonnull final HostComponent sourceHostComponent) throws ClientException { + return send(HttpMethod.PATCH, sourceHostComponent); + } + + /** + * Creates a HostComponent with a new object + * + * @param newHostComponent the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostComponent newHostComponent) { + return sendAsync(HttpMethod.POST, newHostComponent); + } + + /** + * Creates a HostComponent with a new object + * + * @param newHostComponent the new object to create + * @return the created HostComponent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostComponent post(@Nonnull final HostComponent newHostComponent) throws ClientException { + return send(HttpMethod.POST, newHostComponent); + } + + /** + * Creates a HostComponent with a new object + * + * @param newHostComponent the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostComponent newHostComponent) { + return sendAsync(HttpMethod.PUT, newHostComponent); + } + + /** + * Creates a HostComponent with a new object + * + * @param newHostComponent the object to create/update + * @return the created HostComponent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostComponent put(@Nonnull final HostComponent newHostComponent) throws ClientException { + return send(HttpMethod.PUT, newHostComponent); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostComponentRequest 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 HostComponentRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentRequestBuilder.java new file mode 100644 index 00000000000..49c181a9605 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostComponent; +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 Host Component Request Builder. + */ +public class HostComponentRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentRequestBuilder(@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 HostComponentRequest instance + */ + @Nonnull + public HostComponentRequest 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 HostComponentRequest instance + */ + @Nonnull + public HostComponentRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostComponentRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder host() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("host"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentWithReferenceRequest.java new file mode 100644 index 00000000000..50ea8ade6f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostComponent; +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 Host Component With Reference Request. + */ +public class HostComponentWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponent.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostComponentWithReferenceRequest 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 HostComponentWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..bfbe3413506 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostComponentWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostComponent; +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 Host Component With Reference Request Builder. + */ +public class HostComponentWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the HostComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostComponentWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostComponentWithReferenceRequest.class, HostComponentReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java new file mode 100644 index 00000000000..811bf609e6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.HostCookie; +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 Host Cookie Reference Request. + */ +public class HostCookieReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookie.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostCookieReferenceRequest 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 HostCookieReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the HostCookie + * + * @param srcHostCookie the HostCookie reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostCookie srcHostCookie) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostCookies/" + srcHostCookie.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the HostCookie + * + * @param srcHostCookie the HostCookie reference to PUT + * @return the HostCookie + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public HostCookie put(@Nonnull final HostCookie srcHostCookie) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostCookies/" + srcHostCookie.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequestBuilder.java new file mode 100644 index 00000000000..8239012588d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostCookie; +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 Host Cookie Reference Request Builder. + */ +public class HostCookieReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieRequest.java new file mode 100644 index 00000000000..a4fece6e9a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieRequest.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.HostCookie; +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 Host Cookie Request. + */ +public class HostCookieRequest extends BaseRequest { + + /** + * The request for the HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookie.class); + } + + /** + * Gets the HostCookie from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostCookie from the service + * + * @return the HostCookie from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostCookie 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 HostCookie delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostCookie with a source + * + * @param sourceHostCookie the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostCookie sourceHostCookie) { + return sendAsync(HttpMethod.PATCH, sourceHostCookie); + } + + /** + * Patches this HostCookie with a source + * + * @param sourceHostCookie the source object with updates + * @return the updated HostCookie + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostCookie patch(@Nonnull final HostCookie sourceHostCookie) throws ClientException { + return send(HttpMethod.PATCH, sourceHostCookie); + } + + /** + * Creates a HostCookie with a new object + * + * @param newHostCookie the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostCookie newHostCookie) { + return sendAsync(HttpMethod.POST, newHostCookie); + } + + /** + * Creates a HostCookie with a new object + * + * @param newHostCookie the new object to create + * @return the created HostCookie + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostCookie post(@Nonnull final HostCookie newHostCookie) throws ClientException { + return send(HttpMethod.POST, newHostCookie); + } + + /** + * Creates a HostCookie with a new object + * + * @param newHostCookie the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostCookie newHostCookie) { + return sendAsync(HttpMethod.PUT, newHostCookie); + } + + /** + * Creates a HostCookie with a new object + * + * @param newHostCookie the object to create/update + * @return the created HostCookie + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostCookie put(@Nonnull final HostCookie newHostCookie) throws ClientException { + return send(HttpMethod.PUT, newHostCookie); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostCookieRequest 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 HostCookieRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieRequestBuilder.java new file mode 100644 index 00000000000..6a6092f551b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostCookie; +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 Host Cookie Request Builder. + */ +public class HostCookieRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieRequestBuilder(@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 HostCookieRequest instance + */ + @Nonnull + public HostCookieRequest 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 HostCookieRequest instance + */ + @Nonnull + public HostCookieRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostCookieRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder host() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("host"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieWithReferenceRequest.java new file mode 100644 index 00000000000..7fb5fb658c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostCookie; +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 Host Cookie With Reference Request. + */ +public class HostCookieWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookie.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostCookieWithReferenceRequest 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 HostCookieWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..4b1ca5550d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostCookieWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostCookie; +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 Host Cookie With Reference Request Builder. + */ +public class HostCookieWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the HostCookie + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostCookieWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostCookieWithReferenceRequest.class, HostCookieReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.java new file mode 100644 index 00000000000..0d1209b8eb6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +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 Host Reference Request. + */ +public class HostReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Host.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostReferenceRequest 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 HostReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequestBuilder.java new file mode 100644 index 00000000000..7ad9bcdf511 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +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 Host Reference Request Builder. + */ +public class HostReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReputationRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReputationRequest.java new file mode 100644 index 00000000000..25ef42d2bd7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReputationRequest.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.HostReputation; +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 Host Reputation Request. + */ +public class HostReputationRequest extends BaseRequest { + + /** + * The request for the HostReputation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostReputationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostReputation.class); + } + + /** + * Gets the HostReputation from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostReputation from the service + * + * @return the HostReputation from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostReputation 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 HostReputation delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostReputation with a source + * + * @param sourceHostReputation the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostReputation sourceHostReputation) { + return sendAsync(HttpMethod.PATCH, sourceHostReputation); + } + + /** + * Patches this HostReputation with a source + * + * @param sourceHostReputation the source object with updates + * @return the updated HostReputation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostReputation patch(@Nonnull final HostReputation sourceHostReputation) throws ClientException { + return send(HttpMethod.PATCH, sourceHostReputation); + } + + /** + * Creates a HostReputation with a new object + * + * @param newHostReputation the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostReputation newHostReputation) { + return sendAsync(HttpMethod.POST, newHostReputation); + } + + /** + * Creates a HostReputation with a new object + * + * @param newHostReputation the new object to create + * @return the created HostReputation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostReputation post(@Nonnull final HostReputation newHostReputation) throws ClientException { + return send(HttpMethod.POST, newHostReputation); + } + + /** + * Creates a HostReputation with a new object + * + * @param newHostReputation the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostReputation newHostReputation) { + return sendAsync(HttpMethod.PUT, newHostReputation); + } + + /** + * Creates a HostReputation with a new object + * + * @param newHostReputation the object to create/update + * @return the created HostReputation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostReputation put(@Nonnull final HostReputation newHostReputation) throws ClientException { + return send(HttpMethod.PUT, newHostReputation); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostReputationRequest 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 HostReputationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReputationRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReputationRequestBuilder.java new file mode 100644 index 00000000000..b30f3c2f3fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostReputationRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostReputation; +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 Host Reputation Request Builder. + */ +public class HostReputationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostReputation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostReputationRequestBuilder(@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 HostReputationRequest instance + */ + @Nonnull + public HostReputationRequest 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 HostReputationRequest instance + */ + @Nonnull + public HostReputationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostReputationRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequest.java new file mode 100644 index 00000000000..c493560ed74 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequest.java @@ -0,0 +1,188 @@ +// 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.Host; +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 Host Request. + */ +public class HostRequest extends BaseRequest { + + /** + * The request for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public HostRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Host.class); + } + + /** + * Gets the Host from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Host from the service + * + * @return the Host from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Host 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 Host delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Host with a source + * + * @param sourceHost the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Host sourceHost) { + return sendAsync(HttpMethod.PATCH, sourceHost); + } + + /** + * Patches this Host with a source + * + * @param sourceHost the source object with updates + * @return the updated Host + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Host patch(@Nonnull final Host sourceHost) throws ClientException { + return send(HttpMethod.PATCH, sourceHost); + } + + /** + * Creates a Host with a new object + * + * @param newHost the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Host newHost) { + return sendAsync(HttpMethod.POST, newHost); + } + + /** + * Creates a Host with a new object + * + * @param newHost the new object to create + * @return the created Host + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Host post(@Nonnull final Host newHost) throws ClientException { + return send(HttpMethod.POST, newHost); + } + + /** + * Creates a Host with a new object + * + * @param newHost the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Host newHost) { + return sendAsync(HttpMethod.PUT, newHost); + } + + /** + * Creates a Host with a new object + * + * @param newHost the object to create/update + * @return the created Host + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Host put(@Nonnull final Host newHost) throws ClientException { + return send(HttpMethod.PUT, newHost); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostRequest 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 HostRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java new file mode 100644 index 00000000000..3ed9bf9a01f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostRequestBuilder.java @@ -0,0 +1,169 @@ +// 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.Host; +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 Host Request Builder. + */ +public class HostRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostRequestBuilder(@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 HostRequest instance + */ + @Nonnull + public HostRequest 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 HostRequest instance + */ + @Nonnull + public HostRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the HostComponent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder components() { + return new com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("components"), getClient(), null); + } + + /** + * Gets a request builder for the HostComponent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder components(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("components") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the HostCookie collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder cookies() { + return new com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("cookies"), getClient(), null); + } + + /** + * Gets a request builder for the HostCookie item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder cookies(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("cookies") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder passiveDns() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDns"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDns(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDns") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder passiveDnsReverse() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDnsReverse(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for HostReputation + * + * @return the HostReputationRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostReputationRequestBuilder reputation() { + return new com.microsoft.graph.security.requests.HostReputationRequestBuilder(getRequestUrlWithAdditionalSegment("reputation"), getClient(), null); + } + /** + * Gets a request builder for the HostTracker collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder trackers() { + return new com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("trackers"), getClient(), null); + } + + /** + * Gets a request builder for the HostTracker item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder trackers(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("trackers") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java new file mode 100644 index 00000000000..568a1c9f9df --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.HostTracker; +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 Host Tracker Reference Request. + */ +public class HostTrackerReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTracker.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostTrackerReferenceRequest 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 HostTrackerReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the HostTracker + * + * @param srcHostTracker the HostTracker reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostTracker srcHostTracker) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostTrackers/" + srcHostTracker.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the HostTracker + * + * @param srcHostTracker the HostTracker reference to PUT + * @return the HostTracker + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public HostTracker put(@Nonnull final HostTracker srcHostTracker) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/hostTrackers/" + srcHostTracker.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequestBuilder.java new file mode 100644 index 00000000000..23a16f7f19f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostTracker; +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 Host Tracker Reference Request Builder. + */ +public class HostTrackerReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerRequest.java new file mode 100644 index 00000000000..b79ecf9358a --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerRequest.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.HostTracker; +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 Host Tracker Request. + */ +public class HostTrackerRequest extends BaseRequest { + + /** + * The request for the HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTracker.class); + } + + /** + * Gets the HostTracker from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the HostTracker from the service + * + * @return the HostTracker from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostTracker 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 HostTracker delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this HostTracker with a source + * + * @param sourceHostTracker the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final HostTracker sourceHostTracker) { + return sendAsync(HttpMethod.PATCH, sourceHostTracker); + } + + /** + * Patches this HostTracker with a source + * + * @param sourceHostTracker the source object with updates + * @return the updated HostTracker + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostTracker patch(@Nonnull final HostTracker sourceHostTracker) throws ClientException { + return send(HttpMethod.PATCH, sourceHostTracker); + } + + /** + * Creates a HostTracker with a new object + * + * @param newHostTracker the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final HostTracker newHostTracker) { + return sendAsync(HttpMethod.POST, newHostTracker); + } + + /** + * Creates a HostTracker with a new object + * + * @param newHostTracker the new object to create + * @return the created HostTracker + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostTracker post(@Nonnull final HostTracker newHostTracker) throws ClientException { + return send(HttpMethod.POST, newHostTracker); + } + + /** + * Creates a HostTracker with a new object + * + * @param newHostTracker the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final HostTracker newHostTracker) { + return sendAsync(HttpMethod.PUT, newHostTracker); + } + + /** + * Creates a HostTracker with a new object + * + * @param newHostTracker the object to create/update + * @return the created HostTracker + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public HostTracker put(@Nonnull final HostTracker newHostTracker) throws ClientException { + return send(HttpMethod.PUT, newHostTracker); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostTrackerRequest 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 HostTrackerRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerRequestBuilder.java new file mode 100644 index 00000000000..7f03f3129c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostTracker; +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 Host Tracker Request Builder. + */ +public class HostTrackerRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerRequestBuilder(@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 HostTrackerRequest instance + */ + @Nonnull + public HostTrackerRequest 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 HostTrackerRequest instance + */ + @Nonnull + public HostTrackerRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostTrackerRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder host() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("host"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerWithReferenceRequest.java new file mode 100644 index 00000000000..c0fe91b2126 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostTracker; +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 Host Tracker With Reference Request. + */ +public class HostTrackerWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTracker.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostTrackerWithReferenceRequest 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 HostTrackerWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..8137d5ee67b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostTrackerWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.HostTracker; +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 Host Tracker With Reference Request Builder. + */ +public class HostTrackerWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the HostTracker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostTrackerWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostTrackerWithReferenceRequest.class, HostTrackerReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostWithReferenceRequest.java new file mode 100644 index 00000000000..edfc67d83c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +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 Host With Reference Request. + */ +public class HostWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Host.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostWithReferenceRequest 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 HostWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..df47b05ba81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Host; +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 Host With Reference Request Builder. + */ +public class HostWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the Host + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, HostWithReferenceRequest.class, HostReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequest.java new file mode 100644 index 00000000000..9b2ded07ecc --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequest.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.Hostname; +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 Hostname Request. + */ +public class HostnameRequest extends BaseRequest { + + /** + * The request for the Hostname + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostnameRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Hostname.class); + } + + /** + * Gets the Hostname from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Hostname from the service + * + * @return the Hostname from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Hostname 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 Hostname delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Hostname with a source + * + * @param sourceHostname the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Hostname sourceHostname) { + return sendAsync(HttpMethod.PATCH, sourceHostname); + } + + /** + * Patches this Hostname with a source + * + * @param sourceHostname the source object with updates + * @return the updated Hostname + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Hostname patch(@Nonnull final Hostname sourceHostname) throws ClientException { + return send(HttpMethod.PATCH, sourceHostname); + } + + /** + * Creates a Hostname with a new object + * + * @param newHostname the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Hostname newHostname) { + return sendAsync(HttpMethod.POST, newHostname); + } + + /** + * Creates a Hostname with a new object + * + * @param newHostname the new object to create + * @return the created Hostname + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Hostname post(@Nonnull final Hostname newHostname) throws ClientException { + return send(HttpMethod.POST, newHostname); + } + + /** + * Creates a Hostname with a new object + * + * @param newHostname the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Hostname newHostname) { + return sendAsync(HttpMethod.PUT, newHostname); + } + + /** + * Creates a Hostname with a new object + * + * @param newHostname the object to create/update + * @return the created Hostname + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Hostname put(@Nonnull final Hostname newHostname) throws ClientException { + return send(HttpMethod.PUT, newHostname); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public HostnameRequest 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 HostnameRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java new file mode 100644 index 00000000000..9468e34df2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/HostnameRequestBuilder.java @@ -0,0 +1,169 @@ +// 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.Hostname; +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 Hostname Request Builder. + */ +public class HostnameRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Hostname + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public HostnameRequestBuilder(@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 HostnameRequest instance + */ + @Nonnull + public HostnameRequest 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 HostnameRequest instance + */ + @Nonnull + public HostnameRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.HostnameRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the HostComponent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder components() { + return new com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("components"), getClient(), null); + } + + /** + * Gets a request builder for the HostComponent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder components(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("components") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the HostCookie collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder cookies() { + return new com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("cookies"), getClient(), null); + } + + /** + * Gets a request builder for the HostCookie item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder cookies(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("cookies") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder passiveDns() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDns"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDns(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDns") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder passiveDnsReverse() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDnsReverse(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for HostReputation + * + * @return the HostReputationRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostReputationRequestBuilder reputation() { + return new com.microsoft.graph.security.requests.HostReputationRequestBuilder(getRequestUrlWithAdditionalSegment("reputation"), getClient(), null); + } + /** + * Gets a request builder for the HostTracker collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder trackers() { + return new com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("trackers"), getClient(), null); + } + + /** + * Gets a request builder for the HostTracker item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder trackers(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("trackers") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IndicatorRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IndicatorRequest.java new file mode 100644 index 00000000000..850fb2a9862 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IndicatorRequest.java @@ -0,0 +1,188 @@ +// 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.Indicator; +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 Indicator Request. + */ +public class IndicatorRequest extends BaseRequest { + + /** + * The request for the Indicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public IndicatorRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the Indicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IndicatorRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Indicator.class); + } + + /** + * Gets the Indicator from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Indicator from the service + * + * @return the Indicator from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Indicator 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 Indicator delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Indicator with a source + * + * @param sourceIndicator the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Indicator sourceIndicator) { + return sendAsync(HttpMethod.PATCH, sourceIndicator); + } + + /** + * Patches this Indicator with a source + * + * @param sourceIndicator the source object with updates + * @return the updated Indicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Indicator patch(@Nonnull final Indicator sourceIndicator) throws ClientException { + return send(HttpMethod.PATCH, sourceIndicator); + } + + /** + * Creates a Indicator with a new object + * + * @param newIndicator the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Indicator newIndicator) { + return sendAsync(HttpMethod.POST, newIndicator); + } + + /** + * Creates a Indicator with a new object + * + * @param newIndicator the new object to create + * @return the created Indicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Indicator post(@Nonnull final Indicator newIndicator) throws ClientException { + return send(HttpMethod.POST, newIndicator); + } + + /** + * Creates a Indicator with a new object + * + * @param newIndicator the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Indicator newIndicator) { + return sendAsync(HttpMethod.PUT, newIndicator); + } + + /** + * Creates a Indicator with a new object + * + * @param newIndicator the object to create/update + * @return the created Indicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Indicator put(@Nonnull final Indicator newIndicator) throws ClientException { + return send(HttpMethod.PUT, newIndicator); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public IndicatorRequest 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 IndicatorRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IndicatorRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IndicatorRequestBuilder.java new file mode 100644 index 00000000000..4296fcabaae --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IndicatorRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.Indicator; +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 Indicator Request Builder. + */ +public class IndicatorRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Indicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IndicatorRequestBuilder(@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 IndicatorRequest instance + */ + @Nonnull + public IndicatorRequest 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 IndicatorRequest instance + */ + @Nonnull + public IndicatorRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.IndicatorRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Artifact + * + * @return the ArtifactWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder artifact() { + return new com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("artifact"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorReferenceRequest.java new file mode 100644 index 00000000000..3aeb79c1bfe --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.IntelligenceProfileIndicator; +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 Intelligence Profile Indicator Reference Request. + */ +public class IntelligenceProfileIndicatorReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicator.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorReferenceRequest 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 IntelligenceProfileIndicatorReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the IntelligenceProfileIndicator + * + * @param srcIntelligenceProfileIndicator the IntelligenceProfileIndicator reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final IntelligenceProfileIndicator srcIntelligenceProfileIndicator) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/intelligenceProfileIndicators/" + srcIntelligenceProfileIndicator.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the IntelligenceProfileIndicator + * + * @param srcIntelligenceProfileIndicator the IntelligenceProfileIndicator reference to PUT + * @return the IntelligenceProfileIndicator + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public IntelligenceProfileIndicator put(@Nonnull final IntelligenceProfileIndicator srcIntelligenceProfileIndicator) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/intelligenceProfileIndicators/" + srcIntelligenceProfileIndicator.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorReferenceRequestBuilder.java new file mode 100644 index 00000000000..090e229ea7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +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 Intelligence Profile Indicator Reference Request Builder. + */ +public class IntelligenceProfileIndicatorReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorRequest.java new file mode 100644 index 00000000000..f1248496376 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorRequest.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.IntelligenceProfileIndicator; +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 Intelligence Profile Indicator Request. + */ +public class IntelligenceProfileIndicatorRequest extends BaseRequest { + + /** + * The request for the IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicator.class); + } + + /** + * Gets the IntelligenceProfileIndicator from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the IntelligenceProfileIndicator from the service + * + * @return the IntelligenceProfileIndicator from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfileIndicator 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 IntelligenceProfileIndicator delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this IntelligenceProfileIndicator with a source + * + * @param sourceIntelligenceProfileIndicator the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final IntelligenceProfileIndicator sourceIntelligenceProfileIndicator) { + return sendAsync(HttpMethod.PATCH, sourceIntelligenceProfileIndicator); + } + + /** + * Patches this IntelligenceProfileIndicator with a source + * + * @param sourceIntelligenceProfileIndicator the source object with updates + * @return the updated IntelligenceProfileIndicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfileIndicator patch(@Nonnull final IntelligenceProfileIndicator sourceIntelligenceProfileIndicator) throws ClientException { + return send(HttpMethod.PATCH, sourceIntelligenceProfileIndicator); + } + + /** + * Creates a IntelligenceProfileIndicator with a new object + * + * @param newIntelligenceProfileIndicator the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final IntelligenceProfileIndicator newIntelligenceProfileIndicator) { + return sendAsync(HttpMethod.POST, newIntelligenceProfileIndicator); + } + + /** + * Creates a IntelligenceProfileIndicator with a new object + * + * @param newIntelligenceProfileIndicator the new object to create + * @return the created IntelligenceProfileIndicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfileIndicator post(@Nonnull final IntelligenceProfileIndicator newIntelligenceProfileIndicator) throws ClientException { + return send(HttpMethod.POST, newIntelligenceProfileIndicator); + } + + /** + * Creates a IntelligenceProfileIndicator with a new object + * + * @param newIntelligenceProfileIndicator the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final IntelligenceProfileIndicator newIntelligenceProfileIndicator) { + return sendAsync(HttpMethod.PUT, newIntelligenceProfileIndicator); + } + + /** + * Creates a IntelligenceProfileIndicator with a new object + * + * @param newIntelligenceProfileIndicator the object to create/update + * @return the created IntelligenceProfileIndicator + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfileIndicator put(@Nonnull final IntelligenceProfileIndicator newIntelligenceProfileIndicator) throws ClientException { + return send(HttpMethod.PUT, newIntelligenceProfileIndicator); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorRequest 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 IntelligenceProfileIndicatorRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorRequestBuilder.java new file mode 100644 index 00000000000..0cbdb1ee7a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +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 Intelligence Profile Indicator Request Builder. + */ +public class IntelligenceProfileIndicatorRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorRequestBuilder(@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 IntelligenceProfileIndicatorRequest instance + */ + @Nonnull + public IntelligenceProfileIndicatorRequest 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 IntelligenceProfileIndicatorRequest instance + */ + @Nonnull + public IntelligenceProfileIndicatorRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.IntelligenceProfileIndicatorRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Artifact + * + * @return the ArtifactWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder artifact() { + return new com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("artifact"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorWithReferenceRequest.java new file mode 100644 index 00000000000..d500826b1af --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +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 Intelligence Profile Indicator With Reference Request. + */ +public class IntelligenceProfileIndicatorWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicator.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileIndicatorWithReferenceRequest 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 IntelligenceProfileIndicatorWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..2ee063f2920 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileIndicatorWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.IntelligenceProfileIndicator; +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 Intelligence Profile Indicator With Reference Request Builder. + */ +public class IntelligenceProfileIndicatorWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the IntelligenceProfileIndicator + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileIndicatorWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfileIndicatorWithReferenceRequest.class, IntelligenceProfileIndicatorReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileRequest.java new file mode 100644 index 00000000000..8d411c8e0b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileRequest.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.IntelligenceProfile; +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 Intelligence Profile Request. + */ +public class IntelligenceProfileRequest extends BaseRequest { + + /** + * The request for the IntelligenceProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IntelligenceProfile.class); + } + + /** + * Gets the IntelligenceProfile from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the IntelligenceProfile from the service + * + * @return the IntelligenceProfile from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfile 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 IntelligenceProfile delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this IntelligenceProfile with a source + * + * @param sourceIntelligenceProfile the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final IntelligenceProfile sourceIntelligenceProfile) { + return sendAsync(HttpMethod.PATCH, sourceIntelligenceProfile); + } + + /** + * Patches this IntelligenceProfile with a source + * + * @param sourceIntelligenceProfile the source object with updates + * @return the updated IntelligenceProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfile patch(@Nonnull final IntelligenceProfile sourceIntelligenceProfile) throws ClientException { + return send(HttpMethod.PATCH, sourceIntelligenceProfile); + } + + /** + * Creates a IntelligenceProfile with a new object + * + * @param newIntelligenceProfile the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final IntelligenceProfile newIntelligenceProfile) { + return sendAsync(HttpMethod.POST, newIntelligenceProfile); + } + + /** + * Creates a IntelligenceProfile with a new object + * + * @param newIntelligenceProfile the new object to create + * @return the created IntelligenceProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfile post(@Nonnull final IntelligenceProfile newIntelligenceProfile) throws ClientException { + return send(HttpMethod.POST, newIntelligenceProfile); + } + + /** + * Creates a IntelligenceProfile with a new object + * + * @param newIntelligenceProfile the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final IntelligenceProfile newIntelligenceProfile) { + return sendAsync(HttpMethod.PUT, newIntelligenceProfile); + } + + /** + * Creates a IntelligenceProfile with a new object + * + * @param newIntelligenceProfile the object to create/update + * @return the created IntelligenceProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IntelligenceProfile put(@Nonnull final IntelligenceProfile newIntelligenceProfile) throws ClientException { + return send(HttpMethod.PUT, newIntelligenceProfile); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public IntelligenceProfileRequest 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 IntelligenceProfileRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileRequestBuilder.java new file mode 100644 index 00000000000..5f2947343ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IntelligenceProfileRequestBuilder.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.IntelligenceProfile; +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 Intelligence Profile Request Builder. + */ +public class IntelligenceProfileRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the IntelligenceProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IntelligenceProfileRequestBuilder(@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 IntelligenceProfileRequest instance + */ + @Nonnull + public IntelligenceProfileRequest 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 IntelligenceProfileRequest instance + */ + @Nonnull + public IntelligenceProfileRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.IntelligenceProfileRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the IntelligenceProfileIndicator collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder indicators() { + return new com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("indicators"), getClient(), null); + } + + /** + * Gets a request builder for the IntelligenceProfileIndicator item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.IntelligenceProfileIndicatorWithReferenceRequestBuilder indicators(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.IntelligenceProfileIndicatorWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("indicators") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequest.java new file mode 100644 index 00000000000..8e05fcedabf --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequest.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.IpAddress; +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 Ip Address Request. + */ +public class IpAddressRequest extends BaseRequest { + + /** + * The request for the IpAddress + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IpAddressRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IpAddress.class); + } + + /** + * Gets the IpAddress from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the IpAddress from the service + * + * @return the IpAddress from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IpAddress 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 IpAddress delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this IpAddress with a source + * + * @param sourceIpAddress the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final IpAddress sourceIpAddress) { + return sendAsync(HttpMethod.PATCH, sourceIpAddress); + } + + /** + * Patches this IpAddress with a source + * + * @param sourceIpAddress the source object with updates + * @return the updated IpAddress + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IpAddress patch(@Nonnull final IpAddress sourceIpAddress) throws ClientException { + return send(HttpMethod.PATCH, sourceIpAddress); + } + + /** + * Creates a IpAddress with a new object + * + * @param newIpAddress the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final IpAddress newIpAddress) { + return sendAsync(HttpMethod.POST, newIpAddress); + } + + /** + * Creates a IpAddress with a new object + * + * @param newIpAddress the new object to create + * @return the created IpAddress + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IpAddress post(@Nonnull final IpAddress newIpAddress) throws ClientException { + return send(HttpMethod.POST, newIpAddress); + } + + /** + * Creates a IpAddress with a new object + * + * @param newIpAddress the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final IpAddress newIpAddress) { + return sendAsync(HttpMethod.PUT, newIpAddress); + } + + /** + * Creates a IpAddress with a new object + * + * @param newIpAddress the object to create/update + * @return the created IpAddress + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public IpAddress put(@Nonnull final IpAddress newIpAddress) throws ClientException { + return send(HttpMethod.PUT, newIpAddress); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public IpAddressRequest 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 IpAddressRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java new file mode 100644 index 00000000000..f3b7e0dc4f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/IpAddressRequestBuilder.java @@ -0,0 +1,169 @@ +// 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.IpAddress; +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 Ip Address Request Builder. + */ +public class IpAddressRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the IpAddress + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IpAddressRequestBuilder(@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 IpAddressRequest instance + */ + @Nonnull + public IpAddressRequest 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 IpAddressRequest instance + */ + @Nonnull + public IpAddressRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.IpAddressRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the HostComponent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder components() { + return new com.microsoft.graph.security.requests.HostComponentCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("components"), getClient(), null); + } + + /** + * Gets a request builder for the HostComponent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder components(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostComponentWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("components") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the HostCookie collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder cookies() { + return new com.microsoft.graph.security.requests.HostCookieCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("cookies"), getClient(), null); + } + + /** + * Gets a request builder for the HostCookie item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder cookies(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostCookieWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("cookies") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder passiveDns() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDns"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDns(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDns") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder passiveDnsReverse() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder passiveDnsReverse(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsReverse") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for HostReputation + * + * @return the HostReputationRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostReputationRequestBuilder reputation() { + return new com.microsoft.graph.security.requests.HostReputationRequestBuilder(getRequestUrlWithAdditionalSegment("reputation"), getClient(), null); + } + /** + * Gets a request builder for the HostTracker collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder trackers() { + return new com.microsoft.graph.security.requests.HostTrackerCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("trackers"), getClient(), null); + } + + /** + * Gets a request builder for the HostTracker item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder trackers(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostTrackerWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("trackers") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordReferenceRequest.java new file mode 100644 index 00000000000..22794e25726 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordReferenceRequest.java @@ -0,0 +1,90 @@ +// 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.PassiveDnsRecord; +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 Passive Dns Record Reference Request. + */ +public class PassiveDnsRecordReferenceRequest extends BaseReferenceRequest { + + /** + * The request for the PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecord.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordReferenceRequest 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 PassiveDnsRecordReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + /** + * Puts the PassiveDnsRecord + * + * @param srcPassiveDnsRecord the PassiveDnsRecord reference to PUT + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final PassiveDnsRecord srcPassiveDnsRecord) { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/passiveDnsRecords/" + srcPassiveDnsRecord.id)); + return sendAsync(HttpMethod.PUT, payload); + } + + /** + * Puts the PassiveDnsRecord + * + * @param srcPassiveDnsRecord the PassiveDnsRecord reference to PUT + * @return the PassiveDnsRecord + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public PassiveDnsRecord put(@Nonnull final PassiveDnsRecord srcPassiveDnsRecord) throws ClientException { + final JsonObject payload = new JsonObject(); + payload.add("@odata.id", new JsonPrimitive(this.getClient().getServiceRoot() + "/security/threatIntelligence/{id}/passiveDnsRecords/" + srcPassiveDnsRecord.id)); + return send(HttpMethod.PUT, payload); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordReferenceRequestBuilder.java new file mode 100644 index 00000000000..df33ca193ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.PassiveDnsRecord; +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 Passive Dns Record Reference Request Builder. + */ +public class PassiveDnsRecordReferenceRequestBuilder extends BaseReferenceRequestBuilder { + + /** + * The request builder for the PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordReferenceRequest.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordRequest.java new file mode 100644 index 00000000000..bca09768a08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordRequest.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.PassiveDnsRecord; +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 Passive Dns Record Request. + */ +public class PassiveDnsRecordRequest extends BaseRequest { + + /** + * The request for the PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecord.class); + } + + /** + * Gets the PassiveDnsRecord from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the PassiveDnsRecord from the service + * + * @return the PassiveDnsRecord from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PassiveDnsRecord 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 PassiveDnsRecord delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this PassiveDnsRecord with a source + * + * @param sourcePassiveDnsRecord the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final PassiveDnsRecord sourcePassiveDnsRecord) { + return sendAsync(HttpMethod.PATCH, sourcePassiveDnsRecord); + } + + /** + * Patches this PassiveDnsRecord with a source + * + * @param sourcePassiveDnsRecord the source object with updates + * @return the updated PassiveDnsRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PassiveDnsRecord patch(@Nonnull final PassiveDnsRecord sourcePassiveDnsRecord) throws ClientException { + return send(HttpMethod.PATCH, sourcePassiveDnsRecord); + } + + /** + * Creates a PassiveDnsRecord with a new object + * + * @param newPassiveDnsRecord the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final PassiveDnsRecord newPassiveDnsRecord) { + return sendAsync(HttpMethod.POST, newPassiveDnsRecord); + } + + /** + * Creates a PassiveDnsRecord with a new object + * + * @param newPassiveDnsRecord the new object to create + * @return the created PassiveDnsRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PassiveDnsRecord post(@Nonnull final PassiveDnsRecord newPassiveDnsRecord) throws ClientException { + return send(HttpMethod.POST, newPassiveDnsRecord); + } + + /** + * Creates a PassiveDnsRecord with a new object + * + * @param newPassiveDnsRecord the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final PassiveDnsRecord newPassiveDnsRecord) { + return sendAsync(HttpMethod.PUT, newPassiveDnsRecord); + } + + /** + * Creates a PassiveDnsRecord with a new object + * + * @param newPassiveDnsRecord the object to create/update + * @return the created PassiveDnsRecord + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public PassiveDnsRecord put(@Nonnull final PassiveDnsRecord newPassiveDnsRecord) throws ClientException { + return send(HttpMethod.PUT, newPassiveDnsRecord); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordRequest 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 PassiveDnsRecordRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordRequestBuilder.java new file mode 100644 index 00000000000..56b94edadeb --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordRequestBuilder.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.PassiveDnsRecord; +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 Passive Dns Record Request Builder. + */ +public class PassiveDnsRecordRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordRequestBuilder(@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 PassiveDnsRecordRequest instance + */ + @Nonnull + public PassiveDnsRecordRequest 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 PassiveDnsRecordRequest instance + */ + @Nonnull + public PassiveDnsRecordRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for Artifact + * + * @return the ArtifactWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder artifact() { + return new com.microsoft.graph.security.requests.ArtifactWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("artifact"), getClient(), null); + } + + /** + * Gets the request builder for Host + * + * @return the HostWithReferenceRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder parentHost() { + return new com.microsoft.graph.security.requests.HostWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("parentHost"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordWithReferenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordWithReferenceRequest.java new file mode 100644 index 00000000000..9b8bffabd7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordWithReferenceRequest.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.PassiveDnsRecord; +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 Passive Dns Record With Reference Request. + */ +public class PassiveDnsRecordWithReferenceRequest extends BaseWithReferenceRequest { + + /** + * The request for the PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecord.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public PassiveDnsRecordWithReferenceRequest 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 PassiveDnsRecordWithReferenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..732056a5985 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/PassiveDnsRecordWithReferenceRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.PassiveDnsRecord; +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 Passive Dns Record With Reference Request Builder. + */ +public class PassiveDnsRecordWithReferenceRequestBuilder extends BaseWithReferenceRequestBuilder { + + /** + * The request builder for the PassiveDnsRecord + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PassiveDnsRecordWithReferenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, PassiveDnsRecordWithReferenceRequest.class, PassiveDnsRecordReferenceRequestBuilder.class); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequest.java new file mode 100644 index 00000000000..bdc75cf78a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequest.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.ThreatIntelligence; +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 Threat Intelligence Request. + */ +public class ThreatIntelligenceRequest extends BaseRequest { + + /** + * The request for the ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ThreatIntelligenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ThreatIntelligence.class); + } + + /** + * Gets the ThreatIntelligence from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ThreatIntelligence from the service + * + * @return the ThreatIntelligence from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ThreatIntelligence 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 ThreatIntelligence delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ThreatIntelligence with a source + * + * @param sourceThreatIntelligence the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ThreatIntelligence sourceThreatIntelligence) { + return sendAsync(HttpMethod.PATCH, sourceThreatIntelligence); + } + + /** + * Patches this ThreatIntelligence with a source + * + * @param sourceThreatIntelligence the source object with updates + * @return the updated ThreatIntelligence + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ThreatIntelligence patch(@Nonnull final ThreatIntelligence sourceThreatIntelligence) throws ClientException { + return send(HttpMethod.PATCH, sourceThreatIntelligence); + } + + /** + * Creates a ThreatIntelligence with a new object + * + * @param newThreatIntelligence the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ThreatIntelligence newThreatIntelligence) { + return sendAsync(HttpMethod.POST, newThreatIntelligence); + } + + /** + * Creates a ThreatIntelligence with a new object + * + * @param newThreatIntelligence the new object to create + * @return the created ThreatIntelligence + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ThreatIntelligence post(@Nonnull final ThreatIntelligence newThreatIntelligence) throws ClientException { + return send(HttpMethod.POST, newThreatIntelligence); + } + + /** + * Creates a ThreatIntelligence with a new object + * + * @param newThreatIntelligence the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ThreatIntelligence newThreatIntelligence) { + return sendAsync(HttpMethod.PUT, newThreatIntelligence); + } + + /** + * Creates a ThreatIntelligence with a new object + * + * @param newThreatIntelligence the object to create/update + * @return the created ThreatIntelligence + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ThreatIntelligence put(@Nonnull final ThreatIntelligence newThreatIntelligence) throws ClientException { + return send(HttpMethod.PUT, newThreatIntelligence); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ThreatIntelligenceRequest 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 ThreatIntelligenceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java new file mode 100644 index 00000000000..e7520b4e566 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/ThreatIntelligenceRequestBuilder.java @@ -0,0 +1,259 @@ +// 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.ThreatIntelligence; +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 Threat Intelligence Request Builder. + */ +public class ThreatIntelligenceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ThreatIntelligence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ThreatIntelligenceRequestBuilder(@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 ThreatIntelligenceRequest instance + */ + @Nonnull + public ThreatIntelligenceRequest 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 ThreatIntelligenceRequest instance + */ + @Nonnull + public ThreatIntelligenceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.ThreatIntelligenceRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the ArticleIndicator collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequestBuilder articleIndicators() { + return new com.microsoft.graph.security.requests.ArticleIndicatorCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("articleIndicators"), getClient(), null); + } + + /** + * Gets a request builder for the ArticleIndicator item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleIndicatorRequestBuilder articleIndicators(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.ArticleIndicatorRequestBuilder(getRequestUrlWithAdditionalSegment("articleIndicators") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the Article collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleCollectionRequestBuilder articles() { + return new com.microsoft.graph.security.requests.ArticleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("articles"), getClient(), null); + } + + /** + * Gets a request builder for the Article item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleRequestBuilder articles(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.ArticleRequestBuilder(getRequestUrlWithAdditionalSegment("articles") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the HostComponent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentCollectionRequestBuilder hostComponents() { + return new com.microsoft.graph.security.requests.HostComponentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hostComponents"), getClient(), null); + } + + /** + * Gets a request builder for the HostComponent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostComponentRequestBuilder hostComponents(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostComponentRequestBuilder(getRequestUrlWithAdditionalSegment("hostComponents") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the HostCookie collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieCollectionRequestBuilder hostCookies() { + return new com.microsoft.graph.security.requests.HostCookieCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hostCookies"), getClient(), null); + } + + /** + * Gets a request builder for the HostCookie item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCookieRequestBuilder hostCookies(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostCookieRequestBuilder(getRequestUrlWithAdditionalSegment("hostCookies") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the Host collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostCollectionRequestBuilder hosts() { + return new com.microsoft.graph.security.requests.HostCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hosts"), getClient(), null); + } + + /** + * Gets a request builder for the Host item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostRequestBuilder hosts(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostRequestBuilder(getRequestUrlWithAdditionalSegment("hosts") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the HostTracker collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerCollectionRequestBuilder hostTrackers() { + return new com.microsoft.graph.security.requests.HostTrackerCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("hostTrackers"), getClient(), null); + } + + /** + * Gets a request builder for the HostTracker item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.HostTrackerRequestBuilder hostTrackers(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.HostTrackerRequestBuilder(getRequestUrlWithAdditionalSegment("hostTrackers") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the IntelligenceProfileIndicator collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequestBuilder intelligenceProfileIndicators() { + return new com.microsoft.graph.security.requests.IntelligenceProfileIndicatorCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("intelligenceProfileIndicators"), getClient(), null); + } + + /** + * Gets a request builder for the IntelligenceProfileIndicator item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.IntelligenceProfileIndicatorRequestBuilder intelligenceProfileIndicators(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.IntelligenceProfileIndicatorRequestBuilder(getRequestUrlWithAdditionalSegment("intelligenceProfileIndicators") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the IntelligenceProfile collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequestBuilder intelProfiles() { + return new com.microsoft.graph.security.requests.IntelligenceProfileCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("intelProfiles"), getClient(), null); + } + + /** + * Gets a request builder for the IntelligenceProfile item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.IntelligenceProfileRequestBuilder intelProfiles(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.IntelligenceProfileRequestBuilder(getRequestUrlWithAdditionalSegment("intelProfiles") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the PassiveDnsRecord collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequestBuilder passiveDnsRecords() { + return new com.microsoft.graph.security.requests.PassiveDnsRecordCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsRecords"), getClient(), null); + } + + /** + * Gets a request builder for the PassiveDnsRecord item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.PassiveDnsRecordRequestBuilder passiveDnsRecords(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.PassiveDnsRecordRequestBuilder(getRequestUrlWithAdditionalSegment("passiveDnsRecords") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the Vulnerability collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.VulnerabilityCollectionRequestBuilder vulnerabilities() { + return new com.microsoft.graph.security.requests.VulnerabilityCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("vulnerabilities"), getClient(), null); + } + + /** + * Gets a request builder for the Vulnerability item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.VulnerabilityRequestBuilder vulnerabilities(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.VulnerabilityRequestBuilder(getRequestUrlWithAdditionalSegment("vulnerabilities") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/UnclassifiedArtifactRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/UnclassifiedArtifactRequest.java new file mode 100644 index 00000000000..2e112a9ae7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/UnclassifiedArtifactRequest.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.UnclassifiedArtifact; +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 Unclassified Artifact Request. + */ +public class UnclassifiedArtifactRequest extends BaseRequest { + + /** + * The request for the UnclassifiedArtifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UnclassifiedArtifactRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UnclassifiedArtifact.class); + } + + /** + * Gets the UnclassifiedArtifact from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the UnclassifiedArtifact from the service + * + * @return the UnclassifiedArtifact from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UnclassifiedArtifact 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 UnclassifiedArtifact delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this UnclassifiedArtifact with a source + * + * @param sourceUnclassifiedArtifact the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final UnclassifiedArtifact sourceUnclassifiedArtifact) { + return sendAsync(HttpMethod.PATCH, sourceUnclassifiedArtifact); + } + + /** + * Patches this UnclassifiedArtifact with a source + * + * @param sourceUnclassifiedArtifact the source object with updates + * @return the updated UnclassifiedArtifact + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UnclassifiedArtifact patch(@Nonnull final UnclassifiedArtifact sourceUnclassifiedArtifact) throws ClientException { + return send(HttpMethod.PATCH, sourceUnclassifiedArtifact); + } + + /** + * Creates a UnclassifiedArtifact with a new object + * + * @param newUnclassifiedArtifact the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final UnclassifiedArtifact newUnclassifiedArtifact) { + return sendAsync(HttpMethod.POST, newUnclassifiedArtifact); + } + + /** + * Creates a UnclassifiedArtifact with a new object + * + * @param newUnclassifiedArtifact the new object to create + * @return the created UnclassifiedArtifact + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UnclassifiedArtifact post(@Nonnull final UnclassifiedArtifact newUnclassifiedArtifact) throws ClientException { + return send(HttpMethod.POST, newUnclassifiedArtifact); + } + + /** + * Creates a UnclassifiedArtifact with a new object + * + * @param newUnclassifiedArtifact the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final UnclassifiedArtifact newUnclassifiedArtifact) { + return sendAsync(HttpMethod.PUT, newUnclassifiedArtifact); + } + + /** + * Creates a UnclassifiedArtifact with a new object + * + * @param newUnclassifiedArtifact the object to create/update + * @return the created UnclassifiedArtifact + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public UnclassifiedArtifact put(@Nonnull final UnclassifiedArtifact newUnclassifiedArtifact) throws ClientException { + return send(HttpMethod.PUT, newUnclassifiedArtifact); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public UnclassifiedArtifactRequest 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 UnclassifiedArtifactRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/UnclassifiedArtifactRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/UnclassifiedArtifactRequestBuilder.java new file mode 100644 index 00000000000..4bf0350cb7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/UnclassifiedArtifactRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.UnclassifiedArtifact; +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 Unclassified Artifact Request Builder. + */ +public class UnclassifiedArtifactRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the UnclassifiedArtifact + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UnclassifiedArtifactRequestBuilder(@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 UnclassifiedArtifactRequest instance + */ + @Nonnull + public UnclassifiedArtifactRequest 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 UnclassifiedArtifactRequest instance + */ + @Nonnull + public UnclassifiedArtifactRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.UnclassifiedArtifactRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityComponentRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityComponentRequest.java new file mode 100644 index 00000000000..6fb6544b049 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityComponentRequest.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.VulnerabilityComponent; +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 Vulnerability Component Request. + */ +public class VulnerabilityComponentRequest extends BaseRequest { + + /** + * The request for the VulnerabilityComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityComponentRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VulnerabilityComponent.class); + } + + /** + * Gets the VulnerabilityComponent from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the VulnerabilityComponent from the service + * + * @return the VulnerabilityComponent from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VulnerabilityComponent 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 VulnerabilityComponent delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this VulnerabilityComponent with a source + * + * @param sourceVulnerabilityComponent the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final VulnerabilityComponent sourceVulnerabilityComponent) { + return sendAsync(HttpMethod.PATCH, sourceVulnerabilityComponent); + } + + /** + * Patches this VulnerabilityComponent with a source + * + * @param sourceVulnerabilityComponent the source object with updates + * @return the updated VulnerabilityComponent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VulnerabilityComponent patch(@Nonnull final VulnerabilityComponent sourceVulnerabilityComponent) throws ClientException { + return send(HttpMethod.PATCH, sourceVulnerabilityComponent); + } + + /** + * Creates a VulnerabilityComponent with a new object + * + * @param newVulnerabilityComponent the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VulnerabilityComponent newVulnerabilityComponent) { + return sendAsync(HttpMethod.POST, newVulnerabilityComponent); + } + + /** + * Creates a VulnerabilityComponent with a new object + * + * @param newVulnerabilityComponent the new object to create + * @return the created VulnerabilityComponent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VulnerabilityComponent post(@Nonnull final VulnerabilityComponent newVulnerabilityComponent) throws ClientException { + return send(HttpMethod.POST, newVulnerabilityComponent); + } + + /** + * Creates a VulnerabilityComponent with a new object + * + * @param newVulnerabilityComponent the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final VulnerabilityComponent newVulnerabilityComponent) { + return sendAsync(HttpMethod.PUT, newVulnerabilityComponent); + } + + /** + * Creates a VulnerabilityComponent with a new object + * + * @param newVulnerabilityComponent the object to create/update + * @return the created VulnerabilityComponent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VulnerabilityComponent put(@Nonnull final VulnerabilityComponent newVulnerabilityComponent) throws ClientException { + return send(HttpMethod.PUT, newVulnerabilityComponent); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VulnerabilityComponentRequest 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 VulnerabilityComponentRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityComponentRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityComponentRequestBuilder.java new file mode 100644 index 00000000000..0bae4a23662 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityComponentRequestBuilder.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.security.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.security.models.VulnerabilityComponent; +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 Vulnerability Component Request Builder. + */ +public class VulnerabilityComponentRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the VulnerabilityComponent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityComponentRequestBuilder(@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 VulnerabilityComponentRequest instance + */ + @Nonnull + public VulnerabilityComponentRequest 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 VulnerabilityComponentRequest instance + */ + @Nonnull + public VulnerabilityComponentRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.VulnerabilityComponentRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityRequest.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityRequest.java new file mode 100644 index 00000000000..988a17c0fbb --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityRequest.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.Vulnerability; +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 Vulnerability Request. + */ +public class VulnerabilityRequest extends BaseRequest { + + /** + * The request for the Vulnerability + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Vulnerability.class); + } + + /** + * Gets the Vulnerability from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Vulnerability from the service + * + * @return the Vulnerability from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Vulnerability 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 Vulnerability delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Vulnerability with a source + * + * @param sourceVulnerability the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Vulnerability sourceVulnerability) { + return sendAsync(HttpMethod.PATCH, sourceVulnerability); + } + + /** + * Patches this Vulnerability with a source + * + * @param sourceVulnerability the source object with updates + * @return the updated Vulnerability + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Vulnerability patch(@Nonnull final Vulnerability sourceVulnerability) throws ClientException { + return send(HttpMethod.PATCH, sourceVulnerability); + } + + /** + * Creates a Vulnerability with a new object + * + * @param newVulnerability the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Vulnerability newVulnerability) { + return sendAsync(HttpMethod.POST, newVulnerability); + } + + /** + * Creates a Vulnerability with a new object + * + * @param newVulnerability the new object to create + * @return the created Vulnerability + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Vulnerability post(@Nonnull final Vulnerability newVulnerability) throws ClientException { + return send(HttpMethod.POST, newVulnerability); + } + + /** + * Creates a Vulnerability with a new object + * + * @param newVulnerability the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Vulnerability newVulnerability) { + return sendAsync(HttpMethod.PUT, newVulnerability); + } + + /** + * Creates a Vulnerability with a new object + * + * @param newVulnerability the object to create/update + * @return the created Vulnerability + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Vulnerability put(@Nonnull final Vulnerability newVulnerability) throws ClientException { + return send(HttpMethod.PUT, newVulnerability); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VulnerabilityRequest 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 VulnerabilityRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityRequestBuilder.java b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityRequestBuilder.java new file mode 100644 index 00000000000..183b3efa115 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/requests/VulnerabilityRequestBuilder.java @@ -0,0 +1,99 @@ +// 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.Vulnerability; +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 Vulnerability Request Builder. + */ +public class VulnerabilityRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Vulnerability + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VulnerabilityRequestBuilder(@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 VulnerabilityRequest instance + */ + @Nonnull + public VulnerabilityRequest 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 VulnerabilityRequest instance + */ + @Nonnull + public VulnerabilityRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.security.requests.VulnerabilityRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the Article collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequestBuilder articles() { + return new com.microsoft.graph.security.requests.ArticleCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("articles"), getClient(), null); + } + + /** + * Gets a request builder for the Article item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.ArticleWithReferenceRequestBuilder articles(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.ArticleWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("articles") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the VulnerabilityComponent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequestBuilder components() { + return new com.microsoft.graph.security.requests.VulnerabilityComponentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("components"), getClient(), null); + } + + /** + * Gets a request builder for the VulnerabilityComponent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.security.requests.VulnerabilityComponentRequestBuilder components(@Nonnull final String id) { + return new com.microsoft.graph.security.requests.VulnerabilityComponentRequestBuilder(getRequestUrlWithAdditionalSegment("components") + "/" + id, getClient(), null); + } +}