diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml
index c3f49823a93..0b3f22c7223 100644
--- a/.azure-pipelines/ci-build.yml
+++ b/.azure-pipelines/ci-build.yml
@@ -11,11 +11,6 @@ trigger:
include:
- main
-parameters:
- - name: previewBranch
- type: string
- default: "refs/heads/main"
-
resources:
repositories:
- repository: 1ESPipelineTemplates
@@ -65,29 +60,109 @@ extends:
Copy-Item $(downloadLocalProperties.secureFilePath) local.properties -Verbose
displayName: Copy secring and 'local.properties'
- - script: ./gradlew --no-daemon publishToMavenLocal -PmavenCentralPublishingEnabled=true -PmavenCentralSnapshotArtifactSuffix=""
+ - pwsh: |
+ # maven-gpg-plugin signs via the local gpg keyring, so the key from
+ # secring.gpg must be imported into gpg before signing can succeed.
+ gpg --batch --import secring.gpg
+ displayName: Import GPG signing key
+
+ - pwsh: |
+ $props = Get-Content local.properties -Raw
+ $keyId = ($props | Select-String -Pattern 'signing\.keyId=(.+)').Matches.Groups[1].Value
+ $keyPassword = ($props | Select-String -Pattern 'signing\.password=(.+)').Matches.Groups[1].Value
+
+ $settingsXml = @"
+
+
+
+ GraphDeveloperExperiences_Public
+ *
+ https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1
+
+
+
+
+ signing
+
+ $keyId
+ $keyPassword
+
+
+
+
+ "@
+ $settingsDir = Join-Path $HOME ".m2"
+ New-Item -ItemType Directory -Path $settingsDir -Force | Out-Null
+ $settingsXml | Set-Content (Join-Path $settingsDir "settings.xml") -Encoding UTF8
+ displayName: Configure Maven settings
+
+ - task: MavenAuthenticate@0
+ displayName: Authenticate to Azure Artifacts feed (PAT-less)
+ inputs:
+ artifactsFeeds: 'GraphDeveloperExperiences_Public'
+
+ - task: Maven@4
displayName: Publish to local Maven for verification
condition: contains(variables['build.sourceBranch'], 'refs/tags/v')
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'install'
+ options: '-Psigning --no-transfer-progress'
+ publishJUnitResults: false
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.21'
+ jdkArchitectureOption: 'x64'
+ mavenOptions: '-Xmx3072m'
- - script: ./gradlew --no-daemon publishToMavenLocal -PmavenCentralPublishingEnabled=true
+ - task: Maven@4
displayName: Publish to local Maven for verification
condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'install'
+ options: '-Psigning --no-transfer-progress'
+ publishJUnitResults: false
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.21'
+ jdkArchitectureOption: 'x64'
+ mavenOptions: '-Xmx3072m'
- - script: ./gradlew --no-daemon publishMavenPublicationToADORepository -PmavenCentralPublishingEnabled=true -PmavenCentralSnapshotArtifactSuffix=""
- displayName: Publish to local Maven ADO for ESRP
+ - task: Maven@4
+ displayName: Stage artifacts for ESRP
condition: contains(variables['build.sourceBranch'], 'refs/tags/v')
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'deploy'
+ options: '-Psigning --no-transfer-progress -DaltDeploymentRepository=ADO::default::file://$(Build.SourcesDirectory)/target/staging-deploy'
+ publishJUnitResults: false
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.21'
+ jdkArchitectureOption: 'x64'
+ mavenOptions: '-Xmx3072m'
- - script: ./gradlew --no-daemon publishMavenPublicationToADORepository -PmavenCentralPublishingEnabled=true
- displayName: Publish to local Maven ADO for ESRP
+ - task: Maven@4
+ displayName: Stage artifacts for ESRP
condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'deploy'
+ options: '-Psigning --no-transfer-progress -DaltDeploymentRepository=ADO::default::file://$(Build.SourcesDirectory)/target/staging-deploy'
+ publishJUnitResults: false
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.21'
+ jdkArchitectureOption: 'x64'
+ mavenOptions: '-Xmx3072m'
- pwsh: |
- $contents = Get-Content gradle.properties -Raw
- $major = $contents | Select-String -Pattern 'mavenMajorVersion\s*=\s*([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
- $minor = $contents | Select-String -Pattern 'mavenMinorVersion\s*=\s*([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
- $patch = $contents | Select-String -Pattern 'mavenPatchVersion\s*=\s*([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
+ $pomXml = [xml](Get-Content pom.xml -Raw)
+ $ns = New-Object System.Xml.XmlNamespaceManager($pomXml.NameTable)
+ $ns.AddNamespace('m', $pomXml.DocumentElement.NamespaceURI)
+ $version = $pomXml.SelectSingleNode('/m:project/m:version', $ns).InnerText
$snapshot_suffix = if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) { '' } else { '-SNAPSHOT' }
- $version = "$major.$minor.$patch$snapshot_suffix"
+ # If version already contains -SNAPSHOT and we're on a tag, strip it
+ if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) {
+ $version = $version -replace '-SNAPSHOT$', ''
+ }
echo "Current version is $version"
echo "##vso[task.setvariable variable=PACKAGE_VERSION;]$version"
displayName: Get current version
@@ -100,7 +175,7 @@ extends:
displayName: Inspect contents of local Maven cache
- pwsh: |
- $packageFullPath = Join-Path -Path "./" -ChildPath "build/publishing-repository/com/microsoft/graph/microsoft-graph" -AdditionalChildPath "$(PACKAGE_VERSION)"
+ $packageFullPath = Join-Path -Path "./target/staging-deploy" -ChildPath "com/microsoft/graph/microsoft-graph" -AdditionalChildPath "$(PACKAGE_VERSION)"
echo "Package full path: $packageFullPath"
echo "##vso[task.setvariable variable=PACKAGE_PATH;]$packageFullPath"
displayName: Get the package full path
@@ -112,84 +187,9 @@ extends:
targetPath: "$(PACKAGE_PATH)"
- stage: deploy
- condition: and(or(contains(variables['build.sourceBranch'], 'refs/tags/v'), eq(variables['build.sourceBranch'], '${{ parameters.previewBranch }}')), succeeded())
+ condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
dependsOn: build
jobs:
- - deployment: deploy_github
- condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
- pool:
- name: Azure-Pipelines-1ESPT-ExDShared
- os: linux
- image: ubuntu-latest
- templateContext:
- type: releaseJob
- isProduction: true
- inputs:
- - input: pipelineArtifact
- artifactName: jars
- targetPath: "$(Pipeline.Workspace)"
- environment: kiota-github-releases
- strategy:
- runOnce:
- deploy:
- steps:
- - pwsh: |
- $zips = Get-ChildItem -Path "$(Pipeline.Workspace)" -Filter "*.jar"
- $zip = $zips | Select-Object -First 1
- $zipName = $zip.Name
- if ($zipName -match "\d+.\d+.\d+")
- {
- $version = $matches[0]
- echo "Current version is $version"
- echo "##vso[task.setvariable variable=artifactVersion;]$version"
- }
- else
- {
- Write-Error "No valid version found in jar file name."
- exit 1
- }
-
- - task: GitHubRelease@1
- inputs:
- gitHubConnection: "microsoftkiota"
- tagSource: userSpecifiedTag
- tag: "v$(artifactVersion)"
- title: "v$(artifactVersion)"
- assets: |
- $(Pipeline.Workspace)/**/*.jar
- $(Pipeline.Workspace)/**/*.jar.md5
- $(Pipeline.Workspace)/**/*.jar.sha1
- $(Pipeline.Workspace)/**/*.jar.sha256
- $(Pipeline.Workspace)/**/*.jar.sha512
- $(Pipeline.Workspace)/**/*.jar.asc
- $(Pipeline.Workspace)/**/*.jar.asc.md5
- $(Pipeline.Workspace)/**/*.jar.asc.sha1
- $(Pipeline.Workspace)/**/*.jar.asc.sha256
- $(Pipeline.Workspace)/**/*.jar.asc.sha512
- $(Pipeline.Workspace)/**/*.pom
- $(Pipeline.Workspace)/**/*.pom.md5
- $(Pipeline.Workspace)/**/*.pom.sha1
- $(Pipeline.Workspace)/**/*.pom.sha256
- $(Pipeline.Workspace)/**/*.pom.sha512
- $(Pipeline.Workspace)/**/*.pom.asc
- $(Pipeline.Workspace)/**/*.pom.asc.md5
- $(Pipeline.Workspace)/**/*.pom.asc.sha1
- $(Pipeline.Workspace)/**/*.pom.asc.sha256
- $(Pipeline.Workspace)/**/*.pom.asc.sha512
- $(Pipeline.Workspace)/**/*.module
- $(Pipeline.Workspace)/**/*.module.md5
- $(Pipeline.Workspace)/**/*.module.sha1
- $(Pipeline.Workspace)/**/*.module.sha256
- $(Pipeline.Workspace)/**/*.module.sha512
- $(Pipeline.Workspace)/**/*.module.asc
- $(Pipeline.Workspace)/**/*.module.asc.md5
- $(Pipeline.Workspace)/**/*.module.asc.sha1
- $(Pipeline.Workspace)/**/*.module.asc.sha256
- $(Pipeline.Workspace)/**/*.module.asc.sha512
-
- addChangeLog: false
- action: edit
-
- deployment: deploy_maven
# snapshots are not supported by ESRP release for now, but they are planning to add support. When it happens, simply remove the condition
condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
@@ -223,8 +223,8 @@ extends:
contentsource: "Folder"
folderlocation: "$(Pipeline.Workspace)"
waitforreleasecompletion: true
- owners: vibiret@microsoft.com
- approvers: mmainer@microsoft.com
+ owners: christiano@microsoft.com,ramsess@microsoft.com,gavinbarron@microsoft.com,jingjingjia@microsoft.com,peombwa@microsoft.com,treicys@microsoft.com
+ approvers: christiano@microsoft.com,ramsess@microsoft.com,gavinbarron@microsoft.com,jingjingjia@microsoft.com,peombwa@microsoft.com,treicys@microsoft.com
serviceendpointurl: "https://api.esrp.microsoft.com"
mainpublisher: "ESRPRELPACMAN"
domaintenantid: "cdc5aeea-15c5-4db6-b079-fcadd2505dc2"
\ No newline at end of file
diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml
new file mode 100644
index 00000000000..ded48776e2f
--- /dev/null
+++ b/.azure-pipelines/daily-ci-build.yml
@@ -0,0 +1,89 @@
+trigger: none
+pr: none
+
+schedules:
+ - cron: '0 7 * * *'
+ displayName: Daily builds
+ branches:
+ include:
+ - main
+ always: true
+
+resources:
+ repositories:
+ - repository: 1ESPipelineTemplates
+ type: git
+ name: 1ESPipelineTemplates/1ESPipelineTemplates
+ ref: refs/tags/release
+
+extends:
+ template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
+ parameters:
+ pool:
+ name: Azure-Pipelines-1ESPT-ExDShared
+ image: ubuntu-latest
+ os: linux
+ sdl:
+ sourceAnalysisPool:
+ name: Azure-Pipelines-1ESPT-ExDShared
+ image: windows-2022
+ os: windows
+ credscan:
+ enabled: true
+ policheck:
+ enabled: true
+ binskim:
+ enabled: true
+ stages:
+ - stage: Build
+ jobs:
+ - job: Build
+ displayName: Build Java SDK
+ steps:
+ - checkout: self
+ submodules: recursive
+
+ - task: JavaToolInstaller@1
+ inputs:
+ versionSpec: '17'
+ jdkArchitectureOption: 'x64'
+ jdkSourceOption: 'PreInstalled'
+
+ - pwsh: |
+ # Route all Maven resolution through the Azure Artifacts feed (Maven Central upstream)
+ # so the network-isolated build never reaches the public internet. Credentials for the
+ # mirror are injected PAT-less by the MavenAuthenticate task below; the mirror must
+ # match the id it generates (the feed name).
+ $settingsXml = @"
+
+
+
+ GraphDeveloperExperiences_Public
+ *
+ https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1
+
+
+
+ "@
+ $settingsDir = Join-Path $HOME ".m2"
+ New-Item -ItemType Directory -Path $settingsDir -Force | Out-Null
+ $settingsXml | Set-Content (Join-Path $settingsDir "settings.xml") -Encoding UTF8
+ displayName: Configure Maven mirror for network-isolated build
+
+ - task: MavenAuthenticate@0
+ displayName: Authenticate to Azure Artifacts feed (PAT-less)
+ inputs:
+ artifactsFeeds: 'GraphDeveloperExperiences_Public'
+
+ - task: Maven@4
+ displayName: Build and Test SDK
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'verify'
+ options: '--no-transfer-progress'
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.17'
+ jdkArchitectureOption: 'x64'
+ mavenOptions: '-Xmx3072m'
diff --git a/.config/1espt/PipelineAutobaseliningConfig.yml b/.config/1espt/PipelineAutobaseliningConfig.yml
index 0bf61a54bb4..798440b79a3 100644
--- a/.config/1espt/PipelineAutobaseliningConfig.yml
+++ b/.config/1espt/PipelineAutobaseliningConfig.yml
@@ -7,17 +7,30 @@ pipelines:
credscan:
lastModifiedDate: 2025-06-20
eslint:
- lastModifiedDate: 2025-06-20
+ lastModifiedDate: 2026-05-15
psscriptanalyzer:
- lastModifiedDate: 2025-06-20
+ lastModifiedDate: 2026-05-15
armory:
- lastModifiedDate: 2025-06-20
+ lastModifiedDate: 2026-05-15
accessibilityinsights:
lastModifiedDate: 2025-06-20
binary:
credscan:
lastModifiedDate: 2025-06-20
binskim:
- lastModifiedDate: 2025-06-20
+ lastModifiedDate: 2026-05-15
spotbugs:
- lastModifiedDate: 2025-06-20
+ lastModifiedDate: 2026-05-15
+ 687:
+ retail:
+ source:
+ credscan:
+ lastModifiedDate: 2026-05-27
+ policheck:
+ lastModifiedDate: 2026-05-27
+ eslint:
+ lastModifiedDate: 2026-05-27
+ armory:
+ lastModifiedDate: 2026-05-27
+ accessibilityinsights:
+ lastModifiedDate: 2026-05-27
diff --git a/.config/guardian/.gdnbaselines b/.config/guardian/.gdnbaselines
index 1cee79c2d9c..2257872b938 100644
--- a/.config/guardian/.gdnbaselines
+++ b/.config/guardian/.gdnbaselines
@@ -13,479 +13,615 @@
"results": {
"82ec8907f522949ea46ed2692018bca957a4e6f718360cc99701c6d8a4a4eb99": {
"signature": "82ec8907f522949ea46ed2692018bca957a4e6f718360cc99701c6d8a4a4eb99",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "c65e8d4dab624031e2872fb2d6bff8af5c30b49dd840c2547bd2478db6635e1c",
+ "94d9d81990744c4839486a04114ef427357505e1eedf33f5d58ecacb2a527074"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145623,
+ "line": 156372,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"3d321d1f925dc3012c502fb29481d192276fb7200ce8d45a088de24e2a061e35": {
"signature": "3d321d1f925dc3012c502fb29481d192276fb7200ce8d45a088de24e2a061e35",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "8ee73c099c4fbf6539052380d5cf3430591b55dac0b064cdfe3ada9599b6f7f4",
+ "5ed574d7cf81d58870c2369a4ff1260475173fcf3112772b648720e2914b1708"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145624,
+ "line": 156373,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"263112bc59bd2d2a9148a333308c0d7896c0fb9c81f3121de308e392a4c7a4eb": {
"signature": "263112bc59bd2d2a9148a333308c0d7896c0fb9c81f3121de308e392a4c7a4eb",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "286e8552891192039fd0f49f51f00f3114dbb550a18b216fb10dca9abd8adf31",
+ "83305f125695741bb251fa8b882735b2f06921eb9b8d7cd4f1949d88b193c0e5"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145625,
+ "line": 156374,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"1643573e938aedab6dd067aeca1be28ab2ced3221bf8102e180555aaa89c377c": {
"signature": "1643573e938aedab6dd067aeca1be28ab2ced3221bf8102e180555aaa89c377c",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "2338247be6d937e3381d27d3ee9d51b0534fb543d435d39b3c26ac896365bb78",
+ "75d79e17c41f18bf1025786dbbf4c5fd71cc16cedb5ba05a81493a1d9a10df04"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145626,
+ "line": 156375,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"98ef25efc8e9a5d51e2b1818fb083ba99cee13fb29a5ec5a5774a0d4ba31ddfa": {
"signature": "98ef25efc8e9a5d51e2b1818fb083ba99cee13fb29a5ec5a5774a0d4ba31ddfa",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "93fa26c7807735c9f68993a6c6510b3ca22447649bcd686eb58fcb2417072f19",
+ "9e3ab2396ab9842bee6c37fb6591c0efa52fe5e95bbc14b2b8c6ef72ba8d3778"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145628,
+ "line": 156377,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"18a91572b01d161d7a01a2e3505c38e079c32a650c58e34f742bbd89730ca0ba": {
"signature": "18a91572b01d161d7a01a2e3505c38e079c32a650c58e34f742bbd89730ca0ba",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "476f6327af729603210ee682b99a338bc13d7847ac7ad6aea7cedf62b1e6e766",
+ "eb5e68234bfcbab422dfccbe97d3f35980c3f82ea64206a9d0ad6c5771da54ec"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145630,
+ "line": 156379,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"d557dbd06455b77ca35c6c25d6f5f353f5cbc7bfc33be531e76d32e0966c0381": {
"signature": "d557dbd06455b77ca35c6c25d6f5f353f5cbc7bfc33be531e76d32e0966c0381",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "42df15c757ee616b95babff32aef51a05555bec4ad0e53e2b6eac0b954710e1a",
+ "57e4bce13a7d16a69f55f04c7b3cd4fe3f85319edbd2648f4c27265815ab32da"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145631,
+ "line": 156380,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"3ea0a43b6a5b0e0ee95e603f93fd393d67d047e495ada2de9bbca1827c96c534": {
"signature": "3ea0a43b6a5b0e0ee95e603f93fd393d67d047e495ada2de9bbca1827c96c534",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "5854b9256c7928623a1e10f44d6518948629d51825786c22eac83fb3fc656fe1",
+ "ce8ab4c7f60141e8088e5c28350f5ca1aa7d86004e7558b675c63945c1a68ab0"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145632,
+ "line": 156381,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"90b5329a1a4bc45b96ef4ddfac36c52bab124a688488974cafd439e079b0ec2a": {
"signature": "90b5329a1a4bc45b96ef4ddfac36c52bab124a688488974cafd439e079b0ec2a",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "c52b0b754228e8afddb7ba4d47c8f7e16a3efd6e7033158425954470792cd90b",
+ "43b24196f0fbd211110a2900d39c668bd682f5b7b3adc1894b5d1835255e078c"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145633,
+ "line": 156382,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"f1301775c4e54b133d321a26a7f6beaf860036db80bff912a841c02ee6ca9d89": {
"signature": "f1301775c4e54b133d321a26a7f6beaf860036db80bff912a841c02ee6ca9d89",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "192bdb9ed978bc0389675d3ada259e48e6ef97bd708ffde06902117e2b2ba2fd",
+ "8edaa83a336b4697bdea221dbe1ab4fa65a92aee3aae077e9a5dcc10e67b20ec"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145634,
+ "line": 156383,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"54769f1b162164f700976c909b06c12ce339bac5805363dd14f68f13bdc2c92f": {
"signature": "54769f1b162164f700976c909b06c12ce339bac5805363dd14f68f13bdc2c92f",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "bae32ac12779099b62b4bebfa29e90f80b680e0986b2db46ea53005e30aace5f",
+ "e3d69d140a6fca9f9193fc7decc460ffb91723148a1e7f522f573db8002df485"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145636,
+ "line": 156385,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"bbcb8bf5173972b19c83dbcd6b9b730912d06f2487bef767d3358f228bcb468f": {
"signature": "bbcb8bf5173972b19c83dbcd6b9b730912d06f2487bef767d3358f228bcb468f",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "d8a50e52b8954262bcd706bbceea04b999f73df05665b14f9f41b2c0a896f43e",
+ "4ee3346642db40cdc0fcbce863678a3e6109ba4c6bdb7b19d9311025668c36cb"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145638,
+ "line": 156387,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"beaf70e38b405396ea5a87059d179f40238f05830ba8943cd5b2b0e7ad59bc3e": {
"signature": "beaf70e38b405396ea5a87059d179f40238f05830ba8943cd5b2b0e7ad59bc3e",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "93b87e5bb6faa41ddb5785dab430d497c9107bf0967be7972487c0111bd83fc6",
+ "3a33a55a53b85e9fdeeb914ffc5cfe1dda0f23c522391258dfb94fc7f7046021"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145639,
+ "line": 156388,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"2b1fa7b3d91e5fac8eea194fc71bc675650e65420026a8a2816dccef85cecca4": {
"signature": "2b1fa7b3d91e5fac8eea194fc71bc675650e65420026a8a2816dccef85cecca4",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "4eee29221a9658c7ecaf4f1d5f69c859824e7f7d3fc90f968f0943ec8a4421f8",
+ "b0f3c04b619d35d0d8a05dee23d1aeaf0f57050b7dc255372b023ced4c861129"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145640,
+ "line": 156389,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"4f7bde2c702841a8d69ba3089ad71c12fb4c63694e9cfe065d8e0dd6529150f9": {
"signature": "4f7bde2c702841a8d69ba3089ad71c12fb4c63694e9cfe065d8e0dd6529150f9",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "c5ddc6ee87a6eb61d155d9aaf832ddec7a10783e76808739fae8c89ea257202e",
+ "7f30762094f072c161d37715f68fd0a1530c0fe98a9b6f5b8ccf9ebe550b8390"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145641,
+ "line": 156390,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"ffa2ccd772cff1ff2322a633d779e53fa052b9464d8151824a53a99d429d0501": {
"signature": "ffa2ccd772cff1ff2322a633d779e53fa052b9464d8151824a53a99d429d0501",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "931854bb61dc9876d912a866adabd34cecbeef403425b322069586b99724077e",
+ "ce0f639347a8a92388e842774d6cd0e908ea74dcc4dea20b915c63af940c10e9"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145642,
+ "line": 156391,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"d8f94806d426e4a3704ad35ccf92cfdf23894b2037efcacc62a4d8db13c929cc": {
"signature": "d8f94806d426e4a3704ad35ccf92cfdf23894b2037efcacc62a4d8db13c929cc",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "8c6cd12f475b05cb7e5172df982df7fcef75ec132bb9a6fc105cd343d28ffe2b",
+ "7b02e3f32c59e341b9d00a3412134f4b6f7e3a7cd01d512a64bee2fa9ce53a64"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145643,
+ "line": 156392,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"45cfb253c0ee074513210a50c7023d144d3b491c361d74a8fd50db1050bb1ac7": {
"signature": "45cfb253c0ee074513210a50c7023d144d3b491c361d74a8fd50db1050bb1ac7",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "28f65f110a9c6c7762344bef7bcbc9c4b48a55508670e4c81e9faf4a164b3c4c",
+ "d507a071eb6bffa0ee9055250e6e714f1427f5ac7f6dcaf94c33e736d5c80be3"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145644,
+ "line": 156393,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"0cc095c709ef5bb14a63b9d13b85398c17900dcf2461ed8e8b96b83977dd436d": {
"signature": "0cc095c709ef5bb14a63b9d13b85398c17900dcf2461ed8e8b96b83977dd436d",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "9426cbe3a8efe4331c1e3a5eb6e406c64d931145b09afae8bd91504cb5f48085",
+ "1b69660ff992f9fcccdea64c493ca7979c31f7cce453cb189c079d9c0c1dfd65"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145645,
+ "line": 156394,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"2581f6c507d823102d29e676256290ab1dd1cbc959b441c441e57226e48346f2": {
"signature": "2581f6c507d823102d29e676256290ab1dd1cbc959b441c441e57226e48346f2",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "2ede692e6067c3ee0239bd3d344c6e9b977447f585124fd5c9098d034df06a99",
+ "338a4dbd0122052e3dd8c31c9a3361aa547d9fc48eba4a82abb6c8a3d4785ce7"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145646,
+ "line": 156395,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"fd3cd9fb48199c5126321644a9a54fc94628da5265479908e4c13c193a2d7441": {
"signature": "fd3cd9fb48199c5126321644a9a54fc94628da5265479908e4c13c193a2d7441",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "72b6e55646ea4bed874fd6fb0b33c109e32f959f94879878586412a1f756b88d",
+ "7b83d7fcf029677fb5dfd9d0d113cc7522fd4064964dc5fe2fe16b2d5a229e69"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145647,
+ "line": 156396,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"d463c24895a555cc1d80c264bddc0955158f07a3c971c0f9c79651774e91d74d": {
"signature": "d463c24895a555cc1d80c264bddc0955158f07a3c971c0f9c79651774e91d74d",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "ab2c3035f02e1187962e170e6da84c449a6f04c5f54c3d607a6e86685034d133",
+ "b5b7e89a73f0f1699c1dc2f52a6cea2cbf2ecd32cf3fb241b33eb9b98c8683ed"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145648,
+ "line": 156397,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"17e6847cc3c1faf5c5d159038651881833a96ec1cad4f74355e2890c9977c27f": {
"signature": "17e6847cc3c1faf5c5d159038651881833a96ec1cad4f74355e2890c9977c27f",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "efe57f09c11a0b8ee6438cb7c308e384accb1275782295a813b592dd19948cb4",
+ "fee5c5d3fa094bfff1d676b1871316da63fe6f6b43f7702685614dc136bb6e9e"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145649,
+ "line": 156398,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"47751bb5957c46a8cf5f38e65c755b3b3e4902b6b50dcc324dd4ba9e304f0b0c": {
"signature": "47751bb5957c46a8cf5f38e65c755b3b3e4902b6b50dcc324dd4ba9e304f0b0c",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "e9f1e78ab918792a0e9e25285d7ee0dfea837bedd67b474a37e48f822010eb6d",
+ "2fcf115d54440052b4ce99115a85293e496df02fca14ac02ee96f37583420857"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145650,
+ "line": 156399,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"559e6f1bd631966f0349224b2b6dad68601b7c9408c014cb583ee7d54333030b": {
"signature": "559e6f1bd631966f0349224b2b6dad68601b7c9408c014cb583ee7d54333030b",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "eafd7cabf207b8eb49f43c39261e8c90b912f2420e04322aa9f66d0b2dd2aa4f",
+ "c76ff97bc7402473bb956697ffb663ab71758c32f4224443ddc87ad318b56eae"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145651,
+ "line": 156400,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"b23f30830ad40390c2c38f61afb59ab1af0af521839438425a3b1961ec5ca180": {
"signature": "b23f30830ad40390c2c38f61afb59ab1af0af521839438425a3b1961ec5ca180",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "15cc71d03340281fee5f4ef9e711e4888168103111af36cbfdfc20ab47cb526c",
+ "3228c641f1080b400737c396c264dffea2b85a45d3a008e0d4cdc1507627c753"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145653,
+ "line": 156402,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"12631f8a3d28eb526a9835044e410bdc70fc36e10581ad86075b5c9ff8906e9a": {
"signature": "12631f8a3d28eb526a9835044e410bdc70fc36e10581ad86075b5c9ff8906e9a",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "454a2241f3b9b9142fd9f4254cf0c3744e85776458a9c9db1c159a4e8a253a70",
+ "dde231b95929400f925b3d2f3a99f588b0cf9b0ac623022e8049036f02585a98"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145654,
+ "line": 156403,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"917540d4d155eda7e8d0c14a5eb97d53ff2733e1c1f52eb608193915fc03c0be": {
"signature": "917540d4d155eda7e8d0c14a5eb97d53ff2733e1c1f52eb608193915fc03c0be",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "1978e4e37ec4b4054c48682bd5576e311f045fe610f0e1ea819545b1542afd66",
+ "de99b91c9825c116d35282c58c9be68775bc2163a7dfcf1f80b938aadcb491ce"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145659,
+ "line": 156408,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"5e2d1799b86185436f1afd961b3e50a883e526c62415790773102df880030130": {
"signature": "5e2d1799b86185436f1afd961b3e50a883e526c62415790773102df880030130",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "4ef3fbc7c022726e03461b8e8150009b75b0f1e888e9646e7044d4bc2a4a933c",
+ "a23801dcb3fd3b45ba6dc22c5f8cf2e083b549916ea4c1fb35c4986318998174"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145660,
+ "line": 156409,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"b12fd269e906f925f5a276c9e8ad34702d44076fc1042998f60405421a76284d": {
"signature": "b12fd269e906f925f5a276c9e8ad34702d44076fc1042998f60405421a76284d",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "803da0bcc976377b0da39ec2e88653cc31d015e699a1b1933c45c70b62d4fd1b",
+ "289bdd40c7049589f1cb49fb58208bd741c6482062e4e14ae5938576939ee87c"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145661,
+ "line": 156410,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"34f9285f137da098f7356f45f7024d11d47e6cdedfee88b0de0fb54a6f638c4b": {
"signature": "34f9285f137da098f7356f45f7024d11d47e6cdedfee88b0de0fb54a6f638c4b",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "514be1e8b339c3dc9d768c503e8dce71c3bdf4a06a6b5428a13dc1cacb7ff006",
+ "da86afa1417091b00bbe959ec63ccab5583062a604ff3c17ed98457f05ba00ac"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145662,
+ "line": 156411,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"52f24eb2e057b2eb407223c64c243729f6678ffda14c0918524e2b0d7effc176": {
"signature": "52f24eb2e057b2eb407223c64c243729f6678ffda14c0918524e2b0d7effc176",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "0dc4e7bab122335ba508ddc2a215eae1941a3a37935ca7058d6aee94df21c1b6",
+ "84f2e285bd0326a7d18201c8c2de5c5b2b10ad83a9e76e62f1c50020078e53a1"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145664,
+ "line": 156413,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"fc3c1503008c46a2e4b9c445ac7f0497a3a735f10ae0efaf30b83b726c33fe83": {
"signature": "fc3c1503008c46a2e4b9c445ac7f0497a3a735f10ae0efaf30b83b726c33fe83",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "b9a617d12d7745305b7b9bb6c6473d178ac1f808e54ae02f9a29e823c0406cce",
+ "a5d5e81276455c322be872ef35a6c439c0b539b5bd1dd133c066c8c057e0c785"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145665,
+ "line": 156414,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
},
"62b407564f5e60d2d0571d174c95c12bee7fe2fa62e0a7c10a8a6aa4d9c79522": {
"signature": "62b407564f5e60d2d0571d174c95c12bee7fe2fa62e0a7c10a8a6aa4d9c79522",
- "alternativeSignatures": [],
+ "alternativeSignatures": [
+ "b1be3ca46f45849bd61cf3e99b5ca06753b926ca5745883b2f54382f41093276",
+ "48a84a91d23727b47d1d2963e4c54b0abca58197ca03704150f8b800aaf86a8f"
+ ],
"target": "src/main/java/com/microsoft/graph/generated/kiota-dom-export.txt",
- "line": 145666,
+ "line": 156415,
+ "uriBaseId": "file:///D:/a/_work/1/s/",
"memberOf": [
"default"
],
"tool": "credscan",
"ruleId": "CSCAN-GENERAL0060",
- "createdDate": "2025-06-20 20:17:04Z",
- "expirationDate": "2025-12-07 20:33:10Z",
- "justification": "This error is baselined with an expiration date of 180 days from 2025-06-20 20:33:10Z"
+ "createdDate": "2026-05-27 22:53:06Z",
+ "expirationDate": "2026-11-13 22:59:01Z",
+ "justification": "This error is baselined with an expiration date of 180 days from 2026-05-27 22:59:01Z"
}
}
}
\ No newline at end of file
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 739066ae921..054f172220c 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,9 +1,7 @@
version: 2
updates:
-- package-ecosystem: gradle
- directories:
- - "/"
- - "/java-8"
+- package-ecosystem: maven
+ directory: "/"
schedule:
interval: daily
time: "09:00" # 9am UTC
@@ -12,45 +10,28 @@ updates:
kiota-dependencies:
patterns:
- "*kiota*"
- junit-dependencies:
+ microsoft-graph:
patterns:
- - "*junit*"
- open-telemetry:
- patterns:
- - "*opentelemetry*"
+ - "*microsoft-graph*"
- package-ecosystem: gradle
directory: "/android"
schedule:
interval: daily
- time: "10:00" # 10am UTC. After core projects are updated to prevent duplicate PRs
+ time: "09:00" # 9am UTC
open-pull-requests-limit: 10
groups:
- kiota-dependencies:
- patterns:
- - "*kiota*"
- junit-dependencies:
+ android-build-tools:
patterns:
- - "*junit*"
- open-telemetry:
- patterns:
- - "*opentelemetry*"
-- package-ecosystem: maven
+ - "*android*"
+ - "*gradle-enterprise*"
+ - "*gradle-util*"
+ - "*gradle-versions*"
+- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
groups:
- kiota-dependencies:
- patterns:
- - "*kiota*"
- junit-dependencies:
- patterns:
- - "*junit*"
- open-telemetry:
+ all-actions:
patterns:
- - "*opentelemetry*"
-- package-ecosystem: github-actions
- directory: "/"
- schedule:
- interval: daily
- open-pull-requests-limit: 10
+ - "*"
diff --git a/.github/workflows/api-level-lint.yml b/.github/workflows/api-level-lint.yml
index fb463ddfc6c..ba5ef12d65f 100644
--- a/.github/workflows/api-level-lint.yml
+++ b/.github/workflows/api-level-lint.yml
@@ -11,8 +11,8 @@ jobs:
lint-api-level:
runs-on: [self-hosted, 1ES.Pool=1es-ubuntu-msgraph-sdk-java-memory-latest-m]
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-java@v4
+ - uses: actions/checkout@v6
+ - uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
@@ -21,7 +21,7 @@ jobs:
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
shell: pwsh
- name: Setup Android SDK
- uses: android-actions/setup-android@v3.2.2
+ uses: android-actions/setup-android@v4.0.1
- name: Add execution right to the script
run: chmod +x gradlew
working-directory: ./android
@@ -31,7 +31,7 @@ jobs:
working-directory: ./android
- name: Upload linting results
if: failure() && steps.lint.outcome == 'failure'
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: lint-report
path: ./android/build/reports
diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml
index d454cd18644..9d903943300 100644
--- a/.github/workflows/auto-merge-dependabot.yml
+++ b/.github/workflows/auto-merge-dependabot.yml
@@ -19,7 +19,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
- uses: dependabot/fetch-metadata@v2.4.0
+ uses: dependabot/fetch-metadata@v3.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 36a60362b14..2e6fb0173b4 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -42,18 +42,18 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Set up JDK
- uses: actions/setup-java@v4
+ uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
- cache: gradle
+ cache: maven
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- uses: github/codeql-action/init@v3
+ uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -75,12 +75,10 @@ jobs:
# 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 --no-build-cache build
+ - name: Build with Maven
+ run: ./mvnw compile --no-transfer-progress -DskipTests
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v3
+ uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/maven-build.yml
similarity index 60%
rename from .github/workflows/gradle-build.yml
rename to .github/workflows/maven-build.yml
index dea028594db..e90d5803d31 100644
--- a/.github/workflows/gradle-build.yml
+++ b/.github/workflows/maven-build.yml
@@ -1,4 +1,4 @@
-name: Gradle Build and Compare Package
+name: Maven Build
on:
push:
@@ -11,62 +11,52 @@ jobs:
build-java-latest:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up JDK
- uses: actions/setup-java@v4
+ uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
- cache: gradle
+ cache: maven
- name: Move generated sources to correct package
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
shell: pwsh
- - name: Grant Execute permission for gradlew
- run: chmod +x gradlew
- - name: Build with Gradle
- run: ./gradlew build
+ - name: Build with Maven
+ run: ./mvnw verify --no-transfer-progress
- name: Upload Unit Test Results
if: ${{ always() }}
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: UnitTests
path: |
- build/reports/tests/test/**
- build/test-results/**
+ target/surefire-reports/**
- name: Upload a Build Artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: drop
path: |
- **/libs/*
- build/generated-pom.xml
- build/generated-pom.xml.asc
- build.gradle
- gradlew
- gradlew.bat
- settings.gradle
- gradle.properties
- **/gradle/**
+ target/*.jar
+ pom.xml
+ mvnw
+ mvnw.cmd
+ .mvn/**
scripts/**
build-java-8:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up JDK
- uses: actions/setup-java@v4
+ uses: actions/setup-java@v5
with:
java-version: 8
distribution: 'temurin'
- cache: gradle
+ cache: maven
- name: Move generated sources to correct package
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
shell: pwsh
- - name: Grant Execute permission for gradlew
- run: chmod +x gradlew
- name: Build with Java 8
- working-directory: ./java-8
- run: .././gradlew build
+ run: ./mvnw compile --no-transfer-progress
build:
needs: [build-java-latest, build-java-8]
diff --git a/.github/workflows/project-auto-add.yml b/.github/workflows/project-auto-add.yml
index bc86b1ed983..d47299783c6 100644
--- a/.github/workflows/project-auto-add.yml
+++ b/.github/workflows/project-auto-add.yml
@@ -18,7 +18,7 @@ jobs:
steps:
- name: Generate token
id: generate_token
- uses: actions/create-github-app-token@v2
+ uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.GRAPHBOT_APP_ID }}
private-key: ${{ secrets.GRAPHBOT_APP_PEM }}
diff --git a/.github/workflows/release-please-gha.yml b/.github/workflows/release-please-gha.yml
new file mode 100644
index 00000000000..b6bc742e5b1
--- /dev/null
+++ b/.github/workflows/release-please-gha.yml
@@ -0,0 +1,36 @@
+## -----------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
+## -----------------------------------------------------------------------------
+#
+# Summary:
+# This GitHub Actions workflow automates the release process using Release Please.
+# It triggers on pushes to the main branch, generates a GitHub App token using organization
+# variables and secrets, and then runs the release-please-action to manage versioning and changelogs.
+
+name: Release Please
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Generate GitHub App token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
+ private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
+
+ - name: Release Please
+ uses: googleapis/release-please-action@v5
+ with:
+ token: ${{ steps.app-token.outputs.token }}
+ config-file: release-please-config.json
+ manifest-file: .release-please-manifest.json
diff --git a/.github/workflows/validate-public-api-surface.yml b/.github/workflows/validate-public-api-surface.yml
index 4fbec33fc53..1586c14b54c 100644
--- a/.github/workflows/validate-public-api-surface.yml
+++ b/.github/workflows/validate-public-api-surface.yml
@@ -17,7 +17,7 @@ jobs:
validate-public-api-surface:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- uses: microsoftgraph/kiota-dom-export-diff-tool/export@main
id: generatePatch
- uses: microsoftgraph/kiota-dom-export-diff-tool/tool@main
@@ -35,14 +35,14 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload patch file as artifact
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
continue-on-error: true
with:
name: patch
path: '*.patch'
- name: Upload explanations file as artifact
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
continue-on-error: true
with:
name: explanations
diff --git a/.gitignore b/.gitignore
index 79813c70924..047411c3df9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,16 +20,17 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
-/.gradle/
-/build/
-/bin/
+
+# Maven
+/target/
+
+# Maven wrapper
+!.mvn/wrapper/maven-wrapper.jar
#Eclipse
.project
.classpath
.settings
-# Maven
-/target/
local.properties
.idea
diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar
new file mode 100644
index 00000000000..7967f30dd1d
Binary files /dev/null and b/.mvn/wrapper/maven-wrapper.jar differ
diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 00000000000..6f80481060a
--- /dev/null
+++ b/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,4 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
+distributionSha256Sum=4ec3f26fb1a692473aea0235c300bd20f0f9fe741947c82c1234cefd76ac3a3c
+wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar
+wrapperSha256Sum=3d8f20ce6103913be8b52aef6d994e0c54705fb527324ceb9b835b338739c7a8
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index f47bf391d10..1a9c02f7a7e 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "6.45.0"
+ ".": "6.68.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bf377652b09..7eb50216f8a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,192 @@
All notable changes to this project will be documented in this file.
+## [6.68.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.67.0...v6.68.0) (2026-08-05)
+
+
+### Features
+
+* **generation:** update request builders and models ([800762d](https://github.com/microsoftgraph/msgraph-sdk-java/commit/800762d46e93a11f8cddbaa7372b5791314d138b))
+
+## [6.67.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.66.1...v6.67.0) (2026-07-21)
+
+
+### Features
+
+* **generation:** update request builders and models ([ef84bc9](https://github.com/microsoftgraph/msgraph-sdk-java/commit/ef84bc973e8623e50afedebdcfe5a4a38c5e8f8b))
+
+## [6.66.1](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.66.0...v6.66.1) (2026-07-13)
+
+
+### Bug Fixes
+
+* Merge pull request [#2638](https://github.com/microsoftgraph/msgraph-sdk-java/issues/2638) from microsoftgraph/ci/update-deployment-approver ([6a199fc](https://github.com/microsoftgraph/msgraph-sdk-java/commit/6a199fcdbe9e479db1d3c96389f91af5649f1606))
+
+## [6.66.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.65.0...v6.66.0) (2026-07-10)
+
+
+### Features
+
+* **generation:** update request builders and models ([0ab63e1](https://github.com/microsoftgraph/msgraph-sdk-java/commit/0ab63e1f948133cde80d6e7b9555723f0ca08ced))
+* **generation:** update request builders and models ([674c92e](https://github.com/microsoftgraph/msgraph-sdk-java/commit/674c92ef30491e9b842e3762fe8c0a56ea534bab))
+* **generation:** update request builders and models ([6096368](https://github.com/microsoftgraph/msgraph-sdk-java/commit/6096368cc0ba75d839248d73a306057b5b6f88c9))
+
+
+### Bug Fixes
+
+* import GPG signing key for Maven signing in ci-build ([d8e88f7](https://github.com/microsoftgraph/msgraph-sdk-java/commit/d8e88f7600d151f2be5d2f74140413062c5d5c89))
+
+## [6.65.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.64.0...v6.65.0) (2026-05-19)
+
+
+### Features
+
+* **generation:** update request builders and models ([#2594](https://github.com/microsoftgraph/msgraph-sdk-java/issues/2594)) ([090951c](https://github.com/microsoftgraph/msgraph-sdk-java/commit/090951c4d9e89a87a1ce777c3b9dda43cd1b2f7d))
+
+## [6.64.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.63.0...v6.64.0) (2026-05-05)
+
+
+### Features
+
+* **generation:** update request builders and models ([21bd96b](https://github.com/microsoftgraph/msgraph-sdk-java/commit/21bd96b37c1ae171dc1cbe6783e2034beca80631))
+* **generation:** update request builders and models ([e107445](https://github.com/microsoftgraph/msgraph-sdk-java/commit/e107445bfa1f4b566c399c9075c4093d9059b5d2))
+
+## [6.63.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.62.0...v6.63.0) (2026-04-17)
+
+
+### Features
+
+* **generation:** update request builders and models ([aa6302a](https://github.com/microsoftgraph/msgraph-sdk-java/commit/aa6302a84312d44bc98d46ba12019437b5a39adc))
+
+
+### Bug Fixes
+
+* remove previewBranch param and align deploy stage condition with deploy_maven job ([8c970c6](https://github.com/microsoftgraph/msgraph-sdk-java/commit/8c970c69215998195833dd10393e389cc47a8252))
+* remove previewBranch parameter and align deploy stage condition ([53507c0](https://github.com/microsoftgraph/msgraph-sdk-java/commit/53507c090b1834e155503b81e0fb95bd7c1728dd))
+
+## [6.62.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.61.0...v6.62.0) (2026-02-19)
+
+
+### Features
+
+* **generation:** update request builders and models ([d84017b](https://github.com/microsoftgraph/msgraph-sdk-java/commit/d84017b12ffb7512c71896ddd248b26aa395aa10))
+
+## [6.61.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.60.0...v6.61.0) (2026-02-06)
+
+
+### Features
+
+* **generation:** update request builders and models ([36db97c](https://github.com/microsoftgraph/msgraph-sdk-java/commit/36db97cfa34bc8ae19c500e402cfe538da1a049d))
+
+## [6.60.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.59.0...v6.60.0) (2026-01-07)
+
+
+### Features
+
+* **generation:** update request builders and models ([dcdbea3](https://github.com/microsoftgraph/msgraph-sdk-java/commit/dcdbea34881a4e33416770a9ed2e3be544cc0dc5))
+
+## [6.59.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.58.0...v6.59.0) (2025-12-17)
+
+
+### Features
+
+* **generation:** update request builders and models ([19f7cd8](https://github.com/microsoftgraph/msgraph-sdk-java/commit/19f7cd87690c0224d6450960f817cda9c8a2dfed))
+
+## [6.58.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.57.0...v6.58.0) (2025-12-03)
+
+
+### Features
+
+* **generation:** update request builders and models ([#2519](https://github.com/microsoftgraph/msgraph-sdk-java/issues/2519)) ([9ae83ff](https://github.com/microsoftgraph/msgraph-sdk-java/commit/9ae83ff1ccdf007638fb3c03d0d093b7a504f3ad))
+
+## [6.57.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.56.0...v6.57.0) (2025-11-19)
+
+
+### Features
+
+* **generation:** update request builders and models ([6f65f8d](https://github.com/microsoftgraph/msgraph-sdk-java/commit/6f65f8d97b0340fd64214e211d57f40a2909bf0f))
+
+## [6.56.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.55.0...v6.56.0) (2025-11-06)
+
+
+### Features
+
+* **generation:** update request builders and models ([e7af63b](https://github.com/microsoftgraph/msgraph-sdk-java/commit/e7af63b59b43003e83dc3a318c9d957643cefca5))
+* **generation:** update request builders and models [#2507](https://github.com/microsoftgraph/msgraph-sdk-java/issues/2507) ([a3daaea](https://github.com/microsoftgraph/msgraph-sdk-java/commit/a3daaea6e7ded8379f10f7f052ee4977d6d84a0c))
+
+## [6.55.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.54.0...v6.55.0) (2025-10-21)
+
+
+### Features
+
+* **generation:** update request builders and models ([4171605](https://github.com/microsoftgraph/msgraph-sdk-java/commit/4171605db5a78e2149f24fe2ebcef7f6b9bd246a))
+* **generation:** update request builders and models ([66d3364](https://github.com/microsoftgraph/msgraph-sdk-java/commit/66d3364f9b9837629ddf544388b5a50a98788054))
+
+## [6.54.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.53.0...v6.54.0) (2025-10-03)
+
+
+### Features
+
+* **generation:** update request builders and models ([4f4c23d](https://github.com/microsoftgraph/msgraph-sdk-java/commit/4f4c23df4fa0df7d5b3e43fbc69a4da80f2b66bb))
+
+## [6.53.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.52.0...v6.53.0) (2025-09-16)
+
+
+### Features
+
+* **generation:** update request builders and models ([946fb5f](https://github.com/microsoftgraph/msgraph-sdk-java/commit/946fb5fccb6690d4fea481555fda8db46e26b714))
+
+## [6.52.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.51.0...v6.52.0) (2025-09-11)
+
+
+### Features
+
+* **generation:** update request builders and models ([0ec8f7d](https://github.com/microsoftgraph/msgraph-sdk-java/commit/0ec8f7d7797e04f1256df57de814e446633c9415))
+* **generation:** update request builders and models ([3c42ff8](https://github.com/microsoftgraph/msgraph-sdk-java/commit/3c42ff84c2e7d3863a2073938d5dde36fe7d70ac))
+
+## [6.51.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.50.0...v6.51.0) (2025-08-20)
+
+
+### Features
+
+* **generation:** update request builders and models ([d4b69fe](https://github.com/microsoftgraph/msgraph-sdk-java/commit/d4b69fe1a63cc735ad37b064a61c7ee6c9ae7bbf))
+
+## [6.50.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.49.0...v6.50.0) (2025-08-12)
+
+
+### Features
+
+* **generation:** update request builders and models ([220314f](https://github.com/microsoftgraph/msgraph-sdk-java/commit/220314f818caf73b73e3afab23c94449f843cb6a))
+
+## [6.49.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.48.0...v6.49.0) (2025-08-05)
+
+
+### Features
+
+* **generation:** update request builders and models ([074e423](https://github.com/microsoftgraph/msgraph-sdk-java/commit/074e42385257f43ff0982f9fffb86200ae8b4c28))
+
+## [6.48.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.47.0...v6.48.0) (2025-07-30)
+
+
+### Features
+
+* **generation:** update request builders and models ([d7b835a](https://github.com/microsoftgraph/msgraph-sdk-java/commit/d7b835a75960b7a45df7751b2ce0cbad394fd74a))
+
+## [6.47.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.46.0...v6.47.0) (2025-07-22)
+
+
+### Features
+
+* **generation:** update request builders and models ([1dbd8e5](https://github.com/microsoftgraph/msgraph-sdk-java/commit/1dbd8e5ea3c8e6595aaa4032a9dc9d3db0f0ca22))
+
+## [6.46.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.45.0...v6.46.0) (2025-07-16)
+
+
+### Features
+
+* **generation:** update request builders and models ([8c2ec5e](https://github.com/microsoftgraph/msgraph-sdk-java/commit/8c2ec5e65d43a6daf0d7344af4564e31631b0c7c))
+* **generation:** update request builders and models ([6088afa](https://github.com/microsoftgraph/msgraph-sdk-java/commit/6088afae85990cff17f51bb3ab069980ced8c7ca))
+
## [6.45.0](https://github.com/microsoftgraph/msgraph-sdk-java/compare/v6.44.0...v6.45.0) (2025-07-08)
diff --git a/README.md b/README.md
index 9118e0e352a..65eac8bc5f0 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
# Microsoft Graph SDK for Java
-## Version 6.1.0 now Generally Available (GA)!
[](https://search.maven.org/artifact/com.microsoft.graph/microsoft-graph)
@@ -21,7 +20,7 @@ repositories {
dependencies {
// Include the sdk as a dependency
// x-release-please-start-version
- implementation 'com.microsoft.graph:microsoft-graph:6.45.0'
+ implementation 'com.microsoft.graph:microsoft-graph:6.68.0'
// x-release-please-end
// This dependency is only needed if you are using a TokenCredential object for authentication
implementation 'com.azure:azure-identity:1.15.0'
@@ -38,7 +37,7 @@ Add the dependency in `dependencies` in pom.xml
com.microsoft.graph
microsoft-graph
- 6.45.0
+ 6.68.0
@@ -100,24 +99,28 @@ For more detailed documentation, see:
* [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-java/issues)
* [Contributions](https://github.com/microsoftgraph/msgraph-sdk-java/blob/main/CONTRIBUTING.md)
-## 5. Issues
+## 5. Update Schedule
+
+The Microsoft Graph Java SDK is scheduled to be updated during the second and fourth week of each month
+
+## 6. Issues
For known issues, see [issues](https://github.com/MicrosoftGraph/msgraph-sdk-java/issues).
-## 6. Contributions
+## 7. Contributions
The Microsoft Graph SDK is open for contribution. To contribute to this project, see [Contributing](https://github.com/microsoftgraph/msgraph-sdk-java/blob/main/CONTRIBUTING.md).
-## 7. Supported Java versions
+## 8. Supported Java versions
The Microsoft Graph SDK for Java library is supported at runtime for Java 8+ and [Android API revision 26](http://source.android.com/source/build-numbers.html) and greater.
-## 8. License
+## 9. License
Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MIT license](LICENSE).
-## 9. Third-party notices
+## 10. Third-party notices
[Third-party notices](THIRD%20PARTY%20NOTICES)
diff --git a/android/build.gradle b/android/build.gradle
index d77554fe136..25ecad6888c 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -8,8 +8,8 @@ buildscript {
dependencies {
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.19.2"
classpath "gradle.plugin.com.github.viswaramamoorthy:gradle-util-plugins:0.1.0-RELEASE"
- classpath "com.github.ben-manes:gradle-versions-plugin:0.52.0"
- classpath "com.android.tools.build:gradle:8.11.0"
+ classpath "com.github.ben-manes:gradle-versions-plugin:0.54.0"
+ classpath "com.android.tools.build:gradle:8.13.2"
}
}
@@ -57,6 +57,7 @@ android {
disable "GradleDependency"
disable "NewerVersionAvailable"
disable "KotlinPropertyAccess" // getting false positives because of odata actions & functions (getOrder setOrder)
+ disable 'AndroidGradlePluginVersion' // We will not be upgrading gradle to version 9 as it does not support our minimum required version of jdk8
}
sourceSets {
main {
@@ -70,4 +71,17 @@ android {
}
}
-apply from: "../gradle/dependencies.gradle"
+
+dependencies {
+ implementation 'com.squareup.okhttp3:okhttp:4.12.0'
+ implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
+
+ api 'com.microsoft.graph:microsoft-graph-core:3.6.6'
+
+ implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.9.2'
+ implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.9.2'
+ implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.9.2'
+ implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.9.2'
+ implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.9.2'
+ implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.9.2'
+}
diff --git a/build.gradle b/build.gradle
deleted file mode 100644
index a17cd6e3beb..00000000000
--- a/build.gradle
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- * This file was generated by the Gradle 'init' task.
- *
- * This generated file contains a sample Java Library project to get you started.
- * For more details take a look at the Java Libraries chapter in the Gradle
- * User Manual available at https://docs.gradle.org/6.6/userguide/java_library_plugin.html
- */
-
-plugins {
- // Apply the java-library plugin to add support for Java Library
- id 'java-library'
- id 'eclipse'
- id 'maven-publish'
- id 'signing'
-}
-
-java {
- modularity.inferModulePath = true
- withSourcesJar()
- withJavadocJar()
-}
-
-sourceSets {
- main {
- java {
- exclude 'pom.xml'
- }
- }
-}
-
-// In this section you declare where to find the dependencies of your project
-repositories {
- // You can declare any Maven/Ivy/file repository here.
- mavenCentral()
-}
-
-apply from: "gradle/dependencies.gradle"
-
-def pomConfig = {
- licenses {
- license([:]) {
- name "MIT License"
- url "http://opensource.org/licenses/MIT"
- distribution "repo"
- }
- }
-}
-
-tasks.withType(Javadoc).configureEach {
- enabled = true
- options.addStringOption('Xdoclint:-missing', '-quiet')
-}
-
-tasks.javadocJar {
- zip64 = true
-}
-
-tasks.jar {
- manifest {
- attributes('Automatic-Module-Name': project.property('mavenGroupId'))
- }
- zip64(true)
-}
-
-publishing {
-
- publications {
-
- maven(MavenPublication) {
- customizePom(pom)
- groupId project.property('mavenGroupId')
- artifactId project.property('mavenArtifactId')
- version getVersionName()
- from components.java
- pom.withXml {
- def pomFile = file("${project.buildDir}/generated-pom.xml")
- writeTo(pomFile)
- }
- }
- }
-
- repositories {
- maven {
- name = "ADO"
- url = layout.buildDirectory.dir("publishing-repository")
- }
- }
-}
-
-group = project.property('mavenGroupId')
-version = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}${mavenCentralSnapshotArtifactSuffix}"
-
-signing {
- sign publishing.publications.maven
-}
-tasks.withType(Sign)*.enabled = mavenCentralPublishingEnabled.toBoolean()
-
-def fixAscNames = { name ->
- if(name.contains('pom')) {
- "${project.property('mavenArtifactId')}-${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}.pom.asc"
- } else {
- name.replace('msgraph-sdk-java', "${project.property('mavenArtifactId')}-${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}")
- }
-}
-
-compileJava {
- options.compilerArgs << "-parameters"
- sourceCompatibility = '1.8'
- targetCompatibility = '1.8'
-}
-
-def getVersionCode() {
- return mavenMajorVersion.toInteger() * 10000 + mavenMinorVersion.toInteger() * 100 + mavenPatchVersion.toInteger()
-}
-
-def getVersionName() {
- return "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}${mavenCentralSnapshotArtifactSuffix}"
-}
-
-artifacts {
- archives jar
-}
-
-def customizePom(pom) {
- pom.withXml {
- def root = asNode()
-
- root.dependencies.removeAll { dep ->
- dep.scope == "test"
- }
-
- root.children().last() + {
- resolveStrategy = Closure.DELEGATE_FIRST
-
- description 'Microsoft Graph SDK'
- name 'Microsoft Graph Java SDK'
- url 'https://github.com/microsoftgraph/msgraph-sdk-java'
- organization {
- name 'Microsoft'
- url 'https://github.com/microsoftgraph/msgraph-sdk-java'
- }
- issueManagement {
- system 'GitHub'
- url 'https://github.com/microsoftgraph/msgraph-sdk-java/issues'
- }
- licenses {
- license {
- name "MIT License"
- url "http://opensource.org/licenses/MIT"
- distribution "repo"
- }
- }
- scm {
- url 'https://github.com/microsoftgraph/msgraph-sdk-java'
- connection 'scm:git:git://github.com/microsoftgraph/msgraph-sdk-java.git'
- developerConnection 'scm:git:ssh://git@github.com:microsoftgraph/msgraph-sdk-java.git'
- }
- developers {
- developer {
- name 'Microsoft'
- }
- }
- }
- }
-}
-
-gradle.taskGraph.whenReady { taskGraph ->
- if (project.rootProject.file('local.properties').exists()) {
- Properties properties = new Properties()
- properties.load(project.rootProject.file('local.properties').newDataInputStream())
- tasks.withType(Sign)*.enabled = (properties.containsKey('enableSigning')) ? properties.getProperty('enableSigning').toBoolean() : false
- allprojects { ext."signing.keyId" = properties.getProperty('signing.keyId') }
- allprojects { ext."signing.secretKeyRingFile" = properties.getProperty('signing.secretKeyRingFile') }
- allprojects { ext."signing.password" = properties.getProperty('signing.password') }
- }
-}
-
-model {
- tasks.generatePomFileForMavenPublication {
- destination = file("${project.buildDir}/generated-pom.xml")
- }
-}
diff --git a/gradle.properties b/gradle.properties
deleted file mode 100644
index c4d3106ccda..00000000000
--- a/gradle.properties
+++ /dev/null
@@ -1,129 +0,0 @@
-# Project-wide Gradle settings.
-
-# IDE users:
-# Settings specified in this file will override any Gradle settings
-# configured through the IDE.
-
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
-# Default value: -Xmx10248m
-# org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
-
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true
-
-# The size of the library demands a large amount of RAM to build. Increase as necessary if you get GC errors
-## linux requires 10G, OSX requires 11G
-org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
-org.gradle.parallel=true
-org.gradle.caching=true
-
-mavenGroupId = com.microsoft.graph
-mavenArtifactId = microsoft-graph
-# x-release-please-start-major
-mavenMajorVersion = 6
-# x-release-please-end
-# x-release-please-start-minor
-mavenMinorVersion = 45
-# x-release-please-end
-# x-release-please-start-patch
-mavenPatchVersion = 0
-# x-release-please-end
-mavenArtifactSuffix =
-
-#enable mavenCentralPublishingEnabled to publish to maven central
-mavenCentralSnapshotArtifactSuffix = -SNAPSHOT
-mavenCentralPublishingEnabled=true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle
deleted file mode 100644
index 5faaaa3704f..00000000000
--- a/gradle/dependencies.gradle
+++ /dev/null
@@ -1,15 +0,0 @@
-dependencies {
-
- implementation 'com.squareup.okhttp3:okhttp:4.12.0'
- implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
-
- // Core Http library
- api 'com.microsoft.graph:microsoft-graph-core:3.6.4'
-
- implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.8.8'
- implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.8.8'
- implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.8.8'
- implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.8.8'
- implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.8.8'
- implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.8.8'
-}
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 1b33c55baab..00000000000
Binary files a/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index ff23a68d70f..00000000000
--- a/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
-networkTimeout=10000
-validateDistributionUrl=true
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
deleted file mode 100755
index 23d15a93670..00000000000
--- a/gradlew
+++ /dev/null
@@ -1,251 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright © 2015-2021 the original authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-
-##############################################################################
-#
-# Gradle start up script for POSIX generated by Gradle.
-#
-# Important for running:
-#
-# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
-# noncompliant, but you have some other compliant shell such as ksh or
-# bash, then to run this script, type that shell name before the whole
-# command line, like:
-#
-# ksh Gradle
-#
-# Busybox and similar reduced shells will NOT work, because this script
-# requires all of these POSIX shell features:
-# * functions;
-# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
-# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
-# * compound commands having a testable exit status, especially «case»;
-# * various built-in commands including «command», «set», and «ulimit».
-#
-# Important for patching:
-#
-# (2) This script targets any POSIX shell, so it avoids extensions provided
-# by Bash, Ksh, etc; in particular arrays are avoided.
-#
-# The "traditional" practice of packing multiple parameters into a
-# space-separated string is a well documented source of bugs and security
-# problems, so this is (mostly) avoided, by progressively accumulating
-# options in "$@", and eventually passing that to Java.
-#
-# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
-# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
-# see the in-line comments for details.
-#
-# There are tweaks for specific operating systems such as AIX, CygWin,
-# Darwin, MinGW, and NonStop.
-#
-# (3) This script is generated from the Groovy template
-# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
-# within the Gradle project.
-#
-# You can find Gradle at https://github.com/gradle/gradle/.
-#
-##############################################################################
-
-# Attempt to set APP_HOME
-
-# Resolve links: $0 may be a link
-app_path=$0
-
-# Need this for daisy-chained symlinks.
-while
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
- [ -h "$app_path" ]
-do
- ls=$( ls -ld "$app_path" )
- link=${ls#*' -> '}
- case $link in #(
- /*) app_path=$link ;; #(
- *) app_path=$APP_HOME$link ;;
- esac
-done
-
-# This is normally unused
-# shellcheck disable=SC2034
-APP_BASE_NAME=${0##*/}
-# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
-APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD=maximum
-
-warn () {
- echo "$*"
-} >&2
-
-die () {
- echo
- echo "$*"
- echo
- exit 1
-} >&2
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "$( uname )" in #(
- CYGWIN* ) cygwin=true ;; #(
- Darwin* ) darwin=true ;; #(
- MSYS* | MINGW* ) msys=true ;; #(
- NONSTOP* ) nonstop=true ;;
-esac
-
-CLASSPATH="\\\"\\\""
-
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD=$JAVA_HOME/jre/sh/java
- else
- JAVACMD=$JAVA_HOME/bin/java
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD=java
- if ! command -v java >/dev/null 2>&1
- then
- die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-fi
-
-# Increase the maximum file descriptors if we can.
-if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
- case $MAX_FD in #(
- max*)
- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
- # shellcheck disable=SC2039,SC3045
- MAX_FD=$( ulimit -H -n ) ||
- warn "Could not query maximum file descriptor limit"
- esac
- case $MAX_FD in #(
- '' | soft) :;; #(
- *)
- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
- # shellcheck disable=SC2039,SC3045
- ulimit -n "$MAX_FD" ||
- warn "Could not set maximum file descriptor limit to $MAX_FD"
- esac
-fi
-
-# Collect all arguments for the java command, stacking in reverse order:
-# * args from the command line
-# * the main class name
-# * -classpath
-# * -D...appname settings
-# * --module-path (only if needed)
-# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
-
-# For Cygwin or MSYS, switch paths to Windows format before running java
-if "$cygwin" || "$msys" ; then
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
-
- JAVACMD=$( cygpath --unix "$JAVACMD" )
-
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- for arg do
- if
- case $arg in #(
- -*) false ;; # don't mess with options #(
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
- [ -e "$t" ] ;; #(
- *) false ;;
- esac
- then
- arg=$( cygpath --path --ignore --mixed "$arg" )
- fi
- # Roll the args list around exactly as many times as the number of
- # args, so each arg winds up back in the position where it started, but
- # possibly modified.
- #
- # NB: a `for` loop captures its iteration list before it begins, so
- # changing the positional parameters here affects neither the number of
- # iterations, nor the values presented in `arg`.
- shift # remove old arg
- set -- "$@" "$arg" # push replacement arg
- done
-fi
-
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-
-# Collect all arguments for the java command:
-# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
-# and any embedded shellness will be escaped.
-# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
-# treated as '${Hostname}' itself on the command line.
-
-set -- \
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
- -classpath "$CLASSPATH" \
- -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
- "$@"
-
-# Stop when "xargs" is not available.
-if ! command -v xargs >/dev/null 2>&1
-then
- die "xargs is not available"
-fi
-
-# Use "xargs" to parse quoted args.
-#
-# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
-#
-# In Bash we could simply go:
-#
-# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
-# set -- "${ARGS[@]}" "$@"
-#
-# but POSIX shell has neither arrays nor command substitution, so instead we
-# post-process each arg (as a line of input to sed) to backslash-escape any
-# character that might be a shell metacharacter, then use eval to reverse
-# that process (while maintaining the separation between arguments), and wrap
-# the whole thing up as a single "set" statement.
-#
-# This will of course break if any of these variables contains a newline or
-# an unmatched quote.
-#
-
-eval "set -- $(
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
- xargs -n1 |
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
- tr '\n' ' '
- )" '"$@"'
-
-exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
deleted file mode 100644
index 5eed7ee8452..00000000000
--- a/gradlew.bat
+++ /dev/null
@@ -1,94 +0,0 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-@rem SPDX-License-Identifier: Apache-2.0
-@rem
-
-@if "%DEBUG%"=="" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%"=="" set DIRNAME=.
-@rem This is normally unused
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if %ERRORLEVEL% equ 0 goto execute
-
-echo. 1>&2
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
-echo. 1>&2
-echo Please set the JAVA_HOME variable in your environment to match the 1>&2
-echo location of your Java installation. 1>&2
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto execute
-
-echo. 1>&2
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
-echo. 1>&2
-echo Please set the JAVA_HOME variable in your environment to match the 1>&2
-echo location of your Java installation. 1>&2
-
-goto fail
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
-
-:end
-@rem End local scope for the variables with windows NT shell
-if %ERRORLEVEL% equ 0 goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-set EXIT_CODE=%ERRORLEVEL%
-if %EXIT_CODE% equ 0 set EXIT_CODE=1
-if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
-exit /b %EXIT_CODE%
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/java-8/.gitignore b/java-8/.gitignore
deleted file mode 100644
index 7f6823bcc0f..00000000000
--- a/java-8/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.gradle
-build/
diff --git a/java-8/build.gradle b/java-8/build.gradle
deleted file mode 100644
index 56ce1751c3b..00000000000
--- a/java-8/build.gradle
+++ /dev/null
@@ -1,31 +0,0 @@
-plugins {
- // Apply the java-library plugin to add support for Java Library
- id 'java-library'
- id 'eclipse'
-}
-
-repositories {
- mavenCentral()
-}
-
-sourceSets {
- main {
- java {
- srcDirs = ['../src']
- exclude 'test/**'
- }
- }
-}
-
-java {
- toolchain {
- languageVersion = JavaLanguageVersion.of(8)
- }
- withSourcesJar()
-}
-
-tasks.jar {
- zip64(true)
-}
-
-apply from: "../gradle/dependencies.gradle"
diff --git a/java-8/daemon-jvm.properties b/java-8/daemon-jvm.properties
deleted file mode 100644
index 3bd3a411829..00000000000
--- a/java-8/daemon-jvm.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-#This file is generated by updateDaemonJvm
-toolchainVersion=8
diff --git a/java-8/gradle.properties b/java-8/gradle.properties
deleted file mode 100644
index 51d218b5fc1..00000000000
--- a/java-8/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
-
-mavenArtifactId = msgraph-sdk-java
diff --git a/java-8/settings.gradle b/java-8/settings.gradle
deleted file mode 100644
index f61f5ddf93b..00000000000
--- a/java-8/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-rootProject.name = 'msgraph-sdk-java'
diff --git a/mvnw b/mvnw
new file mode 100755
index 00000000000..5272759eee3
--- /dev/null
+++ b/mvnw
@@ -0,0 +1,332 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version @@project.version@@
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /usr/local/etc/mavenrc ]; then
+ . /usr/local/etc/mavenrc
+ fi
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ JAVA_HOME="$(/usr/libexec/java_home)"
+ export JAVA_HOME
+ else
+ JAVA_HOME="/Library/Java/Home"
+ export JAVA_HOME
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] \
+ && JAVA_HOME="$(
+ cd "$JAVA_HOME" || (
+ echo "cannot cd into $JAVA_HOME." >&2
+ exit 1
+ )
+ pwd
+ )"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr "$javaExecutable" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname "$javaExecutable")"
+ javaExecutable="$(cd "$javaHome" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f "$javaExecutable")"
+ fi
+ javaHome="$(dirname "$javaExecutable")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(
+ \unset -f command 2>/dev/null
+ \command -v java
+ )"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set." >&2
+fi
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir" >&2
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.." || exit 1
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ printf '%s' "$(
+ cd "$basedir" || exit 1
+ pwd
+ )"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ # Remove \r in case we run on Windows within Git Bash
+ # and check out the repository with auto CRLF management
+ # enabled. Otherwise, we may read lines that are delimited with
+ # \r\n and produce $'-Xarg\r' rather than -Xarg due to word
+ # splitting rules.
+ tr -s '\r\n' ' ' <"$1"
+ fi
+}
+
+log() {
+ if [ "$MVNW_VERBOSE" = true ]; then
+ printf '%s\n' "$1"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+export MAVEN_PROJECTBASEDIR
+log "$MAVEN_PROJECTBASEDIR"
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
+if [ -r "$wrapperJarPath" ]; then
+ log "Found $wrapperJarPath"
+else
+ log "Couldn't find $wrapperJarPath, downloading it ..."
+
+ if [ -n "$MVNW_REPOURL" ]; then
+ wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/@@project.version@@/maven-wrapper-@@project.version@@.jar"
+ else
+ wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/@@project.version@@/maven-wrapper-@@project.version@@.jar"
+ fi
+ while IFS="=" read -r key value; do
+ # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
+ safeValue=$(echo "$value" | tr -d '\r')
+ case "$key" in wrapperUrl)
+ wrapperUrl="$safeValue"
+ break
+ ;;
+ esac
+ done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+ log "Downloading from: $wrapperUrl"
+
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ log "Found wget ... using wget"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ else
+ wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ log "Found curl ... using curl"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ else
+ curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ fi
+ else
+ log "Falling back to using Java to download"
+ javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaSource=$(cygpath --path --windows "$javaSource")
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaSource" ]; then
+ if [ ! -e "$javaClass" ]; then
+ log " - Compiling MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/javac" "$javaSource")
+ fi
+ if [ -e "$javaClass" ]; then
+ log " - Running MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+# If specified, validate the SHA-256 sum of the Maven wrapper jar file
+wrapperSha256Sum=""
+while IFS="=" read -r key value; do
+ case "$key" in wrapperSha256Sum)
+ wrapperSha256Sum=$value
+ break
+ ;;
+ esac
+done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+if [ -n "$wrapperSha256Sum" ]; then
+ wrapperSha256Result=false
+ if command -v sha256sum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $wrapperSha256Result = false ]; then
+ echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
+ echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
+ echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] \
+ && MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+# shellcheck disable=SC2086 # safe args
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ $MAVEN_DEBUG_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/mvnw.cmd b/mvnw.cmd
new file mode 100644
index 00000000000..708460f95c2
--- /dev/null
+++ b/mvnw.cmd
@@ -0,0 +1,206 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version @@project.version@@
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo. >&2
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo. >&2
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/@@project.version@@/maven-wrapper-@@project.version@@.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/@@project.version@@/maven-wrapper-@@project.version@@.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %WRAPPER_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
+SET WRAPPER_SHA_256_SUM=""
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
+)
+IF NOT %WRAPPER_SHA_256_SUM%=="" (
+ powershell -Command "&{"^
+ "Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash;"^
+ "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
+ "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
+ " Write-Error 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
+ " Write-Error 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
+ " Write-Error 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
+ " exit 1;"^
+ "}"^
+ "}"
+ if ERRORLEVEL 1 goto error
+)
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
diff --git a/pom.xml b/pom.xml
index 3f926b63431..586ef8d2f2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,48 +1,226 @@
-
-
- 6.0.0
+
+
+ 4.0.0
com.microsoft.graph
microsoft-graph
- 6.45.0
- pom
+
+ 6.68.0
+
+ jar
+
+ Microsoft Graph Java SDK
+ Microsoft Graph SDK
+ https://github.com/microsoftgraph/msgraph-sdk-java
+
+
+ Microsoft
+ https://github.com/microsoftgraph/msgraph-sdk-java
+
+
+
+ GitHub
+ https://github.com/microsoftgraph/msgraph-sdk-java/issues
+
+
+
+
+ MIT License
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/microsoftgraph/msgraph-sdk-java
+ scm:git:https://github.com/microsoftgraph/msgraph-sdk-java.git
+ scm:git:ssh://git@github.com:microsoftgraph/msgraph-sdk-java.git
+
+
+
+
+ Microsoft
+
+
+ UTF-8
1.8
1.8
+
+
+ 3.6.6
+ 4.12.0
+ 2.1.1
+ 1.9.2
+
+
+ 3.14.0
+ 3.4.2
+ 3.11.2
+ 3.3.1
+ 3.2.7
+
+
+ central
+ https://repo.maven.apache.org/maven2
+
+
+ GraphDeveloperExperiences_Public
+ https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1
+
+
+
+
+
+ GraphDeveloperExperiences_Public
+ https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1
+
+
+
+
- com.google.code.gson
- gson
- 2.13.1
+ com.microsoft.graph
+ microsoft-graph-core
+ ${microsoft-graph-core.version}
+
com.squareup.okhttp3
okhttp
- 4.12.0
+ ${okhttp.version}
+
- com.microsoft.graph
- microsoft-graph-core
- 3.6.4
+ jakarta.annotation
+ jakarta.annotation-api
+ ${jakarta-annotation.version}
+
- org.junit.jupiter
- junit-jupiter-api
- 5.13.3
- test
+ com.microsoft.kiota
+ microsoft-kiota-authentication-azure
+ ${kiota.version}
+
- org.mockito
- mockito-inline
- 5.2.0
- test
+ com.microsoft.kiota
+ microsoft-kiota-http-okHttp
+ ${kiota.version}
+
+
+
+ com.microsoft.kiota
+ microsoft-kiota-serialization-json
+ ${kiota.version}
+
+
+
+ com.microsoft.kiota
+ microsoft-kiota-serialization-text
+ ${kiota.version}
+
+
+
+ com.microsoft.kiota
+ microsoft-kiota-serialization-form
+ ${kiota.version}
+
+
+
+ com.microsoft.kiota
+ microsoft-kiota-serialization-multipart
+ ${kiota.version}
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven-compiler-plugin.version}
+
+ ${maven.compiler.source}
+ ${maven.compiler.target}
+
+ -parameters
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven-jar-plugin.version}
+
+
+
+ com.microsoft.graph
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ ${maven-javadoc-plugin.version}
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+ -missing
+ true
+ -J-Xmx2g
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ ${maven-source-plugin.version}
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+
+
+
+
+ signing
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ ${maven-gpg-plugin.version}
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
diff --git a/release-please-config.json b/release-please-config.json
index a7132b77fb9..dd1daf92d27 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -14,14 +14,13 @@
"package-name": "com.microsoft.graph.microsoft-graph",
"changelog-path": "CHANGELOG.md",
"extra-files": [
- "gradle.properties",
- "README.md",
- "src/main/java/com/microsoft/graph/info/Constants.java",
{
"type": "xml",
"path": "pom.xml",
- "xpath": "//project/version"
- }
+ "xpath": "/*[local-name()='project']/*[local-name()='version']"
+ },
+ "README.md",
+ "src/main/java/com/microsoft/graph/info/Constants.java"
]
}
},
diff --git a/scripts/validatePackageContents.ps1 b/scripts/validatePackageContents.ps1
index 3eabdab45c0..87e52c12dbd 100644
--- a/scripts/validatePackageContents.ps1
+++ b/scripts/validatePackageContents.ps1
@@ -26,8 +26,6 @@ $expectedFiles = @(
"-javadoc.jar.asc",
"-sources.jar",
"-sources.jar.asc",
- ".module",
- ".module.asc",
".pom",
".pom.asc",
".jar",
diff --git a/settings.gradle b/settings.gradle
deleted file mode 100644
index 53fc3a5eebe..00000000000
--- a/settings.gradle
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * This file was generated by the Gradle 'init' task.
- *
- * The settings file is used to specify which projects to include in your build.
- *
- * Detailed information about configuring a multi-project build in Gradle can be found
- * in the user manual at https://docs.gradle.org/6.6/userguide/multi_project_builds.html
- */
-
-rootProject.name = 'msgraph-sdk-java'
diff --git a/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java
index e22e7e6e6d3..6913d07bb97 100644
--- a/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java
+++ b/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java
@@ -457,7 +457,7 @@ public PermissionGrantsRequestBuilder permissionGrants() {
return new PermissionGrantsRequestBuilder(pathParameters, requestAdapter);
}
/**
- * The places property
+ * Provides operations to manage the collection of place entities.
* @return a {@link PlacesRequestBuilder}
*/
@jakarta.annotation.Nonnull
diff --git a/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java
index 9ab4b472e53..9d5fb5d173b 100644
--- a/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/generated/admin/AdminRequestBuilder.java
@@ -1,11 +1,14 @@
package com.microsoft.graph.admin;
+import com.microsoft.graph.admin.configurationmanagement.ConfigurationManagementRequestBuilder;
import com.microsoft.graph.admin.edge.EdgeRequestBuilder;
+import com.microsoft.graph.admin.exchange.ExchangeRequestBuilder;
import com.microsoft.graph.admin.microsoft365apps.Microsoft365AppsRequestBuilder;
import com.microsoft.graph.admin.people.PeopleRequestBuilder;
import com.microsoft.graph.admin.reportsettings.ReportSettingsRequestBuilder;
import com.microsoft.graph.admin.serviceannouncement.ServiceAnnouncementRequestBuilder;
import com.microsoft.graph.admin.sharepoint.SharepointRequestBuilder;
+import com.microsoft.graph.admin.teams.TeamsRequestBuilder;
import com.microsoft.graph.models.Admin;
import com.microsoft.graph.models.odataerrors.ODataError;
import com.microsoft.kiota.BaseRequestBuilder;
@@ -26,6 +29,14 @@
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AdminRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the configurationManagement property of the microsoft.graph.admin entity.
+ * @return a {@link ConfigurationManagementRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationManagementRequestBuilder configurationManagement() {
+ return new ConfigurationManagementRequestBuilder(pathParameters, requestAdapter);
+ }
/**
* Provides operations to manage the edge property of the microsoft.graph.admin entity.
* @return a {@link EdgeRequestBuilder}
@@ -34,6 +45,14 @@ public class AdminRequestBuilder extends BaseRequestBuilder {
public EdgeRequestBuilder edge() {
return new EdgeRequestBuilder(pathParameters, requestAdapter);
}
+ /**
+ * Provides operations to manage the exchange property of the microsoft.graph.admin entity.
+ * @return a {@link ExchangeRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ExchangeRequestBuilder exchange() {
+ return new ExchangeRequestBuilder(pathParameters, requestAdapter);
+ }
/**
* Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
* @return a {@link Microsoft365AppsRequestBuilder}
@@ -74,6 +93,14 @@ public ServiceAnnouncementRequestBuilder serviceAnnouncement() {
public SharepointRequestBuilder sharepoint() {
return new SharepointRequestBuilder(pathParameters, requestAdapter);
}
+ /**
+ * Provides operations to manage the teams property of the microsoft.graph.admin entity.
+ * @return a {@link TeamsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public TeamsRequestBuilder teams() {
+ return new TeamsRequestBuilder(pathParameters, requestAdapter);
+ }
/**
* Instantiates a new {@link AdminRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/ConfigurationManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/ConfigurationManagementRequestBuilder.java
new file mode 100644
index 00000000000..a2d7717f6e0
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/ConfigurationManagementRequestBuilder.java
@@ -0,0 +1,273 @@
+package com.microsoft.graph.admin.configurationmanagement;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationdrifts.ConfigurationDriftsRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitoringresults.ConfigurationMonitoringResultsRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitors.ConfigurationMonitorsRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs.ConfigurationSnapshotJobsRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationsnapshots.ConfigurationSnapshotsRequestBuilder;
+import com.microsoft.graph.models.ConfigurationManagement;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationManagement property of the microsoft.graph.admin entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationManagementRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the configurationDrifts property of the microsoft.graph.configurationManagement entity.
+ * @return a {@link ConfigurationDriftsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationDriftsRequestBuilder configurationDrifts() {
+ return new ConfigurationDriftsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationMonitoringResults property of the microsoft.graph.configurationManagement entity.
+ * @return a {@link ConfigurationMonitoringResultsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitoringResultsRequestBuilder configurationMonitoringResults() {
+ return new ConfigurationMonitoringResultsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationMonitors property of the microsoft.graph.configurationManagement entity.
+ * @return a {@link ConfigurationMonitorsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitorsRequestBuilder configurationMonitors() {
+ return new ConfigurationMonitorsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationSnapshotJobs property of the microsoft.graph.configurationManagement entity.
+ * @return a {@link ConfigurationSnapshotJobsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationSnapshotJobsRequestBuilder configurationSnapshotJobs() {
+ return new ConfigurationSnapshotJobsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationSnapshots property of the microsoft.graph.configurationManagement entity.
+ * @return a {@link ConfigurationSnapshotsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationSnapshotsRequestBuilder configurationSnapshots() {
+ return new ConfigurationSnapshotsRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationManagementRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationManagementRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationManagementRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationManagementRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property configurationManagement for admin
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property configurationManagement for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * A container for Tenant Configuration Management (TCM) resources. Read-only.
+ * @return a {@link ConfigurationManagement}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationManagement get() {
+ return get(null);
+ }
+ /**
+ * A container for Tenant Configuration Management (TCM) resources. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationManagement}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationManagement::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property configurationManagement in admin
+ * @param body The request body
+ * @return a {@link ConfigurationManagement}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationManagement patch(@jakarta.annotation.Nonnull final ConfigurationManagement body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property configurationManagement in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationManagement}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationManagement patch(@jakarta.annotation.Nonnull final ConfigurationManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationManagement::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property configurationManagement for admin
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property configurationManagement for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * A container for Tenant Configuration Management (TCM) resources. Read-only.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * A container for Tenant Configuration Management (TCM) resources. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property configurationManagement in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationManagement body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property configurationManagement in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationManagementRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationManagementRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationManagementRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * A container for Tenant Configuration Management (TCM) resources. Read-only.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationdrifts/ConfigurationDriftsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationdrifts/ConfigurationDriftsRequestBuilder.java
new file mode 100644
index 00000000000..1d3da967d05
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationdrifts/ConfigurationDriftsRequestBuilder.java
@@ -0,0 +1,245 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationdrifts;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationdrifts.count.CountRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationdrifts.item.ConfigurationDriftItemRequestBuilder;
+import com.microsoft.graph.models.ConfigurationDrift;
+import com.microsoft.graph.models.ConfigurationDriftCollectionResponse;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationDrifts property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationDriftsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationDrifts property of the microsoft.graph.configurationManagement entity.
+ * @param configurationDriftId The unique identifier of configurationDrift
+ * @return a {@link ConfigurationDriftItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationDriftItemRequestBuilder byConfigurationDriftId(@jakarta.annotation.Nonnull final String configurationDriftId) {
+ Objects.requireNonNull(configurationDriftId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("configurationDrift%2Did", configurationDriftId);
+ return new ConfigurationDriftItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationDriftsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationDriftsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationDrifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationDriftsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationDriftsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationDrifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get a list of the configurationDrift objects and their properties.
+ * @return a {@link ConfigurationDriftCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDriftCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Get a list of the configurationDrift objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationDriftCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDriftCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationDriftCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to configurationDrifts for admin
+ * @param body The request body
+ * @return a {@link ConfigurationDrift}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDrift post(@jakarta.annotation.Nonnull final ConfigurationDrift body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to configurationDrifts for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationDrift}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDrift post(@jakarta.annotation.Nonnull final ConfigurationDrift body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationDrift::createFromDiscriminatorValue);
+ }
+ /**
+ * Get a list of the configurationDrift objects and their properties.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get a list of the configurationDrift objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to configurationDrifts for admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationDrift body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to configurationDrifts for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationDrift body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationDriftsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationDriftsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationDriftsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get a list of the configurationDrift objects and their properties.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/devicemanagement/telecomexpensemanagementpartners/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationdrifts/count/CountRequestBuilder.java
similarity index 94%
rename from src/main/java/com/microsoft/graph/generated/devicemanagement/telecomexpensemanagementpartners/count/CountRequestBuilder.java
rename to src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationdrifts/count/CountRequestBuilder.java
index 611a1138a39..c374f76779b 100644
--- a/src/main/java/com/microsoft/graph/generated/devicemanagement/telecomexpensemanagementpartners/count/CountRequestBuilder.java
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationdrifts/count/CountRequestBuilder.java
@@ -1,4 +1,4 @@
-package com.microsoft.graph.devicemanagement.telecomexpensemanagementpartners.count;
+package com.microsoft.graph.admin.configurationmanagement.configurationdrifts.count;
import com.microsoft.graph.models.odataerrors.ODataError;
import com.microsoft.kiota.BaseRequestBuilder;
@@ -25,7 +25,7 @@ public class CountRequestBuilder extends BaseRequestBuilder {
* @param requestAdapter The request adapter to use to execute the requests.
*/
public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
- super(requestAdapter, "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/$count{?%24filter,%24search}", pathParameters);
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationDrifts/$count{?%24filter,%24search}", pathParameters);
}
/**
* Instantiates a new {@link CountRequestBuilder} and sets the default values.
@@ -33,7 +33,7 @@ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationDrifts/{configurationDrift%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationDriftItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationDriftItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationDrifts/{configurationDrift%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property configurationDrifts for admin
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property configurationDrifts for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Get the properties and relationships of a configurationDrift object.
+ * @return a {@link ConfigurationDrift}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDrift get() {
+ return get(null);
+ }
+ /**
+ * Get the properties and relationships of a configurationDrift object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationDrift}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDrift get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationDrift::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property configurationDrifts in admin
+ * @param body The request body
+ * @return a {@link ConfigurationDrift}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDrift patch(@jakarta.annotation.Nonnull final ConfigurationDrift body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property configurationDrifts in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationDrift}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationDrift patch(@jakarta.annotation.Nonnull final ConfigurationDrift body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationDrift::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property configurationDrifts for admin
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property configurationDrifts for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Get the properties and relationships of a configurationDrift object.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the properties and relationships of a configurationDrift object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property configurationDrifts in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationDrift body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property configurationDrifts in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationDrift body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationDriftItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationDriftItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationDriftItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Get the properties and relationships of a configurationDrift object.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/ConfigurationMonitoringResultsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/ConfigurationMonitoringResultsRequestBuilder.java
new file mode 100644
index 00000000000..9ff157aced4
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/ConfigurationMonitoringResultsRequestBuilder.java
@@ -0,0 +1,245 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitoringresults;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitoringresults.count.CountRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitoringresults.item.ConfigurationMonitoringResultItemRequestBuilder;
+import com.microsoft.graph.models.ConfigurationMonitoringResult;
+import com.microsoft.graph.models.ConfigurationMonitoringResultCollectionResponse;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationMonitoringResults property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationMonitoringResultsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationMonitoringResults property of the microsoft.graph.configurationManagement entity.
+ * @param configurationMonitoringResultId The unique identifier of configurationMonitoringResult
+ * @return a {@link ConfigurationMonitoringResultItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitoringResultItemRequestBuilder byConfigurationMonitoringResultId(@jakarta.annotation.Nonnull final String configurationMonitoringResultId) {
+ Objects.requireNonNull(configurationMonitoringResultId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("configurationMonitoringResult%2Did", configurationMonitoringResultId);
+ return new ConfigurationMonitoringResultItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitoringResultsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitoringResultsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitoringResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitoringResultsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitoringResultsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitoringResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get a list of the configurationMonitoringResult objects and their properties.
+ * @return a {@link ConfigurationMonitoringResultCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResultCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Get a list of the configurationMonitoringResult objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitoringResultCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResultCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitoringResultCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to configurationMonitoringResults for admin
+ * @param body The request body
+ * @return a {@link ConfigurationMonitoringResult}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResult post(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to configurationMonitoringResults for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitoringResult}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResult post(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitoringResult::createFromDiscriminatorValue);
+ }
+ /**
+ * Get a list of the configurationMonitoringResult objects and their properties.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get a list of the configurationMonitoringResult objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to configurationMonitoringResults for admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to configurationMonitoringResults for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationMonitoringResultsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitoringResultsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationMonitoringResultsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get a list of the configurationMonitoringResult objects and their properties.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..fe32efb2e8d
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitoringresults.count;
+
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitoringResults/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitoringResults/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/item/ConfigurationMonitoringResultItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/item/ConfigurationMonitoringResultItemRequestBuilder.java
new file mode 100644
index 00000000000..9041ce97b2c
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitoringresults/item/ConfigurationMonitoringResultItemRequestBuilder.java
@@ -0,0 +1,230 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitoringresults.item;
+
+import com.microsoft.graph.models.ConfigurationMonitoringResult;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationMonitoringResults property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationMonitoringResultItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link ConfigurationMonitoringResultItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitoringResultItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitoringResults/{configurationMonitoringResult%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitoringResultItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitoringResultItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitoringResults/{configurationMonitoringResult%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property configurationMonitoringResults for admin
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property configurationMonitoringResults for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Read the properties and relationships of a configurationMonitoringResult object.
+ * @return a {@link ConfigurationMonitoringResult}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResult get() {
+ return get(null);
+ }
+ /**
+ * Read the properties and relationships of a configurationMonitoringResult object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitoringResult}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResult get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitoringResult::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property configurationMonitoringResults in admin
+ * @param body The request body
+ * @return a {@link ConfigurationMonitoringResult}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResult patch(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property configurationMonitoringResults in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitoringResult}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitoringResult patch(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitoringResult::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property configurationMonitoringResults for admin
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property configurationMonitoringResults for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Read the properties and relationships of a configurationMonitoringResult object.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Read the properties and relationships of a configurationMonitoringResult object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property configurationMonitoringResults in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property configurationMonitoringResults in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitoringResult body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationMonitoringResultItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitoringResultItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationMonitoringResultItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Read the properties and relationships of a configurationMonitoringResult object.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/ConfigurationMonitorsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/ConfigurationMonitorsRequestBuilder.java
new file mode 100644
index 00000000000..78d37584a99
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/ConfigurationMonitorsRequestBuilder.java
@@ -0,0 +1,247 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitors;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitors.count.CountRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitors.item.ConfigurationMonitorItemRequestBuilder;
+import com.microsoft.graph.models.ConfigurationMonitor;
+import com.microsoft.graph.models.ConfigurationMonitorCollectionResponse;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationMonitors property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationMonitorsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationMonitors property of the microsoft.graph.configurationManagement entity.
+ * @param configurationMonitorId The unique identifier of configurationMonitor
+ * @return a {@link ConfigurationMonitorItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitorItemRequestBuilder byConfigurationMonitorId(@jakarta.annotation.Nonnull final String configurationMonitorId) {
+ Objects.requireNonNull(configurationMonitorId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("configurationMonitor%2Did", configurationMonitorId);
+ return new ConfigurationMonitorItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitorsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitorsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get a list of the configurationMonitor objects and their properties.
+ * @return a {@link ConfigurationMonitorCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitorCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Get a list of the configurationMonitor objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitorCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitorCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create a new configurationMonitor object that runs periodically in the background at a scheduled frequency. You can create up to 30 configurationMonitor objects per tenant. Each monitor runs at a fixed interval of 6 hours and cannot be configured to run at any other frequency. An administrator can monitor up to 800 configuration resources per day per tenant across all monitors.
+ * @param body The request body
+ * @return a {@link ConfigurationMonitor}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitor post(@jakarta.annotation.Nonnull final ConfigurationMonitor body) {
+ return post(body, null);
+ }
+ /**
+ * Create a new configurationMonitor object that runs periodically in the background at a scheduled frequency. You can create up to 30 configurationMonitor objects per tenant. Each monitor runs at a fixed interval of 6 hours and cannot be configured to run at any other frequency. An administrator can monitor up to 800 configuration resources per day per tenant across all monitors.
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitor}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitor post(@jakarta.annotation.Nonnull final ConfigurationMonitor body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitor::createFromDiscriminatorValue);
+ }
+ /**
+ * Get a list of the configurationMonitor objects and their properties.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get a list of the configurationMonitor objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create a new configurationMonitor object that runs periodically in the background at a scheduled frequency. You can create up to 30 configurationMonitor objects per tenant. Each monitor runs at a fixed interval of 6 hours and cannot be configured to run at any other frequency. An administrator can monitor up to 800 configuration resources per day per tenant across all monitors.
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitor body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create a new configurationMonitor object that runs periodically in the background at a scheduled frequency. You can create up to 30 configurationMonitor objects per tenant. Each monitor runs at a fixed interval of 6 hours and cannot be configured to run at any other frequency. An administrator can monitor up to 800 configuration resources per day per tenant across all monitors.
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitor body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationMonitorsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationMonitorsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get a list of the configurationMonitor objects and their properties.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..730a949ac9e
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitors.count;
+
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/item/ConfigurationMonitorItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/item/ConfigurationMonitorItemRequestBuilder.java
new file mode 100644
index 00000000000..0908de75692
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/item/ConfigurationMonitorItemRequestBuilder.java
@@ -0,0 +1,243 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitors.item;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationmonitors.item.baseline.BaselineRequestBuilder;
+import com.microsoft.graph.models.ConfigurationMonitor;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationMonitors property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationMonitorItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the baseline property of the microsoft.graph.configurationMonitor entity.
+ * @return a {@link BaselineRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public BaselineRequestBuilder baseline() {
+ return new BaselineRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitorItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitorItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors/{configurationMonitor%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationMonitorItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationMonitorItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors/{configurationMonitor%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete a configurationMonitor object permanently. A deleted configurationMonitor can't be restored.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete a configurationMonitor object permanently. A deleted configurationMonitor can't be restored.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Get the properties and relationships of a configurationMonitor object.
+ * @return a {@link ConfigurationMonitor}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitor get() {
+ return get(null);
+ }
+ /**
+ * Get the properties and relationships of a configurationMonitor object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitor}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitor get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitor::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the properties of a configurationMonitor object, including the monitor name, description, and baseline.
+ * @param body The request body
+ * @return a {@link ConfigurationMonitor}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitor patch(@jakarta.annotation.Nonnull final ConfigurationMonitor body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the properties of a configurationMonitor object, including the monitor name, description, and baseline.
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationMonitor}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationMonitor patch(@jakarta.annotation.Nonnull final ConfigurationMonitor body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationMonitor::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete a configurationMonitor object permanently. A deleted configurationMonitor can't be restored.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete a configurationMonitor object permanently. A deleted configurationMonitor can't be restored.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Get the properties and relationships of a configurationMonitor object.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the properties and relationships of a configurationMonitor object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the properties of a configurationMonitor object, including the monitor name, description, and baseline.
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitor body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the properties of a configurationMonitor object, including the monitor name, description, and baseline.
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationMonitor body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationMonitorItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationMonitorItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationMonitorItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Get the properties and relationships of a configurationMonitor object.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/item/baseline/BaselineRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/item/baseline/BaselineRequestBuilder.java
new file mode 100644
index 00000000000..a8a99b1cff4
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationmonitors/item/baseline/BaselineRequestBuilder.java
@@ -0,0 +1,230 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationmonitors.item.baseline;
+
+import com.microsoft.graph.models.ConfigurationBaseline;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the baseline property of the microsoft.graph.configurationMonitor entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class BaselineRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link BaselineRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public BaselineRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors/{configurationMonitor%2Did}/baseline{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link BaselineRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public BaselineRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationMonitors/{configurationMonitor%2Did}/baseline{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property baseline for admin
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property baseline for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline get() {
+ return get(null);
+ }
+ /**
+ * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaseline::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property baseline in admin
+ * @param body The request body
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline patch(@jakarta.annotation.Nonnull final ConfigurationBaseline body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property baseline in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline patch(@jakarta.annotation.Nonnull final ConfigurationBaseline body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaseline::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property baseline for admin
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property baseline for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property baseline in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationBaseline body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property baseline in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationBaseline body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link BaselineRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public BaselineRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new BaselineRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/ConfigurationSnapshotJobsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/ConfigurationSnapshotJobsRequestBuilder.java
new file mode 100644
index 00000000000..ae734b092f9
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/ConfigurationSnapshotJobsRequestBuilder.java
@@ -0,0 +1,245 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs.count.CountRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs.item.ConfigurationSnapshotJobItemRequestBuilder;
+import com.microsoft.graph.models.ConfigurationSnapshotJob;
+import com.microsoft.graph.models.ConfigurationSnapshotJobCollectionResponse;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationSnapshotJobs property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationSnapshotJobsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationSnapshotJobs property of the microsoft.graph.configurationManagement entity.
+ * @param configurationSnapshotJobId The unique identifier of configurationSnapshotJob
+ * @return a {@link ConfigurationSnapshotJobItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationSnapshotJobItemRequestBuilder byConfigurationSnapshotJobId(@jakarta.annotation.Nonnull final String configurationSnapshotJobId) {
+ Objects.requireNonNull(configurationSnapshotJobId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("configurationSnapshotJob%2Did", configurationSnapshotJobId);
+ return new ConfigurationSnapshotJobItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationSnapshotJobsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationSnapshotJobsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationSnapshotJobsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationSnapshotJobsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get a list of the configurationSnapshotJob objects and their properties.
+ * @return a {@link ConfigurationSnapshotJobCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJobCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Get a list of the configurationSnapshotJob objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationSnapshotJobCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJobCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationSnapshotJobCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to configurationSnapshotJobs for admin
+ * @param body The request body
+ * @return a {@link ConfigurationSnapshotJob}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJob post(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to configurationSnapshotJobs for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationSnapshotJob}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJob post(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationSnapshotJob::createFromDiscriminatorValue);
+ }
+ /**
+ * Get a list of the configurationSnapshotJob objects and their properties.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get a list of the configurationSnapshotJob objects and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to configurationSnapshotJobs for admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to configurationSnapshotJobs for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationSnapshotJobsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationSnapshotJobsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationSnapshotJobsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get a list of the configurationSnapshotJob objects and their properties.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..73ba0b616ac
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs.count;
+
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/item/ConfigurationSnapshotJobItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/item/ConfigurationSnapshotJobItemRequestBuilder.java
new file mode 100644
index 00000000000..5bd9629f293
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshotjobs/item/ConfigurationSnapshotJobItemRequestBuilder.java
@@ -0,0 +1,232 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs.item;
+
+import com.microsoft.graph.models.ConfigurationSnapshotJob;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationSnapshotJobs property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationSnapshotJobItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link ConfigurationSnapshotJobItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationSnapshotJobItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs/{configurationSnapshotJob%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationSnapshotJobItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationSnapshotJobItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs/{configurationSnapshotJob%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete a configurationSnapshotJob object.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete a configurationSnapshotJob object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * Read the properties and relationships of a configurationSnapshotJob object.
+ * @return a {@link ConfigurationSnapshotJob}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJob get() {
+ return get(null);
+ }
+ /**
+ * Read the properties and relationships of a configurationSnapshotJob object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationSnapshotJob}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJob get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationSnapshotJob::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property configurationSnapshotJobs in admin
+ * @param body The request body
+ * @return a {@link ConfigurationSnapshotJob}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJob patch(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property configurationSnapshotJobs in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationSnapshotJob}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationSnapshotJob patch(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationSnapshotJob::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete a configurationSnapshotJob object.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete a configurationSnapshotJob object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Read the properties and relationships of a configurationSnapshotJob object.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Read the properties and relationships of a configurationSnapshotJob object.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property configurationSnapshotJobs in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property configurationSnapshotJobs in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationSnapshotJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationSnapshotJobItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationSnapshotJobItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationSnapshotJobItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * Read the properties and relationships of a configurationSnapshotJob object.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/ConfigurationSnapshotsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/ConfigurationSnapshotsRequestBuilder.java
new file mode 100644
index 00000000000..be27ad856e5
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/ConfigurationSnapshotsRequestBuilder.java
@@ -0,0 +1,245 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationsnapshots;
+
+import com.microsoft.graph.admin.configurationmanagement.configurationsnapshots.count.CountRequestBuilder;
+import com.microsoft.graph.admin.configurationmanagement.configurationsnapshots.item.ConfigurationBaselineItemRequestBuilder;
+import com.microsoft.graph.models.ConfigurationBaseline;
+import com.microsoft.graph.models.ConfigurationBaselineCollectionResponse;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationSnapshots property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationSnapshotsRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the configurationSnapshots property of the microsoft.graph.configurationManagement entity.
+ * @param configurationBaselineId The unique identifier of configurationBaseline
+ * @return a {@link ConfigurationBaselineItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationBaselineItemRequestBuilder byConfigurationBaselineId(@jakarta.annotation.Nonnull final String configurationBaselineId) {
+ Objects.requireNonNull(configurationBaselineId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("configurationBaseline%2Did", configurationBaselineId);
+ return new ConfigurationBaselineItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationSnapshotsRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationSnapshotsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationSnapshotsRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationSnapshotsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
+ * @return a {@link ConfigurationBaselineCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaselineCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationBaselineCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ * @see Find more info here
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaselineCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaselineCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to configurationSnapshots for admin
+ * @param body The request body
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline post(@jakarta.annotation.Nonnull final ConfigurationBaseline body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to configurationSnapshots for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline post(@jakarta.annotation.Nonnull final ConfigurationBaseline body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaseline::createFromDiscriminatorValue);
+ }
+ /**
+ * Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to configurationSnapshots for admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationBaseline body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to configurationSnapshots for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ConfigurationBaseline body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationSnapshotsRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationSnapshotsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationSnapshotsRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get a list of configurationBaseline objects that represent configuration snapshots and their properties.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..39181342dde
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationsnapshots.count;
+
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/item/ConfigurationBaselineItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/item/ConfigurationBaselineItemRequestBuilder.java
new file mode 100644
index 00000000000..22e23dabf80
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/configurationmanagement/configurationsnapshots/item/ConfigurationBaselineItemRequestBuilder.java
@@ -0,0 +1,228 @@
+package com.microsoft.graph.admin.configurationmanagement.configurationsnapshots.item;
+
+import com.microsoft.graph.models.ConfigurationBaseline;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the configurationSnapshots property of the microsoft.graph.configurationManagement entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ConfigurationBaselineItemRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link ConfigurationBaselineItemRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationBaselineItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots/{configurationBaseline%2Did}{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ConfigurationBaselineItemRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ConfigurationBaselineItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots/{configurationBaseline%2Did}{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property configurationSnapshots for admin
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property configurationSnapshots for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * A container for configuration snapshot baselines.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline get() {
+ return get(null);
+ }
+ /**
+ * A container for configuration snapshot baselines.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaseline::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property configurationSnapshots in admin
+ * @param body The request body
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline patch(@jakarta.annotation.Nonnull final ConfigurationBaseline body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property configurationSnapshots in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ConfigurationBaseline}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ConfigurationBaseline patch(@jakarta.annotation.Nonnull final ConfigurationBaseline body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationBaseline::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property configurationSnapshots for admin
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property configurationSnapshots for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * A container for configuration snapshot baselines.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * A container for configuration snapshot baselines.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property configurationSnapshots in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationBaseline body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property configurationSnapshots in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationBaseline body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ConfigurationBaselineItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ConfigurationBaselineItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ConfigurationBaselineItemRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * A container for configuration snapshot baselines.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/exchange/ExchangeRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/exchange/ExchangeRequestBuilder.java
new file mode 100644
index 00000000000..4d1f03ce99f
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/exchange/ExchangeRequestBuilder.java
@@ -0,0 +1,246 @@
+package com.microsoft.graph.admin.exchange;
+
+import com.microsoft.graph.admin.exchange.mailboxes.MailboxesRequestBuilder;
+import com.microsoft.graph.admin.exchange.tracing.TracingRequestBuilder;
+import com.microsoft.graph.models.ExchangeAdmin;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the exchange property of the microsoft.graph.admin entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class ExchangeRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
+ * @return a {@link MailboxesRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public MailboxesRequestBuilder mailboxes() {
+ return new MailboxesRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
+ * @return a {@link TracingRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public TracingRequestBuilder tracing() {
+ return new TracingRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link ExchangeRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ExchangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/exchange{?%24expand,%24select}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link ExchangeRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public ExchangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/exchange{?%24expand,%24select}", rawUrl);
+ }
+ /**
+ * Delete navigation property exchange for admin
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete() {
+ delete(null);
+ }
+ /**
+ * Delete navigation property exchange for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
+ }
+ /**
+ * A container for the Exchange admin functionality. Read-only.
+ * @return a {@link ExchangeAdmin}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ExchangeAdmin get() {
+ return get(null);
+ }
+ /**
+ * A container for the Exchange admin functionality. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ExchangeAdmin}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ExchangeAdmin get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ExchangeAdmin::createFromDiscriminatorValue);
+ }
+ /**
+ * Update the navigation property exchange in admin
+ * @param body The request body
+ * @return a {@link ExchangeAdmin}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ExchangeAdmin patch(@jakarta.annotation.Nonnull final ExchangeAdmin body) {
+ return patch(body, null);
+ }
+ /**
+ * Update the navigation property exchange in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link ExchangeAdmin}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public ExchangeAdmin patch(@jakarta.annotation.Nonnull final ExchangeAdmin body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, ExchangeAdmin::createFromDiscriminatorValue);
+ }
+ /**
+ * Delete navigation property exchange for admin
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation() {
+ return toDeleteRequestInformation(null);
+ }
+ /**
+ * Delete navigation property exchange for admin
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * A container for the Exchange admin functionality. Read-only.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * A container for the Exchange admin functionality. Read-only.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Update the navigation property exchange in admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ExchangeAdmin body) {
+ return toPatchRequestInformation(body, null);
+ }
+ /**
+ * Update the navigation property exchange in admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ExchangeAdmin body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link ExchangeRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public ExchangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new ExchangeRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class DeleteRequestConfiguration extends BaseRequestConfiguration {
+ }
+ /**
+ * A container for the Exchange admin functionality. Read-only.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PatchRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/exchange/mailboxes/MailboxesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/exchange/mailboxes/MailboxesRequestBuilder.java
new file mode 100644
index 00000000000..42cfd403262
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/exchange/mailboxes/MailboxesRequestBuilder.java
@@ -0,0 +1,243 @@
+package com.microsoft.graph.admin.exchange.mailboxes;
+
+import com.microsoft.graph.admin.exchange.mailboxes.count.CountRequestBuilder;
+import com.microsoft.graph.admin.exchange.mailboxes.item.MailboxItemRequestBuilder;
+import com.microsoft.graph.models.Mailbox;
+import com.microsoft.graph.models.MailboxCollectionResponse;
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class MailboxesRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Provides operations to count the resources in the collection.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder count() {
+ return new CountRequestBuilder(pathParameters, requestAdapter);
+ }
+ /**
+ * Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
+ * @param mailboxId The unique identifier of mailbox
+ * @return a {@link MailboxItemRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public MailboxItemRequestBuilder byMailboxId(@jakarta.annotation.Nonnull final String mailboxId) {
+ Objects.requireNonNull(mailboxId);
+ final HashMap urlTplParams = new HashMap(this.pathParameters);
+ urlTplParams.put("mailbox%2Did", mailboxId);
+ return new MailboxItemRequestBuilder(urlTplParams, requestAdapter);
+ }
+ /**
+ * Instantiates a new {@link MailboxesRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public MailboxesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link MailboxesRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public MailboxesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl);
+ }
+ /**
+ * Represents a user's mailboxes.
+ * @return a {@link MailboxCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public MailboxCollectionResponse get() {
+ return get(null);
+ }
+ /**
+ * Represents a user's mailboxes.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link MailboxCollectionResponse}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public MailboxCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, MailboxCollectionResponse::createFromDiscriminatorValue);
+ }
+ /**
+ * Create new navigation property to mailboxes for admin
+ * @param body The request body
+ * @return a {@link Mailbox}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body) {
+ return post(body, null);
+ }
+ /**
+ * Create new navigation property to mailboxes for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Mailbox}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Mailbox post(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.send(requestInfo, errorMapping, Mailbox::createFromDiscriminatorValue);
+ }
+ /**
+ * Represents a user's mailboxes.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Represents a user's mailboxes.
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ /**
+ * Create new navigation property to mailboxes for admin
+ * @param body The request body
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Mailbox body) {
+ return toPostRequestInformation(body, null);
+ }
+ /**
+ * Create new navigation property to mailboxes for admin
+ * @param body The request body
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Mailbox body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ Objects.requireNonNull(body);
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
+ requestInfo.headers.tryAdd("Accept", "application/json");
+ requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link MailboxesRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public MailboxesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new MailboxesRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Represents a user's mailboxes.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Include count of items
+ */
+ @jakarta.annotation.Nullable
+ public Boolean count;
+ /**
+ * Expand related entities
+ */
+ @jakarta.annotation.Nullable
+ public String[] expand;
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Order items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String[] orderby;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Select properties to be returned
+ */
+ @jakarta.annotation.Nullable
+ public String[] select;
+ /**
+ * Skip the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer skip;
+ /**
+ * Show only the first n items
+ */
+ @jakarta.annotation.Nullable
+ public Integer top;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map}
+ */
+ @jakarta.annotation.Nonnull
+ public Map toQueryParameters() {
+ final Map allQueryParams = new HashMap();
+ allQueryParams.put("%24count", count);
+ allQueryParams.put("%24filter", filter);
+ allQueryParams.put("%24search", search);
+ allQueryParams.put("%24skip", skip);
+ allQueryParams.put("%24top", top);
+ allQueryParams.put("%24expand", expand);
+ allQueryParams.put("%24orderby", orderby);
+ allQueryParams.put("%24select", select);
+ return allQueryParams;
+ }
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetRequestConfiguration extends BaseRequestConfiguration {
+ /**
+ * Request query parameters
+ */
+ @jakarta.annotation.Nullable
+ public GetQueryParameters queryParameters = new GetQueryParameters();
+ }
+ /**
+ * Configuration for the request such as headers, query parameters, and middleware options.
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class PostRequestConfiguration extends BaseRequestConfiguration {
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/generated/admin/exchange/mailboxes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/admin/exchange/mailboxes/count/CountRequestBuilder.java
new file mode 100644
index 00000000000..03bad2ed092
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/generated/admin/exchange/mailboxes/count/CountRequestBuilder.java
@@ -0,0 +1,128 @@
+package com.microsoft.graph.admin.exchange.mailboxes.count;
+
+import com.microsoft.graph.models.odataerrors.ODataError;
+import com.microsoft.kiota.BaseRequestBuilder;
+import com.microsoft.kiota.BaseRequestConfiguration;
+import com.microsoft.kiota.HttpMethod;
+import com.microsoft.kiota.QueryParameters;
+import com.microsoft.kiota.RequestAdapter;
+import com.microsoft.kiota.RequestInformation;
+import com.microsoft.kiota.RequestOption;
+import com.microsoft.kiota.serialization.Parsable;
+import com.microsoft.kiota.serialization.ParsableFactory;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+/**
+ * Provides operations to count the resources in the collection.
+ */
+@jakarta.annotation.Generated("com.microsoft.kiota")
+public class CountRequestBuilder extends BaseRequestBuilder {
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param pathParameters Path parameters for the request
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}", pathParameters);
+ }
+ /**
+ * Instantiates a new {@link CountRequestBuilder} and sets the default values.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @param requestAdapter The request adapter to use to execute the requests.
+ */
+ public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
+ super(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}", rawUrl);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get() {
+ return get(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link Integer}
+ * @throws ODataError When receiving a 4XX or 5XX status code
+ */
+ @jakarta.annotation.Nullable
+ public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
+ final HashMap> errorMapping = new HashMap>();
+ errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
+ return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class);
+ }
+ /**
+ * Get the number of the resource
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation() {
+ return toGetRequestInformation(null);
+ }
+ /**
+ * Get the number of the resource
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
+ * @return a {@link RequestInformation}
+ */
+ @jakarta.annotation.Nonnull
+ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
+ final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
+ requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
+ requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ /**
+ * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ * @param rawUrl The raw URL to use for the request builder.
+ * @return a {@link CountRequestBuilder}
+ */
+ @jakarta.annotation.Nonnull
+ public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
+ Objects.requireNonNull(rawUrl);
+ return new CountRequestBuilder(rawUrl, requestAdapter);
+ }
+ /**
+ * Get the number of the resource
+ */
+ @jakarta.annotation.Generated("com.microsoft.kiota")
+ public class GetQueryParameters implements QueryParameters {
+ /**
+ * Filter items by property values
+ */
+ @jakarta.annotation.Nullable
+ public String filter;
+ /**
+ * Search items by search phrases
+ */
+ @jakarta.annotation.Nullable
+ public String search;
+ /**
+ * Extracts the query parameters into a map for the URI template parsing.
+ * @return a {@link Map